Mercurial > hg > octave-thorsten
comparison aclocal.m4 @ 7993:80a715c4824d
aclocal.m4 (OCTAVE_OPENGL): Handle MinGW the same as MSVC
author | Tatsuro MATSUOKA |
---|---|
date | Tue, 29 Jul 2008 15:20:24 -0400 |
parents | 3ffc34caec65 |
children | 6a7db240b3a3 |
comparison
equal
deleted
inserted
replaced
7992:80e3fe8938f2 | 7993:80a715c4824d |
---|---|
1059 dnl FIXME -- add tests for apple | 1059 dnl FIXME -- add tests for apple |
1060 dnl | 1060 dnl |
1061 AC_DEFUN([OCTAVE_OPENGL], [ | 1061 AC_DEFUN([OCTAVE_OPENGL], [ |
1062 OPENGL_LIBS= | 1062 OPENGL_LIBS= |
1063 case $canonical_host_type in | 1063 case $canonical_host_type in |
1064 *-*-msdosmsvc) | 1064 *-*-mingw32* | *-*-msdosmsvc) |
1065 AC_CHECK_HEADERS(windows.h) | 1065 AC_CHECK_HEADERS(windows.h) |
1066 ;; | 1066 ;; |
1067 esac | 1067 esac |
1068 have_opengl_incs=no | 1068 have_opengl_incs=no |
1069 AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h], [ | 1069 AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h], [ |
1079 #include <windows.h> | 1079 #include <windows.h> |
1080 #endif | 1080 #endif |
1081 ]) | 1081 ]) |
1082 if test "$have_opengl_incs" = "yes"; then | 1082 if test "$have_opengl_incs" = "yes"; then |
1083 case $canonical_host_type in | 1083 case $canonical_host_type in |
1084 *-*-msdosmsvc) | 1084 *-*-mingw32* | *-*-msdosmsvc) |
1085 save_LIBS="$LIBS" | 1085 save_LIBS="$LIBS" |
1086 LIBS="$LIBS -lopengl32" | 1086 LIBS="$LIBS -lopengl32" |
1087 AC_MSG_CHECKING([for glEnable in -lopengl32]) | 1087 AC_MSG_CHECKING([for glEnable in -lopengl32]) |
1088 AC_TRY_LINK([ | 1088 AC_TRY_LINK([ |
1089 #if HAVE_WINDOWS_H | 1089 #if HAVE_WINDOWS_H |