X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=113889a9d4376719bc64d4dbafe6b90ed2a94bb9;hb=89f1a34d1710373d1cfde36af732b37d598a16f0;hp=5e5d4c91e8fff7764151ccd542ef31e0889ba049;hpb=69e27f1d9d475a94e61fa54af40ac7be06d872ca;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 5e5d4c9..113889a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -292,7 +292,7 @@ AC_SUBST(GreenCardVersion) dnl dnl Check for Happy and version. If we're building GHC, then we need -dnl at least Happy version 1.13. If there's no installed Happy, we look +dnl at least Happy version 1.14. If there's no installed Happy, we look dnl for a happy source tree and point the build system at that instead. dnl AC_DEFUN(FPTOOLS_HAPPY, @@ -318,8 +318,8 @@ fi; changequote([, ])dnl ]) if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Parser.hs; then - FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.13], - [AC_MSG_ERROR([Happy version 1.13 or later is required to compile GHC.])])[]dnl + FP_COMPARE_VERSIONS([$fptools_cv_happy_version],[-lt],[1.14], + [AC_MSG_ERROR([Happy version 1.14 or later is required to compile GHC.])])[]dnl fi HappyVersion=$fptools_cv_happy_version; AC_SUBST(HappyVersion) @@ -758,77 +758,23 @@ undefine([AC_CV_NAME])dnl undefine([AC_CV_NAME_supported])dnl ]) -dnl Based on AC_TRY_LINK - run iftrue if links cleanly with no warning -dnl FPTOOLS_TRY_LINK_NOWARN(flags,main?,iftrue,iffalse) - -AC_DEFUN(FPTOOLS_TRY_LINK_NOWARN, -[ -ac_save_LIBS="$LIBS" -LIBS=[$1]; -cat > conftest.$ac_ext <], [glEnd()]) - # Ugly: To get wglGetProcAddress on Windows, we have to link with - # opengl32.dll, too, even when we are using Cygwin with X11. - case "$GL_LIBS" in - *-lopengl32*|*opengl32.lib*) ;; - *) fp_save_LIBS="$LIBS" - LIBS="$LIBS -lopengl32" - AC_TRY_LINK([@%:@include ], [glEnd()], [GL_LIBS="$GL_LIBS -lopengl32"]) - LIBS="$fp_save_LIBS" - ;; - esac + if test x"$no_GL" != xyes; then + # Ugly: To get wglGetProcAddress on Windows, we have to link with + # opengl32.dll, too, even when we are using Cygwin with X11. + case "$GL_LIBS" in + *-lopengl32*|*opengl32.lib*) ;; + *) fp_save_LIBS="$LIBS" + LIBS="$LIBS -lopengl32" + AC_TRY_LINK([@%:@include ], [glEnd()], + [GL_LIBS="$GL_LIBS -lopengl32"; GL_LIBS0="$GL_LIBS0 -lopengl32"]) + LIBS="$fp_save_LIBS" + ;; + esac + fi fi fi