$NetBSD: patch-ad,v 1.3 2018/11/18 11:48:56 bsiegert Exp $

Enchant2 support.

--- configure.orig	2011-03-24 15:18:52.000000000 +0000
+++ configure
@@ -2667,7 +2667,7 @@ UNIQUE_REQUIRED=1.1.2
 
 # Optionnal deps
 CLUTTER_GTK_REQUIRED=0.10
-ENCHANT_REQUIRED=1.2.0
+ENCHANT_REQUIRED=2.0.0
 GEOCLUE_REQUIRED=0.11
 ISO_CODES_REQUIRED=0.35
 LIBCHAMPLAIN_GTK_REQUIRED=0.7.1
@@ -13553,8 +13553,8 @@ install-data-am: install-gsettings-schem
 .SECONDARY: $(gsettings_SCHEMAS)
 
 gsettings__base_list = \
-  sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
-  sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
+  gsed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
+  gsed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
 
 install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid)
 	@$(NORMAL_INSTALL)
@@ -16648,18 +16648,18 @@ if test -n "$ENCHANT_CFLAGS"; then
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
-      enchant >= \$ENCHANT_REQUIRED,
+      enchant-2 >= \$ENCHANT_REQUIRED,
       iso-codes >= \$ISO_CODES_REQUIRED
    \""; } >&5
   ($PKG_CONFIG --exists --print-errors "
-      enchant >= $ENCHANT_REQUIRED,
+      enchant-2 >= $ENCHANT_REQUIRED,
       iso-codes >= $ISO_CODES_REQUIRED
    ") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
   pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "
-      enchant >= $ENCHANT_REQUIRED,
+      enchant-2 >= $ENCHANT_REQUIRED,
       iso-codes >= $ISO_CODES_REQUIRED
    " 2>/dev/null`
 else
@@ -16673,18 +16673,18 @@ if test -n "$ENCHANT_LIBS"; then
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
-      enchant >= \$ENCHANT_REQUIRED,
+      enchant-2 >= \$ENCHANT_REQUIRED,
       iso-codes >= \$ISO_CODES_REQUIRED
    \""; } >&5
   ($PKG_CONFIG --exists --print-errors "
-      enchant >= $ENCHANT_REQUIRED,
+      enchant-2 >= $ENCHANT_REQUIRED,
       iso-codes >= $ISO_CODES_REQUIRED
    ") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
   pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "
-      enchant >= $ENCHANT_REQUIRED,
+      enchant-2 >= $ENCHANT_REQUIRED,
       iso-codes >= $ISO_CODES_REQUIRED
    " 2>/dev/null`
 else
@@ -16707,12 +16707,12 @@ else
 fi
         if test $_pkg_short_errors_supported = yes; then
 	        ENCHANT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
-      enchant >= $ENCHANT_REQUIRED,
+      enchant-2 >= $ENCHANT_REQUIRED,
       iso-codes >= $ISO_CODES_REQUIRED
    " 2>&1`
         else
 	        ENCHANT_PKG_ERRORS=`$PKG_CONFIG --print-errors "
-      enchant >= $ENCHANT_REQUIRED,
+      enchant-2 >= $ENCHANT_REQUIRED,
       iso-codes >= $ISO_CODES_REQUIRED
    " 2>&1`
         fi
