소스 검색

build: detect libopengl32 on mingw systems.

legacy
Sam Hocevar sam 14 년 전
부모
커밋
6805d8da67
1개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. +12
    -6
      configure.ac

+ 12
- 6
configure.ac 파일 보기

@@ -88,6 +88,12 @@ AC_CHECK_LIB(GL, glLoadIdentity,
[ac_cv_my_have_gl="yes"
AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available)
GL_LIBS="-lGL"]) # FIXME: hackish
AC_CHECK_HEADER(GL/gl.h,
[AC_TRY_COMPILE([#include <GL/gl.h>],
[glLoadIdentity();],
[ac_cv_my_have_gl="yes"
AC_DEFINE(HAVE_GL_2X, 1, Define to 1 if GL 2.x is available)
GL_LIBS="-lopengl32"])]) # FIXME: hackish
if test "${ac_cv_my_have_gl}" = "no"; then
AC_MSG_ERROR([[No OpenGL or OpenGL ES implementation found]])
fi
@@ -189,19 +195,19 @@ AC_SUBST(MATH_LIBS)
AC_SUBST(LOL_CFLAGS)
AC_SUBST(LOL_LIBS)

AC_CONFIG_FILES([
Makefile
AC_CONFIG_FILES(
[Makefile
src/Makefile
test/Makefile
gfx/Makefile
gfx/font/Makefile
tools/Makefile
])
AC_CONFIG_FILES([
monsterz/Makefile
AC_CONFIG_FILES(
[monsterz/Makefile
])
AC_CONFIG_FILES([
deushax/Makefile
AC_CONFIG_FILES(
[deushax/Makefile
deushax/art/Makefile
deushax/art/test/Makefile
deushax/gfx/Makefile


불러오는 중...
취소
저장