slackbuilds_ponce/libraries/gtksourceview/fix-pkg-config-use-before-set.patch

48 lines
1.1 KiB
Diff
Raw Normal View History

--- configure.orig 2012-09-11 02:15:41.304005832 +0300
+++ configure 2012-09-11 02:17:41.957003984 +0300
@@ -10820,23 +10820,6 @@
fi
-if test "$enable_deprecations" = "yes"; then
- DISABLE_DEPRECATED_CFLAGS="\
--DG_DISABLE_DEPRECATED \
--DGDK_DISABLE_DEPRECATED \
--DGTK_DISABLE_DEPRECATED \
--DGDK_PIXBUF_DISABLE_DEPRECATED \
--DGNOME_DISABLE_DEPRECATED"
-
- if $PKG_CONFIG --atleast-version 2.90 $GTK_REQUIRED; then
- DISABLE_DEPRECATED_CFLAGS="$DISABLE_DEPRECATED_CFLAGS -DGSEAL_ENABLE"
- fi
-
-
-fi
-
-
-
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
@@ -10970,6 +10953,20 @@
fi
+if test "$enable_deprecations" = "yes"; then
+ DISABLE_DEPRECATED_CFLAGS="\
+-DG_DISABLE_DEPRECATED \
+-DGDK_DISABLE_DEPRECATED \
+-DGTK_DISABLE_DEPRECATED \
+-DGDK_PIXBUF_DISABLE_DEPRECATED \
+-DGNOME_DISABLE_DEPRECATED"
+
+ if $PKG_CONFIG --atleast-version 2.90 $GTK_REQUIRED; then
+ DISABLE_DEPRECATED_CFLAGS="$DISABLE_DEPRECATED_CFLAGS -DGSEAL_ENABLE"
+ fi
+
+
+fi
pkg_failed=no