Setup LIBS; check /sw/include/db4/db.h and setup for db4 when the
authortomo <tomo>
Wed, 15 Oct 2003 11:31:03 +0000 (11:31 +0000)
committertomo <tomo>
Wed, 15 Oct 2003 11:31:03 +0000 (11:31 +0000)
library is found.

configure.in

index a8a5d9f..ad7175f 100644 (file)
@@ -17,6 +17,12 @@ AC_PROG_LIBTOOL
 # Checks for libraries.
 if test -f /sw/include/db3/db.h; then
        CFLAGS="-I/sw/include/db3 $CFLAGS"
+       LIBS="-L/sw/lib -ldb-3 $LIBS"
+elif test -f /sw/include/db4/db.h; then
+       CFLAGS="-I/sw/include/db4 $CFLAGS"
+       LIBS="-L/sw/lib -ldb-4 $LIBS"
+else
+       LIBS="-ldb $LIBS"
 fi
 
 # Checks for header files.