configure.ac

changeset 20069
1c15dda79261
parent 20068
bfec02cf005f
child 20158
edf11a2f02f2
child 20397
e2fe53088dc1
child 20743
0676dc71806e
--- a/configure.ac	Fri Sep 14 15:34:03 2007 +0000
+++ b/configure.ac	Fri Sep 14 15:34:59 2007 +0000
@@ -352,13 +352,19 @@
 	dnl #######################################################################
 	if test "x$with_x" = "xyes" ; then
 		PKG_CHECK_MODULES(X11, x11,
-			[AC_DEFINE(HAVE_X, 1, [Define to 1 if you have X11])],
+			[AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11])],
 			[AC_MSG_RESULT(no)
-			with_x=no])
+				if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
+					X11_LIBS="$x_libpath_add"
+					X11_CFLAGS="$x_incpath_add"
+				else
+					with_x=no
+				fi
+			])
 		AC_SUBST(X11_LIBS)
 		AC_SUBST(X11_CFLAGS)
 	fi
-	
+
 	dnl #######################################################################
 	dnl # Check for XScreenSaver
 	dnl #######################################################################

mercurial