Correction to CONFIGURE with regards to Berkeley DB for CURRENT-1204 (2nd try)
User1001
supraexpress at globaleyes.net
Wed Dec 13 05:48:50 UTC 2006
Included below are some quickly-whipped-up patches to allow proper Berkeley db
searching and allow for library names with dashes and periods where related
directories have no punctuation. These could probably be cleaned up a little.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*** configure.orig Mon Dec 4 04:04:24 2006
--- configure Tue Dec 12 20:08:08 2006
***************
*** 24213,24219 ****
# Check whether --with-berkeleydb was given.
if test "${with_berkeleydb+set}" = set; then
! withval=$with_berkeleydb; DB_DIR=$with_berkeleydb
else
DB_DIR=no
fi
--- 24213,24219 ----
# Check whether --with-berkeleydb was given.
if test "${with_berkeleydb+set}" = set; then
! withval=$with_berkeleydb; DB_DIR=yes
else
DB_DIR=no
fi
***************
*** 24246,24252 ****
if test -d "/usr/local/include/$version" ; then
DB_CPPFLAGS="-I/usr/local/include/$version"
DB_LDFLAGS="-L/usr/local/lib"
! DB_LIBS="-l$version"
{ echo "$as_me:$LINENO: result: FreeBSD locations" >&5
echo "${ECHO_T}FreeBSD locations" >&6; }
break
--- 24246,24254 ----
if test -d "/usr/local/include/$version" ; then
DB_CPPFLAGS="-I/usr/local/include/$version"
DB_LDFLAGS="-L/usr/local/lib"
! DB_VERSION_MAJOR=`grep DB_VERSION_MAJOR
/usr/local/include/$version/db.h | awk '{print $3}'`
! DB_VERSION_MINOR=`grep DB_VERSION_MINOR
/usr/local/include/$version/db.h | awk '{print $3}'`
! DB_LIBS="-ldb-$DB_VERSION_MAJOR.$DB_VERSION_MINOR"
{ echo "$as_me:$LINENO: result: FreeBSD locations" >&5
echo "${ECHO_T}FreeBSD locations" >&6; }
break
More information about the inn-bugs
mailing list