From: Brendan Cully Date: Thu, 5 Apr 2007 22:21:47 +0000 (-0700) Subject: Teach --with-gdbm to accept a prefix (closes #2413) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f9e2565bb42b75d84681ffd97aff30e28229d40;p=neomutt Teach --with-gdbm to accept a prefix (closes #2413) --- diff --git a/configure.ac b/configure.ac index 0f891cb52..7e59d4a87 100644 --- a/configure.ac +++ b/configure.ac @@ -843,10 +843,13 @@ AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]) ]) fi - ac_prefer_gdbm=yes - AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm], [Don't use gdbm even if it is available]), - ac_prefer_gdbm=$withval) - if test x$ac_prefer_gdbm != xno -a x$ac_cv_vlopen != xyes; then + AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm], [Don't use gdbm even if it is available])) + if test x$with_gdbm != xno -a x$ac_cv_vlopen != xyes; then + if test "$with_gdbm" != "yes" + then + CPPFLAGS="$CPPFLAGS -I$with_gdbm/include" + LDFLAGS="$LDFLAGS -L$with_gdbm/lib" + fi CPPFLAGS="$OLDCPPFLAGS" LIBS="$OLDLIBS -lgdbm"; AC_CACHE_CHECK(for gdbm_open, ac_cv_gdbmopen,[