[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AX_PATH_BDB and -I/include, -L/lib
From: |
Florian Weimer |
Subject: |
AX_PATH_BDB and -I/include, -L/lib |
Date: |
Sat, 04 Dec 2004 17:40:21 +0100 |
On Debian GNU/Linux systems, AX_PATH_BDB produces -I/include and
-L/lib flags by default. The patch below fixes this.
----------------------------------------------------------------------
r687: fw | 2004-12-04 17:35:09 +0100
* aclocal.m4 (AX_PATH_BDB_NO_OPTIONS):
Suppress -I and -L if the Berkeley DB path is empty.
----------------------------------------------------------------------
=== enyo/trunk/aclocal.m4
==================================================================
--- enyo/trunk/aclocal.m4 (revision 686)
+++ enyo/trunk/aclocal.m4 (revision 687)
@@ -483,8 +483,10 @@
if test "$ax_compare_version" = "true" ; then
ax_path_bdb_no_options_ok=yes
BDB_LIBS="-ldb"
- BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
- BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
+ if test "x$ax_path_bdb_path_find_highest_DIR" != x ; then
+ BDB_CPPFLAGS="-I$ax_path_bdb_path_find_highest_DIR/include"
+ BDB_LDFLAGS="-L$ax_path_bdb_path_find_highest_DIR/lib"
+ fi
BDB_VERSION="$ax_path_bdb_path_find_highest_VERSION"
fi
fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- AX_PATH_BDB and -I/include, -L/lib,
Florian Weimer <=