Make peace with autoconf-2.68
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 4 Mar 2011 16:34:01 +0000 (18:34 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 4 Mar 2011 16:34:01 +0000 (18:34 +0200)
configure.ac

index 2aa190b..ede3c44 100644 (file)
@@ -314,10 +314,12 @@ case "$with_external_db" in
 yes )
   AC_CHECK_HEADERS([db.h],[
     AC_PREPROC_IFELSE([
+      AC_LANG_SOURCE([
        #include <db.h>
        #if ((DB_VERSION_MAJOR < 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 5))
        #error Berkeley DB too old
        #endif
+      ])
     ],[ WITH_DB_LIB=-ldb ], 
       [ AC_MSG_ERROR([Berkeley DB version >= 4.5 required])
     ])