summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2010-01-03 11:58:00 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-10 19:45:34 +0200
commite2dd219f6bb96036e54acfd7c2cf65ff09847f9e (patch)
treecbd4515ea0f42745016797ea5d1217a66d7a8b4a
parent49e532c327b1ee0d2f83e98812708d58a8496c94 (diff)
downloadspice-e2dd219f6bb96036e54acfd7c2cf65ff09847f9e.tar.gz
spice-e2dd219f6bb96036e54acfd7c2cf65ff09847f9e.tar.xz
spice-e2dd219f6bb96036e54acfd7c2cf65ff09847f9e.zip
configure.ac: use AC_CONFIG_SUBDIRS to run configure in subdirs (subdir config)
That's about all the work configure.ac does. Moved config.pc.in to server, and updated Makefile.am and server/Makefile.am accordingly Signed-off-by: Uri Lublin <uril@redhat.com>
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac83
-rw-r--r--server/Makefile.am6
-rw-r--r--server/configure.ac3
-rw-r--r--server/spice.pc.in (renamed from spice.pc.in)0
5 files changed, 10 insertions, 88 deletions
diff --git a/Makefile.am b/Makefile.am
index c5e5c7bb..b4232cb7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1 @@
SUBDIRS = common server client
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = spice.pc
-
-DISTCLEANFILES = \
- spice.pc
diff --git a/configure.ac b/configure.ac
index ec2d99fb..742987e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,84 +8,11 @@ AC_INIT(spice, [SPICE_MAJOR.SPICE_MINOR.SPICE_MICRO], [], spice)
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)
-
-
-if test "$platform_win32" = yes; then
- red_target=windows
-else
- red_target=x11
-fi
-AC_SUBST(red_target)
-
-dnl =========================================================================
-dnl Check deps
-
-
-PKG_CHECK_MODULES(XRANDR, xrandr)
-AC_SUBST(XRANDR_CFLAGS)
-AC_SUBST(XRANDR_LIBS)
-SPICE_REQUIRES+=" xrandr"
-
-PKG_CHECK_MODULES(XRANDR12,
- xrandr >= 1.2,
- have_xrandr12=yes,
- have_xrandr12=no)
-
-AM_CONDITIONAL([HAVE_XRANDR12], [test "x$have_xrandr12" = "xyes"])
-if test "x$have_xrandr12" = "xyes" ; then
- AC_DEFINE([HAVE_XRANDR12], [], [Define if we have XRANDR 12])
-fi
-
-
-PKG_CHECK_MODULES(LOG4CPP, log4cpp)
-AC_SUBST(LOG4CPP_CFLAGS)
-AC_SUBST(LOG4CPP_LIBS)
-SPICE_REQUIRES+=" log4cpp"
-
-dnl =========================================================================
-dnl -fvisibility stuff
-
-have_gcc4=no
-AC_MSG_CHECKING(for -fvisibility)
-AC_COMPILE_IFELSE([
-#if defined(__GNUC__) && (__GNUC__ >= 4)
-#else
-error Need GCC 4.0 for visibility
-#endif
-int main () { return 0; }
-], have_gcc4=yes)
-
-if test "x$have_gcc4" = "xyes"; then
- VISIBILITY_HIDDEN_CFLAGS="-fvisibility=hidden"
-fi
-AC_MSG_RESULT($have_gcc4)
-AC_SUBST(VISIBILITY_HIDDEN_CFLAGS)
-
-AC_SUBST(SPICE_COMMON_SRCDIR)
-AC_SUBST(SPICE_REQUIRES)
-AC_SUBST(SPICE_NONPKGCONFIG_CFLAGS)
-AC_SUBST(SPICE_NONPKGCONFIG_LIBS)
-
-AC_OUTPUT([
-Makefile
-spice.pc
-common/Makefile
-common/linux/ffmpeg_inc.h
-server/Makefile
-client/Makefile
-client/x11/Makefile
-client/x11/images/Makefile
-])
+AC_CONFIG_SUBDIRS([common server client])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
dnl ==========================================================================
echo "
@@ -97,9 +24,5 @@ echo "
c compiler: ${CC}
c++ compiler: ${CXX}
- Have XRANDR 1.2: ${have_xrandr12}
-
- Red target: ${red_target}
-
Now type 'make' to build $PACKAGE
"
diff --git a/server/Makefile.am b/server/Makefile.am
index 63d88e18..15ed08e2 100644
--- a/server/Makefile.am
+++ b/server/Makefile.am
@@ -82,3 +82,9 @@ EXTRA_DIST = \
glz_encode_match_tmpl.c \
glz_encode_tmpl.c \
$(NULL)
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = spice.pc
+
+DISTCLEANFILES = \
+ spice.pc
diff --git a/server/configure.ac b/server/configure.ac
index 254341ec..d047078b 100644
--- a/server/configure.ac
+++ b/server/configure.ac
@@ -32,8 +32,7 @@ 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_CONFIG_FILES([Makefile spice.pc])
AC_OUTPUT
dnl ==========================================================================
diff --git a/spice.pc.in b/server/spice.pc.in
index 5639f4ae..5639f4ae 100644
--- a/spice.pc.in
+++ b/server/spice.pc.in