$NetBSD: patch-aa,v 1.2 2004/04/27 15:19:53 adam Exp $

--- configure.orig	2001-07-05 22:00:47.000000000 +0000
+++ configure
@@ -1744,14 +1744,14 @@ exec 5>>./config.log
 
 
 
-echo $ac_n "checking for poptParseArgvString in -lpopt""... $ac_c" 1>&6
-echo "configure:1749: checking for poptParseArgvString in -lpopt" >&5
+echo $ac_n "checking for poptParseArgvString in -lgnomesupport""... $ac_c" 1>&6
+echo "configure:1749: checking for poptParseArgvString in -lgnomesupport" >&5
 ac_lib_var=`echo popt'_'poptParseArgvString | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lpopt  $LIBS"
+LIBS="-lgnomesupport  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 1757 "configure"
 #include "confdefs.h"
@@ -1779,7 +1779,7 @@ LIBS="$ac_save_LIBS"
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  POPT_LIBS="-lpopt"
+  POPT_LIBS="-lgnomesupport"
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -2352,6 +2352,7 @@ else
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <ft2build.h>
 #include <freetype/freetype.h>
 
 char*
