2004-05-12 Erez Zadok <ezk@cs.sunysb.edu>
+ * configure.in: don't check for dbm_open unless needed.
+
* m4/macros/header_templates.m4: template for NEW_DBM_H header
file. This completes the migration of bison/flex and n/dbm fixes
from 6.1 to to 6.0.
dnl
dnl AC_CONFIG_AUX_DIR(m4)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.1.2.42 $)
+AC_REVISION($Revision: 1.1.2.43 $)
AC_COPYRIGHT([Copyright (c) 1997-2004 Erez Zadok])
dnl find out system type
AC_MSG_NOTICE(*** SYSTEM TYPES ***)
if test "$with_ldap" = "yes"; then
AMU_CHECK_MAP_FUNCS(ldap_open, ldap)
fi
-AMU_CHECK_MAP_FUNCS(dbm_open, ndbm)
+if test "$ac_cv_lib_new_dbm" != ""
+then
+AMU_CHECK_MAP_FUNCS(dbm_open, $ac_cv_lib_new_dbm, ndbm)
+fi
AMU_CHECK_MAP_FUNCS(yp_get_default_domain yp_all, nis)
AMU_CHECK_MAP_FUNCS(nis_domain_of, nisplus, nisplus)
AMU_CHECK_MAP_FUNCS(getpwnam, passwd)