Commit 820d7df9 authored by unknown's avatar unknown

Updates to use db-3.2.9a.


acinclude.m4:
  - only allow berkeley db versions 3.2.3h and 3.2.9a
configure.in:
  - update how the BDB Makefile is modified
parent 8cde5d0f
...@@ -812,23 +812,24 @@ AC_DEFUN([MYSQL_CHECK_BDB_VERSION], [ ...@@ -812,23 +812,24 @@ AC_DEFUN([MYSQL_CHECK_BDB_VERSION], [
test -z "$db_minor" && db_minor=0 test -z "$db_minor" && db_minor=0
test -z "$db_patch" && db_patch=0 test -z "$db_patch" && db_patch=0
if test $db_major -gt 3 # This is ugly, but about as good as it can get
then mysql_bdb=
bdb_version_ok=yes if test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3
elif test $db_major -eq 3 && test $db_minor -gt 2
then then
bdb_version_ok=yes mysql_bdb=h
elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -gt 3 elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 9
then then
bdb_version_ok=yes want_bdb_version="3.2.9a" # hopefully this will stay up-to-date
# This is ugly, but about as good as it can get mysql_bdb=a
elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3 &&\ fi
grep 'DB_VERSION_STRING.*h: ' [$1] > /dev/null
if test -n "$mysql_bdb" && \
grep "DB_VERSION_STRING.*:.*$mysql_bdb: " [$1] > /dev/null
then then
bdb_version_ok=yes bdb_version_ok=yes
else else
bdb_version_ok="invalid version $db_major.$db_minor.$db_patch" bdb_version_ok="invalid version $db_major.$db_minor.$db_patch"
bdb_version_ok="$bdb_version_ok (must be at least version 3.2.3g)" bdb_version_ok="$bdb_version_ok (must be version 3.2.3h or $want_bdb_version)"
fi fi
]) ])
......
...@@ -1881,7 +1881,10 @@ then ...@@ -1881,7 +1881,10 @@ then
echo "Modifying Berkeley DB install target" echo "Modifying Berkeley DB install target"
sed -e '/^install:/ c\ sed -e '/^install:/ c\
install: all # modified by MySQL configure' \ install: all # modified by MySQL configure\
dnl This is needed because in some versions of BDB the install target
dnl is continued on a second line.
mysql-noinstall-hack:' \
"$bdb/build_unix/Makefile" > ac_BDB_Makefile "$bdb/build_unix/Makefile" > ac_BDB_Makefile
rm "$bdb/build_unix/Makefile" \ rm "$bdb/build_unix/Makefile" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment