From: jmarcus Date: Sun, 16 Feb 2003 02:14:07 +0000 (+0000) Subject: MFH: Fix the BDB bin directory. X-Git-Tag: netatalk-1-6-1rc1~1 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=4d6274fd63697653dc0751632a417edd77a03199 MFH: Fix the BDB bin directory. --- diff --git a/bin/cnid/cnid_maint.in b/bin/cnid/cnid_maint.in index ecbc24b5..83a0eeec 100755 --- a/bin/cnid/cnid_maint.in +++ b/bin/cnid/cnid_maint.in @@ -3,7 +3,7 @@ # # cnid_maint: A script to maintain the consistency of CNID databases. # -# $Id: cnid_maint.in,v 1.12.2.1 2003-02-11 04:31:39 jmarcus Exp $ +# $Id: cnid_maint.in,v 1.12.2.2 2003-02-16 02:14:07 jmarcus Exp $ # use strict; @@ -32,9 +32,9 @@ $START_CMD = '/usr/local/etc/rc.d/netatalk.sh start'; # Below is the example of a BSD ps. A SYSV example is: # /bin/ps -eflouid,pid,ppid,comm $PS_CMD = '@PS@ -axouser,pid,ppid,command'; -$DB_STAT = '@BDB_PATH@bin/db_stat'; -$DB_RECOVER = '@BDB_PATH@bin/db_recover'; -$DB_VERIFY = '@BDB_PATH@bin/db_verify'; +$DB_STAT = '@BDB_BIN@bin/db_stat'; +$DB_RECOVER = '@BDB_BIN@bin/db_recover'; +$DB_VERIFY = '@BDB_BIN@bin/db_verify'; $APPLE_VOLUMES_FILE = '@PKGCONFDIR@/AppleVolumes.default'; ## End edit section diff --git a/macros/db3-check.m4 b/macros/db3-check.m4 index 06c79fb7..deb4e68f 100644 --- a/macros/db3-check.m4 +++ b/macros/db3-check.m4 @@ -1,4 +1,4 @@ -dnl $Id: db3-check.m4,v 1.7.4.1 2003-02-08 03:16:53 jmarcus Exp $ +dnl $Id: db3-check.m4,v 1.7.4.2 2003-02-16 02:14:07 jmarcus Exp $ dnl Autoconf macro to check for the Berkeley DB library AC_DEFUN([AC_PATH_BDB], [ @@ -15,6 +15,8 @@ AC_DEFUN([AC_PATH_BDB], [ if test -f "$bdbdir/db.h" ; then bdblibdir="`echo $bdbdir | sed 's/include\/db3$/lib/'`" bdblibdir="`echo $bdblibdir | sed 's/include$/lib/'`" + bdbbindir="`echo $bdbdir | sed 's/include\/db3$/bin/'`" + bdbbindir="`echo $bdbbindir | sed 's/include$/bin/'`" savedcflags="$CFLAGS" savedldflags="$LDFLAGS" @@ -24,6 +26,7 @@ AC_DEFUN([AC_PATH_BDB], [ bdbfound=yes BDB_CFLAGS="-I$bdbdir" BDB_LIBS="-L$bdblibdir -ldb" + BDB_BIN=$bdbbindir BDB_PATH="`echo $bdbdir | sed 's,include/db3$,,'`" ]) CFLAGS="$savedcflags" @@ -40,5 +43,6 @@ AC_DEFUN([AC_PATH_BDB], [ AC_SUBST(BDB_CFLAGS) AC_SUBST(BDB_LIBS) + AC_SUBST(BDB_BIN) AC_SUBST(BDB_PATH) ])