Fix for broken configure (was not explicitly including X libs).
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Mon, 11 Mar 2002 15:30:27 +0000 (15:30 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Mon, 11 Mar 2002 15:30:27 +0000 (15:30 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@246 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
configure.in
test/Makefile.am
util/Makefile.am

index 8fc90ab714511bdf53a95e71b88b948d9a7cc574..028e6ea257d4682199fb562daf94dd41f5955895 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-03-11  Bill Haneman  <bill.haneman@sun.com>
+
+       * configure.in:
+       Added X_LIBS to AC_SUBST, for applications
+       that call Xlib API directly.
+       
+
 2002-03-07  Bill Haneman  <bill.haneman@sun.com>
 
        * configure.in:
index 87eebac4a8f89de47c670075b2ec5a5f3430aeee..0911f230559b2568d6a7b60b267c3dfbb08b0150 100644 (file)
@@ -82,6 +82,16 @@ dnl NOTE: We need to use a separate automake conditional for this
 dnl      to make this work with the tarballs.
 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
 
+AC_PATH_XTRA
+
+if test x$no_x = xyes ; then
+  AC_MSG_ERROR([X development libraries not found])
+else
+  X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
+fi
+
+AC_SUBST(X_LIBS)
+
 dnl Checks for libraries
 PKG_CHECK_MODULES(LIBSPI, \
        libbonobo-2.0 >= 1.107.0 \
index c7385bea9d714909b72c167072f4838a120a19bc..77ab4a723cdf2e0edbf268646099c70daf04e3fd 100644 (file)
@@ -26,6 +26,6 @@ DEBUG_CFLAGS=-DSPI_DEBUG
 
 CFLAGS += $(TESTS_CFLAGS) $(DEBUG_CFLAGS)
 
-LDADD = ../util/libat-util.la ../libspi/libspi.la ../cspi/libcspi.la $(TESTS_LIBS)
+LDADD = ../util/libat-util.la ../libspi/libspi.la ../cspi/libcspi.la $(TESTS_LIBS) $(X_LIBS)
 
-TESTS = test-simple
\ No newline at end of file
+TESTS = test-simple
index 910d14529d90f33b3b28daadd680a6d0e4b7481d..97ba2de676e23860249952407a24b11a04964376 100644 (file)
@@ -53,7 +53,7 @@ IDLFLAGS = -I$(BONOBO_ACTIVATION_IDL_DIR)     \
 
 orbittypelibdir = $(libdir)/orbit
 
-LDADD = $(UTILS_LIBS)
+LDADD = $(UTILS_LIBS) $(X_LIBS)
 
 serverinfodir = $(libdir)/bonobo/servers
 serverinfo_DATA = Accessibility_Util.server