- Timestamp:
- Oct 4, 2005, 7:25:00 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5276 r5277 5759 5759 fi 5760 5760 5761 #--------# 5762 # openGL # 5763 #--------# 5764 ac_save_LDFLAGS="${LDFLAGS}" 5765 5761 5766 # checking gl header 5762 5767 … … 5975 5980 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 5976 5981 if test $ac_cv_lib_GL_main = yes; then 5977 FOUND_GL=yes; LIBS="$LIBS -lGL" 5982 FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL" 5978 5983 fi 5979 5984 … … 6141 6146 done 6142 6147 6143 ### FIXME ### 6144 # AC_CHECK_LIB([GLU], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU"]) 6145 # if test x$FOUND_GLU != xyes ; then 6146 FOUND_GLU=yes 6147 LIBS="$LIBS -lGLU" 6148 # else 6149 # echo "------------------" 6150 # echo "GLU library not found." 6151 # echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 6152 # echo "------------------" 6153 # exit -1 6154 # fi 6148 echo "$as_me:$LINENO: checking for main in -lGLU" >&5 6149 echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 6150 if test "${ac_cv_lib_GLU_main+set}" = set; then 6151 echo $ECHO_N "(cached) $ECHO_C" >&6 6152 else 6153 ac_check_lib_save_LIBS=$LIBS 6154 LIBS="-lGLU $LIBS" 6155 cat >conftest.$ac_ext <<_ACEOF 6156 /* confdefs.h. */ 6157 _ACEOF 6158 cat confdefs.h >>conftest.$ac_ext 6159 cat >>conftest.$ac_ext <<_ACEOF 6160 /* end confdefs.h. */ 6161 6162 6163 int 6164 main () 6165 { 6166 main (); 6167 ; 6168 return 0; 6169 } 6170 _ACEOF 6171 rm -f conftest.$ac_objext conftest$ac_exeext 6172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6173 (eval $ac_link) 2>conftest.er1 6174 ac_status=$? 6175 grep -v '^ *+' conftest.er1 >conftest.err 6176 rm -f conftest.er1 6177 cat conftest.err >&5 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6179 (exit $ac_status); } && 6180 { ac_try='test -z "$ac_c_werror_flag" 6181 || test ! -s conftest.err' 6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6183 (eval $ac_try) 2>&5 6184 ac_status=$? 6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6186 (exit $ac_status); }; } && 6187 { ac_try='test -s conftest$ac_exeext' 6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6189 (eval $ac_try) 2>&5 6190 ac_status=$? 6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6192 (exit $ac_status); }; }; then 6193 ac_cv_lib_GLU_main=yes 6194 else 6195 echo "$as_me: failed program was:" >&5 6196 sed 's/^/| /' conftest.$ac_ext >&5 6197 6198 ac_cv_lib_GLU_main=no 6199 fi 6200 rm -f conftest.err conftest.$ac_objext \ 6201 conftest$ac_exeext conftest.$ac_ext 6202 LIBS=$ac_check_lib_save_LIBS 6203 fi 6204 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 6205 echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 6206 if test $ac_cv_lib_GLU_main = yes; then 6207 FOUND_GLU=yes; LIBS="$LIBS -lGLU" 6208 fi 6209 6210 if test x$FOUND_GLU != xyes ; then 6211 echo "------------------" 6212 echo "GLU library not found." 6213 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 6214 echo "------------------" 6215 exit -1 6216 fi 6155 6217 6156 6218 # checking for GLEW-headers … … 6369 6431 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 6370 6432 if test $ac_cv_lib_GLEW_main = yes; then 6371 FOUND_GLEW=yes 6372 fi 6373 6374 if test x$FOUND_GLEW = xyes ; then 6375 LIBS="$LIBS -lGLEW" 6376 else 6433 FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" 6434 fi 6435 6436 if test x$FOUND_GLEW != xyes ; then 6377 6437 echo "------------------" 6378 6438 echo "glew not found." … … 6381 6441 exit -1 6382 6442 fi 6443 ## resetting LD-flags as before GL 6444 LDFLAGS="${ac_save_LDFLAGS}" 6383 6445 6384 6446 #--------# … … 6600 6662 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 6601 6663 if test $ac_cv_lib_openal_main = yes; then 6602 FOUND_OPENAL=yes 6603 fi 6604 6605 if test x$FOUND_OPENAL = xyes ; then 6606 LIBS="$LIBS -lopenal" 6607 else 6664 FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" 6665 fi 6666 6667 if test x$FOUND_OPENAL != xyes ; then 6608 6668 echo "------------------" 6609 6669 echo "openal library not found." … … 6826 6886 echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 6827 6887 if test $ac_cv_lib_alut_main = yes; then 6828 FOUND_ALUT=yes 6829 fi 6830 6831 if test x$FOUND_alut = xyes ; then 6832 LIBS="-lalut $LIBS" 6833 fi 6888 FOUND_ALUT=yes; LIBS="-lalut $LIBS" 6889 fi 6890 6891 6834 6892 #-----# 6835 6893 # SDL # -
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.