Commit 20fb146351674c8bec03ddbf14d9aca4f48e020d

suzuki toshiya 2009-06-27T14:27:55

Improve configure.raw for cross-building on exe-suffixed systems.

diff --git a/ChangeLog b/ChangeLog
index c009943..0438693 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-27  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	Improve configure.raw for cross-building on exe-suffixed systems.
+
+	* builds/unix/configure.raw: Fix a bug in sed script to extract
+	native suffix for binary executables, patch by Peter Breitenlohner.
+	http://lists.gnu.org/archive/html/freetype-devel/2009-04/msg00036.html
+
 2009-06-26  Werner Lemberg  <wl@gnu.org>
 
 	[truetype] Remove TT_SubGlyphRec.
diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw
index 38c5241..3317d03 100644
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -53,7 +53,7 @@ if test ${cross_compiling} = yes; then
   elif test -x a_out.exe -o -x conftest.exe; then
     EXEEXT_BUILD=".exe"
   elif test -x conftest.* ; then
-    EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\.//g'`
+    EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
   fi
   AC_MSG_RESULT($EXEEXT_BUILD)
 else
@@ -61,10 +61,6 @@ else
   EXEEXT_BUILD=${EXEEXT}
 fi
 
-
-if test ! -z ${EXEEXT_BUILD}; then
-  EXEEXT_BUILD=."${EXEEXT_BUILD}"
-fi
 AC_SUBST(CC_BUILD)
 AC_SUBST(EXEEXT_BUILD)