--- a/configure.ac 2009-01-31 13:59:36.000000000 +0100 +++ b/configure.ac 2009-01-31 14:01:06.000000000 +0100 @@ -29,6 +29,7 @@ # ========== export compiler / linker options ======== # AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) +AC_SUBST(LIBS) AC_SUBST(LDFLAGS) # ============== look for dependencies =============== # @@ -170,7 +171,7 @@ AC_CHECK_LIB(X11, XOpenDisplay, [ HAVE_X11=true ])) # can't embed next AC_CHECK_HEADERS in true case of AC_CHECK_LIB if test "${HAVE_X11}" = "true"; then - LDFLAGS="${LDFLAGS} -lX11 -lXext" + LIBS="${LIBS} -lX11 -lXext" # need to specifically include X11/Xlib header when # doing checks for NVCtrl headers AC_CHECK_HEADERS(NVCtrl/NVCtrl.h NVCtrl/NVCtrlLib.h, [ HAVE_NVIDIA=true ], [],