]> granicus.if.org Git - php/commitdiff
Check for db1/ndbm.h and use it in db. Fixes #2647
authorSascha Schumann <sas@php.net>
Sun, 14 Nov 1999 23:03:45 +0000 (23:03 +0000)
committerSascha Schumann <sas@php.net>
Sun, 14 Nov 1999 23:03:45 +0000 (23:03 +0000)
ext/db/config.m4
ext/db/db.c

index a87dbef89d9941a2104c5dace907b5a00007dd58..319174dd518421271be4e1aab3393fbde7533de9 100644 (file)
@@ -4,6 +4,8 @@ dnl don't forget to call PHP_EXTENSION(db)
 
 divert(1)
 
+AC_CHECK_HEADERS(db1/ndbm.h)
+
 # Checks for libraries.
 # Prefer gdbm, Berkeley DB and ndbm/dbm, in that order
 AC_DEFUN(AC_PREFERRED_DB_LIB,[
index c246d6bf35a9678c5aa759a49f601938127b7c81..527e2c665b4c3412763c6580a5ec2afd44217fc5 100644 (file)
 #define DB_DBM_HSEARCH 1
 #include <db.h>
 #else
+#ifdef HAVE_DB1_NDBM_H
+#include <db1/ndbm.h>
+#else
 #include <ndbm.h>
 #endif
+#endif
 
 #define DBM_TYPE DBM *
 #define DBM_MODE_TYPE int