diff aclocal.m4 @ 7945:456578a22388

check for OpenGL/gl[u].h
author carlo@guglielmo.local
date Fri, 18 Jul 2008 19:22:41 +0200
parents 2a62d45fa21d
children 3ffc34caec65
line wrap: on
line diff
--- a/aclocal.m4	Fri Jul 18 14:08:44 2008 -0400
+++ b/aclocal.m4	Fri Jul 18 19:22:41 2008 +0200
@@ -1066,12 +1066,12 @@
     ;;
 esac
 have_opengl_incs=no
-AC_CHECK_HEADERS(GL/gl.h, [
-  AC_CHECK_HEADERS(GL/glu.h, [
-    have_opengl_incs=yes], [], [
+AC_CHECK_HEADERS(GL/gl.h OpenGL/gl.h, [
+  AC_CHECK_HEADERS(GL/glu.h OpenGL/glu.h, [
+    have_opengl_incs=yes, break], [], [
 #ifdef HAVE_WINDOWS_H
 # include <windows.h>
-#endif])], [], [
+#endif ]), break], [], [
 #ifdef HAVE_WINDOWS_H
 # include <windows.h>
 #endif])