[Box Backup-commit] COMMIT r1717 - box/trunk/infrastructure/m4
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sun, 01 Jul 2007 23:07:42 +0100
Author: jamesog
Date: 2007-07-01 23:07:42 +0100 (Sun, 01 Jul 2007)
New Revision: 1717
Modified:
box/trunk/infrastructure/m4/ax_path_bdb.m4
Log:
Remove --with-bdb-dir option, to avoid confusion and be consistent with the SSL flags.
Modified: box/trunk/infrastructure/m4/ax_path_bdb.m4
===================================================================
--- box/trunk/infrastructure/m4/ax_path_bdb.m4 2007-07-01 15:30:22 UTC (rev 1716)
+++ box/trunk/infrastructure/m4/ax_path_bdb.m4 2007-07-01 22:07:42 UTC (rev 1717)
@@ -12,12 +12,10 @@
dnl values to add to LIBS, CPPFLAGS, and LDFLAGS, as well as setting
dnl BDB_VERSION to the version found. HAVE_DB_H is defined also.
dnl
-dnl The option --with-bdb-dir=DIR can be used to specify a specific
-dnl Berkeley DB installation to use, or --with-bdb-headers=DIR and
-dnl --with-bdb-lib=DIR can be used to specify individual include and
-dnl library locations.
+dnl The options --with-bdb-headers=DIR and --with-bdb-lib=DIR can be
+dnl used to specify a specific Berkeley DB installation to use.
dnl
-dnl An example of it's use is:
+dnl An example of its use is:
dnl
dnl AX_PATH_BDB([3],[
dnl LIBS="$BDB_LIBS $LIBS"
@@ -72,11 +70,6 @@
dnl # Used to indicate success or failure of this function.
ax_path_bdb_ok=no
- # Add --with-bdb-dir option to configure.
- AC_ARG_WITH([bdb-dir],
- [AC_HELP_STRING([--with-bdb-dir=DIR],
- [Berkeley DB installation directory])])
-
# Add --with-bdb-headers and --with-bdb-lib options
AC_ARG_WITH([bdb-headers],
[AC_HELP_STRING([--with-bdb-headers=DIR],
@@ -87,25 +80,14 @@
[Berkeley DB library location])])
# Check if --with-bdb-dir was specified.
- if test "x$with_bdb_dir" = "x" -a \
- "x$with_bdb_headers" = "x" -a "x$with_bdb_lib" = "x"; then
+ if test "x$with_bdb_headers" = "x" -a "x$with_bdb_lib" = "x"; then
# No option specified, so just search the system.
AX_PATH_BDB_NO_OPTIONS([$1], [HIGHEST], [
ax_path_bdb_ok=yes
])
else
- # Check if the --with-bdb-headers and --with-bdb-lib flags were defined
- # Use them if so, otherwise use --with-bdb-dir
- if test "x$with_bdb_headers" = "x"; then
- ax_path_bdb_INC="$with_bdb_dir/include"
- else
- ax_path_bdb_INC="$with_bdb_headers"
- fi
- if test "x$with_bdb_lib" = "x"; then
- ax_path_bdb_LIB="$with_bdb_dir/lib"
- else
- ax_path_bdb_LIB="$with_bdb_lib"
- fi
+ ax_path_bdb_INC="$with_bdb_headers"
+ ax_path_bdb_LIB="$with_bdb_lib"
dnl # Save previous environment, and modify with new stuff.
ax_path_bdb_save_CPPFLAGS="$CPPFLAGS"