| 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_X11, 1, [Define to 1 if you have X11])], |
355 [AC_DEFINE(HAVE_X, 1, [Define to 1 if you have X11])], |
| 356 [AC_MSG_RESULT(no) |
356 [AC_MSG_RESULT(no) |
| 357 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then |
357 with_x=no]) |
| 358 X11_LIBS="$x_libpath_add" |
|
| 359 X11_CFLAGS="$x_incpath_add" |
|
| 360 else |
|
| 361 with_x=no |
|
| 362 fi |
|
| 363 ]) |
|
| 364 AC_SUBST(X11_LIBS) |
358 AC_SUBST(X11_LIBS) |
| 365 AC_SUBST(X11_CFLAGS) |
359 AC_SUBST(X11_CFLAGS) |
| 366 fi |
360 fi |
| 367 |
361 |
| 368 dnl ####################################################################### |
362 dnl ####################################################################### |
| 369 dnl # Check for XScreenSaver |
363 dnl # Check for XScreenSaver |
| 370 dnl ####################################################################### |
364 dnl ####################################################################### |
| 371 if test "x$enable_screensaver" = "xyes" ; then |
365 if test "x$enable_screensaver" = "xyes" ; then |
| 372 if test "x$with_x" = "xyes" ; then |
366 if test "x$with_x" = "xyes" ; then |