INN commit: branches/2.5/m4 (berkeleydb.m4)

INN Commit rra at isc.org
Fri Sep 20 19:24:37 UTC 2013


    Date: Friday, September 20, 2013 @ 12:24:37
  Author: iulius
Revision: 9538

fix include directories at configure time for Berkeley DB support

Do not add /usr/include and /usr/lib to compiler and linker
include directories.

Modified:
  branches/2.5/m4/berkeleydb.m4

---------------+
 berkeleydb.m4 |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: berkeleydb.m4
===================================================================
--- berkeleydb.m4	2013-09-20 18:01:01 UTC (rev 9537)
+++ berkeleydb.m4	2013-09-20 19:24:37 UTC (rev 9538)
@@ -37,8 +37,10 @@
     if test x"$DB_DIR" = xyes ; then
         AC_MSG_ERROR([cannot find Berkeley DB])
     else
-        DB_CPPFLAGS="-I$DB_DIR/include"
-        DB_LDFLAGS="-L$DB_DIR/lib"
+        if test x"$DB_DIR" != x/usr ; then
+            DB_CPPFLAGS="-I$DB_DIR/include"
+            DB_LDFLAGS="-L$DB_DIR/lib"
+        fi
         DB_LIBS="-ldb"
         AC_MSG_RESULT([$DB_DIR])
     fi



More information about the inn-committers mailing list