add --disable-gmdb2 option

This commit is contained in:
brianb 2005-08-31 01:26:25 +00:00
parent c8a0c79e31
commit 19d11f13c6
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,6 @@
Tue Aug 30 21:24:46 EDT 2005 Brian Bruns <brian@bruns.com>
* configure.in: add --disable-gmdb2 switch
Tue Aug 9 23:36:01 CDT 2005 Jeff Smith <whydoubt@yahoo.com>
* src/util/mdb-prop.c: Use correct index for command line options

View File

@ -114,10 +114,18 @@ fi
PKG_CHECK_MODULES(GNOME,libglade-2.0 libgnomeui-2.0, HAVE_GNOME=true, HAVE_GNOME=false)
if test "x$HAVE_GNOME" = "xtrue"; then
AC_SUBST(GNOME_CFLAGS)
AC_SUBST(GNOME_LIBS)
OPTDIRS="$OPTDIRS gmdb2"
AC_ARG_ENABLE(gmdb2,
AC_HELP_STRING([--disable-gmdb2], [do not build gmdb2]),
[build_gmdb2=$enableval], [build_gmdb2=yes])
if test "$build_gmdb2" = "yes" ; then
if test "x$HAVE_GNOME" = "xtrue"; then
AC_SUBST(GNOME_CFLAGS)
AC_SUBST(GNOME_LIBS)
OPTDIRS="$OPTDIRS gmdb2"
fi
else
AC_MSG_NOTICE(gmdb2 disabled)
fi
AC_SUBST([OPTDIRS])