mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Require glib2 >= 2.68
This commit is contained in:
parent
70a38e60a3
commit
396a5f8799
@ -226,10 +226,9 @@ AC_ARG_ENABLE(glib,
|
||||
|
||||
if test "$enable_glib" = "yes"; then
|
||||
GLIB_PACKAGE=glib-2.0
|
||||
PKG_CHECK_MODULES([GLIB], [$GLIB_PACKAGE], HAVE_GLIB=true, HAVE_GLIB=false)
|
||||
PKG_CHECK_MODULES([GLIB], [$GLIB_PACKAGE >= 2.68], HAVE_GLIB=true, HAVE_GLIB=false)
|
||||
if test "x$HAVE_GLIB" = "xtrue"; then
|
||||
GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_GLIB=1"
|
||||
AC_CHECK_LIB($GLIB_PACKAGE, g_memdup2, [GLIB_CFLAGS="$GLIB_CFLAGS -DHAVE_G_MEMDUP2=1"])
|
||||
AC_SUBST(GLIB_PACKAGE)
|
||||
else
|
||||
enable_glib=no
|
||||
|
@ -26,10 +26,6 @@
|
||||
* used within mdbtools so they won't be exported to calling programs.
|
||||
*/
|
||||
|
||||
#ifndef HAVE_G_MEMDUP2
|
||||
#define g_memdup2 g_memdup
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user