aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e878bca..fbb53ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,33 @@ AC_CHECK_HEADER([expat.h], [],
AC_CHECK_LIB([expat], [XML_Parse],[],
[AC_MSG_ERROR([required library libexpat is not found])])
+# MAPS
+AC_SUBST([MAPLIBS])
+
+AC_ARG_WITH([gdbm],
+ [AC_HELP_STRING([--with-gdbm],
+ [use GNU DBM])],
+ [case "${withval}" in
+ yes|no) status_gdbm=${withval};;
+ *) AC_MSG_ERROR(bad value ${withval} for --with-gdbm) ;;
+ esac],
+ [status_gdbm=auto])
+
+if test $status_gdbm != "no"; then
+ AC_CHECK_HEADERS(gdbm.h)
+ AC_CHECK_LIB(gdbm, gdbm_open, [dbmlib=-lgdbm], [dbmlib=])
+ if test "$ac_cv_header_getopt_h" = yes && test -n "$dbmlib"; then
+ MAPLIBS="$MAPLIBS $dbmlib"
+ status_gdbm=yes
+ AC_DEFINE(WITH_GDBM,1,[Use GDB GDBM])
+ elif test $status_gdbm = yes; then
+ AC_MSG_ERROR([required library libgdbm (or its header) is not found])
+ else
+ status_gdbm=no
+ fi
+fi
+AM_CONDITIONAL([COND_GDBM],[test $status_gdbm = yes])
+
# Grecs subsystem
GRECS_SETUP([grecs],[tests getopt git2chg])

Return to:

Send suggestions and report system problems to the System administrator.