--- nvclock0.6.2/configure.in 2003-01-31 15:51:27.000000000 -0500 +++ configure.in 2003-02-10 16:00:25.000000000 -0500 @@ -26,11 +26,27 @@ GTK2_LIBS=$GTK_LIBS -AC_ARG_ENABLE(gtk, [ --disable-gtk Don't build the GTK GUI. ], \ - enable_gtk=no, enable_gtk=yes) -AC_ARG_ENABLE(qt, [ --enable-qt Build Qt 2.x/3.x GUI, default=no. ], \ - enable_qt=yes, enable_qt=no) - +AC_ARG_ENABLE(gtk, +[ --disable-gtk Don't build the GTK GUI. ], +[ + if test x$enableval = xno; then + enable_gtk=no + else + enable_gtk=yes + fi +], +enable_gtk=yes) + +AC_ARG_ENABLE(qt, +[ --enable-qt Build Qt 2.x/3.x GUI, default=no. ], +[ + if test x$enableval = xno; then + enable_qt=no + else + enable_qt=yes + fi +], +enable_qt=no) dnl We will only compile one NVClock gtk binary, choose the latest version availible if test x"$enable_gtk" = "xyes"; then @@ -70,8 +86,8 @@ no_qt=no elif test -r $QTDIR/include/qt.h; then - QT_LIB_DIR=-L$(QTDIR)/lib -L$QTDIR - QT_INC_DIR=-I$(QTDIR)/include + QT_LIB_DIR="$QTDIR/lib -L$QTDIR" + QT_INC_DIR="$QTDIR/include" no_qt=no else