bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix for finding db in RedHat 8


From: Dave Love
Subject: fix for finding db in RedHat 8
Date: Thu, 06 Nov 2003 13:54:40 +0000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

This patch against 2.1.0p1 allows configure to find db on a RedHat 8
system.  (See the comment in the patch.)

*** configure.ac        2003/11/05 19:01:15     1.1
--- configure.ac        2003/11/05 19:38:43
***************
*** 112,118 ****
                  if test -f "$d/include/$v/db.h" ; then
                      test "x$d" != "x/usr" && BERKELEY_DB_LDFLAGS="-L$d/lib"
                      BERKELEY_DB_CFLAGS="-I$d/include/$v"
!                     BERKELEY_DB_LIB="-l$v"
                      AC_MSG_RESULT($d)
                      break
                  fi
--- 112,129 ----
                  if test -f "$d/include/$v/db.h" ; then
                      test "x$d" != "x/usr" && BERKELEY_DB_LDFLAGS="-L$d/lib"
                      BERKELEY_DB_CFLAGS="-I$d/include/$v"
!                     late_LIBS=$LIBS
!                   # In RedHat 8, for instance, we have /usr/include/db4
!                   # and libdb-4.0.a.  Debian has /usr/lib/libdb-4.1.a, for
!                   # instance.  Look for the appropriate library.
!                     if test $v = db4; then
!                       AC_SEARCH_LIBS(db_create, 
!                               [db-4 db4 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 
db-4.0], 
!                               [BERKELEY_DB_LIB=$ac_cv_search_db_create])
!                   else
!                       BERKELEY_DB_LIB="-l$v"
!                     fi
!                   LIBS=$late_LIBS
                      AC_MSG_RESULT($d)
                      break
                  fi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]