]> Pileus Git - ~andy/gtk/commitdiff
Don't use AC_CHECK_LIB() when checking for FreeType, Pango, Atk since that
authorOwen Taylor <otaylor@redhat.com>
Tue, 17 Dec 2002 03:25:21 +0000 (03:25 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 17 Dec 2002 03:25:21 +0000 (03:25 +0000)
Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Don't use AC_CHECK_LIB() when
        checking for FreeType, Pango, Atk since that get
        the ordering wrong. Instead, set LIBS ourself
        and call AC_TRY_LINK_FUNC(). (#98406)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 680e0de3043a18dfb19c34ca419c7bad5094ea8d..ae6026b60788c8e3ebb17c16b5b2e627f9328bb4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Don't use AC_CHECK_LIB() when
+       checking for FreeType, Pango, Atk since that get
+       the ordering wrong. Instead, set LIBS ourself
+       and call AC_TRY_LINK_FUNC(). (#98406)
+
 Mon Dec 16 21:39:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_enter_text): Call
index 680e0de3043a18dfb19c34ca419c7bad5094ea8d..ae6026b60788c8e3ebb17c16b5b2e627f9328bb4 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Don't use AC_CHECK_LIB() when
+       checking for FreeType, Pango, Atk since that get
+       the ordering wrong. Instead, set LIBS ourself
+       and call AC_TRY_LINK_FUNC(). (#98406)
+
 Mon Dec 16 21:39:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_enter_text): Call
index 680e0de3043a18dfb19c34ca419c7bad5094ea8d..ae6026b60788c8e3ebb17c16b5b2e627f9328bb4 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Don't use AC_CHECK_LIB() when
+       checking for FreeType, Pango, Atk since that get
+       the ordering wrong. Instead, set LIBS ourself
+       and call AC_TRY_LINK_FUNC(). (#98406)
+
 Mon Dec 16 21:39:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_enter_text): Call
index 680e0de3043a18dfb19c34ca419c7bad5094ea8d..ae6026b60788c8e3ebb17c16b5b2e627f9328bb4 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Don't use AC_CHECK_LIB() when
+       checking for FreeType, Pango, Atk since that get
+       the ordering wrong. Instead, set LIBS ourself
+       and call AC_TRY_LINK_FUNC(). (#98406)
+
 Mon Dec 16 21:39:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_enter_text): Call
index 680e0de3043a18dfb19c34ca419c7bad5094ea8d..ae6026b60788c8e3ebb17c16b5b2e627f9328bb4 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Don't use AC_CHECK_LIB() when
+       checking for FreeType, Pango, Atk since that get
+       the ordering wrong. Instead, set LIBS ourself
+       and call AC_TRY_LINK_FUNC(). (#98406)
+
 Mon Dec 16 21:39:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_enter_text): Call
index 680e0de3043a18dfb19c34ca419c7bad5094ea8d..ae6026b60788c8e3ebb17c16b5b2e627f9328bb4 100644 (file)
@@ -1,3 +1,10 @@
+Mon Dec 16 22:12:01 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Don't use AC_CHECK_LIB() when
+       checking for FreeType, Pango, Atk since that get
+       the ordering wrong. Instead, set LIBS ourself
+       and call AC_TRY_LINK_FUNC(). (#98406)
+
 Mon Dec 16 21:39:28 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_enter_text): Call
index 98abc61031af05f11ccce321d8eaedf2ac35d5b0..d9761eb8dec8c81a7ae5a5606f900abd8387e2b0 100644 (file)
@@ -945,8 +945,10 @@ if test "x$gdktarget" = "xlinux-fb" || test "x$gdktarget" = "xx11" ; then
     FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
     FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
 
-    AC_CHECK_LIB(freetype, FT_New_Face, have_freetype=true
-                ,:,$FREETYPE_LIBS)
+    gtk_save_LIBS="$LIBS"
+    LIBS="$FREETYPE_LIBS $LIBS"
+    AC_TRY_LINK_FUNC(FT_New_Face, have_freetype=true,:)
+    LIBS="$gtk_save_LIBS"
 
     if $have_freetype ; then
       gtk_save_cppflags="$CPPFLAGS"
@@ -1352,9 +1354,12 @@ CFLAGS="$CFLAGS $PANGO_CFLAGS"
 if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
         :
 else
-        AC_CHECK_LIB(pango-1.0, pango_context_new, :, AC_MSG_ERROR([
+       gtk_save_LIBS="$LIBS"
+        LIBS="$PANGO_LIBS $LIBS"
+        AC_TRY_LINK_FUNC(pango_context_new, :, AC_MSG_ERROR([
 *** Can't link to Pango. Pango is required to build
-*** GTK+. For more information see http://www.pango.org]), $PANGO_LIBS)
+*** GTK+. For more information see http://www.pango.org]))
+        LIBS="$gtk_save_LIBS"
 fi
 
 CFLAGS="$saved_cflags"
@@ -1400,9 +1405,12 @@ fi
 if $PKG_CONFIG --uninstalled $ATK_PACKAGES; then
         :
 else
-        AC_CHECK_LIB(atk-1.0, atk_object_get_type, : , AC_MSG_ERROR([
+       gtk_save_LIBS="$LIBS"
+        LIBS="$ATK_LIBS $LIBS"
+        AC_TRY_LINK_FUNC(atk_object_get_type, : , AC_MSG_ERROR([
                 *** Cannot link to Accessibility Toolkit. Accessibility Toolkit is required
-                *** to build GTK+]), $ATK_LIBS $GLIB_LIBS)
+                *** to build GTK+]))
+        LIBS="$gtk_save_LIBS"
 fi
 
 GTK_PACKAGES=atk