* Multiline sed scripts won't work very well on Cygwin. Falling back to two piped sed calls instead.
diff --git a/BUGS b/BUGS
index cf3a243..0f79c30 100644
--- a/BUGS
+++ b/BUGS
@@ -1,9 +1,6 @@
BUGS
====
-* running configure on Mac OS X results in bad sed.
- checking for a TrueType font on the system... sed: 2: "s/.*\<file:[^"]*"\([^"] ...": undefined label 'x;d;:x q'
-
* FTGLTextureFonts can't be used inside display lists. This because
the glGet call to check the current texture id can't be used in a
display list. It is only a valid call when the list is compiled and
diff --git a/m4/font.m4 b/m4/font.m4
index da8024c..3fe4e8a 100644
--- a/m4/font.m4
+++ b/m4/font.m4
@@ -11,11 +11,7 @@ AC_DEFUN([FTGL_CHECK_FONT],
AC_MSG_CHECKING(for a TrueType font on the system)
dnl First try: fontconfig
-FONT_FILE="`fc-match -sv serif 2>/dev/null| sed -ne 's/.*\file:@<:@^"@:>@*"\(@<:@^"@:>@*\)".*/\1/p
-tx
-d
-:x
-q'`"
+FONT_FILE="`fc-match -sv serif 2>/dev/null| sed -ne 's/.*\file:@<:@^"@:>@*"\(@<:@^"@:>@*\)".*/\1/p' | sed q`"
dnl Second try: look into known paths
if test "$FONT_FILE" = ""; then