Changeset 5277 in orxonox.OLD for trunk/configure.ac
- Timestamp:
- Oct 4, 2005, 7:25:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r5276 r5277 371 371 fi 372 372 373 #--------# 374 # openGL # 375 #--------# 376 ac_save_LDFLAGS="${LDFLAGS}" 377 373 378 # checking gl header 374 379 AC_CHECK_HEADERS([GL/gl.h] ,, … … 376 381 377 382 # checking for Unix GL 378 AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL" ])383 AC_CHECK_LIB([GL], [main], [FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL"]) 379 384 if test x$FOUND_GL != xyes ; then 380 385 echo "------------------" … … 388 393 AC_CHECK_HEADERS([GL/glu.h] ,, 389 394 [AC_MSG_ERROR([cannot find opengl headers]) ]) 390 ### FIXME ### THIS CHECK SHOULD WORK EVERYWHERE !! 391 # AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"]) 392 # if test x$FOUND_GLU != xyes ; then 393 FOUND_GLU=yes 394 LIBS="$LIBS -lGLU" 395 # else 396 # echo "------------------" 397 # echo "GLU library not found." 398 # echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 399 # echo "------------------" 400 # exit -1 401 # fi 395 AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"]) 396 if test x$FOUND_GLU != xyes ; then 397 echo "------------------" 398 echo "GLU library not found." 399 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 400 echo "------------------" 401 exit -1 402 fi 402 403 403 404 # checking for GLEW-headers … … 413 414 exit -1 414 415 fi 416 ## resetting LD-flags as before GL 417 LDFLAGS="${ac_save_LDFLAGS}" 415 418 416 419 #--------#
Note: See TracChangeset
for help on using the changeset viewer.