diff options
author | Reinhard Tartler <siretart@tauware.de> | 2006-08-26 10:52:44 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2006-08-26 10:52:44 +0200 |
commit | 7ea355421e25c91dd46235f49246c6a21bdeae2b (patch) | |
tree | 6796ca0be12a822b6e20a320544b3fc2b4d54fa1 | |
parent | 5ae5da7c598d6a4088f6392df00c8e6e28b86a54 (diff) | |
download | lcd4linux-7ea355421e25c91dd46235f49246c6a21bdeae2b.tar.gz |
fix FTBFS because of X11
Diffstat (limited to '')
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | drivers.m4 | 6 |
3 files changed, 11 insertions, 2 deletions
@@ -8120,7 +8120,11 @@ echo "$as_me: WARNING: X11 headers or libraries not available: X11 driver disabl else GRAPHIC="yes" DRIVERS="$DRIVERS drv_X11.o" - DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" + if test "x$ac_x_libraries" = "x"; then + DRVLIBS="$DRVLIBS -lX11" + else + DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" + fi CPP_FLAGS="$CPPFLAGS $X_CFLAGS" cat >>confdefs.h <<\_ACEOF diff --git a/configure.in b/configure.in index ca233da..17dd4c5 100644 --- a/configure.in +++ b/configure.in @@ -46,6 +46,7 @@ sinclude(curses.m4) AC_CHECK_CURSES # Checks for X11 +AC_PATH_X AC_PATH_XTRA # double-check for X11 if test "$no_x" != "yes"; then @@ -467,7 +467,11 @@ if test "$X11" = "yes"; then else GRAPHIC="yes" DRIVERS="$DRIVERS drv_X11.o" - DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" + if test "x$ac_x_libraries" = "x"; then + DRVLIBS="$DRVLIBS -lX11" + else + DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" + fi CPP_FLAGS="$CPPFLAGS $X_CFLAGS" AC_DEFINE(WITH_X11, 1, [X11 driver]) fi |