openbsd-ports/lang/hugs/patches/patch-fptools_libraries_HGL_configure
dons 9ddc333e90 Make sure $X_CFLAGS are visible when running configure tests for X11 and
HGL libraries. Enables X11 and HGL Haskell bindings.

Tested on amd64 and x86.
Patch courtesy of Greg Steuck <greg@y2005.nest.cx>
2005-05-08 08:45:09 +00:00

12 lines
553 B
Plaintext

$OpenBSD: patch-fptools_libraries_HGL_configure,v 1.1 2005/05/08 08:45:09 dons Exp $
--- fptools/libraries/HGL/configure.orig Sat May 7 22:07:15 2005
+++ fptools/libraries/HGL/configure Sat May 7 22:07:20 2005
@@ -3589,6 +3589,7 @@ fi
# this will catch the case of using a mingw32 gcc on a Cygwin system:
# Cygwin has the X headers & libs installed, but the mingw32 gcc can't
# use them, and we want to disable the package in this case.
+CPPFLAGS="$CPPFLAGS $X_CFLAGS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */