Files
pkgsrc-ng/devel/pkg-config/patches/patch-glib_configure
2016-11-18 22:39:22 +01:00

26 lines
840 B
Plaintext

$NetBSD: patch-glib_configure,v 1.4 2015/10/17 09:50:48 tnn Exp $
Fix unportable test construct.
Disable Carbon support in the bundled glib. It does not link correctly
with the Frameworks and pkg-config should not need any of those features.
--- glib/configure.orig 2015-09-27 14:07:16.000000000 +0000
+++ glib/configure
@@ -5298,6 +5298,7 @@ $as_echo_n "checking for Mac OS X Carbon
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#error don't build this
#include <Carbon/Carbon.h>
#include <CoreServices/CoreServices.h>
@@ -5885,7 +5886,7 @@ else
ENABLE_ALWAYS_BUILD_TESTS_FALSE=
fi
- if test "$ENABLE_INSTALLED_TESTS" == "1"; then
+ if test "$ENABLE_INSTALLED_TESTS" = "1"; then
installed_test_metadir=${datadir}/installed-tests/glib
installed_testdir=${libexecdir}/installed-tests/glib