Changeset 5271 in orxonox.OLD for trunk/configure
- Timestamp:
- Sep 28, 2005, 6:04:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5265 r5271 5227 5227 echo "GLU library not found." 5228 5228 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5229 echo "------------------" 5230 exit -1 5231 fi 5232 5233 # checking glew header 5234 5235 for ac_header in GL/glew.h 5236 do 5237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5238 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5239 echo "$as_me:$LINENO: checking for $ac_header" >&5 5240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5241 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5242 echo $ECHO_N "(cached) $ECHO_C" >&6 5243 fi 5244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5246 else 5247 # Is the header compilable? 5248 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5250 cat >conftest.$ac_ext <<_ACEOF 5251 /* confdefs.h. */ 5252 _ACEOF 5253 cat confdefs.h >>conftest.$ac_ext 5254 cat >>conftest.$ac_ext <<_ACEOF 5255 /* end confdefs.h. */ 5256 $ac_includes_default 5257 #include <$ac_header> 5258 _ACEOF 5259 rm -f conftest.$ac_objext 5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5261 (eval $ac_compile) 2>conftest.er1 5262 ac_status=$? 5263 grep -v '^ *+' conftest.er1 >conftest.err 5264 rm -f conftest.er1 5265 cat conftest.err >&5 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5267 (exit $ac_status); } && 5268 { ac_try='test -z "$ac_c_werror_flag" 5269 || test ! -s conftest.err' 5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5271 (eval $ac_try) 2>&5 5272 ac_status=$? 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5274 (exit $ac_status); }; } && 5275 { ac_try='test -s conftest.$ac_objext' 5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5277 (eval $ac_try) 2>&5 5278 ac_status=$? 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 (exit $ac_status); }; }; then 5281 ac_header_compiler=yes 5282 else 5283 echo "$as_me: failed program was:" >&5 5284 sed 's/^/| /' conftest.$ac_ext >&5 5285 5286 ac_header_compiler=no 5287 fi 5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5290 echo "${ECHO_T}$ac_header_compiler" >&6 5291 5292 # Is the header present? 5293 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5295 cat >conftest.$ac_ext <<_ACEOF 5296 /* confdefs.h. */ 5297 _ACEOF 5298 cat confdefs.h >>conftest.$ac_ext 5299 cat >>conftest.$ac_ext <<_ACEOF 5300 /* end confdefs.h. */ 5301 #include <$ac_header> 5302 _ACEOF 5303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5305 ac_status=$? 5306 grep -v '^ *+' conftest.er1 >conftest.err 5307 rm -f conftest.er1 5308 cat conftest.err >&5 5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5310 (exit $ac_status); } >/dev/null; then 5311 if test -s conftest.err; then 5312 ac_cpp_err=$ac_c_preproc_warn_flag 5313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5314 else 5315 ac_cpp_err= 5316 fi 5317 else 5318 ac_cpp_err=yes 5319 fi 5320 if test -z "$ac_cpp_err"; then 5321 ac_header_preproc=yes 5322 else 5323 echo "$as_me: failed program was:" >&5 5324 sed 's/^/| /' conftest.$ac_ext >&5 5325 5326 ac_header_preproc=no 5327 fi 5328 rm -f conftest.err conftest.$ac_ext 5329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5330 echo "${ECHO_T}$ac_header_preproc" >&6 5331 5332 # So? What about this header? 5333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5334 yes:no: ) 5335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5339 ac_header_preproc=yes 5340 ;; 5341 no:yes:* ) 5342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5354 ( 5355 cat <<\_ASBOX 5356 ## ---------------------------------------------- ## 5357 ## Report this to orxonox-dev at mail.datacore.ch ## 5358 ## ---------------------------------------------- ## 5359 _ASBOX 5360 ) | 5361 sed "s/^/$as_me: WARNING: /" >&2 5362 ;; 5363 esac 5364 echo "$as_me:$LINENO: checking for $ac_header" >&5 5365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5366 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5367 echo $ECHO_N "(cached) $ECHO_C" >&6 5368 else 5369 eval "$as_ac_Header=\$ac_header_preproc" 5370 fi 5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5373 5374 fi 5375 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5376 cat >>confdefs.h <<_ACEOF 5377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5378 _ACEOF 5379 5380 else 5381 { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5 5382 echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;} 5383 { (exit 1); exit 1; }; } 5384 fi 5385 5386 done 5387 5388 # checking for Windows glew library 5389 echo "$as_me:$LINENO: checking for main in -lglew32" >&5 5390 echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6 5391 if test "${ac_cv_lib_glew32_main+set}" = set; then 5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5393 else 5394 ac_check_lib_save_LIBS=$LIBS 5395 LIBS="-lglew32 $LIBS" 5396 cat >conftest.$ac_ext <<_ACEOF 5397 /* confdefs.h. */ 5398 _ACEOF 5399 cat confdefs.h >>conftest.$ac_ext 5400 cat >>conftest.$ac_ext <<_ACEOF 5401 /* end confdefs.h. */ 5402 5403 5404 int 5405 main () 5406 { 5407 main (); 5408 ; 5409 return 0; 5410 } 5411 _ACEOF 5412 rm -f conftest.$ac_objext conftest$ac_exeext 5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5414 (eval $ac_link) 2>conftest.er1 5415 ac_status=$? 5416 grep -v '^ *+' conftest.er1 >conftest.err 5417 rm -f conftest.er1 5418 cat conftest.err >&5 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); } && 5421 { ac_try='test -z "$ac_c_werror_flag" 5422 || test ! -s conftest.err' 5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5424 (eval $ac_try) 2>&5 5425 ac_status=$? 5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5427 (exit $ac_status); }; } && 5428 { ac_try='test -s conftest$ac_exeext' 5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5430 (eval $ac_try) 2>&5 5431 ac_status=$? 5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); }; }; then 5434 ac_cv_lib_glew32_main=yes 5435 else 5436 echo "$as_me: failed program was:" >&5 5437 sed 's/^/| /' conftest.$ac_ext >&5 5438 5439 ac_cv_lib_glew32_main=no 5440 fi 5441 rm -f conftest.err conftest.$ac_objext \ 5442 conftest$ac_exeext conftest.$ac_ext 5443 LIBS=$ac_check_lib_save_LIBS 5444 fi 5445 echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 5446 echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 5447 if test $ac_cv_lib_glew32_main = yes; then 5448 echo "$as_me:$LINENO: checking for main in -lglew32s" >&5 5449 echo $ECHO_N "checking for main in -lglew32s... $ECHO_C" >&6 5450 if test "${ac_cv_lib_glew32s_main+set}" = set; then 5451 echo $ECHO_N "(cached) $ECHO_C" >&6 5452 else 5453 ac_check_lib_save_LIBS=$LIBS 5454 LIBS="-lglew32s $LIBS" 5455 cat >conftest.$ac_ext <<_ACEOF 5456 /* confdefs.h. */ 5457 _ACEOF 5458 cat confdefs.h >>conftest.$ac_ext 5459 cat >>conftest.$ac_ext <<_ACEOF 5460 /* end confdefs.h. */ 5461 5462 5463 int 5464 main () 5465 { 5466 main (); 5467 ; 5468 return 0; 5469 } 5470 _ACEOF 5471 rm -f conftest.$ac_objext conftest$ac_exeext 5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5473 (eval $ac_link) 2>conftest.er1 5474 ac_status=$? 5475 grep -v '^ *+' conftest.er1 >conftest.err 5476 rm -f conftest.er1 5477 cat conftest.err >&5 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } && 5480 { ac_try='test -z "$ac_c_werror_flag" 5481 || test ! -s conftest.err' 5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5483 (eval $ac_try) 2>&5 5484 ac_status=$? 5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5486 (exit $ac_status); }; } && 5487 { ac_try='test -s conftest$ac_exeext' 5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5489 (eval $ac_try) 2>&5 5490 ac_status=$? 5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); }; }; then 5493 ac_cv_lib_glew32s_main=yes 5494 else 5495 echo "$as_me: failed program was:" >&5 5496 sed 's/^/| /' conftest.$ac_ext >&5 5497 5498 ac_cv_lib_glew32s_main=no 5499 fi 5500 rm -f conftest.err conftest.$ac_objext \ 5501 conftest$ac_exeext conftest.$ac_ext 5502 LIBS=$ac_check_lib_save_LIBS 5503 fi 5504 echo "$as_me:$LINENO: result: $ac_cv_lib_glew32s_main" >&5 5505 echo "${ECHO_T}$ac_cv_lib_glew32s_main" >&6 5506 if test $ac_cv_lib_glew32s_main = yes; then 5507 FOUND_glew32=yes 5508 fi 5509 5510 fi 5511 5512 if test x$FOUND_glew32 = xyes ; then 5513 LIBS="$LIBS -lglew32 -lglew32s" 5514 else 5515 echo "------------------" 5516 echo "opengl extension wrangler not found." 5517 echo "please install the glew package which can be found at http://glew.sourceforge.net" 5229 5518 echo "------------------" 5230 5519 exit -1
Note: See TracChangeset
for help on using the changeset viewer.