mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-12-21 02:54:21 +08:00
Merge pull request #206 from evanmiller/test-pkg-config-2
Verify pkg-config on Travis
This commit is contained in:
@@ -212,9 +212,11 @@ AC_ARG_ENABLE(glib,
|
||||
[enable_glib=$enableval], [enable_glib=yes])
|
||||
|
||||
if test "$enable_glib" = "yes"; then
|
||||
PKG_CHECK_MODULES([GLIB], [glib-2.0], HAVE_GLIB=true, HAVE_GLIB=false)
|
||||
GLIB_PACKAGE=glib-2.0
|
||||
PKG_CHECK_MODULES([GLIB], [GLIB_PACKAGE], HAVE_GLIB=true, HAVE_GLIB=false)
|
||||
if test "x$HAVE_GLIB" = "xtrue"; then
|
||||
GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_GLIB=1"
|
||||
AC_SUBST(GLIB_PACKAGE)
|
||||
else
|
||||
enable_glib=no
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user