X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=ab6ec27b5ee74fb53b1cab2b3dd65a223b406722;hb=e802f7a7f88d9cc71472f8296f9e2d72e4f82b13;hp=5e5d4c91e8fff7764151ccd542ef31e0889ba049;hpb=69e27f1d9d475a94e61fa54af40ac7be06d872ca;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 5e5d4c9..ab6ec27 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -999,16 +999,19 @@ else FP_CHECK_GL_HELPER([GL], [-lGL -lopengl32], [@%:@include ], [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