check for bdb compat.
This commit is contained in:
parent
66290e217f
commit
90888fabf0
@ -40,11 +40,21 @@ if ! test -d .git; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
bdb_compat=0
|
||||||
|
if cat /usr/include/db.h | grep -i DB_VERSION_STRING | grep -q 'DB 4.8' \
|
||||||
|
|| test -e /usr/include/db4.8 \
|
||||||
|
|| test -e /usr/include/db4.8.h; then
|
||||||
|
bdb_compat=1
|
||||||
|
fi
|
||||||
|
if test $bdb_compat -eq 0; then
|
||||||
|
set -- "--with-incompatible-bdb" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
./autogen.sh || exit 1
|
./autogen.sh || exit 1
|
||||||
if test -n "$1"; then
|
if test -n "$1"; then
|
||||||
./configure --enable-daemonlib --with-incompatible-bdb "$@" || exit 1
|
./configure --enable-daemonlib "$@" || exit 1
|
||||||
else
|
else
|
||||||
./configure --enable-daemonlib --with-incompatible-bdb || exit 1
|
./configure --enable-daemonlib || exit 1
|
||||||
fi
|
fi
|
||||||
make || exit 1
|
make || exit 1
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user