Changeset 3238 in orxonox.OLD for orxonox/branches/buerli/configure
- Timestamp:
- Dec 20, 2004, 2:42:54 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/buerli/configure
r2707 r3238 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.59 for orxonox 0. 1-pre-alpha.3 # Generated by GNU Autoconf 2.59 for orxonox 0.2.0_alpha-r1. 4 4 # 5 5 # Report bugs to <orxonox-dev@mail.datacore.ch>. … … 270 270 PACKAGE_NAME='orxonox' 271 271 PACKAGE_TARNAME='orxonox' 272 PACKAGE_VERSION='0. 1-pre-alpha'273 PACKAGE_STRING='orxonox 0. 1-pre-alpha'272 PACKAGE_VERSION='0.2.0_alpha-r1' 273 PACKAGE_STRING='orxonox 0.2.0_alpha-r1' 274 274 PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' 275 275 … … 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 mkdir_p 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 MSBITFIELDSLIBOBJS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 mkdir_p 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 DEBUG DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 789 789 # This message is too long to be a string in the A/UX 3.1 sh. 790 790 cat <<_ACEOF 791 \`configure' configures orxonox 0. 1-pre-alphato adapt to many kinds of systems.791 \`configure' configures orxonox 0.2.0_alpha-r1 to adapt to many kinds of systems. 792 792 793 793 Usage: $0 [OPTION]... [VAR=VALUE]... … … 846 846 --program-suffix=SUFFIX append SUFFIX to installed program names 847 847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 848 849 System types: 850 --build=BUILD configure for building on BUILD [guessed] 851 --host=HOST cross-compile to build programs to run on HOST [BUILD] 852 --target=TARGET configure for building compilers for TARGET [HOST] 848 853 _ACEOF 849 854 fi … … 851 856 if test -n "$ac_init_help"; then 852 857 case $ac_init_help in 853 short | recursive ) echo "Configuration of orxonox 0. 1-pre-alpha:";;858 short | recursive ) echo "Configuration of orxonox 0.2.0_alpha-r1:";; 854 859 esac 855 860 cat <<\_ACEOF … … 860 865 --disable-dependency-tracking speeds up one-time build 861 866 --enable-dependency-tracking do not reject slow dependency extractors 867 --enable-debug compiles in debug mode. Lots of debug info about the 868 game. 869 870 Optional Packages: 871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 873 --without-gtk Prevents GTK from being loaded 874 --without-sdl-image Prevents SDL_image from being loaded 862 875 863 876 Some influential environment variables: … … 971 984 if $ac_init_version; then 972 985 cat <<\_ACEOF 973 orxonox configure 0. 1-pre-alpha986 orxonox configure 0.2.0_alpha-r1 974 987 generated by GNU Autoconf 2.59 975 988 … … 985 998 running configure, to aid debugging if configure makes a mistake. 986 999 987 It was created by orxonox $as_me 0. 1-pre-alpha, which was1000 It was created by orxonox $as_me 0.2.0_alpha-r1, which was 988 1001 generated by GNU Autoconf 2.59. Invocation command line was 989 1002 … … 1321 1334 1322 1335 1323 am__api_version="1.8" 1336 1337 # Detect the canonical host and target build environment. 1324 1338 ac_aux_dir= 1325 1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do … … 1347 1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1348 1362 1363 # Make sure we can run config.sub. 1364 $ac_config_sub sun4 >/dev/null 2>&1 || 1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1366 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1367 { (exit 1); exit 1; }; } 1368 1369 echo "$as_me:$LINENO: checking build system type" >&5 1370 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1371 if test "${ac_cv_build+set}" = set; then 1372 echo $ECHO_N "(cached) $ECHO_C" >&6 1373 else 1374 ac_cv_build_alias=$build_alias 1375 test -z "$ac_cv_build_alias" && 1376 ac_cv_build_alias=`$ac_config_guess` 1377 test -z "$ac_cv_build_alias" && 1378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1379 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1380 { (exit 1); exit 1; }; } 1381 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1383 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1384 { (exit 1); exit 1; }; } 1385 1386 fi 1387 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1388 echo "${ECHO_T}$ac_cv_build" >&6 1389 build=$ac_cv_build 1390 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1391 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1392 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1393 1394 1395 echo "$as_me:$LINENO: checking host system type" >&5 1396 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1397 if test "${ac_cv_host+set}" = set; then 1398 echo $ECHO_N "(cached) $ECHO_C" >&6 1399 else 1400 ac_cv_host_alias=$host_alias 1401 test -z "$ac_cv_host_alias" && 1402 ac_cv_host_alias=$ac_cv_build_alias 1403 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1405 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1406 { (exit 1); exit 1; }; } 1407 1408 fi 1409 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1410 echo "${ECHO_T}$ac_cv_host" >&6 1411 host=$ac_cv_host 1412 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1413 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1414 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1415 1416 1417 echo "$as_me:$LINENO: checking target system type" >&5 1418 echo $ECHO_N "checking target system type... $ECHO_C" >&6 1419 if test "${ac_cv_target+set}" = set; then 1420 echo $ECHO_N "(cached) $ECHO_C" >&6 1421 else 1422 ac_cv_target_alias=$target_alias 1423 test "x$ac_cv_target_alias" = "x" && 1424 ac_cv_target_alias=$ac_cv_host_alias 1425 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1427 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1428 { (exit 1); exit 1; }; } 1429 1430 fi 1431 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1432 echo "${ECHO_T}$ac_cv_target" >&6 1433 target=$ac_cv_target 1434 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1435 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1436 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1437 1438 1439 # The aliases save the names the user supplied, while $host etc. 1440 # will get canonicalized. 1441 test -n "$target_alias" && 1442 test "$program_prefix$program_suffix$program_transform_name" = \ 1443 NONENONEs,x,x, && 1444 program_prefix=${target_alias}- 1445 1446 1447 am__api_version="1.8" 1349 1448 # Find a good install program. We prefer a C program (faster), 1350 1449 # so one script is as good as another. But avoid the broken or … … 1620 1719 # Define the identity of the package. 1621 1720 PACKAGE='orxonox' 1622 VERSION='0. 1-pre-alpha'1721 VERSION='0.2.0_alpha-r1' 1623 1722 1624 1723 … … 3322 3421 3323 3422 3324 3325 # checking gl header (has to be here because of a Linux error)3326 3327 3423 ac_ext=c 3328 3424 ac_cpp='$CPP $CPPFLAGS' … … 3741 3837 fi 3742 3838 3743 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3839 3840 ### CHECKING OPTIONAT ARGUMENTS 3841 ## DEBUG-statement 3842 DEBUG=no 3843 echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 3844 echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 3845 # Check whether --enable-debug or --disable-debug was given. 3846 if test "${enable_debug+set}" = set; then 3847 enableval="$enable_debug" 3848 DEBUG=$enableval 3849 fi; 3850 3851 if test "$DEBUG" = "no"; then 3852 echo "no" 3853 echo " -> Setting debuglevel to 1. Like this you can still see errors." 3854 DEBUG=1 3855 elif test "$DEBUG" = yes; then 3856 echo "yes" 3857 echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." 3858 DEBUG=3 3859 else 3860 echo "yes set to $DEBUG" 3861 fi 3862 3863 cat >>confdefs.h <<_ACEOF 3864 #define DEBUG $DEBUG 3865 _ACEOF 3866 3867 3868 3869 3870 ## GTK-disabled 3871 echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 3872 echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 3873 3874 # Check whether --with-gtk or --without-gtk was given. 3875 if test "${with_gtk+set}" = set; then 3876 withval="$with_gtk" 3877 def_gtk=no 3878 else 3879 def_gtk=yes 3880 fi; 3881 if test "$def_gtk" = yes; then 3882 echo "yes" 3883 fi 3884 if test "$def_gtk" = no; then 3885 echo "no" 3886 fi 3887 ### SDL_image-disable 3888 def_sdl_image=yes 3889 echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 3890 echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 3891 3892 # Check whether --with-sdl_image or --without-sdl_image was given. 3893 if test "${with_sdl_image+set}" = set; then 3894 withval="$with_sdl_image" 3895 def_sdl_image=no 3896 fi; 3897 if test "$def_sdl_image" = yes; then 3898 echo "yes" 3899 fi 3900 if test "$def_sdl_image" = no; then 3901 echo "no" 3902 fi 3903 3904 3905 ## PROGRAMM CHECKING 3906 # checking for Doxygen 3907 # Extract the first word of "doxygen", so it can be a program name with args. 3908 set dummy doxygen; ac_word=$2 3909 echo "$as_me:$LINENO: checking for $ac_word" >&5 3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3911 if test "${ac_cv_path_DOXYGEN+set}" = set; then 3912 echo $ECHO_N "(cached) $ECHO_C" >&6 3913 else 3914 case $DOXYGEN in 3915 [\\/]* | ?:[\\/]*) 3916 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 3917 ;; 3918 *) 3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920 for as_dir in $PATH 3921 do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3926 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3928 break 2 3929 fi 3930 done 3931 done 3932 3933 ;; 3934 esac 3935 fi 3936 DOXYGEN=$ac_cv_path_DOXYGEN 3937 3938 if test -n "$DOXYGEN"; then 3939 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 3940 echo "${ECHO_T}$DOXYGEN" >&6 3941 else 3942 echo "$as_me:$LINENO: result: no" >&5 3943 echo "${ECHO_T}no" >&6 3944 fi 3945 3946 3947 3948 if test $DOXYGEN; then 3949 DOXYGEN_TRUE= 3950 DOXYGEN_FALSE='#' 3951 else 3952 DOXYGEN_TRUE='#' 3953 DOXYGEN_FALSE= 3954 fi 3955 3956 3957 ### CHECKING FOR SYSTEM ### 3958 3959 echo "$as_me:$LINENO: checking for System" >&5 3960 echo $ECHO_N "checking for System... $ECHO_C" >&6 3961 ## checking for openGL-environment and other sys-specific parameters 3962 case "$target" in 3963 ### WINDOWS ### 3964 *-*-mingw32*) 3965 echo "mingw-WINDOWS detected" 3966 3967 mingw="yes" 3968 MSBITFIELDS="-mms-bitfields" 3969 MWINDOWS="-mwindows" 3970 3971 # checking gl header 3972 #done before loop 3973 3974 # checking gl header 3975 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3744 3976 3745 3977 … … 3967 4199 done 3968 4200 3969 3970 3971 3972 ### CHECKING FOR SYSTEM ###3973 3974 echo "$as_me:$LINENO: checking for System" >&53975 echo $ECHO_N "checking for System... $ECHO_C" >&63976 case `uname` in3977 ### WINDOWS ###3978 *MINGW*)3979 echo "mingw-WINDOWS detected"3980 3981 mingw="yes"3982 MSBITFIELDS="-mms-bitfields"3983 MWINDOWS="-mwindows"3984 3985 # checking gl header3986 #done before loop3987 3988 4201 # checking for Windows openGl library 3989 4202 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 … … 4290 4503 fi 4291 4504 4292 4293 4505 # checking for mingw32 4294 4506 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 … … 4577 4789 4578 4790 if test "$FOUND_sdlmain" = "yes" ; then 4579 4791 LIBS="$LIBS -lsdlmain" 4580 4792 else 4581 4582 4583 4584 4585 4793 echo "------------------" 4794 echo "SDL library not found." 4795 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4796 echo "------------------" 4797 exit 1 4586 4798 fi 4587 4799 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 … … 4648 4860 4649 4861 if test "$FOUND_sdl" = "yes" ; then 4650 4862 LIBS="$LIBS -lsdl" 4651 4863 else 4652 4653 4654 4655 4656 4864 echo "------------------" 4865 echo "SDL library not found." 4866 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4867 echo "------------------" 4868 exit -1 4657 4869 fi 4658 4870 … … 4660 4872 4661 4873 ### LINUX ### 4662 * Linux*)4874 *-*-linux*) 4663 4875 echo "Linux detected" 4664 4876 4665 4877 Linux="yes" 4666 4878 4879 CPPFLAGS="-I/usr/X11R6/include" 4880 LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 4667 4881 # checking gl header 4668 #has been done befor linux-check 4669 4670 # checking for Unix GL 4671 echo "$as_me:$LINENO: checking for main in -lGL" >&5 4672 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 4673 if test "${ac_cv_lib_GL_main+set}" = set; then 4674 echo $ECHO_N "(cached) $ECHO_C" >&6 4675 else 4676 ac_check_lib_save_LIBS=$LIBS 4677 LIBS="-lGL $LIBS" 4678 cat >conftest.$ac_ext <<_ACEOF 4679 /* confdefs.h. */ 4680 _ACEOF 4681 cat confdefs.h >>conftest.$ac_ext 4682 cat >>conftest.$ac_ext <<_ACEOF 4683 /* end confdefs.h. */ 4684 4685 4686 int 4687 main () 4688 { 4689 main (); 4690 ; 4691 return 0; 4692 } 4693 _ACEOF 4694 rm -f conftest.$ac_objext conftest$ac_exeext 4695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4696 (eval $ac_link) 2>conftest.er1 4697 ac_status=$? 4698 grep -v '^ *+' conftest.er1 >conftest.err 4699 rm -f conftest.er1 4700 cat conftest.err >&5 4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); } && 4703 { ac_try='test -z "$ac_c_werror_flag" 4704 || test ! -s conftest.err' 4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4706 (eval $ac_try) 2>&5 4707 ac_status=$? 4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4709 (exit $ac_status); }; } && 4710 { ac_try='test -s conftest$ac_exeext' 4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4712 (eval $ac_try) 2>&5 4713 ac_status=$? 4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4715 (exit $ac_status); }; }; then 4716 ac_cv_lib_GL_main=yes 4717 else 4718 echo "$as_me: failed program was:" >&5 4719 sed 's/^/| /' conftest.$ac_ext >&5 4720 4721 ac_cv_lib_GL_main=no 4722 fi 4723 rm -f conftest.err conftest.$ac_objext \ 4724 conftest$ac_exeext conftest.$ac_ext 4725 LIBS=$ac_check_lib_save_LIBS 4726 fi 4727 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 4728 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 4729 if test $ac_cv_lib_GL_main = yes; then 4730 FOUND_GL=yes 4731 fi 4732 4733 if test "$FOUND_GL" = "yes" ; then 4734 LIBS="$LIBS -lGL" 4735 else 4736 echo "------------------" 4737 echo "opengl not found." 4738 echo "please install the opengl package which can be found at http://www.opengl.org" 4739 echo "------------------" 4740 exit -1 4741 fi 4742 4743 # cheking for GLU-header 4744 4745 for ac_header in GL/glu.h 4882 4883 for ac_header in GL/gl.h 4746 4884 do 4747 4885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4897 5035 4898 5036 4899 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 4900 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 4901 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 5037 # checking for Unix GL 5038 echo "$as_me:$LINENO: checking for main in -lGL" >&5 5039 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 5040 if test "${ac_cv_lib_GL_main+set}" = set; then 4902 5041 echo $ECHO_N "(cached) $ECHO_C" >&6 4903 5042 else 4904 5043 ac_check_lib_save_LIBS=$LIBS 4905 LIBS="-lGL U$LIBS"5044 LIBS="-lGL $LIBS" 4906 5045 cat >conftest.$ac_ext <<_ACEOF 4907 5046 /* confdefs.h. */ … … 4911 5050 /* end confdefs.h. */ 4912 5051 4913 /* Override any gcc2 internal prototype to avoid an error. */ 4914 #ifdef __cplusplus 4915 extern "C" 4916 #endif 4917 /* We use char because int might match the return type of a gcc2 4918 builtin and then its argument prototype would still apply. */ 4919 char gluProject (); 5052 4920 5053 int 4921 5054 main () 4922 5055 { 4923 gluProject();5056 main (); 4924 5057 ; 4925 5058 return 0; … … 4948 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 5082 (exit $ac_status); }; }; then 4950 ac_cv_lib_GL U_gluProject=yes5083 ac_cv_lib_GL_main=yes 4951 5084 else 4952 5085 echo "$as_me: failed program was:" >&5 4953 5086 sed 's/^/| /' conftest.$ac_ext >&5 4954 5087 4955 ac_cv_lib_GL U_gluProject=no5088 ac_cv_lib_GL_main=no 4956 5089 fi 4957 5090 rm -f conftest.err conftest.$ac_objext \ … … 4959 5092 LIBS=$ac_check_lib_save_LIBS 4960 5093 fi 4961 echo "$as_me:$LINENO: result: $ac_cv_lib_GL U_gluProject" >&54962 echo "${ECHO_T}$ac_cv_lib_GL U_gluProject" >&64963 if test $ac_cv_lib_GL U_gluProject= yes; then4964 FOUND_GL U=yes4965 fi 4966 4967 if test "$FOUND_GLU" = "yes" ; then4968 LIBS="$LIBS -lGLU"4969 5094 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 5095 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 5096 if test $ac_cv_lib_GL_main = yes; then 5097 FOUND_GL=yes 5098 fi 5099 5100 if test "$FOUND_GL" = "yes" ; then 5101 LIBS="$LIBS -lGL" 5102 else 4970 5103 echo "------------------" 4971 echo " GLU librarynot found."4972 echo "please install the GLU library, that should come with openGL,which can be found at http://www.opengl.org"5104 echo "opengl not found." 5105 echo "please install the opengl package which can be found at http://www.opengl.org" 4973 5106 echo "------------------" 4974 5107 exit -1 4975 4976 4977 # che cking for SDL-headers4978 4979 for ac_header in SDL/SDL.h5108 fi 5109 5110 # cheking for GLU-header 5111 5112 for ac_header in GL/glu.h 4980 5113 do 4981 5114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5123 5256 5124 5257 else 5125 { { echo "$as_me:$LINENO: error: cannot find SDLheaders" >&55126 echo "$as_me: error: cannot find SDLheaders" >&2;}5258 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5259 echo "$as_me: error: cannot find opengl headers" >&2;} 5127 5260 { (exit 1); exit 1; }; } 5128 5261 fi … … 5131 5264 5132 5265 5133 echo "$as_me:$LINENO: checking for main in -lSDL" >&55134 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&65135 if test "${ac_cv_lib_ SDL_main+set}" = set; then5266 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 5267 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 5268 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 5136 5269 echo $ECHO_N "(cached) $ECHO_C" >&6 5137 5270 else 5138 5271 ac_check_lib_save_LIBS=$LIBS 5139 LIBS="-l SDL$LIBS"5272 LIBS="-lGLU $LIBS" 5140 5273 cat >conftest.$ac_ext <<_ACEOF 5141 5274 /* confdefs.h. */ … … 5145 5278 /* end confdefs.h. */ 5146 5279 5147 5280 /* Override any gcc2 internal prototype to avoid an error. */ 5281 #ifdef __cplusplus 5282 extern "C" 5283 #endif 5284 /* We use char because int might match the return type of a gcc2 5285 builtin and then its argument prototype would still apply. */ 5286 char gluProject (); 5148 5287 int 5149 5288 main () 5150 5289 { 5151 main();5290 gluProject (); 5152 5291 ; 5153 5292 return 0; … … 5176 5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 5316 (exit $ac_status); }; }; then 5178 ac_cv_lib_ SDL_main=yes5317 ac_cv_lib_GLU_gluProject=yes 5179 5318 else 5180 5319 echo "$as_me: failed program was:" >&5 5181 5320 sed 's/^/| /' conftest.$ac_ext >&5 5182 5321 5183 ac_cv_lib_ SDL_main=no5322 ac_cv_lib_GLU_gluProject=no 5184 5323 fi 5185 5324 rm -f conftest.err conftest.$ac_objext \ … … 5187 5326 LIBS=$ac_check_lib_save_LIBS 5188 5327 fi 5189 echo "$as_me:$LINENO: result: $ac_cv_lib_ SDL_main" >&55190 echo "${ECHO_T}$ac_cv_lib_ SDL_main" >&65191 if test $ac_cv_lib_ SDL_main= yes; then5192 FOUND_ SDL=yes5193 fi 5194 5195 if test "$FOUND_SDL" = "yes" ; then5196 LIBS="$LIBS -lSDL"5197 5328 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 5329 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 5330 if test $ac_cv_lib_GLU_gluProject = yes; then 5331 FOUND_GLU=yes 5332 fi 5333 5334 if test "$FOUND_GLU" = "yes" ; then 5335 LIBS="$LIBS -lGLU" 5336 else 5198 5337 echo "------------------" 5199 echo " SDLlibrary not found."5200 echo "please install the SDL library, which can be found at http://www.libsdl.org"5338 echo "GLU library not found." 5339 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5201 5340 echo "------------------" 5202 5341 exit -1 5203 fi 5204 5205 ;; 5206 *) 5207 mingw="no" 5208 ;; 5209 esac 5210 echo "$as_me:$LINENO: result: $mingw" >&5 5211 echo "${ECHO_T}$mingw" >&6 5212 5213 5214 #### Checking for LIBraries. 5215 5216 # FIXME: Replace `main' with a function in `-lOSMesa': 5217 5218 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 5219 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 5220 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 5221 echo $ECHO_N "(cached) $ECHO_C" >&6 5222 else 5223 ac_check_lib_save_LIBS=$LIBS 5224 LIBS="-lOSMesa $LIBS" 5225 cat >conftest.$ac_ext <<_ACEOF 5226 /* confdefs.h. */ 5227 _ACEOF 5228 cat confdefs.h >>conftest.$ac_ext 5229 cat >>conftest.$ac_ext <<_ACEOF 5230 /* end confdefs.h. */ 5231 5232 5233 int 5234 main () 5235 { 5236 main (); 5237 ; 5238 return 0; 5239 } 5240 _ACEOF 5241 rm -f conftest.$ac_objext conftest$ac_exeext 5242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5243 (eval $ac_link) 2>conftest.er1 5244 ac_status=$? 5245 grep -v '^ *+' conftest.er1 >conftest.err 5246 rm -f conftest.er1 5247 cat conftest.err >&5 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); } && 5250 { ac_try='test -z "$ac_c_werror_flag" 5251 || test ! -s conftest.err' 5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5253 (eval $ac_try) 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); }; } && 5257 { ac_try='test -s conftest$ac_exeext' 5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5259 (eval $ac_try) 2>&5 5260 ac_status=$? 5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5262 (exit $ac_status); }; }; then 5263 ac_cv_lib_OSMesa_main=yes 5264 else 5265 echo "$as_me: failed program was:" >&5 5266 sed 's/^/| /' conftest.$ac_ext >&5 5267 5268 ac_cv_lib_OSMesa_main=no 5269 fi 5270 rm -f conftest.err conftest.$ac_objext \ 5271 conftest$ac_exeext conftest.$ac_ext 5272 LIBS=$ac_check_lib_save_LIBS 5273 fi 5274 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 5275 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 5276 if test $ac_cv_lib_OSMesa_main = yes; then 5277 cat >>confdefs.h <<_ACEOF 5278 #define HAVE_LIBOSMESA 1 5279 _ACEOF 5280 5281 LIBS="-lOSMesa $LIBS" 5282 5283 fi 5284 5285 # FIXME: Replace `main' with a function in `-lX11': 5286 5287 echo "$as_me:$LINENO: checking for main in -lX11" >&5 5288 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 5289 if test "${ac_cv_lib_X11_main+set}" = set; then 5290 echo $ECHO_N "(cached) $ECHO_C" >&6 5291 else 5292 ac_check_lib_save_LIBS=$LIBS 5293 LIBS="-lX11 $LIBS" 5294 cat >conftest.$ac_ext <<_ACEOF 5295 /* confdefs.h. */ 5296 _ACEOF 5297 cat confdefs.h >>conftest.$ac_ext 5298 cat >>conftest.$ac_ext <<_ACEOF 5299 /* end confdefs.h. */ 5300 5301 5302 int 5303 main () 5304 { 5305 main (); 5306 ; 5307 return 0; 5308 } 5309 _ACEOF 5310 rm -f conftest.$ac_objext conftest$ac_exeext 5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5312 (eval $ac_link) 2>conftest.er1 5313 ac_status=$? 5314 grep -v '^ *+' conftest.er1 >conftest.err 5315 rm -f conftest.er1 5316 cat conftest.err >&5 5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5318 (exit $ac_status); } && 5319 { ac_try='test -z "$ac_c_werror_flag" 5320 || test ! -s conftest.err' 5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5322 (eval $ac_try) 2>&5 5323 ac_status=$? 5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5325 (exit $ac_status); }; } && 5326 { ac_try='test -s conftest$ac_exeext' 5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 (eval $ac_try) 2>&5 5329 ac_status=$? 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); }; }; then 5332 ac_cv_lib_X11_main=yes 5333 else 5334 echo "$as_me: failed program was:" >&5 5335 sed 's/^/| /' conftest.$ac_ext >&5 5336 5337 ac_cv_lib_X11_main=no 5338 fi 5339 rm -f conftest.err conftest.$ac_objext \ 5340 conftest$ac_exeext conftest.$ac_ext 5341 LIBS=$ac_check_lib_save_LIBS 5342 fi 5343 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 5344 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 5345 if test $ac_cv_lib_X11_main = yes; then 5346 cat >>confdefs.h <<_ACEOF 5347 #define HAVE_LIBX11 1 5348 _ACEOF 5349 5350 LIBS="-lX11 $LIBS" 5351 5352 fi 5353 5354 # FIXME: Replace `main' with a function in `-lXt': 5355 5356 echo "$as_me:$LINENO: checking for main in -lXt" >&5 5357 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 5358 if test "${ac_cv_lib_Xt_main+set}" = set; then 5359 echo $ECHO_N "(cached) $ECHO_C" >&6 5360 else 5361 ac_check_lib_save_LIBS=$LIBS 5362 LIBS="-lXt $LIBS" 5363 cat >conftest.$ac_ext <<_ACEOF 5364 /* confdefs.h. */ 5365 _ACEOF 5366 cat confdefs.h >>conftest.$ac_ext 5367 cat >>conftest.$ac_ext <<_ACEOF 5368 /* end confdefs.h. */ 5369 5370 5371 int 5372 main () 5373 { 5374 main (); 5375 ; 5376 return 0; 5377 } 5378 _ACEOF 5379 rm -f conftest.$ac_objext conftest$ac_exeext 5380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5381 (eval $ac_link) 2>conftest.er1 5382 ac_status=$? 5383 grep -v '^ *+' conftest.er1 >conftest.err 5384 rm -f conftest.er1 5385 cat conftest.err >&5 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5387 (exit $ac_status); } && 5388 { ac_try='test -z "$ac_c_werror_flag" 5389 || test ! -s conftest.err' 5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5391 (eval $ac_try) 2>&5 5392 ac_status=$? 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); }; } && 5395 { ac_try='test -s conftest$ac_exeext' 5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5397 (eval $ac_try) 2>&5 5398 ac_status=$? 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 (exit $ac_status); }; }; then 5401 ac_cv_lib_Xt_main=yes 5402 else 5403 echo "$as_me: failed program was:" >&5 5404 sed 's/^/| /' conftest.$ac_ext >&5 5405 5406 ac_cv_lib_Xt_main=no 5407 fi 5408 rm -f conftest.err conftest.$ac_objext \ 5409 conftest$ac_exeext conftest.$ac_ext 5410 LIBS=$ac_check_lib_save_LIBS 5411 fi 5412 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 5413 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 5414 if test $ac_cv_lib_Xt_main = yes; then 5415 cat >>confdefs.h <<_ACEOF 5416 #define HAVE_LIBXT 1 5417 _ACEOF 5418 5419 LIBS="-lXt $LIBS" 5420 5421 fi 5422 5423 5424 5425 #checking for pthread libs 5426 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 5427 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 5428 if test "${ac_cv_lib_pthread_main+set}" = set; then 5429 echo $ECHO_N "(cached) $ECHO_C" >&6 5430 else 5431 ac_check_lib_save_LIBS=$LIBS 5432 LIBS="-lpthread $LIBS" 5433 cat >conftest.$ac_ext <<_ACEOF 5434 /* confdefs.h. */ 5435 _ACEOF 5436 cat confdefs.h >>conftest.$ac_ext 5437 cat >>conftest.$ac_ext <<_ACEOF 5438 /* end confdefs.h. */ 5439 5440 5441 int 5442 main () 5443 { 5444 main (); 5445 ; 5446 return 0; 5447 } 5448 _ACEOF 5449 rm -f conftest.$ac_objext conftest$ac_exeext 5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5451 (eval $ac_link) 2>conftest.er1 5452 ac_status=$? 5453 grep -v '^ *+' conftest.er1 >conftest.err 5454 rm -f conftest.er1 5455 cat conftest.err >&5 5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5457 (exit $ac_status); } && 5458 { ac_try='test -z "$ac_c_werror_flag" 5459 || test ! -s conftest.err' 5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5461 (eval $ac_try) 2>&5 5462 ac_status=$? 5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); }; } && 5465 { ac_try='test -s conftest$ac_exeext' 5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5467 (eval $ac_try) 2>&5 5468 ac_status=$? 5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5470 (exit $ac_status); }; }; then 5471 ac_cv_lib_pthread_main=yes 5472 else 5473 echo "$as_me: failed program was:" >&5 5474 sed 's/^/| /' conftest.$ac_ext >&5 5475 5476 ac_cv_lib_pthread_main=no 5477 fi 5478 rm -f conftest.err conftest.$ac_objext \ 5479 conftest$ac_exeext conftest.$ac_ext 5480 LIBS=$ac_check_lib_save_LIBS 5481 fi 5482 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 5483 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 5484 if test $ac_cv_lib_pthread_main = yes; then 5485 FOUND_pthread=yes 5486 fi 5487 5488 if test "$FOUND_pthread" = "yes" ; then 5489 LIBS="$LIBS -lpthread" 5490 fi 5491 5492 5493 5494 5495 # FIXME: Replace `main' with a function in `-lm': 5496 5497 echo "$as_me:$LINENO: checking for main in -lm" >&5 5498 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 5499 if test "${ac_cv_lib_m_main+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501 else 5502 ac_check_lib_save_LIBS=$LIBS 5503 LIBS="-lm $LIBS" 5504 cat >conftest.$ac_ext <<_ACEOF 5505 /* confdefs.h. */ 5506 _ACEOF 5507 cat confdefs.h >>conftest.$ac_ext 5508 cat >>conftest.$ac_ext <<_ACEOF 5509 /* end confdefs.h. */ 5510 5511 5512 int 5513 main () 5514 { 5515 main (); 5516 ; 5517 return 0; 5518 } 5519 _ACEOF 5520 rm -f conftest.$ac_objext conftest$ac_exeext 5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5522 (eval $ac_link) 2>conftest.er1 5523 ac_status=$? 5524 grep -v '^ *+' conftest.er1 >conftest.err 5525 rm -f conftest.er1 5526 cat conftest.err >&5 5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); } && 5529 { ac_try='test -z "$ac_c_werror_flag" 5530 || test ! -s conftest.err' 5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5532 (eval $ac_try) 2>&5 5533 ac_status=$? 5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5535 (exit $ac_status); }; } && 5536 { ac_try='test -s conftest$ac_exeext' 5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5538 (eval $ac_try) 2>&5 5539 ac_status=$? 5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5541 (exit $ac_status); }; }; then 5542 ac_cv_lib_m_main=yes 5543 else 5544 echo "$as_me: failed program was:" >&5 5545 sed 's/^/| /' conftest.$ac_ext >&5 5546 5547 ac_cv_lib_m_main=no 5548 fi 5549 rm -f conftest.err conftest.$ac_objext \ 5550 conftest$ac_exeext conftest.$ac_ext 5551 LIBS=$ac_check_lib_save_LIBS 5552 fi 5553 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 5554 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 5555 if test $ac_cv_lib_m_main = yes; then 5556 cat >>confdefs.h <<_ACEOF 5557 #define HAVE_LIBM 1 5558 _ACEOF 5559 5560 LIBS="-lm $LIBS" 5561 5562 fi 5563 5564 5565 LIBS="$LIBS `pkg-config --libs gtk+-2.0`" 5566 5567 5568 # Checks for header files. 5569 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5571 if test "${ac_cv_header_stdc+set}" = set; then 5572 echo $ECHO_N "(cached) $ECHO_C" >&6 5573 else 5574 cat >conftest.$ac_ext <<_ACEOF 5575 /* confdefs.h. */ 5576 _ACEOF 5577 cat confdefs.h >>conftest.$ac_ext 5578 cat >>conftest.$ac_ext <<_ACEOF 5579 /* end confdefs.h. */ 5580 #include <stdlib.h> 5581 #include <stdarg.h> 5582 #include <string.h> 5583 #include <float.h> 5584 5585 int 5586 main () 5587 { 5588 5589 ; 5590 return 0; 5591 } 5592 _ACEOF 5593 rm -f conftest.$ac_objext 5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5595 (eval $ac_compile) 2>conftest.er1 5596 ac_status=$? 5597 grep -v '^ *+' conftest.er1 >conftest.err 5598 rm -f conftest.er1 5599 cat conftest.err >&5 5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5601 (exit $ac_status); } && 5602 { ac_try='test -z "$ac_c_werror_flag" 5603 || test ! -s conftest.err' 5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5605 (eval $ac_try) 2>&5 5606 ac_status=$? 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); }; } && 5609 { ac_try='test -s conftest.$ac_objext' 5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5611 (eval $ac_try) 2>&5 5612 ac_status=$? 5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5614 (exit $ac_status); }; }; then 5615 ac_cv_header_stdc=yes 5616 else 5617 echo "$as_me: failed program was:" >&5 5618 sed 's/^/| /' conftest.$ac_ext >&5 5619 5620 ac_cv_header_stdc=no 5621 fi 5622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5623 5624 if test $ac_cv_header_stdc = yes; then 5625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5626 cat >conftest.$ac_ext <<_ACEOF 5627 /* confdefs.h. */ 5628 _ACEOF 5629 cat confdefs.h >>conftest.$ac_ext 5630 cat >>conftest.$ac_ext <<_ACEOF 5631 /* end confdefs.h. */ 5632 #include <string.h> 5633 5634 _ACEOF 5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5636 $EGREP "memchr" >/dev/null 2>&1; then 5637 : 5638 else 5639 ac_cv_header_stdc=no 5640 fi 5641 rm -f conftest* 5642 5643 fi 5644 5645 if test $ac_cv_header_stdc = yes; then 5646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5647 cat >conftest.$ac_ext <<_ACEOF 5648 /* confdefs.h. */ 5649 _ACEOF 5650 cat confdefs.h >>conftest.$ac_ext 5651 cat >>conftest.$ac_ext <<_ACEOF 5652 /* end confdefs.h. */ 5653 #include <stdlib.h> 5654 5655 _ACEOF 5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5657 $EGREP "free" >/dev/null 2>&1; then 5658 : 5659 else 5660 ac_cv_header_stdc=no 5661 fi 5662 rm -f conftest* 5663 5664 fi 5665 5666 if test $ac_cv_header_stdc = yes; then 5667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5668 if test "$cross_compiling" = yes; then 5669 : 5670 else 5671 cat >conftest.$ac_ext <<_ACEOF 5672 /* confdefs.h. */ 5673 _ACEOF 5674 cat confdefs.h >>conftest.$ac_ext 5675 cat >>conftest.$ac_ext <<_ACEOF 5676 /* end confdefs.h. */ 5677 #include <ctype.h> 5678 #if ((' ' & 0x0FF) == 0x020) 5679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5681 #else 5682 # define ISLOWER(c) \ 5683 (('a' <= (c) && (c) <= 'i') \ 5684 || ('j' <= (c) && (c) <= 'r') \ 5685 || ('s' <= (c) && (c) <= 'z')) 5686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5687 #endif 5688 5689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5690 int 5691 main () 5692 { 5693 int i; 5694 for (i = 0; i < 256; i++) 5695 if (XOR (islower (i), ISLOWER (i)) 5696 || toupper (i) != TOUPPER (i)) 5697 exit(2); 5698 exit (0); 5699 } 5700 _ACEOF 5701 rm -f conftest$ac_exeext 5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5703 (eval $ac_link) 2>&5 5704 ac_status=$? 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5708 (eval $ac_try) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); }; }; then 5712 : 5713 else 5714 echo "$as_me: program exited with status $ac_status" >&5 5715 echo "$as_me: failed program was:" >&5 5716 sed 's/^/| /' conftest.$ac_ext >&5 5717 5718 ( exit $ac_status ) 5719 ac_cv_header_stdc=no 5720 fi 5721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5722 fi 5723 fi 5724 fi 5725 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5726 echo "${ECHO_T}$ac_cv_header_stdc" >&6 5727 if test $ac_cv_header_stdc = yes; then 5728 5729 cat >>confdefs.h <<\_ACEOF 5730 #define STDC_HEADERS 1 5731 _ACEOF 5732 5733 fi 5734 5735 5736 5737 for ac_header in stdlib.h string.h 5342 fi 5343 5344 # checking for SDL-headers 5345 5346 for ac_header in SDL/SDL.h 5738 5347 do 5739 5348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5880 5489 _ACEOF 5881 5490 5491 else 5492 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5493 echo "$as_me: error: cannot find SDL headers" >&2;} 5494 { (exit 1); exit 1; }; } 5882 5495 fi 5883 5496 … … 5885 5498 5886 5499 5887 # Checks for typedefs, structures, and compiler characteristics.5888 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&55889 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&65890 if test "${ac_cv_ header_stdbool_h+set}" = set; then5500 # checking for SDL-lib 5501 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5502 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5503 if test "${ac_cv_lib_SDL_main+set}" = set; then 5891 5504 echo $ECHO_N "(cached) $ECHO_C" >&6 5892 5505 else 5893 cat >conftest.$ac_ext <<_ACEOF 5506 ac_check_lib_save_LIBS=$LIBS 5507 LIBS="-lSDL $LIBS" 5508 cat >conftest.$ac_ext <<_ACEOF 5894 5509 /* confdefs.h. */ 5895 5510 _ACEOF … … 5898 5513 /* end confdefs.h. */ 5899 5514 5900 #include <stdbool.h>5901 #ifndef bool5902 # error bool is not defined5903 #endif5904 #ifndef false5905 # error false is not defined5906 #endif5907 #if false5908 # error false is not 05909 #endif5910 #ifndef true5911 # error true is not defined5912 #endif5913 #if true != 15914 # error true is not 15915 #endif5916 #ifndef __bool_true_false_are_defined5917 # error __bool_true_false_are_defined is not defined5918 #endif5919 5920 struct s { _Bool s: 1; _Bool t; } s;5921 5922 char a[true == 1 ? 1 : -1];5923 char b[false == 0 ? 1 : -1];5924 char c[__bool_true_false_are_defined == 1 ? 1 : -1];5925 char d[(bool) -0.5 == true ? 1 : -1];5926 bool e = &s;5927 char f[(_Bool) -0.0 == false ? 1 : -1];5928 char g[true];5929 char h[sizeof (_Bool)];5930 char i[sizeof s.t];5931 5515 5932 5516 int 5933 5517 main () 5934 5518 { 5935 return !a + !b + !c + !d + !e + !f + !g + !h + !i;5519 main (); 5936 5520 ; 5937 5521 return 0; 5938 5522 } 5939 5523 _ACEOF 5940 rm -f conftest.$ac_objext 5941 if { (eval echo "$as_me:$LINENO: \"$ac_ compile\"") >&55942 (eval $ac_ compile) 2>conftest.er15524 rm -f conftest.$ac_objext conftest$ac_exeext 5525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5526 (eval $ac_link) 2>conftest.er1 5943 5527 ac_status=$? 5944 5528 grep -v '^ *+' conftest.er1 >conftest.err … … 5954 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5955 5539 (exit $ac_status); }; } && 5956 { ac_try='test -s conftest .$ac_objext'5540 { ac_try='test -s conftest$ac_exeext' 5957 5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5958 5542 (eval $ac_try) 2>&5 … … 5960 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5961 5545 (exit $ac_status); }; }; then 5962 ac_cv_ header_stdbool_h=yes5546 ac_cv_lib_SDL_main=yes 5963 5547 else 5964 5548 echo "$as_me: failed program was:" >&5 5965 5549 sed 's/^/| /' conftest.$ac_ext >&5 5966 5550 5967 ac_cv_header_stdbool_h=no 5968 fi 5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5970 fi 5971 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 5972 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 5973 echo "$as_me:$LINENO: checking for _Bool" >&5 5974 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 5975 if test "${ac_cv_type__Bool+set}" = set; then 5976 echo $ECHO_N "(cached) $ECHO_C" >&6 5977 else 5978 cat >conftest.$ac_ext <<_ACEOF 5979 /* confdefs.h. */ 5980 _ACEOF 5981 cat confdefs.h >>conftest.$ac_ext 5982 cat >>conftest.$ac_ext <<_ACEOF 5983 /* end confdefs.h. */ 5984 $ac_includes_default 5985 int 5986 main () 5987 { 5988 if ((_Bool *) 0) 5989 return 0; 5990 if (sizeof (_Bool)) 5991 return 0; 5992 ; 5993 return 0; 5994 } 5995 _ACEOF 5996 rm -f conftest.$ac_objext 5997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5998 (eval $ac_compile) 2>conftest.er1 5999 ac_status=$? 6000 grep -v '^ *+' conftest.er1 >conftest.err 6001 rm -f conftest.er1 6002 cat conftest.err >&5 6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6004 (exit $ac_status); } && 6005 { ac_try='test -z "$ac_c_werror_flag" 6006 || test ! -s conftest.err' 6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6008 (eval $ac_try) 2>&5 6009 ac_status=$? 6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6011 (exit $ac_status); }; } && 6012 { ac_try='test -s conftest.$ac_objext' 6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6014 (eval $ac_try) 2>&5 6015 ac_status=$? 6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6017 (exit $ac_status); }; }; then 6018 ac_cv_type__Bool=yes 6019 else 6020 echo "$as_me: failed program was:" >&5 6021 sed 's/^/| /' conftest.$ac_ext >&5 6022 6023 ac_cv_type__Bool=no 6024 fi 6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6026 fi 6027 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 6028 echo "${ECHO_T}$ac_cv_type__Bool" >&6 6029 if test $ac_cv_type__Bool = yes; then 6030 6031 cat >>confdefs.h <<_ACEOF 6032 #define HAVE__BOOL 1 6033 _ACEOF 6034 6035 6036 fi 6037 6038 if test $ac_cv_header_stdbool_h = yes; then 6039 6040 cat >>confdefs.h <<\_ACEOF 6041 #define HAVE_STDBOOL_H 1 6042 _ACEOF 6043 6044 fi 6045 6046 6047 # Checks for library functions. 6048 6049 for ac_header in stdlib.h 5551 ac_cv_lib_SDL_main=no 5552 fi 5553 rm -f conftest.err conftest.$ac_objext \ 5554 conftest$ac_exeext conftest.$ac_ext 5555 LIBS=$ac_check_lib_save_LIBS 5556 fi 5557 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5558 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5559 if test $ac_cv_lib_SDL_main = yes; then 5560 FOUND_SDL=yes 5561 fi 5562 5563 if test "$FOUND_SDL" = "yes" ; then 5564 LIBS="$LIBS -lSDL" 5565 else 5566 echo "------------------" 5567 echo "SDL library not found." 5568 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5569 echo "------------------" 5570 exit -1 5571 fi 5572 5573 5574 ## checking for SDL 5575 # SDL_VERSION=1.2.7 5576 # AM_PATH_SDL($SDL_VERSION, 5577 # :, 5578 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 5579 # ) 5580 # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5581 # LIBS="$LIBS $SDL_LIBS" 5582 ;; 5583 5584 ### OS X ### 5585 *darwin*) 5586 echo "OS X detected" 5587 5588 osX="yes" 5589 5590 CPPFLAGS="-I/sw/include $CPPFLAGS" 5591 # checking gl header 5592 5593 for ac_header in OpenGL/gl.h 6050 5594 do 6051 5595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6192 5736 _ACEOF 6193 5737 5738 else 5739 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5740 echo "$as_me: error: cannot find opengl headers" >&2;} 5741 { (exit 1); exit 1; }; } 5742 fi 5743 5744 done 5745 5746 # cheking for GLU-header 5747 5748 for ac_header in OpenGL/glu.h 5749 do 5750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5752 echo "$as_me:$LINENO: checking for $ac_header" >&5 5753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5755 echo $ECHO_N "(cached) $ECHO_C" >&6 5756 fi 5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5759 else 5760 # Is the header compilable? 5761 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5763 cat >conftest.$ac_ext <<_ACEOF 5764 /* confdefs.h. */ 5765 _ACEOF 5766 cat confdefs.h >>conftest.$ac_ext 5767 cat >>conftest.$ac_ext <<_ACEOF 5768 /* end confdefs.h. */ 5769 $ac_includes_default 5770 #include <$ac_header> 5771 _ACEOF 5772 rm -f conftest.$ac_objext 5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5774 (eval $ac_compile) 2>conftest.er1 5775 ac_status=$? 5776 grep -v '^ *+' conftest.er1 >conftest.err 5777 rm -f conftest.er1 5778 cat conftest.err >&5 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); } && 5781 { ac_try='test -z "$ac_c_werror_flag" 5782 || test ! -s conftest.err' 5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5784 (eval $ac_try) 2>&5 5785 ac_status=$? 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5787 (exit $ac_status); }; } && 5788 { ac_try='test -s conftest.$ac_objext' 5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5790 (eval $ac_try) 2>&5 5791 ac_status=$? 5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5793 (exit $ac_status); }; }; then 5794 ac_header_compiler=yes 5795 else 5796 echo "$as_me: failed program was:" >&5 5797 sed 's/^/| /' conftest.$ac_ext >&5 5798 5799 ac_header_compiler=no 5800 fi 5801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5803 echo "${ECHO_T}$ac_header_compiler" >&6 5804 5805 # Is the header present? 5806 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5808 cat >conftest.$ac_ext <<_ACEOF 5809 /* confdefs.h. */ 5810 _ACEOF 5811 cat confdefs.h >>conftest.$ac_ext 5812 cat >>conftest.$ac_ext <<_ACEOF 5813 /* end confdefs.h. */ 5814 #include <$ac_header> 5815 _ACEOF 5816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5818 ac_status=$? 5819 grep -v '^ *+' conftest.er1 >conftest.err 5820 rm -f conftest.er1 5821 cat conftest.err >&5 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); } >/dev/null; then 5824 if test -s conftest.err; then 5825 ac_cpp_err=$ac_c_preproc_warn_flag 5826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5827 else 5828 ac_cpp_err= 5829 fi 5830 else 5831 ac_cpp_err=yes 5832 fi 5833 if test -z "$ac_cpp_err"; then 5834 ac_header_preproc=yes 5835 else 5836 echo "$as_me: failed program was:" >&5 5837 sed 's/^/| /' conftest.$ac_ext >&5 5838 5839 ac_header_preproc=no 5840 fi 5841 rm -f conftest.err conftest.$ac_ext 5842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5843 echo "${ECHO_T}$ac_header_preproc" >&6 5844 5845 # So? What about this header? 5846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5847 yes:no: ) 5848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5852 ac_header_preproc=yes 5853 ;; 5854 no:yes:* ) 5855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5867 ( 5868 cat <<\_ASBOX 5869 ## ------------------------------------------- ## 5870 ## Report this to orxonox-dev@mail.datacore.ch ## 5871 ## ------------------------------------------- ## 5872 _ASBOX 5873 ) | 5874 sed "s/^/$as_me: WARNING: /" >&2 5875 ;; 5876 esac 5877 echo "$as_me:$LINENO: checking for $ac_header" >&5 5878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5879 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5880 echo $ECHO_N "(cached) $ECHO_C" >&6 5881 else 5882 eval "$as_ac_Header=\$ac_header_preproc" 5883 fi 5884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5886 5887 fi 5888 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5889 cat >>confdefs.h <<_ACEOF 5890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5891 _ACEOF 5892 5893 else 5894 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5895 echo "$as_me: error: cannot find opengl headers" >&2;} 5896 { (exit 1); exit 1; }; } 5897 fi 5898 5899 done 5900 5901 5902 LIBS="$LIBS -framework OpenGL" 5903 5904 # checking for SDL-headers 5905 # AC_CHECK_HEADERS(SDL/SDL.h ,, 5906 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 5907 5908 ## checking for SDL 5909 # SDL_VERSION=1.2.7 5910 # AM_PATH_SDL($SDL_VERSION, 5911 # :, 5912 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 5913 # ) 5914 5915 SDL_CFLAGS=`sdl-config --cflags` 5916 SDL_LIBS=`sdl-config --libs` 5917 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5918 LIBS="$LIBS $SDL_LIBS" 5919 5920 ;; 5921 5922 *) 5923 ;; 5924 esac 5925 5926 5927 5928 ## check for SDL_Image 5929 if test "$def_sdl_image" = "yes"; then 5930 # checking for SDL_image-headers 5931 5932 for ac_header in SDL/SDL_image.h 5933 do 5934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5935 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5936 echo "$as_me:$LINENO: checking for $ac_header" >&5 5937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5938 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5939 echo $ECHO_N "(cached) $ECHO_C" >&6 5940 fi 5941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5943 else 5944 # Is the header compilable? 5945 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5947 cat >conftest.$ac_ext <<_ACEOF 5948 /* confdefs.h. */ 5949 _ACEOF 5950 cat confdefs.h >>conftest.$ac_ext 5951 cat >>conftest.$ac_ext <<_ACEOF 5952 /* end confdefs.h. */ 5953 $ac_includes_default 5954 #include <$ac_header> 5955 _ACEOF 5956 rm -f conftest.$ac_objext 5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5958 (eval $ac_compile) 2>conftest.er1 5959 ac_status=$? 5960 grep -v '^ *+' conftest.er1 >conftest.err 5961 rm -f conftest.er1 5962 cat conftest.err >&5 5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5964 (exit $ac_status); } && 5965 { ac_try='test -z "$ac_c_werror_flag" 5966 || test ! -s conftest.err' 5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5968 (eval $ac_try) 2>&5 5969 ac_status=$? 5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971 (exit $ac_status); }; } && 5972 { ac_try='test -s conftest.$ac_objext' 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5974 (eval $ac_try) 2>&5 5975 ac_status=$? 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); }; }; then 5978 ac_header_compiler=yes 5979 else 5980 echo "$as_me: failed program was:" >&5 5981 sed 's/^/| /' conftest.$ac_ext >&5 5982 5983 ac_header_compiler=no 5984 fi 5985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5987 echo "${ECHO_T}$ac_header_compiler" >&6 5988 5989 # Is the header present? 5990 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5992 cat >conftest.$ac_ext <<_ACEOF 5993 /* confdefs.h. */ 5994 _ACEOF 5995 cat confdefs.h >>conftest.$ac_ext 5996 cat >>conftest.$ac_ext <<_ACEOF 5997 /* end confdefs.h. */ 5998 #include <$ac_header> 5999 _ACEOF 6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6002 ac_status=$? 6003 grep -v '^ *+' conftest.er1 >conftest.err 6004 rm -f conftest.er1 6005 cat conftest.err >&5 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); } >/dev/null; then 6008 if test -s conftest.err; then 6009 ac_cpp_err=$ac_c_preproc_warn_flag 6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6011 else 6012 ac_cpp_err= 6013 fi 6014 else 6015 ac_cpp_err=yes 6016 fi 6017 if test -z "$ac_cpp_err"; then 6018 ac_header_preproc=yes 6019 else 6020 echo "$as_me: failed program was:" >&5 6021 sed 's/^/| /' conftest.$ac_ext >&5 6022 6023 ac_header_preproc=no 6024 fi 6025 rm -f conftest.err conftest.$ac_ext 6026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6027 echo "${ECHO_T}$ac_header_preproc" >&6 6028 6029 # So? What about this header? 6030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6031 yes:no: ) 6032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6036 ac_header_preproc=yes 6037 ;; 6038 no:yes:* ) 6039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6051 ( 6052 cat <<\_ASBOX 6053 ## ------------------------------------------- ## 6054 ## Report this to orxonox-dev@mail.datacore.ch ## 6055 ## ------------------------------------------- ## 6056 _ASBOX 6057 ) | 6058 sed "s/^/$as_me: WARNING: /" >&2 6059 ;; 6060 esac 6061 echo "$as_me:$LINENO: checking for $ac_header" >&5 6062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6063 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6064 echo $ECHO_N "(cached) $ECHO_C" >&6 6065 else 6066 eval "$as_ac_Header=\$ac_header_preproc" 6067 fi 6068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6070 6071 fi 6072 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6073 cat >>confdefs.h <<_ACEOF 6074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6075 _ACEOF 6076 6077 else 6078 echo "sdl_image not found. falling back to other options"; def_sdl_image=no 6079 fi 6080 6081 done 6082 6083 fi 6084 if test "$def_sdl_image" = "yes"; then 6085 # checking for SDL_image-lib 6086 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 6087 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 6088 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 6089 echo $ECHO_N "(cached) $ECHO_C" >&6 6090 else 6091 ac_check_lib_save_LIBS=$LIBS 6092 LIBS="-lSDL_image $LIBS" 6093 cat >conftest.$ac_ext <<_ACEOF 6094 /* confdefs.h. */ 6095 _ACEOF 6096 cat confdefs.h >>conftest.$ac_ext 6097 cat >>conftest.$ac_ext <<_ACEOF 6098 /* end confdefs.h. */ 6099 6100 6101 int 6102 main () 6103 { 6104 main (); 6105 ; 6106 return 0; 6107 } 6108 _ACEOF 6109 rm -f conftest.$ac_objext conftest$ac_exeext 6110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6111 (eval $ac_link) 2>conftest.er1 6112 ac_status=$? 6113 grep -v '^ *+' conftest.er1 >conftest.err 6114 rm -f conftest.er1 6115 cat conftest.err >&5 6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6117 (exit $ac_status); } && 6118 { ac_try='test -z "$ac_c_werror_flag" 6119 || test ! -s conftest.err' 6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6121 (eval $ac_try) 2>&5 6122 ac_status=$? 6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6124 (exit $ac_status); }; } && 6125 { ac_try='test -s conftest$ac_exeext' 6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6127 (eval $ac_try) 2>&5 6128 ac_status=$? 6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6130 (exit $ac_status); }; }; then 6131 ac_cv_lib_SDL_image_main=yes 6132 else 6133 echo "$as_me: failed program was:" >&5 6134 sed 's/^/| /' conftest.$ac_ext >&5 6135 6136 ac_cv_lib_SDL_image_main=no 6137 fi 6138 rm -f conftest.err conftest.$ac_objext \ 6139 conftest$ac_exeext conftest.$ac_ext 6140 LIBS=$ac_check_lib_save_LIBS 6141 fi 6142 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 6143 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 6144 if test $ac_cv_lib_SDL_image_main = yes; then 6145 FOUND_SDL_image=yes 6146 fi 6147 6148 if test "$FOUND_SDL_image" = "yes" ; then 6149 LIBS="$LIBS -lSDL_image" 6150 else 6151 echo "------------------" 6152 echo "SDL_image library not found." 6153 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 6154 echo "------------------" 6155 exit -1 6156 fi 6157 fi 6158 6159 6160 if test "$def_sdl_image" = "no"; then 6161 ## checking for libjpeg 6162 6163 for ac_header in jpeglib.h 6164 do 6165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6166 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6167 echo "$as_me:$LINENO: checking for $ac_header" >&5 6168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6169 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6170 echo $ECHO_N "(cached) $ECHO_C" >&6 6171 fi 6172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6174 else 6175 # Is the header compilable? 6176 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6178 cat >conftest.$ac_ext <<_ACEOF 6179 /* confdefs.h. */ 6180 _ACEOF 6181 cat confdefs.h >>conftest.$ac_ext 6182 cat >>conftest.$ac_ext <<_ACEOF 6183 /* end confdefs.h. */ 6184 $ac_includes_default 6185 #include <$ac_header> 6186 _ACEOF 6187 rm -f conftest.$ac_objext 6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6189 (eval $ac_compile) 2>conftest.er1 6190 ac_status=$? 6191 grep -v '^ *+' conftest.er1 >conftest.err 6192 rm -f conftest.er1 6193 cat conftest.err >&5 6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6195 (exit $ac_status); } && 6196 { ac_try='test -z "$ac_c_werror_flag" 6197 || test ! -s conftest.err' 6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6199 (eval $ac_try) 2>&5 6200 ac_status=$? 6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6202 (exit $ac_status); }; } && 6203 { ac_try='test -s conftest.$ac_objext' 6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6205 (eval $ac_try) 2>&5 6206 ac_status=$? 6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6208 (exit $ac_status); }; }; then 6209 ac_header_compiler=yes 6210 else 6211 echo "$as_me: failed program was:" >&5 6212 sed 's/^/| /' conftest.$ac_ext >&5 6213 6214 ac_header_compiler=no 6215 fi 6216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6218 echo "${ECHO_T}$ac_header_compiler" >&6 6219 6220 # Is the header present? 6221 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6223 cat >conftest.$ac_ext <<_ACEOF 6224 /* confdefs.h. */ 6225 _ACEOF 6226 cat confdefs.h >>conftest.$ac_ext 6227 cat >>conftest.$ac_ext <<_ACEOF 6228 /* end confdefs.h. */ 6229 #include <$ac_header> 6230 _ACEOF 6231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6233 ac_status=$? 6234 grep -v '^ *+' conftest.er1 >conftest.err 6235 rm -f conftest.er1 6236 cat conftest.err >&5 6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6238 (exit $ac_status); } >/dev/null; then 6239 if test -s conftest.err; then 6240 ac_cpp_err=$ac_c_preproc_warn_flag 6241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6242 else 6243 ac_cpp_err= 6244 fi 6245 else 6246 ac_cpp_err=yes 6247 fi 6248 if test -z "$ac_cpp_err"; then 6249 ac_header_preproc=yes 6250 else 6251 echo "$as_me: failed program was:" >&5 6252 sed 's/^/| /' conftest.$ac_ext >&5 6253 6254 ac_header_preproc=no 6255 fi 6256 rm -f conftest.err conftest.$ac_ext 6257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6258 echo "${ECHO_T}$ac_header_preproc" >&6 6259 6260 # So? What about this header? 6261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6262 yes:no: ) 6263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6267 ac_header_preproc=yes 6268 ;; 6269 no:yes:* ) 6270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6282 ( 6283 cat <<\_ASBOX 6284 ## ------------------------------------------- ## 6285 ## Report this to orxonox-dev@mail.datacore.ch ## 6286 ## ------------------------------------------- ## 6287 _ASBOX 6288 ) | 6289 sed "s/^/$as_me: WARNING: /" >&2 6290 ;; 6291 esac 6292 echo "$as_me:$LINENO: checking for $ac_header" >&5 6293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6294 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6295 echo $ECHO_N "(cached) $ECHO_C" >&6 6296 else 6297 eval "$as_ac_Header=\$ac_header_preproc" 6298 fi 6299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6301 6302 fi 6303 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6304 cat >>confdefs.h <<_ACEOF 6305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6306 _ACEOF 6307 jpegHeader="yes" 6308 else 6309 jpegHeader="no" 6310 fi 6311 6312 done 6313 6314 if test $jpegHeader = "no"; then 6315 echo " not including jpeg." 6316 else 6317 echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 6318 echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 6319 if test "${ac_cv_lib_jpeg_main+set}" = set; then 6320 echo $ECHO_N "(cached) $ECHO_C" >&6 6321 else 6322 ac_check_lib_save_LIBS=$LIBS 6323 LIBS="-ljpeg $LIBS" 6324 cat >conftest.$ac_ext <<_ACEOF 6325 /* confdefs.h. */ 6326 _ACEOF 6327 cat confdefs.h >>conftest.$ac_ext 6328 cat >>conftest.$ac_ext <<_ACEOF 6329 /* end confdefs.h. */ 6330 6331 6332 int 6333 main () 6334 { 6335 main (); 6336 ; 6337 return 0; 6338 } 6339 _ACEOF 6340 rm -f conftest.$ac_objext conftest$ac_exeext 6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6342 (eval $ac_link) 2>conftest.er1 6343 ac_status=$? 6344 grep -v '^ *+' conftest.er1 >conftest.err 6345 rm -f conftest.er1 6346 cat conftest.err >&5 6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6348 (exit $ac_status); } && 6349 { ac_try='test -z "$ac_c_werror_flag" 6350 || test ! -s conftest.err' 6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6352 (eval $ac_try) 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; } && 6356 { ac_try='test -s conftest$ac_exeext' 6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6358 (eval $ac_try) 2>&5 6359 ac_status=$? 6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6361 (exit $ac_status); }; }; then 6362 ac_cv_lib_jpeg_main=yes 6363 else 6364 echo "$as_me: failed program was:" >&5 6365 sed 's/^/| /' conftest.$ac_ext >&5 6366 6367 ac_cv_lib_jpeg_main=no 6368 fi 6369 rm -f conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371 LIBS=$ac_check_lib_save_LIBS 6372 fi 6373 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 6374 echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 6375 if test $ac_cv_lib_jpeg_main = yes; then 6376 FOUND_jpeg=yes 6377 fi 6378 6379 if test "$FOUND_jpeg" = "yes" ; then 6380 LIBS="$LIBS -ljpeg" 6381 else 6382 echo "------------------" 6383 echo "jpeg library not found." 6384 echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" 6385 echo "------------------" 6386 exit -1 6387 fi 6388 fi 6389 6390 ## checking for libpng 6391 6392 for ac_header in png.h 6393 do 6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6396 echo "$as_me:$LINENO: checking for $ac_header" >&5 6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6399 echo $ECHO_N "(cached) $ECHO_C" >&6 6400 fi 6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6403 else 6404 # Is the header compilable? 6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6407 cat >conftest.$ac_ext <<_ACEOF 6408 /* confdefs.h. */ 6409 _ACEOF 6410 cat confdefs.h >>conftest.$ac_ext 6411 cat >>conftest.$ac_ext <<_ACEOF 6412 /* end confdefs.h. */ 6413 $ac_includes_default 6414 #include <$ac_header> 6415 _ACEOF 6416 rm -f conftest.$ac_objext 6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6418 (eval $ac_compile) 2>conftest.er1 6419 ac_status=$? 6420 grep -v '^ *+' conftest.er1 >conftest.err 6421 rm -f conftest.er1 6422 cat conftest.err >&5 6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6424 (exit $ac_status); } && 6425 { ac_try='test -z "$ac_c_werror_flag" 6426 || test ! -s conftest.err' 6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6428 (eval $ac_try) 2>&5 6429 ac_status=$? 6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6431 (exit $ac_status); }; } && 6432 { ac_try='test -s conftest.$ac_objext' 6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6434 (eval $ac_try) 2>&5 6435 ac_status=$? 6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6437 (exit $ac_status); }; }; then 6438 ac_header_compiler=yes 6439 else 6440 echo "$as_me: failed program was:" >&5 6441 sed 's/^/| /' conftest.$ac_ext >&5 6442 6443 ac_header_compiler=no 6444 fi 6445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6447 echo "${ECHO_T}$ac_header_compiler" >&6 6448 6449 # Is the header present? 6450 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6452 cat >conftest.$ac_ext <<_ACEOF 6453 /* confdefs.h. */ 6454 _ACEOF 6455 cat confdefs.h >>conftest.$ac_ext 6456 cat >>conftest.$ac_ext <<_ACEOF 6457 /* end confdefs.h. */ 6458 #include <$ac_header> 6459 _ACEOF 6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6462 ac_status=$? 6463 grep -v '^ *+' conftest.er1 >conftest.err 6464 rm -f conftest.er1 6465 cat conftest.err >&5 6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6467 (exit $ac_status); } >/dev/null; then 6468 if test -s conftest.err; then 6469 ac_cpp_err=$ac_c_preproc_warn_flag 6470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6471 else 6472 ac_cpp_err= 6473 fi 6474 else 6475 ac_cpp_err=yes 6476 fi 6477 if test -z "$ac_cpp_err"; then 6478 ac_header_preproc=yes 6479 else 6480 echo "$as_me: failed program was:" >&5 6481 sed 's/^/| /' conftest.$ac_ext >&5 6482 6483 ac_header_preproc=no 6484 fi 6485 rm -f conftest.err conftest.$ac_ext 6486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6487 echo "${ECHO_T}$ac_header_preproc" >&6 6488 6489 # So? What about this header? 6490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6491 yes:no: ) 6492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6496 ac_header_preproc=yes 6497 ;; 6498 no:yes:* ) 6499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6511 ( 6512 cat <<\_ASBOX 6513 ## ------------------------------------------- ## 6514 ## Report this to orxonox-dev@mail.datacore.ch ## 6515 ## ------------------------------------------- ## 6516 _ASBOX 6517 ) | 6518 sed "s/^/$as_me: WARNING: /" >&2 6519 ;; 6520 esac 6521 echo "$as_me:$LINENO: checking for $ac_header" >&5 6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6524 echo $ECHO_N "(cached) $ECHO_C" >&6 6525 else 6526 eval "$as_ac_Header=\$ac_header_preproc" 6527 fi 6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6530 6531 fi 6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6533 cat >>confdefs.h <<_ACEOF 6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6535 _ACEOF 6536 pngHeader="yes" 6537 else 6538 pngHeader="no" 6539 fi 6540 6541 done 6542 6543 if test $pngHeader = "no"; then 6544 echo " not including png." 6545 else 6546 echo "$as_me:$LINENO: checking for main in -lpng" >&5 6547 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 6548 if test "${ac_cv_lib_png_main+set}" = set; then 6549 echo $ECHO_N "(cached) $ECHO_C" >&6 6550 else 6551 ac_check_lib_save_LIBS=$LIBS 6552 LIBS="-lpng $LIBS" 6553 cat >conftest.$ac_ext <<_ACEOF 6554 /* confdefs.h. */ 6555 _ACEOF 6556 cat confdefs.h >>conftest.$ac_ext 6557 cat >>conftest.$ac_ext <<_ACEOF 6558 /* end confdefs.h. */ 6559 6560 6561 int 6562 main () 6563 { 6564 main (); 6565 ; 6566 return 0; 6567 } 6568 _ACEOF 6569 rm -f conftest.$ac_objext conftest$ac_exeext 6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6571 (eval $ac_link) 2>conftest.er1 6572 ac_status=$? 6573 grep -v '^ *+' conftest.er1 >conftest.err 6574 rm -f conftest.er1 6575 cat conftest.err >&5 6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6577 (exit $ac_status); } && 6578 { ac_try='test -z "$ac_c_werror_flag" 6579 || test ! -s conftest.err' 6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6581 (eval $ac_try) 2>&5 6582 ac_status=$? 6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6584 (exit $ac_status); }; } && 6585 { ac_try='test -s conftest$ac_exeext' 6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6587 (eval $ac_try) 2>&5 6588 ac_status=$? 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6590 (exit $ac_status); }; }; then 6591 ac_cv_lib_png_main=yes 6592 else 6593 echo "$as_me: failed program was:" >&5 6594 sed 's/^/| /' conftest.$ac_ext >&5 6595 6596 ac_cv_lib_png_main=no 6597 fi 6598 rm -f conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600 LIBS=$ac_check_lib_save_LIBS 6601 fi 6602 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 6603 echo "${ECHO_T}$ac_cv_lib_png_main" >&6 6604 if test $ac_cv_lib_png_main = yes; then 6605 FOUND_png=yes 6606 fi 6607 6608 if test "$FOUND_png" = "yes" ; then 6609 LIBS="$LIBS -lpng" 6610 else 6611 echo "------------------" 6612 echo "png library not found." 6613 echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" 6614 echo "------------------" 6615 exit -1 6616 fi 6617 fi 6618 fi 6619 6620 ## checking for GTK 6621 if test "$def_gtk" = yes; then 6622 6623 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 6624 echo "$as_me:$LINENO: checking for gtk2.0" >&5 6625 echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 6626 if `pkg-config --exists gtk+-2.0`; then 6627 echo "yes" 6628 have_gtk2=yes 6629 GTK2_LIBS=`pkg-config --libs gtk+-2.0` 6630 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` 6631 6632 cat >>confdefs.h <<_ACEOF 6633 #define HAVE_GTK2 1 6634 _ACEOF 6635 6636 else 6637 echo "no" 6638 fi 6639 6640 fi 6641 6642 6643 6644 6645 if test x$have_gtk2 = xyes; then 6646 HAVE_GTK2_TRUE= 6647 HAVE_GTK2_FALSE='#' 6648 else 6649 HAVE_GTK2_TRUE='#' 6650 HAVE_GTK2_FALSE= 6651 fi 6652 6653 6654 6655 6656 #checking for pthread libs 6657 # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes) 6658 # if test "$FOUND_pthread" = "yes" ; then 6659 # LIBS="$LIBS -lpthread" 6660 # fi 6661 6662 6663 # FIXME: Replace `main' with a function in `-lm': 6664 6665 echo "$as_me:$LINENO: checking for main in -lm" >&5 6666 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 6667 if test "${ac_cv_lib_m_main+set}" = set; then 6668 echo $ECHO_N "(cached) $ECHO_C" >&6 6669 else 6670 ac_check_lib_save_LIBS=$LIBS 6671 LIBS="-lm $LIBS" 6672 cat >conftest.$ac_ext <<_ACEOF 6673 /* confdefs.h. */ 6674 _ACEOF 6675 cat confdefs.h >>conftest.$ac_ext 6676 cat >>conftest.$ac_ext <<_ACEOF 6677 /* end confdefs.h. */ 6678 6679 6680 int 6681 main () 6682 { 6683 main (); 6684 ; 6685 return 0; 6686 } 6687 _ACEOF 6688 rm -f conftest.$ac_objext conftest$ac_exeext 6689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6690 (eval $ac_link) 2>conftest.er1 6691 ac_status=$? 6692 grep -v '^ *+' conftest.er1 >conftest.err 6693 rm -f conftest.er1 6694 cat conftest.err >&5 6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6696 (exit $ac_status); } && 6697 { ac_try='test -z "$ac_c_werror_flag" 6698 || test ! -s conftest.err' 6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6700 (eval $ac_try) 2>&5 6701 ac_status=$? 6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6703 (exit $ac_status); }; } && 6704 { ac_try='test -s conftest$ac_exeext' 6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6706 (eval $ac_try) 2>&5 6707 ac_status=$? 6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6709 (exit $ac_status); }; }; then 6710 ac_cv_lib_m_main=yes 6711 else 6712 echo "$as_me: failed program was:" >&5 6713 sed 's/^/| /' conftest.$ac_ext >&5 6714 6715 ac_cv_lib_m_main=no 6716 fi 6717 rm -f conftest.err conftest.$ac_objext \ 6718 conftest$ac_exeext conftest.$ac_ext 6719 LIBS=$ac_check_lib_save_LIBS 6720 fi 6721 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 6722 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 6723 if test $ac_cv_lib_m_main = yes; then 6724 cat >>confdefs.h <<_ACEOF 6725 #define HAVE_LIBM 1 6726 _ACEOF 6727 6728 LIBS="-lm $LIBS" 6729 6730 fi 6731 6732 6733 6734 # Checks for header files. 6735 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6737 if test "${ac_cv_header_stdc+set}" = set; then 6738 echo $ECHO_N "(cached) $ECHO_C" >&6 6739 else 6740 cat >conftest.$ac_ext <<_ACEOF 6741 /* confdefs.h. */ 6742 _ACEOF 6743 cat confdefs.h >>conftest.$ac_ext 6744 cat >>conftest.$ac_ext <<_ACEOF 6745 /* end confdefs.h. */ 6746 #include <stdlib.h> 6747 #include <stdarg.h> 6748 #include <string.h> 6749 #include <float.h> 6750 6751 int 6752 main () 6753 { 6754 6755 ; 6756 return 0; 6757 } 6758 _ACEOF 6759 rm -f conftest.$ac_objext 6760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6761 (eval $ac_compile) 2>conftest.er1 6762 ac_status=$? 6763 grep -v '^ *+' conftest.er1 >conftest.err 6764 rm -f conftest.er1 6765 cat conftest.err >&5 6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6767 (exit $ac_status); } && 6768 { ac_try='test -z "$ac_c_werror_flag" 6769 || test ! -s conftest.err' 6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6771 (eval $ac_try) 2>&5 6772 ac_status=$? 6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 (exit $ac_status); }; } && 6775 { ac_try='test -s conftest.$ac_objext' 6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6777 (eval $ac_try) 2>&5 6778 ac_status=$? 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); }; }; then 6781 ac_cv_header_stdc=yes 6782 else 6783 echo "$as_me: failed program was:" >&5 6784 sed 's/^/| /' conftest.$ac_ext >&5 6785 6786 ac_cv_header_stdc=no 6787 fi 6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6789 6790 if test $ac_cv_header_stdc = yes; then 6791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6792 cat >conftest.$ac_ext <<_ACEOF 6793 /* confdefs.h. */ 6794 _ACEOF 6795 cat confdefs.h >>conftest.$ac_ext 6796 cat >>conftest.$ac_ext <<_ACEOF 6797 /* end confdefs.h. */ 6798 #include <string.h> 6799 6800 _ACEOF 6801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6802 $EGREP "memchr" >/dev/null 2>&1; then 6803 : 6804 else 6805 ac_cv_header_stdc=no 6806 fi 6807 rm -f conftest* 6808 6809 fi 6810 6811 if test $ac_cv_header_stdc = yes; then 6812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6813 cat >conftest.$ac_ext <<_ACEOF 6814 /* confdefs.h. */ 6815 _ACEOF 6816 cat confdefs.h >>conftest.$ac_ext 6817 cat >>conftest.$ac_ext <<_ACEOF 6818 /* end confdefs.h. */ 6819 #include <stdlib.h> 6820 6821 _ACEOF 6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6823 $EGREP "free" >/dev/null 2>&1; then 6824 : 6825 else 6826 ac_cv_header_stdc=no 6827 fi 6828 rm -f conftest* 6829 6830 fi 6831 6832 if test $ac_cv_header_stdc = yes; then 6833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6834 if test "$cross_compiling" = yes; then 6835 : 6836 else 6837 cat >conftest.$ac_ext <<_ACEOF 6838 /* confdefs.h. */ 6839 _ACEOF 6840 cat confdefs.h >>conftest.$ac_ext 6841 cat >>conftest.$ac_ext <<_ACEOF 6842 /* end confdefs.h. */ 6843 #include <ctype.h> 6844 #if ((' ' & 0x0FF) == 0x020) 6845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6847 #else 6848 # define ISLOWER(c) \ 6849 (('a' <= (c) && (c) <= 'i') \ 6850 || ('j' <= (c) && (c) <= 'r') \ 6851 || ('s' <= (c) && (c) <= 'z')) 6852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6853 #endif 6854 6855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6856 int 6857 main () 6858 { 6859 int i; 6860 for (i = 0; i < 256; i++) 6861 if (XOR (islower (i), ISLOWER (i)) 6862 || toupper (i) != TOUPPER (i)) 6863 exit(2); 6864 exit (0); 6865 } 6866 _ACEOF 6867 rm -f conftest$ac_exeext 6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6869 (eval $ac_link) 2>&5 6870 ac_status=$? 6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6874 (eval $ac_try) 2>&5 6875 ac_status=$? 6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6877 (exit $ac_status); }; }; then 6878 : 6879 else 6880 echo "$as_me: program exited with status $ac_status" >&5 6881 echo "$as_me: failed program was:" >&5 6882 sed 's/^/| /' conftest.$ac_ext >&5 6883 6884 ( exit $ac_status ) 6885 ac_cv_header_stdc=no 6886 fi 6887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6888 fi 6889 fi 6890 fi 6891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6892 echo "${ECHO_T}$ac_cv_header_stdc" >&6 6893 if test $ac_cv_header_stdc = yes; then 6894 6895 cat >>confdefs.h <<\_ACEOF 6896 #define STDC_HEADERS 1 6897 _ACEOF 6898 6899 fi 6900 6901 6902 6903 for ac_header in stdlib.h string.h 6904 do 6905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6906 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6907 echo "$as_me:$LINENO: checking for $ac_header" >&5 6908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6909 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6910 echo $ECHO_N "(cached) $ECHO_C" >&6 6911 fi 6912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6914 else 6915 # Is the header compilable? 6916 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6918 cat >conftest.$ac_ext <<_ACEOF 6919 /* confdefs.h. */ 6920 _ACEOF 6921 cat confdefs.h >>conftest.$ac_ext 6922 cat >>conftest.$ac_ext <<_ACEOF 6923 /* end confdefs.h. */ 6924 $ac_includes_default 6925 #include <$ac_header> 6926 _ACEOF 6927 rm -f conftest.$ac_objext 6928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6929 (eval $ac_compile) 2>conftest.er1 6930 ac_status=$? 6931 grep -v '^ *+' conftest.er1 >conftest.err 6932 rm -f conftest.er1 6933 cat conftest.err >&5 6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6935 (exit $ac_status); } && 6936 { ac_try='test -z "$ac_c_werror_flag" 6937 || test ! -s conftest.err' 6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6939 (eval $ac_try) 2>&5 6940 ac_status=$? 6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6942 (exit $ac_status); }; } && 6943 { ac_try='test -s conftest.$ac_objext' 6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6945 (eval $ac_try) 2>&5 6946 ac_status=$? 6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6948 (exit $ac_status); }; }; then 6949 ac_header_compiler=yes 6950 else 6951 echo "$as_me: failed program was:" >&5 6952 sed 's/^/| /' conftest.$ac_ext >&5 6953 6954 ac_header_compiler=no 6955 fi 6956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6958 echo "${ECHO_T}$ac_header_compiler" >&6 6959 6960 # Is the header present? 6961 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6963 cat >conftest.$ac_ext <<_ACEOF 6964 /* confdefs.h. */ 6965 _ACEOF 6966 cat confdefs.h >>conftest.$ac_ext 6967 cat >>conftest.$ac_ext <<_ACEOF 6968 /* end confdefs.h. */ 6969 #include <$ac_header> 6970 _ACEOF 6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6973 ac_status=$? 6974 grep -v '^ *+' conftest.er1 >conftest.err 6975 rm -f conftest.er1 6976 cat conftest.err >&5 6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6978 (exit $ac_status); } >/dev/null; then 6979 if test -s conftest.err; then 6980 ac_cpp_err=$ac_c_preproc_warn_flag 6981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6982 else 6983 ac_cpp_err= 6984 fi 6985 else 6986 ac_cpp_err=yes 6987 fi 6988 if test -z "$ac_cpp_err"; then 6989 ac_header_preproc=yes 6990 else 6991 echo "$as_me: failed program was:" >&5 6992 sed 's/^/| /' conftest.$ac_ext >&5 6993 6994 ac_header_preproc=no 6995 fi 6996 rm -f conftest.err conftest.$ac_ext 6997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6998 echo "${ECHO_T}$ac_header_preproc" >&6 6999 7000 # So? What about this header? 7001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7002 yes:no: ) 7003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7007 ac_header_preproc=yes 7008 ;; 7009 no:yes:* ) 7010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7022 ( 7023 cat <<\_ASBOX 7024 ## ------------------------------------------- ## 7025 ## Report this to orxonox-dev@mail.datacore.ch ## 7026 ## ------------------------------------------- ## 7027 _ASBOX 7028 ) | 7029 sed "s/^/$as_me: WARNING: /" >&2 7030 ;; 7031 esac 7032 echo "$as_me:$LINENO: checking for $ac_header" >&5 7033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7034 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7035 echo $ECHO_N "(cached) $ECHO_C" >&6 7036 else 7037 eval "$as_ac_Header=\$ac_header_preproc" 7038 fi 7039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7041 7042 fi 7043 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7044 cat >>confdefs.h <<_ACEOF 7045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7046 _ACEOF 7047 7048 fi 7049 7050 done 7051 7052 7053 # Checks for typedefs, structures, and compiler characteristics. 7054 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 7055 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 7056 if test "${ac_cv_header_stdbool_h+set}" = set; then 7057 echo $ECHO_N "(cached) $ECHO_C" >&6 7058 else 7059 cat >conftest.$ac_ext <<_ACEOF 7060 /* confdefs.h. */ 7061 _ACEOF 7062 cat confdefs.h >>conftest.$ac_ext 7063 cat >>conftest.$ac_ext <<_ACEOF 7064 /* end confdefs.h. */ 7065 7066 #include <stdbool.h> 7067 #ifndef bool 7068 # error bool is not defined 7069 #endif 7070 #ifndef false 7071 # error false is not defined 7072 #endif 7073 #if false 7074 # error false is not 0 7075 #endif 7076 #ifndef true 7077 # error true is not defined 7078 #endif 7079 #if true != 1 7080 # error true is not 1 7081 #endif 7082 #ifndef __bool_true_false_are_defined 7083 # error __bool_true_false_are_defined is not defined 7084 #endif 7085 7086 struct s { _Bool s: 1; _Bool t; } s; 7087 7088 char a[true == 1 ? 1 : -1]; 7089 char b[false == 0 ? 1 : -1]; 7090 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 7091 char d[(bool) -0.5 == true ? 1 : -1]; 7092 bool e = &s; 7093 char f[(_Bool) -0.0 == false ? 1 : -1]; 7094 char g[true]; 7095 char h[sizeof (_Bool)]; 7096 char i[sizeof s.t]; 7097 7098 int 7099 main () 7100 { 7101 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 7102 ; 7103 return 0; 7104 } 7105 _ACEOF 7106 rm -f conftest.$ac_objext 7107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7108 (eval $ac_compile) 2>conftest.er1 7109 ac_status=$? 7110 grep -v '^ *+' conftest.er1 >conftest.err 7111 rm -f conftest.er1 7112 cat conftest.err >&5 7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7114 (exit $ac_status); } && 7115 { ac_try='test -z "$ac_c_werror_flag" 7116 || test ! -s conftest.err' 7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7118 (eval $ac_try) 2>&5 7119 ac_status=$? 7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7121 (exit $ac_status); }; } && 7122 { ac_try='test -s conftest.$ac_objext' 7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7124 (eval $ac_try) 2>&5 7125 ac_status=$? 7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7127 (exit $ac_status); }; }; then 7128 ac_cv_header_stdbool_h=yes 7129 else 7130 echo "$as_me: failed program was:" >&5 7131 sed 's/^/| /' conftest.$ac_ext >&5 7132 7133 ac_cv_header_stdbool_h=no 7134 fi 7135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7136 fi 7137 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 7138 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 7139 echo "$as_me:$LINENO: checking for _Bool" >&5 7140 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 7141 if test "${ac_cv_type__Bool+set}" = set; then 7142 echo $ECHO_N "(cached) $ECHO_C" >&6 7143 else 7144 cat >conftest.$ac_ext <<_ACEOF 7145 /* confdefs.h. */ 7146 _ACEOF 7147 cat confdefs.h >>conftest.$ac_ext 7148 cat >>conftest.$ac_ext <<_ACEOF 7149 /* end confdefs.h. */ 7150 $ac_includes_default 7151 int 7152 main () 7153 { 7154 if ((_Bool *) 0) 7155 return 0; 7156 if (sizeof (_Bool)) 7157 return 0; 7158 ; 7159 return 0; 7160 } 7161 _ACEOF 7162 rm -f conftest.$ac_objext 7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7164 (eval $ac_compile) 2>conftest.er1 7165 ac_status=$? 7166 grep -v '^ *+' conftest.er1 >conftest.err 7167 rm -f conftest.er1 7168 cat conftest.err >&5 7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7170 (exit $ac_status); } && 7171 { ac_try='test -z "$ac_c_werror_flag" 7172 || test ! -s conftest.err' 7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7174 (eval $ac_try) 2>&5 7175 ac_status=$? 7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7177 (exit $ac_status); }; } && 7178 { ac_try='test -s conftest.$ac_objext' 7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7180 (eval $ac_try) 2>&5 7181 ac_status=$? 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7183 (exit $ac_status); }; }; then 7184 ac_cv_type__Bool=yes 7185 else 7186 echo "$as_me: failed program was:" >&5 7187 sed 's/^/| /' conftest.$ac_ext >&5 7188 7189 ac_cv_type__Bool=no 7190 fi 7191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7192 fi 7193 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 7194 echo "${ECHO_T}$ac_cv_type__Bool" >&6 7195 if test $ac_cv_type__Bool = yes; then 7196 7197 cat >>confdefs.h <<_ACEOF 7198 #define HAVE__BOOL 1 7199 _ACEOF 7200 7201 7202 fi 7203 7204 if test $ac_cv_header_stdbool_h = yes; then 7205 7206 cat >>confdefs.h <<\_ACEOF 7207 #define HAVE_STDBOOL_H 1 7208 _ACEOF 7209 7210 fi 7211 7212 7213 # Checks for library functions. 7214 7215 for ac_header in stdlib.h 7216 do 7217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7218 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7219 echo "$as_me:$LINENO: checking for $ac_header" >&5 7220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7222 echo $ECHO_N "(cached) $ECHO_C" >&6 7223 fi 7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7226 else 7227 # Is the header compilable? 7228 echo "$as_me:$LINENO: checking $ac_header usability" >&5 7229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7230 cat >conftest.$ac_ext <<_ACEOF 7231 /* confdefs.h. */ 7232 _ACEOF 7233 cat confdefs.h >>conftest.$ac_ext 7234 cat >>conftest.$ac_ext <<_ACEOF 7235 /* end confdefs.h. */ 7236 $ac_includes_default 7237 #include <$ac_header> 7238 _ACEOF 7239 rm -f conftest.$ac_objext 7240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7241 (eval $ac_compile) 2>conftest.er1 7242 ac_status=$? 7243 grep -v '^ *+' conftest.er1 >conftest.err 7244 rm -f conftest.er1 7245 cat conftest.err >&5 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); } && 7248 { ac_try='test -z "$ac_c_werror_flag" 7249 || test ! -s conftest.err' 7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7251 (eval $ac_try) 2>&5 7252 ac_status=$? 7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7254 (exit $ac_status); }; } && 7255 { ac_try='test -s conftest.$ac_objext' 7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7257 (eval $ac_try) 2>&5 7258 ac_status=$? 7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7260 (exit $ac_status); }; }; then 7261 ac_header_compiler=yes 7262 else 7263 echo "$as_me: failed program was:" >&5 7264 sed 's/^/| /' conftest.$ac_ext >&5 7265 7266 ac_header_compiler=no 7267 fi 7268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7270 echo "${ECHO_T}$ac_header_compiler" >&6 7271 7272 # Is the header present? 7273 echo "$as_me:$LINENO: checking $ac_header presence" >&5 7274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7275 cat >conftest.$ac_ext <<_ACEOF 7276 /* confdefs.h. */ 7277 _ACEOF 7278 cat confdefs.h >>conftest.$ac_ext 7279 cat >>conftest.$ac_ext <<_ACEOF 7280 /* end confdefs.h. */ 7281 #include <$ac_header> 7282 _ACEOF 7283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7285 ac_status=$? 7286 grep -v '^ *+' conftest.er1 >conftest.err 7287 rm -f conftest.er1 7288 cat conftest.err >&5 7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7290 (exit $ac_status); } >/dev/null; then 7291 if test -s conftest.err; then 7292 ac_cpp_err=$ac_c_preproc_warn_flag 7293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7294 else 7295 ac_cpp_err= 7296 fi 7297 else 7298 ac_cpp_err=yes 7299 fi 7300 if test -z "$ac_cpp_err"; then 7301 ac_header_preproc=yes 7302 else 7303 echo "$as_me: failed program was:" >&5 7304 sed 's/^/| /' conftest.$ac_ext >&5 7305 7306 ac_header_preproc=no 7307 fi 7308 rm -f conftest.err conftest.$ac_ext 7309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7310 echo "${ECHO_T}$ac_header_preproc" >&6 7311 7312 # So? What about this header? 7313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7314 yes:no: ) 7315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7319 ac_header_preproc=yes 7320 ;; 7321 no:yes:* ) 7322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7334 ( 7335 cat <<\_ASBOX 7336 ## ------------------------------------------- ## 7337 ## Report this to orxonox-dev@mail.datacore.ch ## 7338 ## ------------------------------------------- ## 7339 _ASBOX 7340 ) | 7341 sed "s/^/$as_me: WARNING: /" >&2 7342 ;; 7343 esac 7344 echo "$as_me:$LINENO: checking for $ac_header" >&5 7345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7346 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7347 echo $ECHO_N "(cached) $ECHO_C" >&6 7348 else 7349 eval "$as_ac_Header=\$ac_header_preproc" 7350 fi 7351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7353 7354 fi 7355 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7356 cat >>confdefs.h <<_ACEOF 7357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7358 _ACEOF 7359 6194 7360 fi 6195 7361 … … 6381 7547 6382 7548 6383 ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile"7549 ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile src/importer/Makefile" 6384 7550 6385 7551 cat >confcache <<\_ACEOF … … 6492 7658 Usually this means the macro was only invoked conditionally." >&5 6493 7659 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 7660 Usually this means the macro was only invoked conditionally." >&2;} 7661 { (exit 1); exit 1; }; } 7662 fi 7663 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then 7664 { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. 7665 Usually this means the macro was only invoked conditionally." >&5 7666 echo "$as_me: error: conditional \"DOXYGEN\" was never defined. 7667 Usually this means the macro was only invoked conditionally." >&2;} 7668 { (exit 1); exit 1; }; } 7669 fi 7670 if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then 7671 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. 7672 Usually this means the macro was only invoked conditionally." >&5 7673 echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. 6494 7674 Usually this means the macro was only invoked conditionally." >&2;} 6495 7675 { (exit 1); exit 1; }; } … … 6766 7946 cat >&5 <<_CSEOF 6767 7947 6768 This file was extended by orxonox $as_me 0. 1-pre-alpha, which was7948 This file was extended by orxonox $as_me 0.2.0_alpha-r1, which was 6769 7949 generated by GNU Autoconf 2.59. Invocation command line was 6770 7950 … … 6829 8009 cat >>$CONFIG_STATUS <<_ACEOF 6830 8010 ac_cs_version="\\ 6831 orxonox config.status 0. 1-pre-alpha8011 orxonox config.status 0.2.0_alpha-r1 6832 8012 configured by $0, generated by GNU Autoconf 2.59, 6833 8013 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" … … 6940 8120 # Handling of arguments. 6941 8121 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6942 " console/Makefile" ) CONFIG_FILES="$CONFIG_FILESconsole/Makefile" ;;6943 " gui/Makefile" ) CONFIG_FILES="$CONFIG_FILESgui/Makefile" ;;8122 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;; 8123 "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; 6944 8124 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8125 "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;; 6945 8126 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6946 8127 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; … … 7030 8211 s,@ECHO_T@,$ECHO_T,;t t 7031 8212 s,@LIBS@,$LIBS,;t t 8213 s,@build@,$build,;t t 8214 s,@build_cpu@,$build_cpu,;t t 8215 s,@build_vendor@,$build_vendor,;t t 8216 s,@build_os@,$build_os,;t t 8217 s,@host@,$host,;t t 8218 s,@host_cpu@,$host_cpu,;t t 8219 s,@host_vendor@,$host_vendor,;t t 8220 s,@host_os@,$host_os,;t t 8221 s,@target@,$target,;t t 8222 s,@target_cpu@,$target_cpu,;t t 8223 s,@target_vendor@,$target_vendor,;t t 8224 s,@target_os@,$target_os,;t t 7032 8225 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7033 8226 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t … … 7074 8267 s,@CPP@,$CPP,;t t 7075 8268 s,@EGREP@,$EGREP,;t t 8269 s,@DEBUG@,$DEBUG,;t t 8270 s,@DOXYGEN@,$DOXYGEN,;t t 8271 s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t 8272 s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t 7076 8273 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 8274 s,@GTK2_LIBS@,$GTK2_LIBS,;t t 8275 s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t 8276 s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t 8277 s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t 7077 8278 s,@LIBOBJS@,$LIBOBJS,;t t 7078 8279 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Note: See TracChangeset
for help on using the changeset viewer.