Commit 51f245a615954cf41f5683b9dbae1e03e5d7c430

Werner Lemberg 2002-01-11T02:22:40

* builds/unix/freetype2.a4: Fix some serious bugs.

diff --git a/ChangeLog b/ChangeLog
index e43d900..c1bee10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-10  Werner Lemberg  <wl@gnu.org>
+
+	* builds/unix/freetype2.a4: Fix some serious bugs.
+
 2002-01-09  David Turner  <david@freetype.org>
 
 	* builds/unix/configure.ac: Build top-level Jamfile.
diff --git a/builds/unix/freetype2.m4 b/builds/unix/freetype2.m4
index 39c870e..29358bd 100644
--- a/builds/unix/freetype2.m4
+++ b/builds/unix/freetype2.m4
@@ -1,23 +1,25 @@
 # Configure paths for FreeType2
 # Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor
 
-dnl AM_CHECK_FT2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
+dnl AC_CHECK_FT2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
 dnl Test for FreeType2, and define FT2_CFLAGS and FT2_LIBS
 dnl
 AC_DEFUN(AC_CHECK_FT2,
 [dnl
 dnl Get the cflags and libraries from the freetype-config script
 dnl
-AC_ARG_WITH(freetype-prefix,
-[  --with-ft-prefix=PFX      Prefix where FreeType is installed (optional)],
+AC_ARG_WITH(ft-prefix,
+[  --with-ft-prefix=PREFIX
+                          Prefix where FreeType is installed (optional)],
             ft_config_prefix="$withval", ft_config_prefix="")
-AC_ARG_WITH(freetype-exec-prefix,
-[  --with-ft-exec-prefix=PFX Exec prefix where FreeType is installed (optional)],
+AC_ARG_WITH(ft-exec-prefix,
+[  --with-ft-exec-prefix=PREFIX
+                          Exec prefix where FreeType is installed (optional)],
             ft_config_exec_prefix="$withval", ft_config_exec_prefix="")
 AC_ARG_ENABLE(freetypetest,
-[  --disable-freetypetest    Do not try to compile and run
-                            a test FreeType program],
-            [], enable_fttest=yes)
+[  --disable-freetypetest  Do not try to compile and run
+                          a test FreeType program],
+              [], enable_fttest=yes)
 
 if test x$ft_config_exec_prefix != x ; then
   ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
@@ -70,7 +72,7 @@ else
         fi
       fi
     fi
-    if test "x$ft_config_is_lt" = "xyes" ; then
+    if test "x$ft_config_is_lt" = "xno" ; then
       ifelse([$3], , :, [$3])
     else
       ac_save_CFLAGS="$CFLAGS"