comparison configure.ac @ 20035:3bd61d44f8be

Hopefully fix the broken detection of X11 stuffs on older X installations that don't have an x11.pc pkgconfig file
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 14 Sep 2007 15:34:59 +0000
parents f41b96686cfb
children 014cc99647c0 00bd25d8bd97
comparison
equal deleted inserted replaced
20034:f41b96686cfb 20035:3bd61d44f8be
350 dnl ####################################################################### 350 dnl #######################################################################
351 dnl # Check if we should compile with X support 351 dnl # Check if we should compile with X support
352 dnl ####################################################################### 352 dnl #######################################################################
353 if test "x$with_x" = "xyes" ; then 353 if test "x$with_x" = "xyes" ; then
354 PKG_CHECK_MODULES(X11, x11, 354 PKG_CHECK_MODULES(X11, x11,
355 [AC_DEFINE(HAVE_X, 1, [Define to 1 if you have X11])], 355 [AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11])],
356 [AC_MSG_RESULT(no) 356 [AC_MSG_RESULT(no)
357 with_x=no]) 357 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
358 X11_LIBS="$x_libpath_add"
359 X11_CFLAGS="$x_incpath_add"
360 else
361 with_x=no
362 fi
363 ])
358 AC_SUBST(X11_LIBS) 364 AC_SUBST(X11_LIBS)
359 AC_SUBST(X11_CFLAGS) 365 AC_SUBST(X11_CFLAGS)
360 fi 366 fi
361 367
362 dnl ####################################################################### 368 dnl #######################################################################
363 dnl # Check for XScreenSaver 369 dnl # Check for XScreenSaver
364 dnl ####################################################################### 370 dnl #######################################################################
365 if test "x$enable_screensaver" = "xyes" ; then 371 if test "x$enable_screensaver" = "xyes" ; then
366 if test "x$with_x" = "xyes" ; then 372 if test "x$with_x" = "xyes" ; then