Changeset 2701 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Nov 2, 2004, 7:06:29 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r2627 r2701 312 312 #endif" 313 313 314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MSBITFIELDS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREPLIBOBJS LTLIBOBJS'314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 1727 1727 1728 1728 1729 echo "$as_me:$LINENO: checking for mingw" >&51730 echo $ECHO_N "checking for mingw... $ECHO_C" >&61731 case `uname` in1732 *MINGW*)1733 mingw="yes"1734 MSBITFIELDS="-mms-bitfields"1735 MWINDOWS="-mwindows"1736 ;;1737 *)1738 mingw="no"1739 ;;1740 esac1741 echo "$as_me:$LINENO: result: $mingw" >&51742 echo "${ECHO_T}$mingw" >&61743 1744 1745 1729 1746 1730 # Checks for programs. … … 3300 3284 3301 3285 3302 # Checks for libraries. 3303 3304 # cheking for libGL 3286 3287 # checking gl header (has to be here because of a Linux error) 3305 3288 3306 3289 ac_ext=c … … 3947 3930 3948 3931 3949 # checking for Unix GL 3950 echo "$as_me:$LINENO: checking for main in -lGL" >&5 3951 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 3952 if test "${ac_cv_lib_GL_main+set}" = set; then 3932 3933 3934 ### CHECKING FOR SYSTEM ### 3935 3936 echo "$as_me:$LINENO: checking for System" >&5 3937 echo $ECHO_N "checking for System... $ECHO_C" >&6 3938 case `uname` in 3939 ### WINDOWS ### 3940 *MINGW*) 3941 echo "mingw-WINDOWS detected" 3942 3943 mingw="yes" 3944 MSBITFIELDS="-mms-bitfields" 3945 MWINDOWS="-mwindows" 3946 3947 # checking gl header 3948 #done before loop 3949 3950 # checking for Windows openGl library 3951 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 3952 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 3953 if test "${ac_cv_lib_opengl32_main+set}" = set; then 3953 3954 echo $ECHO_N "(cached) $ECHO_C" >&6 3954 3955 else 3955 3956 ac_check_lib_save_LIBS=$LIBS 3956 LIBS="-l GL$LIBS"3957 LIBS="-lopengl32 $LIBS" 3957 3958 cat >conftest.$ac_ext <<_ACEOF 3958 3959 /* confdefs.h. */ … … 3993 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3994 3995 (exit $ac_status); }; }; then 3995 ac_cv_lib_GL_main=yes3996 else3997 echo "$as_me: failed program was:" >&53998 sed 's/^/| /' conftest.$ac_ext >&53999 4000 ac_cv_lib_GL_main=no4001 fi4002 rm -f conftest.err conftest.$ac_objext \4003 conftest$ac_exeext conftest.$ac_ext4004 LIBS=$ac_check_lib_save_LIBS4005 fi4006 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&54007 echo "${ECHO_T}$ac_cv_lib_GL_main" >&64008 if test $ac_cv_lib_GL_main = yes; then4009 FOUND_GL=yes4010 fi4011 4012 if test "$FOUND_GL" = "yes" ; then4013 LIBS="$LIBS -lGL"4014 # checking for Windows openGl library4015 else4016 echo "We did not find the Linux opengl Library. Checking for Windows Library"4017 echo "$as_me:$LINENO: checking for main in -lopengl32" >&54018 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&64019 if test "${ac_cv_lib_opengl32_main+set}" = set; then4020 echo $ECHO_N "(cached) $ECHO_C" >&64021 else4022 ac_check_lib_save_LIBS=$LIBS4023 LIBS="-lopengl32 $LIBS"4024 cat >conftest.$ac_ext <<_ACEOF4025 /* confdefs.h. */4026 _ACEOF4027 cat confdefs.h >>conftest.$ac_ext4028 cat >>conftest.$ac_ext <<_ACEOF4029 /* end confdefs.h. */4030 4031 4032 int4033 main ()4034 {4035 main ();4036 ;4037 return 0;4038 }4039 _ACEOF4040 rm -f conftest.$ac_objext conftest$ac_exeext4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54042 (eval $ac_link) 2>conftest.er14043 ac_status=$?4044 grep -v '^ *+' conftest.er1 >conftest.err4045 rm -f conftest.er14046 cat conftest.err >&54047 echo "$as_me:$LINENO: \$? = $ac_status" >&54048 (exit $ac_status); } &&4049 { ac_try='test -z "$ac_c_werror_flag"4050 || test ! -s conftest.err'4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54052 (eval $ac_try) 2>&54053 ac_status=$?4054 echo "$as_me:$LINENO: \$? = $ac_status" >&54055 (exit $ac_status); }; } &&4056 { ac_try='test -s conftest$ac_exeext'4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54058 (eval $ac_try) 2>&54059 ac_status=$?4060 echo "$as_me:$LINENO: \$? = $ac_status" >&54061 (exit $ac_status); }; }; then4062 3996 ac_cv_lib_opengl32_main=yes 4063 3997 else … … 4081 4015 if test "$FOUND_opengl32" = "yes" ; then 4082 4016 LIBS="$LIBS -lopengl32" 4083 4084 4017 else 4085 4018 echo "------------------" … … 4089 4022 exit -1 4090 4023 fi 4091 fi 4092 4093 # cheking for libGLU 4024 4025 # cheking for GLU-header 4094 4026 4095 4027 for ac_header in GL/glu.h … … 4247 4179 4248 4180 4249 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 4250 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 4251 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253 else 4254 ac_check_lib_save_LIBS=$LIBS 4255 LIBS="-lGLU $LIBS" 4256 cat >conftest.$ac_ext <<_ACEOF 4257 /* confdefs.h. */ 4258 _ACEOF 4259 cat confdefs.h >>conftest.$ac_ext 4260 cat >>conftest.$ac_ext <<_ACEOF 4261 /* end confdefs.h. */ 4262 4263 /* Override any gcc2 internal prototype to avoid an error. */ 4264 #ifdef __cplusplus 4265 extern "C" 4266 #endif 4267 /* We use char because int might match the return type of a gcc2 4268 builtin and then its argument prototype would still apply. */ 4269 char gluProject (); 4270 int 4271 main () 4272 { 4273 gluProject (); 4274 ; 4275 return 0; 4276 } 4277 _ACEOF 4278 rm -f conftest.$ac_objext conftest$ac_exeext 4279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4280 (eval $ac_link) 2>conftest.er1 4281 ac_status=$? 4282 grep -v '^ *+' conftest.er1 >conftest.err 4283 rm -f conftest.er1 4284 cat conftest.err >&5 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); } && 4287 { ac_try='test -z "$ac_c_werror_flag" 4288 || test ! -s conftest.err' 4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4290 (eval $ac_try) 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; } && 4294 { ac_try='test -s conftest$ac_exeext' 4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4296 (eval $ac_try) 2>&5 4297 ac_status=$? 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); }; }; then 4300 ac_cv_lib_GLU_gluProject=yes 4301 else 4302 echo "$as_me: failed program was:" >&5 4303 sed 's/^/| /' conftest.$ac_ext >&5 4304 4305 ac_cv_lib_GLU_gluProject=no 4306 fi 4307 rm -f conftest.err conftest.$ac_objext \ 4308 conftest$ac_exeext conftest.$ac_ext 4309 LIBS=$ac_check_lib_save_LIBS 4310 fi 4311 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 4312 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 4313 if test $ac_cv_lib_GLU_gluProject = yes; then 4314 FOUND_GLU=yes 4315 fi 4316 4317 if test "$FOUND_GLU" = "yes" ; then 4318 LIBS="$LIBS -lGLU" 4319 # checking for Windows GLU32 library 4320 else 4321 echo "We did not find the Linux GLU Library. Checking for Windows Library" 4181 # checking for libGLU 4322 4182 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 4323 4183 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 … … 4384 4244 if test "$FOUND_glu32" = "yes" ; then 4385 4245 LIBS="$LIBS -lGLU32" 4386 4387 else 4246 else 4388 4247 echo "------------------" 4389 4248 echo "GLU library not found." … … 4392 4251 exit -1 4393 4252 fi 4394 fi 4395 4396 # FIXME: Replace `main' with a function in `-lOSMesa': 4397 4398 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 4399 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 4400 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 4253 4254 4255 # checking for mingw32 4256 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4257 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4258 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4401 4259 echo $ECHO_N "(cached) $ECHO_C" >&6 4402 4260 else 4403 4261 ac_check_lib_save_LIBS=$LIBS 4404 LIBS="-l OSMesa$LIBS"4262 LIBS="-lmingw32 $LIBS" 4405 4263 cat >conftest.$ac_ext <<_ACEOF 4406 4264 /* confdefs.h. */ … … 4441 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 4300 (exit $ac_status); }; }; then 4443 ac_cv_lib_OSMesa_main=yes4444 else4445 echo "$as_me: failed program was:" >&54446 sed 's/^/| /' conftest.$ac_ext >&54447 4448 ac_cv_lib_OSMesa_main=no4449 fi4450 rm -f conftest.err conftest.$ac_objext \4451 conftest$ac_exeext conftest.$ac_ext4452 LIBS=$ac_check_lib_save_LIBS4453 fi4454 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&54455 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&64456 if test $ac_cv_lib_OSMesa_main = yes; then4457 cat >>confdefs.h <<_ACEOF4458 #define HAVE_LIBOSMESA 14459 _ACEOF4460 4461 LIBS="-lOSMesa $LIBS"4462 4463 fi4464 4465 # FIXME: Replace `main' with a function in `-lX11':4466 4467 echo "$as_me:$LINENO: checking for main in -lX11" >&54468 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&64469 if test "${ac_cv_lib_X11_main+set}" = set; then4470 echo $ECHO_N "(cached) $ECHO_C" >&64471 else4472 ac_check_lib_save_LIBS=$LIBS4473 LIBS="-lX11 $LIBS"4474 cat >conftest.$ac_ext <<_ACEOF4475 /* confdefs.h. */4476 _ACEOF4477 cat confdefs.h >>conftest.$ac_ext4478 cat >>conftest.$ac_ext <<_ACEOF4479 /* end confdefs.h. */4480 4481 4482 int4483 main ()4484 {4485 main ();4486 ;4487 return 0;4488 }4489 _ACEOF4490 rm -f conftest.$ac_objext conftest$ac_exeext4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54492 (eval $ac_link) 2>conftest.er14493 ac_status=$?4494 grep -v '^ *+' conftest.er1 >conftest.err4495 rm -f conftest.er14496 cat conftest.err >&54497 echo "$as_me:$LINENO: \$? = $ac_status" >&54498 (exit $ac_status); } &&4499 { ac_try='test -z "$ac_c_werror_flag"4500 || test ! -s conftest.err'4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54502 (eval $ac_try) 2>&54503 ac_status=$?4504 echo "$as_me:$LINENO: \$? = $ac_status" >&54505 (exit $ac_status); }; } &&4506 { ac_try='test -s conftest$ac_exeext'4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54508 (eval $ac_try) 2>&54509 ac_status=$?4510 echo "$as_me:$LINENO: \$? = $ac_status" >&54511 (exit $ac_status); }; }; then4512 ac_cv_lib_X11_main=yes4513 else4514 echo "$as_me: failed program was:" >&54515 sed 's/^/| /' conftest.$ac_ext >&54516 4517 ac_cv_lib_X11_main=no4518 fi4519 rm -f conftest.err conftest.$ac_objext \4520 conftest$ac_exeext conftest.$ac_ext4521 LIBS=$ac_check_lib_save_LIBS4522 fi4523 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&54524 echo "${ECHO_T}$ac_cv_lib_X11_main" >&64525 if test $ac_cv_lib_X11_main = yes; then4526 cat >>confdefs.h <<_ACEOF4527 #define HAVE_LIBX11 14528 _ACEOF4529 4530 LIBS="-lX11 $LIBS"4531 4532 fi4533 4534 # FIXME: Replace `main' with a function in `-lXt':4535 4536 echo "$as_me:$LINENO: checking for main in -lXt" >&54537 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&64538 if test "${ac_cv_lib_Xt_main+set}" = set; then4539 echo $ECHO_N "(cached) $ECHO_C" >&64540 else4541 ac_check_lib_save_LIBS=$LIBS4542 LIBS="-lXt $LIBS"4543 cat >conftest.$ac_ext <<_ACEOF4544 /* confdefs.h. */4545 _ACEOF4546 cat confdefs.h >>conftest.$ac_ext4547 cat >>conftest.$ac_ext <<_ACEOF4548 /* end confdefs.h. */4549 4550 4551 int4552 main ()4553 {4554 main ();4555 ;4556 return 0;4557 }4558 _ACEOF4559 rm -f conftest.$ac_objext conftest$ac_exeext4560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54561 (eval $ac_link) 2>conftest.er14562 ac_status=$?4563 grep -v '^ *+' conftest.er1 >conftest.err4564 rm -f conftest.er14565 cat conftest.err >&54566 echo "$as_me:$LINENO: \$? = $ac_status" >&54567 (exit $ac_status); } &&4568 { ac_try='test -z "$ac_c_werror_flag"4569 || test ! -s conftest.err'4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54571 (eval $ac_try) 2>&54572 ac_status=$?4573 echo "$as_me:$LINENO: \$? = $ac_status" >&54574 (exit $ac_status); }; } &&4575 { ac_try='test -s conftest$ac_exeext'4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54577 (eval $ac_try) 2>&54578 ac_status=$?4579 echo "$as_me:$LINENO: \$? = $ac_status" >&54580 (exit $ac_status); }; }; then4581 ac_cv_lib_Xt_main=yes4582 else4583 echo "$as_me: failed program was:" >&54584 sed 's/^/| /' conftest.$ac_ext >&54585 4586 ac_cv_lib_Xt_main=no4587 fi4588 rm -f conftest.err conftest.$ac_objext \4589 conftest$ac_exeext conftest.$ac_ext4590 LIBS=$ac_check_lib_save_LIBS4591 fi4592 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&54593 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&64594 if test $ac_cv_lib_Xt_main = yes; then4595 cat >>confdefs.h <<_ACEOF4596 #define HAVE_LIBXT 14597 _ACEOF4598 4599 LIBS="-lXt $LIBS"4600 4601 fi4602 4603 4604 ## mingw CHECK4605 if test $mingw = yes ; then4606 echo "$as_me:$LINENO: checking for main in -lmingw32" >&54607 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&64608 if test "${ac_cv_lib_mingw32_main+set}" = set; then4609 echo $ECHO_N "(cached) $ECHO_C" >&64610 else4611 ac_check_lib_save_LIBS=$LIBS4612 LIBS="-lmingw32 $LIBS"4613 cat >conftest.$ac_ext <<_ACEOF4614 /* confdefs.h. */4615 _ACEOF4616 cat confdefs.h >>conftest.$ac_ext4617 cat >>conftest.$ac_ext <<_ACEOF4618 /* end confdefs.h. */4619 4620 4621 int4622 main ()4623 {4624 main ();4625 ;4626 return 0;4627 }4628 _ACEOF4629 rm -f conftest.$ac_objext conftest$ac_exeext4630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54631 (eval $ac_link) 2>conftest.er14632 ac_status=$?4633 grep -v '^ *+' conftest.er1 >conftest.err4634 rm -f conftest.er14635 cat conftest.err >&54636 echo "$as_me:$LINENO: \$? = $ac_status" >&54637 (exit $ac_status); } &&4638 { ac_try='test -z "$ac_c_werror_flag"4639 || test ! -s conftest.err'4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54641 (eval $ac_try) 2>&54642 ac_status=$?4643 echo "$as_me:$LINENO: \$? = $ac_status" >&54644 (exit $ac_status); }; } &&4645 { ac_try='test -s conftest$ac_exeext'4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54647 (eval $ac_try) 2>&54648 ac_status=$?4649 echo "$as_me:$LINENO: \$? = $ac_status" >&54650 (exit $ac_status); }; }; then4651 4301 ac_cv_lib_mingw32_main=yes 4652 4302 else … … 4666 4316 fi 4667 4317 4668 if test $FOUND_mingw32 = "yes"; then 4669 LIBS="$LIBS -lmingw32" 4670 fi 4671 fi 4672 4673 ## SDL CHECK 4674 4675 #checking for SDL libs 4318 if test $FOUND_mingw32 = "yes"; then 4319 LIBS="$LIBS -lmingw32" 4320 fi 4321 # checking for SDL-headers 4676 4322 4677 4323 for ac_header in SDL/SDL.h … … 4828 4474 done 4829 4475 4830 if test $mingw = no ; then 4831 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 4832 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 4833 if test "${ac_cv_lib_SDL_main+set}" = set; then 4476 4477 #checking for libSDL 4478 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 4479 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 4480 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 4834 4481 echo $ECHO_N "(cached) $ECHO_C" >&6 4835 4482 else 4836 4483 ac_check_lib_save_LIBS=$LIBS 4837 LIBS="-l SDL$LIBS"4484 LIBS="-lsdlmain $LIBS" 4838 4485 cat >conftest.$ac_ext <<_ACEOF 4839 4486 /* confdefs.h. */ … … 4874 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 4522 (exit $ac_status); }; }; then 4876 ac_cv_lib_ SDL_main=yes4523 ac_cv_lib_sdlmain_main=yes 4877 4524 else 4878 4525 echo "$as_me: failed program was:" >&5 4879 4526 sed 's/^/| /' conftest.$ac_ext >&5 4880 4527 4881 ac_cv_lib_ SDL_main=no4528 ac_cv_lib_sdlmain_main=no 4882 4529 fi 4883 4530 rm -f conftest.err conftest.$ac_objext \ … … 4885 4532 LIBS=$ac_check_lib_save_LIBS 4886 4533 fi 4887 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 4888 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 4889 if test $ac_cv_lib_SDL_main = yes; then 4890 FOUND_SDL=yes 4891 fi 4892 4893 if test "$FOUND_SDL" = "yes" ; then 4894 LIBS="$LIBS -lSDL" 4895 fi 4896 # checking for Windows sdl library 4897 else 4898 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 4899 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 4900 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 4534 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 4535 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 4536 if test $ac_cv_lib_sdlmain_main = yes; then 4537 FOUND_sdlmain=yes 4538 fi 4539 4540 if test "$FOUND_sdlmain" = "yes" ; then 4541 LIBS="$LIBS -lsdlmain" 4542 else 4543 echo "------------------" 4544 echo "SDL library not found." 4545 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4546 echo "------------------" 4547 exit 1 4548 fi 4549 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 4550 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 4551 if test "${ac_cv_lib_sdl_main+set}" = set; then 4901 4552 echo $ECHO_N "(cached) $ECHO_C" >&6 4902 4553 else 4903 4554 ac_check_lib_save_LIBS=$LIBS 4904 LIBS="-lsdl main$LIBS"4555 LIBS="-lsdl $LIBS" 4905 4556 cat >conftest.$ac_ext <<_ACEOF 4906 4557 /* confdefs.h. */ … … 4941 4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4942 4593 (exit $ac_status); }; }; then 4943 ac_cv_lib_sdl main_main=yes4594 ac_cv_lib_sdl_main=yes 4944 4595 else 4945 4596 echo "$as_me: failed program was:" >&5 4946 4597 sed 's/^/| /' conftest.$ac_ext >&5 4947 4598 4948 ac_cv_lib_sdl main_main=no4599 ac_cv_lib_sdl_main=no 4949 4600 fi 4950 4601 rm -f conftest.err conftest.$ac_objext \ … … 4952 4603 LIBS=$ac_check_lib_save_LIBS 4953 4604 fi 4954 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 4955 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 4956 if test $ac_cv_lib_sdlmain_main = yes; then 4957 FOUND_sdlmain=yes 4958 fi 4959 4960 if test "$FOUND_sdlmain" = "yes" ; then 4961 LIBS="$LIBS -lsdlmain" 4605 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 4606 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 4607 if test $ac_cv_lib_sdl_main = yes; then 4608 FOUND_sdl=yes 4609 fi 4610 4611 if test "$FOUND_sdl" = "yes" ; then 4612 LIBS="$LIBS -lsdl" 4613 else 4614 echo "------------------" 4615 echo "SDL library not found." 4616 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4617 echo "------------------" 4618 exit -1 4962 4619 fi 4963 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 4964 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 4965 if test "${ac_cv_lib_sdl_main+set}" = set; then 4620 4621 ;; 4622 4623 ### LINUX ### 4624 *Linux*) 4625 echo "Linux detected" 4626 4627 Linux="yes" 4628 4629 # checking gl header 4630 #has been done befor linux-check 4631 4632 # checking for Unix GL 4633 echo "$as_me:$LINENO: checking for main in -lGL" >&5 4634 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 4635 if test "${ac_cv_lib_GL_main+set}" = set; then 4966 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4967 4637 else 4968 4638 ac_check_lib_save_LIBS=$LIBS 4969 LIBS="-l sdl$LIBS"4639 LIBS="-lGL $LIBS" 4970 4640 cat >conftest.$ac_ext <<_ACEOF 4971 4641 /* confdefs.h. */ … … 5006 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5007 4677 (exit $ac_status); }; }; then 5008 ac_cv_lib_ sdl_main=yes4678 ac_cv_lib_GL_main=yes 5009 4679 else 5010 4680 echo "$as_me: failed program was:" >&5 5011 4681 sed 's/^/| /' conftest.$ac_ext >&5 5012 4682 5013 ac_cv_lib_ sdl_main=no4683 ac_cv_lib_GL_main=no 5014 4684 fi 5015 4685 rm -f conftest.err conftest.$ac_objext \ … … 5017 4687 LIBS=$ac_check_lib_save_LIBS 5018 4688 fi 5019 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 5020 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 5021 if test $ac_cv_lib_sdl_main = yes; then 5022 FOUND_sdl=yes 5023 fi 5024 5025 if test "$FOUND_sdl" = "yes" ; then 5026 LIBS="$LIBS -lsdl" 5027 fi 5028 fi 4689 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 4690 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 4691 if test $ac_cv_lib_GL_main = yes; then 4692 FOUND_GL=yes 4693 fi 4694 4695 if test "$FOUND_GL" = "yes" ; then 4696 LIBS="$LIBS -lGL" 4697 else 4698 echo "------------------" 4699 echo "opengl not found." 4700 echo "please install the opengl package which can be found at http://www.opengl.org" 4701 echo "------------------" 4702 exit -1 4703 fi 4704 4705 # cheking for GLU-header 4706 4707 for ac_header in GL/glu.h 4708 do 4709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4710 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4711 echo "$as_me:$LINENO: checking for $ac_header" >&5 4712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4713 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4714 echo $ECHO_N "(cached) $ECHO_C" >&6 4715 fi 4716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4718 else 4719 # Is the header compilable? 4720 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4722 cat >conftest.$ac_ext <<_ACEOF 4723 /* confdefs.h. */ 4724 _ACEOF 4725 cat confdefs.h >>conftest.$ac_ext 4726 cat >>conftest.$ac_ext <<_ACEOF 4727 /* end confdefs.h. */ 4728 $ac_includes_default 4729 #include <$ac_header> 4730 _ACEOF 4731 rm -f conftest.$ac_objext 4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4733 (eval $ac_compile) 2>conftest.er1 4734 ac_status=$? 4735 grep -v '^ *+' conftest.er1 >conftest.err 4736 rm -f conftest.er1 4737 cat conftest.err >&5 4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4739 (exit $ac_status); } && 4740 { ac_try='test -z "$ac_c_werror_flag" 4741 || test ! -s conftest.err' 4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4743 (eval $ac_try) 2>&5 4744 ac_status=$? 4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4746 (exit $ac_status); }; } && 4747 { ac_try='test -s conftest.$ac_objext' 4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4749 (eval $ac_try) 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); }; }; then 4753 ac_header_compiler=yes 4754 else 4755 echo "$as_me: failed program was:" >&5 4756 sed 's/^/| /' conftest.$ac_ext >&5 4757 4758 ac_header_compiler=no 4759 fi 4760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4762 echo "${ECHO_T}$ac_header_compiler" >&6 4763 4764 # Is the header present? 4765 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4767 cat >conftest.$ac_ext <<_ACEOF 4768 /* confdefs.h. */ 4769 _ACEOF 4770 cat confdefs.h >>conftest.$ac_ext 4771 cat >>conftest.$ac_ext <<_ACEOF 4772 /* end confdefs.h. */ 4773 #include <$ac_header> 4774 _ACEOF 4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4777 ac_status=$? 4778 grep -v '^ *+' conftest.er1 >conftest.err 4779 rm -f conftest.er1 4780 cat conftest.err >&5 4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4782 (exit $ac_status); } >/dev/null; then 4783 if test -s conftest.err; then 4784 ac_cpp_err=$ac_c_preproc_warn_flag 4785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4786 else 4787 ac_cpp_err= 4788 fi 4789 else 4790 ac_cpp_err=yes 4791 fi 4792 if test -z "$ac_cpp_err"; then 4793 ac_header_preproc=yes 4794 else 4795 echo "$as_me: failed program was:" >&5 4796 sed 's/^/| /' conftest.$ac_ext >&5 4797 4798 ac_header_preproc=no 4799 fi 4800 rm -f conftest.err conftest.$ac_ext 4801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4802 echo "${ECHO_T}$ac_header_preproc" >&6 4803 4804 # So? What about this header? 4805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4806 yes:no: ) 4807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4811 ac_header_preproc=yes 4812 ;; 4813 no:yes:* ) 4814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4826 ( 4827 cat <<\_ASBOX 4828 ## ------------------------------------------- ## 4829 ## Report this to orxonox-dev@mail.datacore.ch ## 4830 ## ------------------------------------------- ## 4831 _ASBOX 4832 ) | 4833 sed "s/^/$as_me: WARNING: /" >&2 4834 ;; 4835 esac 4836 echo "$as_me:$LINENO: checking for $ac_header" >&5 4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4839 echo $ECHO_N "(cached) $ECHO_C" >&6 4840 else 4841 eval "$as_ac_Header=\$ac_header_preproc" 4842 fi 4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4845 4846 fi 4847 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4848 cat >>confdefs.h <<_ACEOF 4849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4850 _ACEOF 4851 4852 else 4853 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 4854 echo "$as_me: error: cannot find opengl headers" >&2;} 4855 { (exit 1); exit 1; }; } 4856 fi 4857 4858 done 4859 4860 4861 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 4862 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 4863 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 4864 echo $ECHO_N "(cached) $ECHO_C" >&6 4865 else 4866 ac_check_lib_save_LIBS=$LIBS 4867 LIBS="-lGLU $LIBS" 4868 cat >conftest.$ac_ext <<_ACEOF 4869 /* confdefs.h. */ 4870 _ACEOF 4871 cat confdefs.h >>conftest.$ac_ext 4872 cat >>conftest.$ac_ext <<_ACEOF 4873 /* end confdefs.h. */ 4874 4875 /* Override any gcc2 internal prototype to avoid an error. */ 4876 #ifdef __cplusplus 4877 extern "C" 4878 #endif 4879 /* We use char because int might match the return type of a gcc2 4880 builtin and then its argument prototype would still apply. */ 4881 char gluProject (); 4882 int 4883 main () 4884 { 4885 gluProject (); 4886 ; 4887 return 0; 4888 } 4889 _ACEOF 4890 rm -f conftest.$ac_objext conftest$ac_exeext 4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4892 (eval $ac_link) 2>conftest.er1 4893 ac_status=$? 4894 grep -v '^ *+' conftest.er1 >conftest.err 4895 rm -f conftest.er1 4896 cat conftest.err >&5 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); } && 4899 { ac_try='test -z "$ac_c_werror_flag" 4900 || test ! -s conftest.err' 4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4902 (eval $ac_try) 2>&5 4903 ac_status=$? 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); }; } && 4906 { ac_try='test -s conftest$ac_exeext' 4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4908 (eval $ac_try) 2>&5 4909 ac_status=$? 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); }; }; then 4912 ac_cv_lib_GLU_gluProject=yes 4913 else 4914 echo "$as_me: failed program was:" >&5 4915 sed 's/^/| /' conftest.$ac_ext >&5 4916 4917 ac_cv_lib_GLU_gluProject=no 4918 fi 4919 rm -f conftest.err conftest.$ac_objext \ 4920 conftest$ac_exeext conftest.$ac_ext 4921 LIBS=$ac_check_lib_save_LIBS 4922 fi 4923 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 4924 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 4925 if test $ac_cv_lib_GLU_gluProject = yes; then 4926 FOUND_GLU=yes 4927 fi 4928 4929 if test "$FOUND_GLU" = "yes" ; then 4930 LIBS="$LIBS -lGLU" 4931 else 4932 echo "------------------" 4933 echo "GLU library not found." 4934 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 4935 echo "------------------" 4936 exit -1 4937 fi 4938 4939 # checking for SDL-headers 4940 4941 for ac_header in SDL/SDL.h 4942 do 4943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4944 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4945 echo "$as_me:$LINENO: checking for $ac_header" >&5 4946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4947 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4948 echo $ECHO_N "(cached) $ECHO_C" >&6 4949 fi 4950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4952 else 4953 # Is the header compilable? 4954 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4956 cat >conftest.$ac_ext <<_ACEOF 4957 /* confdefs.h. */ 4958 _ACEOF 4959 cat confdefs.h >>conftest.$ac_ext 4960 cat >>conftest.$ac_ext <<_ACEOF 4961 /* end confdefs.h. */ 4962 $ac_includes_default 4963 #include <$ac_header> 4964 _ACEOF 4965 rm -f conftest.$ac_objext 4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4967 (eval $ac_compile) 2>conftest.er1 4968 ac_status=$? 4969 grep -v '^ *+' conftest.er1 >conftest.err 4970 rm -f conftest.er1 4971 cat conftest.err >&5 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4973 (exit $ac_status); } && 4974 { ac_try='test -z "$ac_c_werror_flag" 4975 || test ! -s conftest.err' 4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4977 (eval $ac_try) 2>&5 4978 ac_status=$? 4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4980 (exit $ac_status); }; } && 4981 { ac_try='test -s conftest.$ac_objext' 4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4983 (eval $ac_try) 2>&5 4984 ac_status=$? 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); }; }; then 4987 ac_header_compiler=yes 4988 else 4989 echo "$as_me: failed program was:" >&5 4990 sed 's/^/| /' conftest.$ac_ext >&5 4991 4992 ac_header_compiler=no 4993 fi 4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4996 echo "${ECHO_T}$ac_header_compiler" >&6 4997 4998 # Is the header present? 4999 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5001 cat >conftest.$ac_ext <<_ACEOF 5002 /* confdefs.h. */ 5003 _ACEOF 5004 cat confdefs.h >>conftest.$ac_ext 5005 cat >>conftest.$ac_ext <<_ACEOF 5006 /* end confdefs.h. */ 5007 #include <$ac_header> 5008 _ACEOF 5009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5011 ac_status=$? 5012 grep -v '^ *+' conftest.er1 >conftest.err 5013 rm -f conftest.er1 5014 cat conftest.err >&5 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); } >/dev/null; then 5017 if test -s conftest.err; then 5018 ac_cpp_err=$ac_c_preproc_warn_flag 5019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5020 else 5021 ac_cpp_err= 5022 fi 5023 else 5024 ac_cpp_err=yes 5025 fi 5026 if test -z "$ac_cpp_err"; then 5027 ac_header_preproc=yes 5028 else 5029 echo "$as_me: failed program was:" >&5 5030 sed 's/^/| /' conftest.$ac_ext >&5 5031 5032 ac_header_preproc=no 5033 fi 5034 rm -f conftest.err conftest.$ac_ext 5035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5036 echo "${ECHO_T}$ac_header_preproc" >&6 5037 5038 # So? What about this header? 5039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5040 yes:no: ) 5041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5045 ac_header_preproc=yes 5046 ;; 5047 no:yes:* ) 5048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5060 ( 5061 cat <<\_ASBOX 5062 ## ------------------------------------------- ## 5063 ## Report this to orxonox-dev@mail.datacore.ch ## 5064 ## ------------------------------------------- ## 5065 _ASBOX 5066 ) | 5067 sed "s/^/$as_me: WARNING: /" >&2 5068 ;; 5069 esac 5070 echo "$as_me:$LINENO: checking for $ac_header" >&5 5071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5072 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5073 echo $ECHO_N "(cached) $ECHO_C" >&6 5074 else 5075 eval "$as_ac_Header=\$ac_header_preproc" 5076 fi 5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5079 5080 fi 5081 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5082 cat >>confdefs.h <<_ACEOF 5083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5084 _ACEOF 5085 5086 else 5087 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5088 echo "$as_me: error: cannot find SDL headers" >&2;} 5089 { (exit 1); exit 1; }; } 5090 fi 5091 5092 done 5093 5094 5095 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5096 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5097 if test "${ac_cv_lib_SDL_main+set}" = set; then 5098 echo $ECHO_N "(cached) $ECHO_C" >&6 5099 else 5100 ac_check_lib_save_LIBS=$LIBS 5101 LIBS="-lSDL $LIBS" 5102 cat >conftest.$ac_ext <<_ACEOF 5103 /* confdefs.h. */ 5104 _ACEOF 5105 cat confdefs.h >>conftest.$ac_ext 5106 cat >>conftest.$ac_ext <<_ACEOF 5107 /* end confdefs.h. */ 5108 5109 5110 int 5111 main () 5112 { 5113 main (); 5114 ; 5115 return 0; 5116 } 5117 _ACEOF 5118 rm -f conftest.$ac_objext conftest$ac_exeext 5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5120 (eval $ac_link) 2>conftest.er1 5121 ac_status=$? 5122 grep -v '^ *+' conftest.er1 >conftest.err 5123 rm -f conftest.er1 5124 cat conftest.err >&5 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); } && 5127 { ac_try='test -z "$ac_c_werror_flag" 5128 || test ! -s conftest.err' 5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5130 (eval $ac_try) 2>&5 5131 ac_status=$? 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); }; } && 5134 { ac_try='test -s conftest$ac_exeext' 5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5136 (eval $ac_try) 2>&5 5137 ac_status=$? 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); }; }; then 5140 ac_cv_lib_SDL_main=yes 5141 else 5142 echo "$as_me: failed program was:" >&5 5143 sed 's/^/| /' conftest.$ac_ext >&5 5144 5145 ac_cv_lib_SDL_main=no 5146 fi 5147 rm -f conftest.err conftest.$ac_objext \ 5148 conftest$ac_exeext conftest.$ac_ext 5149 LIBS=$ac_check_lib_save_LIBS 5150 fi 5151 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5152 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5153 if test $ac_cv_lib_SDL_main = yes; then 5154 FOUND_SDL=yes 5155 fi 5156 5157 if test "$FOUND_SDL" = "yes" ; then 5158 LIBS="$LIBS -lSDL" 5159 else 5160 echo "------------------" 5161 echo "SDL library not found." 5162 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5163 echo "------------------" 5164 exit -1 5165 fi 5166 5167 ;; 5168 *) 5169 mingw="no" 5170 ;; 5171 esac 5172 echo "$as_me:$LINENO: result: $mingw" >&5 5173 echo "${ECHO_T}$mingw" >&6 5174 5175 5176 #### Checking for LIBraries. 5177 5178 # FIXME: Replace `main' with a function in `-lOSMesa': 5179 5180 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 5181 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 5182 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 5183 echo $ECHO_N "(cached) $ECHO_C" >&6 5184 else 5185 ac_check_lib_save_LIBS=$LIBS 5186 LIBS="-lOSMesa $LIBS" 5187 cat >conftest.$ac_ext <<_ACEOF 5188 /* confdefs.h. */ 5189 _ACEOF 5190 cat confdefs.h >>conftest.$ac_ext 5191 cat >>conftest.$ac_ext <<_ACEOF 5192 /* end confdefs.h. */ 5193 5194 5195 int 5196 main () 5197 { 5198 main (); 5199 ; 5200 return 0; 5201 } 5202 _ACEOF 5203 rm -f conftest.$ac_objext conftest$ac_exeext 5204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5205 (eval $ac_link) 2>conftest.er1 5206 ac_status=$? 5207 grep -v '^ *+' conftest.er1 >conftest.err 5208 rm -f conftest.er1 5209 cat conftest.err >&5 5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5211 (exit $ac_status); } && 5212 { ac_try='test -z "$ac_c_werror_flag" 5213 || test ! -s conftest.err' 5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5215 (eval $ac_try) 2>&5 5216 ac_status=$? 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); }; } && 5219 { ac_try='test -s conftest$ac_exeext' 5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5221 (eval $ac_try) 2>&5 5222 ac_status=$? 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); }; }; then 5225 ac_cv_lib_OSMesa_main=yes 5226 else 5227 echo "$as_me: failed program was:" >&5 5228 sed 's/^/| /' conftest.$ac_ext >&5 5229 5230 ac_cv_lib_OSMesa_main=no 5231 fi 5232 rm -f conftest.err conftest.$ac_objext \ 5233 conftest$ac_exeext conftest.$ac_ext 5234 LIBS=$ac_check_lib_save_LIBS 5235 fi 5236 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 5237 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 5238 if test $ac_cv_lib_OSMesa_main = yes; then 5239 cat >>confdefs.h <<_ACEOF 5240 #define HAVE_LIBOSMESA 1 5241 _ACEOF 5242 5243 LIBS="-lOSMesa $LIBS" 5244 5245 fi 5246 5247 # FIXME: Replace `main' with a function in `-lX11': 5248 5249 echo "$as_me:$LINENO: checking for main in -lX11" >&5 5250 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 5251 if test "${ac_cv_lib_X11_main+set}" = set; then 5252 echo $ECHO_N "(cached) $ECHO_C" >&6 5253 else 5254 ac_check_lib_save_LIBS=$LIBS 5255 LIBS="-lX11 $LIBS" 5256 cat >conftest.$ac_ext <<_ACEOF 5257 /* confdefs.h. */ 5258 _ACEOF 5259 cat confdefs.h >>conftest.$ac_ext 5260 cat >>conftest.$ac_ext <<_ACEOF 5261 /* end confdefs.h. */ 5262 5263 5264 int 5265 main () 5266 { 5267 main (); 5268 ; 5269 return 0; 5270 } 5271 _ACEOF 5272 rm -f conftest.$ac_objext conftest$ac_exeext 5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5274 (eval $ac_link) 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 (exit $ac_status); } && 5281 { ac_try='test -z "$ac_c_werror_flag" 5282 || test ! -s conftest.err' 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5284 (eval $ac_try) 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; } && 5288 { ac_try='test -s conftest$ac_exeext' 5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5290 (eval $ac_try) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); }; }; then 5294 ac_cv_lib_X11_main=yes 5295 else 5296 echo "$as_me: failed program was:" >&5 5297 sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 ac_cv_lib_X11_main=no 5300 fi 5301 rm -f conftest.err conftest.$ac_objext \ 5302 conftest$ac_exeext conftest.$ac_ext 5303 LIBS=$ac_check_lib_save_LIBS 5304 fi 5305 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 5306 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 5307 if test $ac_cv_lib_X11_main = yes; then 5308 cat >>confdefs.h <<_ACEOF 5309 #define HAVE_LIBX11 1 5310 _ACEOF 5311 5312 LIBS="-lX11 $LIBS" 5313 5314 fi 5315 5316 # FIXME: Replace `main' with a function in `-lXt': 5317 5318 echo "$as_me:$LINENO: checking for main in -lXt" >&5 5319 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 5320 if test "${ac_cv_lib_Xt_main+set}" = set; then 5321 echo $ECHO_N "(cached) $ECHO_C" >&6 5322 else 5323 ac_check_lib_save_LIBS=$LIBS 5324 LIBS="-lXt $LIBS" 5325 cat >conftest.$ac_ext <<_ACEOF 5326 /* confdefs.h. */ 5327 _ACEOF 5328 cat confdefs.h >>conftest.$ac_ext 5329 cat >>conftest.$ac_ext <<_ACEOF 5330 /* end confdefs.h. */ 5331 5332 5333 int 5334 main () 5335 { 5336 main (); 5337 ; 5338 return 0; 5339 } 5340 _ACEOF 5341 rm -f conftest.$ac_objext conftest$ac_exeext 5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5343 (eval $ac_link) 2>conftest.er1 5344 ac_status=$? 5345 grep -v '^ *+' conftest.er1 >conftest.err 5346 rm -f conftest.er1 5347 cat conftest.err >&5 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); } && 5350 { ac_try='test -z "$ac_c_werror_flag" 5351 || test ! -s conftest.err' 5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5353 (eval $ac_try) 2>&5 5354 ac_status=$? 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); }; } && 5357 { ac_try='test -s conftest$ac_exeext' 5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); }; }; then 5363 ac_cv_lib_Xt_main=yes 5364 else 5365 echo "$as_me: failed program was:" >&5 5366 sed 's/^/| /' conftest.$ac_ext >&5 5367 5368 ac_cv_lib_Xt_main=no 5369 fi 5370 rm -f conftest.err conftest.$ac_objext \ 5371 conftest$ac_exeext conftest.$ac_ext 5372 LIBS=$ac_check_lib_save_LIBS 5373 fi 5374 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 5375 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 5376 if test $ac_cv_lib_Xt_main = yes; then 5377 cat >>confdefs.h <<_ACEOF 5378 #define HAVE_LIBXT 1 5379 _ACEOF 5380 5381 LIBS="-lXt $LIBS" 5382 5383 fi 5384 5385 5029 5386 5030 5387 #checking for pthread libs … … 6654 7011 s,@SET_MAKE@,$SET_MAKE,;t t 6655 7012 s,@am__leading_dot@,$am__leading_dot,;t t 6656 s,@MSBITFIELDS@,$MSBITFIELDS,;t t6657 7013 s,@CXX@,$CXX,;t t 6658 7014 s,@CXXFLAGS@,$CXXFLAGS,;t t … … 6679 7035 s,@CPP@,$CPP,;t t 6680 7036 s,@EGREP@,$EGREP,;t t 7037 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 6681 7038 s,@LIBOBJS@,$LIBOBJS,;t t 6682 7039 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Note: See TracChangeset
for help on using the changeset viewer.