summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2010-01-03 09:04:06 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-10 19:44:43 +0200
commit5e5ad018c2af62113714240ced216095b8647a03 (patch)
tree55d495c59827b304a92af63f1b4bdec966b54293
parentae9a42d6c4c83518276d017f7dcf170f68116063 (diff)
downloadspice-5e5ad018c2af62113714240ced216095b8647a03.tar.gz
spice-5e5ad018c2af62113714240ced216095b8647a03.tar.xz
spice-5e5ad018c2af62113714240ced216095b8647a03.zip
Add server/configure.ac (subdir config)
Enables running ./configure in server/ (as well as autoreconf or autogen.sh) Signed-off-by: Uri Lublin <uril@redhat.com>
-rw-r--r--server/configure.ac50
1 files changed, 50 insertions, 0 deletions
diff --git a/server/configure.ac b/server/configure.ac
new file mode 100644
index 00000000..254341ec
--- /dev/null
+++ b/server/configure.ac
@@ -0,0 +1,50 @@
+AC_PREREQ([2.57])
+
+m4_define([SPICE_MAJOR], 0)
+m4_define([SPICE_MINOR], 4)
+m4_define([SPICE_MICRO], 1)
+
+AC_INIT(spice-server, [SPICE_MAJOR.SPICE_MINOR.SPICE_MICRO], [], spice-server)
+
+AC_CONFIG_MACRO_DIR([m4])
+
+# Define default SPICE_COMMON_SRCDIR
+# Maybe overwritten by ../configure.ac.shared
+SPICE_COMMON_SRCDIR='$(top_srcdir)'/../common
+
+m4_include(../configure.ac.shared)
+
+AC_PROG_LIBTOOL
+
+SPICE_LT_VERSION=m4_format("%d:%d:%d", SPICE_MAJOR, SPICE_MINOR, SPICE_MICRO)
+AC_SUBST(SPICE_LT_VERSION)
+
+# Support only x86_64 arch
+echo " ************** host cpu is $host_cpu "
+if test $host_cpu != x86_64; then
+ echo "Only x86_64 arch is supported"
+ exit 1
+fi
+
+
+AC_SUBST(SPICE_COMMON_SRCDIR)
+AC_SUBST(SPICE_REQUIRES)
+AC_SUBST(SPICE_NONPKGCONFIG_CFLAGS)
+AC_SUBST(SPICE_NONPKGCONFIG_LIBS)
+
+AC_CONFIG_FILES([Makefile])
+#AC_CONFIG_FILES([Makefile spice.pc])
+AC_OUTPUT
+
+dnl ==========================================================================
+echo "
+
+ Spice Server $VERSION
+ ==============
+
+ prefix: ${prefix}
+ c compiler: ${CC}
+ c++ compiler: ${CXX}
+
+ Now type 'make' to build $PACKAGE
+"