From: tomo Date: Wed, 15 Oct 2003 11:31:03 +0000 (+0000) Subject: Setup LIBS; check /sw/include/db4/db.h and setup for db4 when the X-Git-Tag: b1-r0_2_0-pre10~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d87b4e5e974e44ab08e829c74e12aac7dea5f616;p=chise%2Flibchise.git Setup LIBS; check /sw/include/db4/db.h and setup for db4 when the library is found. --- diff --git a/configure.in b/configure.in index a8a5d9f..ad7175f 100644 --- a/configure.in +++ b/configure.in @@ -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.