Changeset 2980 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 25, 2004, 11:28:18 AM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/Makefile.in
r2819 r2980 34 34 PRE_UNINSTALL = : 35 35 POST_UNINSTALL = : 36 subdir = . 36 host_triplet = @host@ 37 37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 38 38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 39 39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ 40 depcomp install-sh missing mkinstalldirs 40 config.guess config.sub depcomp install-sh missing \ 41 mkinstalldirs 42 subdir = . 41 43 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 42 44 am__aclocal_m4_deps = $(top_srcdir)/configure.ac … … 94 96 EGREP = @EGREP@ 95 97 EXEEXT = @EXEEXT@ 98 GTK2_CFLAGS = @GTK2_CFLAGS@ 99 GTK2_LIBS = @GTK2_LIBS@ 100 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 101 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 96 102 INSTALL_DATA = @INSTALL_DATA@ 97 103 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 112 118 PACKAGE_VERSION = @PACKAGE_VERSION@ 113 119 PATH_SEPARATOR = @PATH_SEPARATOR@ 120 PKG_CONFIG = @PKG_CONFIG@ 121 SDL_CFLAGS = @SDL_CFLAGS@ 122 SDL_CONFIG = @SDL_CONFIG@ 123 SDL_LIBS = @SDL_LIBS@ 114 124 SET_MAKE = @SET_MAKE@ 115 125 SHELL = @SHELL@ … … 127 137 am__quote = @am__quote@ 128 138 bindir = @bindir@ 139 build = @build@ 129 140 build_alias = @build_alias@ 141 build_cpu = @build_cpu@ 142 build_os = @build_os@ 143 build_vendor = @build_vendor@ 130 144 datadir = @datadir@ 131 145 exec_prefix = @exec_prefix@ 146 host = @host@ 132 147 host_alias = @host_alias@ 148 host_cpu = @host_cpu@ 149 host_os = @host_os@ 150 host_vendor = @host_vendor@ 133 151 includedir = @includedir@ 134 152 infodir = @infodir@ … … 145 163 sharedstatedir = @sharedstatedir@ 146 164 sysconfdir = @sysconfdir@ 165 target = @target@ 147 166 target_alias = @target_alias@ 167 target_cpu = @target_cpu@ 168 target_os = @target_os@ 169 target_vendor = @target_vendor@ 148 170 SUBDIRS = src console gui importer 149 171 all: config.h -
orxonox/trunk/aclocal.m4
r2819 r2980 11 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12 12 # PARTICULAR PURPOSE. 13 14 15 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 16 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page 17 dnl also defines GSTUFF_PKG_ERRORS on error 18 AC_DEFUN(PKG_CHECK_MODULES, [ 19 succeeded=no 20 21 if test -z "$PKG_CONFIG"; then 22 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 23 fi 24 25 if test "$PKG_CONFIG" = "no" ; then 26 echo "*** The pkg-config script could not be found. Make sure it is" 27 echo "*** in your path, or set the PKG_CONFIG environment variable" 28 echo "*** to the full path to pkg-config." 29 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 30 else 31 PKG_CONFIG_MIN_VERSION=0.9.0 32 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 33 AC_MSG_CHECKING(for $2) 34 35 if $PKG_CONFIG --exists "$2" ; then 36 AC_MSG_RESULT(yes) 37 succeeded=yes 38 39 AC_MSG_CHECKING($1_CFLAGS) 40 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` 41 AC_MSG_RESULT($$1_CFLAGS) 42 43 AC_MSG_CHECKING($1_LIBS) 44 $1_LIBS=`$PKG_CONFIG --libs "$2"` 45 AC_MSG_RESULT($$1_LIBS) 46 else 47 $1_CFLAGS="" 48 $1_LIBS="" 49 ## If we have a custom action on failure, don't print errors, but 50 ## do set a variable so people can do so. 51 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 52 ifelse([$4], ,echo $$1_PKG_ERRORS,) 53 fi 54 55 AC_SUBST($1_CFLAGS) 56 AC_SUBST($1_LIBS) 57 else 58 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 59 echo "*** See http://www.freedesktop.org/software/pkgconfig" 60 fi 61 fi 62 63 if test $succeeded = yes; then 64 ifelse([$3], , :, [$3]) 65 else 66 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) 67 fi 68 ]) 69 70 71 72 # Configure paths for SDL 73 # Sam Lantinga 9/21/99 74 # stolen from Manish Singh 75 # stolen back from Frank Belew 76 # stolen from Manish Singh 77 # Shamelessly stolen from Owen Taylor 78 79 dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 80 dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS 81 dnl 82 AC_DEFUN([AM_PATH_SDL], 83 [dnl 84 dnl Get the cflags and libraries from the sdl-config script 85 dnl 86 AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], 87 sdl_prefix="$withval", sdl_prefix="") 88 AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], 89 sdl_exec_prefix="$withval", sdl_exec_prefix="") 90 AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], 91 , enable_sdltest=yes) 92 93 if test x$sdl_exec_prefix != x ; then 94 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 95 if test x${SDL_CONFIG+set} != xset ; then 96 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 97 fi 98 fi 99 if test x$sdl_prefix != x ; then 100 sdl_args="$sdl_args --prefix=$sdl_prefix" 101 if test x${SDL_CONFIG+set} != xset ; then 102 SDL_CONFIG=$sdl_prefix/bin/sdl-config 103 fi 104 fi 105 106 AC_REQUIRE([AC_CANONICAL_TARGET]) 107 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 108 AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) 109 min_sdl_version=ifelse([$1], ,0.11.0,$1) 110 AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) 111 no_sdl="" 112 if test "$SDL_CONFIG" = "no" ; then 113 no_sdl=yes 114 else 115 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 116 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 117 118 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 119 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 120 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 121 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 122 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 123 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 124 if test "x$enable_sdltest" = "xyes" ; then 125 ac_save_CFLAGS="$CFLAGS" 126 ac_save_LIBS="$LIBS" 127 CFLAGS="$CFLAGS $SDL_CFLAGS" 128 LIBS="$LIBS $SDL_LIBS" 129 dnl 130 dnl Now check if the installed SDL is sufficiently new. (Also sanity 131 dnl checks the results of sdl-config to some extent 132 dnl 133 rm -f conf.sdltest 134 AC_TRY_RUN([ 135 #include <stdio.h> 136 #include <stdlib.h> 137 #include <string.h> 138 #include "SDL.h" 139 140 char* 141 my_strdup (char *str) 142 { 143 char *new_str; 144 145 if (str) 146 { 147 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 148 strcpy (new_str, str); 149 } 150 else 151 new_str = NULL; 152 153 return new_str; 154 } 155 156 int main (int argc, char *argv[]) 157 { 158 int major, minor, micro; 159 char *tmp_version; 160 161 /* This hangs on some systems (?) 162 system ("touch conf.sdltest"); 163 */ 164 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 165 166 /* HP/UX 9 (%@#!) writes to sscanf strings */ 167 tmp_version = my_strdup("$min_sdl_version"); 168 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 169 printf("%s, bad version string\n", "$min_sdl_version"); 170 exit(1); 171 } 172 173 if (($sdl_major_version > major) || 174 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 175 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 176 { 177 return 0; 178 } 179 else 180 { 181 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 182 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 183 printf("*** best to upgrade to the required version.\n"); 184 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 185 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 186 printf("*** config.cache before re-running configure\n"); 187 return 1; 188 } 189 } 190 191 ],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 192 CFLAGS="$ac_save_CFLAGS" 193 LIBS="$ac_save_LIBS" 194 fi 195 fi 196 if test "x$no_sdl" = x ; then 197 AC_MSG_RESULT(yes) 198 ifelse([$2], , :, [$2]) 199 else 200 AC_MSG_RESULT(no) 201 if test "$SDL_CONFIG" = "no" ; then 202 echo "*** The sdl-config script installed by SDL could not be found" 203 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 204 echo "*** your path, or set the SDL_CONFIG environment variable to the" 205 echo "*** full path to sdl-config." 206 else 207 if test -f conf.sdltest ; then 208 : 209 else 210 echo "*** Could not run SDL test program, checking why..." 211 CFLAGS="$CFLAGS $SDL_CFLAGS" 212 LIBS="$LIBS $SDL_LIBS" 213 AC_TRY_LINK([ 214 #include <stdio.h> 215 #include "SDL.h" 216 217 int main(int argc, char *argv[]) 218 { return 0; } 219 #undef main 220 #define main K_and_R_C_main 221 ], [ return 0; ], 222 [ echo "*** The test program compiled, but did not run. This usually means" 223 echo "*** that the run-time linker is not finding SDL or finding the wrong" 224 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 225 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 226 echo "*** to the installed location Also, make sure you have run ldconfig if that" 227 echo "*** is required on your system" 228 echo "***" 229 echo "*** If you have an old version installed, it is best to remove it, although" 230 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], 231 [ echo "*** The test program failed to compile or link. See the file config.log for the" 232 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 233 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 234 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) 235 CFLAGS="$ac_save_CFLAGS" 236 LIBS="$ac_save_LIBS" 237 fi 238 fi 239 SDL_CFLAGS="" 240 SDL_LIBS="" 241 ifelse([$3], , :, [$3]) 242 fi 243 AC_SUBST(SDL_CFLAGS) 244 AC_SUBST(SDL_LIBS) 245 rm -f conf.sdltest 246 ]) 13 247 14 248 # -*- Autoconf -*- -
orxonox/trunk/config.h.in
r2627 r2980 16 16 #undef HAVE_LIBM 17 17 18 /* Define to 1 if you have the `OSMesa' library (-lOSMesa). */19 #undef HAVE_LIBOSMESA20 21 /* Define to 1 if you have the `X11' library (-lX11). */22 #undef HAVE_LIBX1123 24 /* Define to 1 if you have the `Xt' library (-lXt). */25 #undef HAVE_LIBXT26 27 18 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and 28 19 to 0 otherwise. */ … … 31 22 /* Define to 1 if you have the <memory.h> header file. */ 32 23 #undef HAVE_MEMORY_H 33 34 /* Define to 1 if you have the <SDL/SDL.h> header file. */35 #undef HAVE_SDL_SDL_H36 24 37 25 /* Define to 1 if you have the `sqrt' function. */ -
orxonox/trunk/configure
r2968 r2980 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 MSBITFIELDS SDL_CONFIG SDL_CFLAGS SDL_LIBS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 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 … … 860 865 --disable-dependency-tracking speeds up one-time build 861 866 --enable-dependency-tracking do not reject slow dependency extractors 867 --disable-sdltest Do not try to compile and run a test SDL program 868 869 Optional Packages: 870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 872 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 873 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 862 874 863 875 Some influential environment variables: … … 1321 1333 1322 1334 1323 am__api_version="1.8" 1335 1336 # Detect the canonical host and target build environment. 1324 1337 ac_aux_dir= 1325 1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do … … 1347 1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1348 1361 1362 # Make sure we can run config.sub. 1363 $ac_config_sub sun4 >/dev/null 2>&1 || 1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1366 { (exit 1); exit 1; }; } 1367 1368 echo "$as_me:$LINENO: checking build system type" >&5 1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1370 if test "${ac_cv_build+set}" = set; then 1371 echo $ECHO_N "(cached) $ECHO_C" >&6 1372 else 1373 ac_cv_build_alias=$build_alias 1374 test -z "$ac_cv_build_alias" && 1375 ac_cv_build_alias=`$ac_config_guess` 1376 test -z "$ac_cv_build_alias" && 1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1379 { (exit 1); exit 1; }; } 1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1383 { (exit 1); exit 1; }; } 1384 1385 fi 1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1387 echo "${ECHO_T}$ac_cv_build" >&6 1388 build=$ac_cv_build 1389 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1390 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1391 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1392 1393 1394 echo "$as_me:$LINENO: checking host system type" >&5 1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1396 if test "${ac_cv_host+set}" = set; then 1397 echo $ECHO_N "(cached) $ECHO_C" >&6 1398 else 1399 ac_cv_host_alias=$host_alias 1400 test -z "$ac_cv_host_alias" && 1401 ac_cv_host_alias=$ac_cv_build_alias 1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1405 { (exit 1); exit 1; }; } 1406 1407 fi 1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1409 echo "${ECHO_T}$ac_cv_host" >&6 1410 host=$ac_cv_host 1411 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1412 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1413 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1414 1415 1416 echo "$as_me:$LINENO: checking target system type" >&5 1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6 1418 if test "${ac_cv_target+set}" = set; then 1419 echo $ECHO_N "(cached) $ECHO_C" >&6 1420 else 1421 ac_cv_target_alias=$target_alias 1422 test "x$ac_cv_target_alias" = "x" && 1423 ac_cv_target_alias=$ac_cv_host_alias 1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1427 { (exit 1); exit 1; }; } 1428 1429 fi 1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1431 echo "${ECHO_T}$ac_cv_target" >&6 1432 target=$ac_cv_target 1433 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1434 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1435 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1436 1437 1438 # The aliases save the names the user supplied, while $host etc. 1439 # will get canonicalized. 1440 test -n "$target_alias" && 1441 test "$program_prefix$program_suffix$program_transform_name" = \ 1442 NONENONEs,x,x, && 1443 program_prefix=${target_alias}- 1444 1445 1446 am__api_version="1.8" 1349 1447 # Find a good install program. We prefer a C program (faster), 1350 1448 # so one script is as good as another. But avoid the broken or … … 3322 3420 3323 3421 3324 3325 3326 3327 3422 ac_ext=c 3328 3423 ac_cpp='$CPP $CPPFLAGS' … … 3746 3841 echo "$as_me:$LINENO: checking for System" >&5 3747 3842 echo $ECHO_N "checking for System... $ECHO_C" >&6 3748 case `uname` in 3843 ## checking for openGL-environment and other sys-specific parameters 3844 case "$target" in 3749 3845 ### WINDOWS ### 3750 * MINGW*)3846 *-*-mingw32*) 3751 3847 echo "mingw-WINDOWS detected" 3752 3848 … … 4356 4452 LIBS="$LIBS -lmingw32" 4357 4453 fi 4358 # checking for SDL-headers 4359 4360 for ac_header in SDL/SDL.h 4454 4455 ;; 4456 4457 ### LINUX ### 4458 *-*-linux*) 4459 echo "Linux detected" 4460 4461 Linux="yes" 4462 4463 # checking gl header 4464 4465 for ac_header in GL/gl.h 4361 4466 do 4362 4467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4504 4609 4505 4610 else 4506 { { echo "$as_me:$LINENO: error: cannot find SDLheaders" >&54507 echo "$as_me: error: cannot find SDLheaders" >&2;}4611 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 4612 echo "$as_me: error: cannot find opengl headers" >&2;} 4508 4613 { (exit 1); exit 1; }; } 4509 4614 fi … … 4512 4617 4513 4618 4514 # checking for libSDL4515 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&54516 echo $ECHO_N "checking for main in -l sdlmain... $ECHO_C" >&64517 if test "${ac_cv_lib_ sdlmain_main+set}" = set; then4619 # checking for Unix GL 4620 echo "$as_me:$LINENO: checking for main in -lGL" >&5 4621 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 4622 if test "${ac_cv_lib_GL_main+set}" = set; then 4518 4623 echo $ECHO_N "(cached) $ECHO_C" >&6 4519 4624 else 4520 4625 ac_check_lib_save_LIBS=$LIBS 4521 LIBS="-l sdlmain$LIBS"4626 LIBS="-lGL $LIBS" 4522 4627 cat >conftest.$ac_ext <<_ACEOF 4523 4628 /* confdefs.h. */ … … 4558 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4559 4664 (exit $ac_status); }; }; then 4560 ac_cv_lib_ sdlmain_main=yes4665 ac_cv_lib_GL_main=yes 4561 4666 else 4562 4667 echo "$as_me: failed program was:" >&5 4563 4668 sed 's/^/| /' conftest.$ac_ext >&5 4564 4669 4565 ac_cv_lib_ sdlmain_main=no4670 ac_cv_lib_GL_main=no 4566 4671 fi 4567 4672 rm -f conftest.err conftest.$ac_objext \ … … 4569 4674 LIBS=$ac_check_lib_save_LIBS 4570 4675 fi 4571 echo "$as_me:$LINENO: result: $ac_cv_lib_ sdlmain_main" >&54572 echo "${ECHO_T}$ac_cv_lib_ sdlmain_main" >&64573 if test $ac_cv_lib_ sdlmain_main = yes; then4574 FOUND_ sdlmain=yes4575 fi 4576 4577 if test "$FOUND_sdlmain" = "yes" ; then4578 LIBS="$LIBS -lsdlmain"4579 4676 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 4677 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 4678 if test $ac_cv_lib_GL_main = yes; then 4679 FOUND_GL=yes 4680 fi 4681 4682 if test "$FOUND_GL" = "yes" ; then 4683 LIBS="$LIBS -lGL" 4684 else 4580 4685 echo "------------------" 4581 echo "SDL library not found." 4582 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4583 echo "------------------" 4584 exit 1 4585 fi 4586 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 4587 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 4588 if test "${ac_cv_lib_sdl_main+set}" = set; then 4589 echo $ECHO_N "(cached) $ECHO_C" >&6 4590 else 4591 ac_check_lib_save_LIBS=$LIBS 4592 LIBS="-lsdl $LIBS" 4593 cat >conftest.$ac_ext <<_ACEOF 4594 /* confdefs.h. */ 4595 _ACEOF 4596 cat confdefs.h >>conftest.$ac_ext 4597 cat >>conftest.$ac_ext <<_ACEOF 4598 /* end confdefs.h. */ 4599 4600 4601 int 4602 main () 4603 { 4604 main (); 4605 ; 4606 return 0; 4607 } 4608 _ACEOF 4609 rm -f conftest.$ac_objext conftest$ac_exeext 4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4611 (eval $ac_link) 2>conftest.er1 4612 ac_status=$? 4613 grep -v '^ *+' conftest.er1 >conftest.err 4614 rm -f conftest.er1 4615 cat conftest.err >&5 4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4617 (exit $ac_status); } && 4618 { ac_try='test -z "$ac_c_werror_flag" 4619 || test ! -s conftest.err' 4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621 (eval $ac_try) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); }; } && 4625 { ac_try='test -s conftest$ac_exeext' 4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4627 (eval $ac_try) 2>&5 4628 ac_status=$? 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); }; }; then 4631 ac_cv_lib_sdl_main=yes 4632 else 4633 echo "$as_me: failed program was:" >&5 4634 sed 's/^/| /' conftest.$ac_ext >&5 4635 4636 ac_cv_lib_sdl_main=no 4637 fi 4638 rm -f conftest.err conftest.$ac_objext \ 4639 conftest$ac_exeext conftest.$ac_ext 4640 LIBS=$ac_check_lib_save_LIBS 4641 fi 4642 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 4643 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 4644 if test $ac_cv_lib_sdl_main = yes; then 4645 FOUND_sdl=yes 4646 fi 4647 4648 if test "$FOUND_sdl" = "yes" ; then 4649 LIBS="$LIBS -lsdl" 4650 else 4651 echo "------------------" 4652 echo "SDL library not found." 4653 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4686 echo "opengl not found." 4687 echo "please install the opengl package which can be found at http://www.opengl.org" 4654 4688 echo "------------------" 4655 4689 exit -1 4656 fi 4657 4658 ;; 4659 4660 ### LINUX ### 4661 *Linux*) 4662 echo "Linux detected" 4663 4664 Linux="yes" 4665 4666 # checking gl header 4667 4668 for ac_header in GL/gl.h 4690 fi 4691 4692 # cheking for GLU-header 4693 4694 for ac_header in GL/glu.h 4669 4695 do 4670 4696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4820 4846 4821 4847 4822 # checking for Unix GL 4823 echo "$as_me:$LINENO: checking for main in -lGL" >&5 4824 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 4825 if test "${ac_cv_lib_GL_main+set}" = set; then 4848 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 4849 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 4850 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 4826 4851 echo $ECHO_N "(cached) $ECHO_C" >&6 4827 4852 else 4828 4853 ac_check_lib_save_LIBS=$LIBS 4829 LIBS="-lGL $LIBS" 4854 LIBS="-lGLU $LIBS" 4855 cat >conftest.$ac_ext <<_ACEOF 4856 /* confdefs.h. */ 4857 _ACEOF 4858 cat confdefs.h >>conftest.$ac_ext 4859 cat >>conftest.$ac_ext <<_ACEOF 4860 /* end confdefs.h. */ 4861 4862 /* Override any gcc2 internal prototype to avoid an error. */ 4863 #ifdef __cplusplus 4864 extern "C" 4865 #endif 4866 /* We use char because int might match the return type of a gcc2 4867 builtin and then its argument prototype would still apply. */ 4868 char gluProject (); 4869 int 4870 main () 4871 { 4872 gluProject (); 4873 ; 4874 return 0; 4875 } 4876 _ACEOF 4877 rm -f conftest.$ac_objext conftest$ac_exeext 4878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4879 (eval $ac_link) 2>conftest.er1 4880 ac_status=$? 4881 grep -v '^ *+' conftest.er1 >conftest.err 4882 rm -f conftest.er1 4883 cat conftest.err >&5 4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4885 (exit $ac_status); } && 4886 { ac_try='test -z "$ac_c_werror_flag" 4887 || test ! -s conftest.err' 4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4889 (eval $ac_try) 2>&5 4890 ac_status=$? 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); }; } && 4893 { ac_try='test -s conftest$ac_exeext' 4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4895 (eval $ac_try) 2>&5 4896 ac_status=$? 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); }; }; then 4899 ac_cv_lib_GLU_gluProject=yes 4900 else 4901 echo "$as_me: failed program was:" >&5 4902 sed 's/^/| /' conftest.$ac_ext >&5 4903 4904 ac_cv_lib_GLU_gluProject=no 4905 fi 4906 rm -f conftest.err conftest.$ac_objext \ 4907 conftest$ac_exeext conftest.$ac_ext 4908 LIBS=$ac_check_lib_save_LIBS 4909 fi 4910 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 4911 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 4912 if test $ac_cv_lib_GLU_gluProject = yes; then 4913 FOUND_GLU=yes 4914 fi 4915 4916 if test "$FOUND_GLU" = "yes" ; then 4917 LIBS="$LIBS -lGLU" 4918 else 4919 echo "------------------" 4920 echo "GLU library not found." 4921 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 4922 echo "------------------" 4923 exit -1 4924 fi 4925 ;; 4926 *) 4927 mingw="no" 4928 ;; 4929 esac 4930 4931 4932 4933 4934 ## checking for SDL 4935 SDL_VERSION=1.2.7 4936 4937 # Check whether --with-sdl-prefix or --without-sdl-prefix was given. 4938 if test "${with_sdl_prefix+set}" = set; then 4939 withval="$with_sdl_prefix" 4940 sdl_prefix="$withval" 4941 else 4942 sdl_prefix="" 4943 fi; 4944 4945 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 4946 if test "${with_sdl_exec_prefix+set}" = set; then 4947 withval="$with_sdl_exec_prefix" 4948 sdl_exec_prefix="$withval" 4949 else 4950 sdl_exec_prefix="" 4951 fi; 4952 # Check whether --enable-sdltest or --disable-sdltest was given. 4953 if test "${enable_sdltest+set}" = set; then 4954 enableval="$enable_sdltest" 4955 4956 else 4957 enable_sdltest=yes 4958 fi; 4959 4960 if test x$sdl_exec_prefix != x ; then 4961 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 4962 if test x${SDL_CONFIG+set} != xset ; then 4963 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 4964 fi 4965 fi 4966 if test x$sdl_prefix != x ; then 4967 sdl_args="$sdl_args --prefix=$sdl_prefix" 4968 if test x${SDL_CONFIG+set} != xset ; then 4969 SDL_CONFIG=$sdl_prefix/bin/sdl-config 4970 fi 4971 fi 4972 4973 4974 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 4975 # Extract the first word of "sdl-config", so it can be a program name with args. 4976 set dummy sdl-config; ac_word=$2 4977 echo "$as_me:$LINENO: checking for $ac_word" >&5 4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4979 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 4980 echo $ECHO_N "(cached) $ECHO_C" >&6 4981 else 4982 case $SDL_CONFIG in 4983 [\\/]* | ?:[\\/]*) 4984 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 4985 ;; 4986 *) 4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4988 for as_dir in $PATH 4989 do 4990 IFS=$as_save_IFS 4991 test -z "$as_dir" && as_dir=. 4992 for ac_exec_ext in '' $ac_executable_extensions; do 4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4994 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4996 break 2 4997 fi 4998 done 4999 done 5000 5001 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 5002 ;; 5003 esac 5004 fi 5005 SDL_CONFIG=$ac_cv_path_SDL_CONFIG 5006 5007 if test -n "$SDL_CONFIG"; then 5008 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 5009 echo "${ECHO_T}$SDL_CONFIG" >&6 5010 else 5011 echo "$as_me:$LINENO: result: no" >&5 5012 echo "${ECHO_T}no" >&6 5013 fi 5014 5015 min_sdl_version=$SDL_VERSION 5016 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 5017 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 5018 no_sdl="" 5019 if test "$SDL_CONFIG" = "no" ; then 5020 no_sdl=yes 5021 else 5022 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 5023 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 5024 5025 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 5026 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5027 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 5028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5029 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 5030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5031 if test "x$enable_sdltest" = "xyes" ; then 5032 ac_save_CFLAGS="$CFLAGS" 5033 ac_save_LIBS="$LIBS" 5034 CFLAGS="$CFLAGS $SDL_CFLAGS" 5035 LIBS="$LIBS $SDL_LIBS" 5036 rm -f conf.sdltest 5037 if test "$cross_compiling" = yes; then 5038 echo $ac_n "cross compiling; assumed OK... $ac_c" 5039 else 5040 cat >conftest.$ac_ext <<_ACEOF 5041 /* confdefs.h. */ 5042 _ACEOF 5043 cat confdefs.h >>conftest.$ac_ext 5044 cat >>conftest.$ac_ext <<_ACEOF 5045 /* end confdefs.h. */ 5046 5047 #include <stdio.h> 5048 #include <stdlib.h> 5049 #include <string.h> 5050 #include "SDL.h" 5051 5052 char* 5053 my_strdup (char *str) 5054 { 5055 char *new_str; 5056 5057 if (str) 5058 { 5059 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 5060 strcpy (new_str, str); 5061 } 5062 else 5063 new_str = NULL; 5064 5065 return new_str; 5066 } 5067 5068 int main (int argc, char *argv[]) 5069 { 5070 int major, minor, micro; 5071 char *tmp_version; 5072 5073 /* This hangs on some systems (?) 5074 system ("touch conf.sdltest"); 5075 */ 5076 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 5077 5078 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5079 tmp_version = my_strdup("$min_sdl_version"); 5080 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5081 printf("%s, bad version string\n", "$min_sdl_version"); 5082 exit(1); 5083 } 5084 5085 if (($sdl_major_version > major) || 5086 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 5087 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 5088 { 5089 return 0; 5090 } 5091 else 5092 { 5093 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 5094 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 5095 printf("*** best to upgrade to the required version.\n"); 5096 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 5097 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 5098 printf("*** config.cache before re-running configure\n"); 5099 return 1; 5100 } 5101 } 5102 5103 5104 _ACEOF 5105 rm -f conftest$ac_exeext 5106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5107 (eval $ac_link) 2>&5 5108 ac_status=$? 5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5112 (eval $ac_try) 2>&5 5113 ac_status=$? 5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115 (exit $ac_status); }; }; then 5116 : 5117 else 5118 echo "$as_me: program exited with status $ac_status" >&5 5119 echo "$as_me: failed program was:" >&5 5120 sed 's/^/| /' conftest.$ac_ext >&5 5121 5122 ( exit $ac_status ) 5123 no_sdl=yes 5124 fi 5125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5126 fi 5127 CFLAGS="$ac_save_CFLAGS" 5128 LIBS="$ac_save_LIBS" 5129 fi 5130 fi 5131 if test "x$no_sdl" = x ; then 5132 echo "$as_me:$LINENO: result: yes" >&5 5133 echo "${ECHO_T}yes" >&6 5134 : 5135 else 5136 echo "$as_me:$LINENO: result: no" >&5 5137 echo "${ECHO_T}no" >&6 5138 if test "$SDL_CONFIG" = "no" ; then 5139 echo "*** The sdl-config script installed by SDL could not be found" 5140 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 5141 echo "*** your path, or set the SDL_CONFIG environment variable to the" 5142 echo "*** full path to sdl-config." 5143 else 5144 if test -f conf.sdltest ; then 5145 : 5146 else 5147 echo "*** Could not run SDL test program, checking why..." 5148 CFLAGS="$CFLAGS $SDL_CFLAGS" 5149 LIBS="$LIBS $SDL_LIBS" 5150 cat >conftest.$ac_ext <<_ACEOF 5151 /* confdefs.h. */ 5152 _ACEOF 5153 cat confdefs.h >>conftest.$ac_ext 5154 cat >>conftest.$ac_ext <<_ACEOF 5155 /* end confdefs.h. */ 5156 5157 #include <stdio.h> 5158 #include "SDL.h" 5159 5160 int main(int argc, char *argv[]) 5161 { return 0; } 5162 #undef main 5163 #define main K_and_R_C_main 5164 5165 int 5166 main () 5167 { 5168 return 0; 5169 ; 5170 return 0; 5171 } 5172 _ACEOF 5173 rm -f conftest.$ac_objext conftest$ac_exeext 5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5175 (eval $ac_link) 2>conftest.er1 5176 ac_status=$? 5177 grep -v '^ *+' conftest.er1 >conftest.err 5178 rm -f conftest.er1 5179 cat conftest.err >&5 5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5181 (exit $ac_status); } && 5182 { ac_try='test -z "$ac_c_werror_flag" 5183 || test ! -s conftest.err' 5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5185 (eval $ac_try) 2>&5 5186 ac_status=$? 5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5188 (exit $ac_status); }; } && 5189 { ac_try='test -s conftest$ac_exeext' 5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5191 (eval $ac_try) 2>&5 5192 ac_status=$? 5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5194 (exit $ac_status); }; }; then 5195 echo "*** The test program compiled, but did not run. This usually means" 5196 echo "*** that the run-time linker is not finding SDL or finding the wrong" 5197 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 5198 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 5199 echo "*** to the installed location Also, make sure you have run ldconfig if that" 5200 echo "*** is required on your system" 5201 echo "***" 5202 echo "*** If you have an old version installed, it is best to remove it, although" 5203 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 5204 else 5205 echo "$as_me: failed program was:" >&5 5206 sed 's/^/| /' conftest.$ac_ext >&5 5207 5208 echo "*** The test program failed to compile or link. See the file config.log for the" 5209 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 5210 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 5211 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 5212 fi 5213 rm -f conftest.err conftest.$ac_objext \ 5214 conftest$ac_exeext conftest.$ac_ext 5215 CFLAGS="$ac_save_CFLAGS" 5216 LIBS="$ac_save_LIBS" 5217 fi 5218 fi 5219 SDL_CFLAGS="" 5220 SDL_LIBS="" 5221 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 5222 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} 5223 { (exit 1); exit 1; }; } 5224 5225 fi 5226 5227 5228 rm -f conf.sdltest 5229 5230 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5231 LIBS="$LIBS $SDL_LIBS" 5232 5233 ## checking for GTK 5234 5235 succeeded=no 5236 5237 if test -z "$PKG_CONFIG"; then 5238 # Extract the first word of "pkg-config", so it can be a program name with args. 5239 set dummy pkg-config; ac_word=$2 5240 echo "$as_me:$LINENO: checking for $ac_word" >&5 5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5242 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 5243 echo $ECHO_N "(cached) $ECHO_C" >&6 5244 else 5245 case $PKG_CONFIG in 5246 [\\/]* | ?:[\\/]*) 5247 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5248 ;; 5249 *) 5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5251 for as_dir in $PATH 5252 do 5253 IFS=$as_save_IFS 5254 test -z "$as_dir" && as_dir=. 5255 for ac_exec_ext in '' $ac_executable_extensions; do 5256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5257 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5259 break 2 5260 fi 5261 done 5262 done 5263 5264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 5265 ;; 5266 esac 5267 fi 5268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5269 5270 if test -n "$PKG_CONFIG"; then 5271 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5272 echo "${ECHO_T}$PKG_CONFIG" >&6 5273 else 5274 echo "$as_me:$LINENO: result: no" >&5 5275 echo "${ECHO_T}no" >&6 5276 fi 5277 5278 fi 5279 5280 if test "$PKG_CONFIG" = "no" ; then 5281 echo "*** The pkg-config script could not be found. Make sure it is" 5282 echo "*** in your path, or set the PKG_CONFIG environment variable" 5283 echo "*** to the full path to pkg-config." 5284 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 5285 else 5286 PKG_CONFIG_MIN_VERSION=0.9.0 5287 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 5288 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" >&5 5289 echo $ECHO_N "checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3... $ECHO_C" >&6 5290 5291 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" ; then 5292 echo "$as_me:$LINENO: result: yes" >&5 5293 echo "${ECHO_T}yes" >&6 5294 succeeded=yes 5295 5296 echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5 5297 echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6 5298 GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` 5299 echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5 5300 echo "${ECHO_T}$GTK2_CFLAGS" >&6 5301 5302 echo "$as_me:$LINENO: checking GTK2_LIBS" >&5 5303 echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6 5304 GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` 5305 echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5 5306 echo "${ECHO_T}$GTK2_LIBS" >&6 5307 else 5308 GTK2_CFLAGS="" 5309 GTK2_LIBS="" 5310 ## If we have a custom action on failure, don't print errors, but 5311 ## do set a variable so people can do so. 5312 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` 5313 5314 fi 5315 5316 5317 5318 else 5319 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 5320 echo "*** See http://www.freedesktop.org/software/pkgconfig" 5321 fi 5322 fi 5323 5324 if test $succeeded = yes; then 5325 have_gtk2=yes 5326 else 5327 have_gtk2=no 5328 fi 5329 5330 5331 5332 5333 5334 if test "x$have_gtk2" = xyes; then 5335 HAVE_GTK2_TRUE= 5336 HAVE_GTK2_FALSE='#' 5337 else 5338 HAVE_GTK2_TRUE='#' 5339 HAVE_GTK2_FALSE= 5340 fi 5341 5342 #echo "$GTK2_LIBS , $GTK2_CFLAGS" 5343 5344 5345 #checking for pthread libs 5346 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 5347 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 5348 if test "${ac_cv_lib_pthread_main+set}" = set; then 5349 echo $ECHO_N "(cached) $ECHO_C" >&6 5350 else 5351 ac_check_lib_save_LIBS=$LIBS 5352 LIBS="-lpthread $LIBS" 4830 5353 cat >conftest.$ac_ext <<_ACEOF 4831 5354 /* confdefs.h. */ … … 4866 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 5390 (exit $ac_status); }; }; then 4868 ac_cv_lib_ GL_main=yes5391 ac_cv_lib_pthread_main=yes 4869 5392 else 4870 5393 echo "$as_me: failed program was:" >&5 4871 5394 sed 's/^/| /' conftest.$ac_ext >&5 4872 5395 4873 ac_cv_lib_ GL_main=no5396 ac_cv_lib_pthread_main=no 4874 5397 fi 4875 5398 rm -f conftest.err conftest.$ac_objext \ … … 4877 5400 LIBS=$ac_check_lib_save_LIBS 4878 5401 fi 4879 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 4880 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 4881 if test $ac_cv_lib_GL_main = yes; then 4882 FOUND_GL=yes 4883 fi 4884 4885 if test "$FOUND_GL" = "yes" ; then 4886 LIBS="$LIBS -lGL" 4887 else 4888 echo "------------------" 4889 echo "opengl not found." 4890 echo "please install the opengl package which can be found at http://www.opengl.org" 4891 echo "------------------" 4892 exit -1 4893 fi 4894 4895 # cheking for GLU-header 4896 4897 for ac_header in GL/glu.h 5402 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 5403 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 5404 if test $ac_cv_lib_pthread_main = yes; then 5405 FOUND_pthread=yes 5406 fi 5407 5408 if test "$FOUND_pthread" = "yes" ; then 5409 LIBS="$LIBS -lpthread" 5410 fi 5411 5412 5413 5414 5415 # FIXME: Replace `main' with a function in `-lm': 5416 5417 echo "$as_me:$LINENO: checking for main in -lm" >&5 5418 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 5419 if test "${ac_cv_lib_m_main+set}" = set; then 5420 echo $ECHO_N "(cached) $ECHO_C" >&6 5421 else 5422 ac_check_lib_save_LIBS=$LIBS 5423 LIBS="-lm $LIBS" 5424 cat >conftest.$ac_ext <<_ACEOF 5425 /* confdefs.h. */ 5426 _ACEOF 5427 cat confdefs.h >>conftest.$ac_ext 5428 cat >>conftest.$ac_ext <<_ACEOF 5429 /* end confdefs.h. */ 5430 5431 5432 int 5433 main () 5434 { 5435 main (); 5436 ; 5437 return 0; 5438 } 5439 _ACEOF 5440 rm -f conftest.$ac_objext conftest$ac_exeext 5441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5442 (eval $ac_link) 2>conftest.er1 5443 ac_status=$? 5444 grep -v '^ *+' conftest.er1 >conftest.err 5445 rm -f conftest.er1 5446 cat conftest.err >&5 5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5448 (exit $ac_status); } && 5449 { ac_try='test -z "$ac_c_werror_flag" 5450 || test ! -s conftest.err' 5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5452 (eval $ac_try) 2>&5 5453 ac_status=$? 5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5455 (exit $ac_status); }; } && 5456 { ac_try='test -s conftest$ac_exeext' 5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5458 (eval $ac_try) 2>&5 5459 ac_status=$? 5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5461 (exit $ac_status); }; }; then 5462 ac_cv_lib_m_main=yes 5463 else 5464 echo "$as_me: failed program was:" >&5 5465 sed 's/^/| /' conftest.$ac_ext >&5 5466 5467 ac_cv_lib_m_main=no 5468 fi 5469 rm -f conftest.err conftest.$ac_objext \ 5470 conftest$ac_exeext conftest.$ac_ext 5471 LIBS=$ac_check_lib_save_LIBS 5472 fi 5473 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 5474 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 5475 if test $ac_cv_lib_m_main = yes; then 5476 cat >>confdefs.h <<_ACEOF 5477 #define HAVE_LIBM 1 5478 _ACEOF 5479 5480 LIBS="-lm $LIBS" 5481 5482 fi 5483 5484 5485 ##LIBS="$LIBS `pkg-config --libs gtk+-2.0`" 5486 5487 5488 # Checks for header files. 5489 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5491 if test "${ac_cv_header_stdc+set}" = set; then 5492 echo $ECHO_N "(cached) $ECHO_C" >&6 5493 else 5494 cat >conftest.$ac_ext <<_ACEOF 5495 /* confdefs.h. */ 5496 _ACEOF 5497 cat confdefs.h >>conftest.$ac_ext 5498 cat >>conftest.$ac_ext <<_ACEOF 5499 /* end confdefs.h. */ 5500 #include <stdlib.h> 5501 #include <stdarg.h> 5502 #include <string.h> 5503 #include <float.h> 5504 5505 int 5506 main () 5507 { 5508 5509 ; 5510 return 0; 5511 } 5512 _ACEOF 5513 rm -f conftest.$ac_objext 5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5515 (eval $ac_compile) 2>conftest.er1 5516 ac_status=$? 5517 grep -v '^ *+' conftest.er1 >conftest.err 5518 rm -f conftest.er1 5519 cat conftest.err >&5 5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5521 (exit $ac_status); } && 5522 { ac_try='test -z "$ac_c_werror_flag" 5523 || test ! -s conftest.err' 5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5525 (eval $ac_try) 2>&5 5526 ac_status=$? 5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); }; } && 5529 { ac_try='test -s conftest.$ac_objext' 5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5531 (eval $ac_try) 2>&5 5532 ac_status=$? 5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5534 (exit $ac_status); }; }; then 5535 ac_cv_header_stdc=yes 5536 else 5537 echo "$as_me: failed program was:" >&5 5538 sed 's/^/| /' conftest.$ac_ext >&5 5539 5540 ac_cv_header_stdc=no 5541 fi 5542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5543 5544 if test $ac_cv_header_stdc = yes; then 5545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5546 cat >conftest.$ac_ext <<_ACEOF 5547 /* confdefs.h. */ 5548 _ACEOF 5549 cat confdefs.h >>conftest.$ac_ext 5550 cat >>conftest.$ac_ext <<_ACEOF 5551 /* end confdefs.h. */ 5552 #include <string.h> 5553 5554 _ACEOF 5555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5556 $EGREP "memchr" >/dev/null 2>&1; then 5557 : 5558 else 5559 ac_cv_header_stdc=no 5560 fi 5561 rm -f conftest* 5562 5563 fi 5564 5565 if test $ac_cv_header_stdc = yes; then 5566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5567 cat >conftest.$ac_ext <<_ACEOF 5568 /* confdefs.h. */ 5569 _ACEOF 5570 cat confdefs.h >>conftest.$ac_ext 5571 cat >>conftest.$ac_ext <<_ACEOF 5572 /* end confdefs.h. */ 5573 #include <stdlib.h> 5574 5575 _ACEOF 5576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5577 $EGREP "free" >/dev/null 2>&1; then 5578 : 5579 else 5580 ac_cv_header_stdc=no 5581 fi 5582 rm -f conftest* 5583 5584 fi 5585 5586 if test $ac_cv_header_stdc = yes; then 5587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5588 if test "$cross_compiling" = yes; then 5589 : 5590 else 5591 cat >conftest.$ac_ext <<_ACEOF 5592 /* confdefs.h. */ 5593 _ACEOF 5594 cat confdefs.h >>conftest.$ac_ext 5595 cat >>conftest.$ac_ext <<_ACEOF 5596 /* end confdefs.h. */ 5597 #include <ctype.h> 5598 #if ((' ' & 0x0FF) == 0x020) 5599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5601 #else 5602 # define ISLOWER(c) \ 5603 (('a' <= (c) && (c) <= 'i') \ 5604 || ('j' <= (c) && (c) <= 'r') \ 5605 || ('s' <= (c) && (c) <= 'z')) 5606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5607 #endif 5608 5609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5610 int 5611 main () 5612 { 5613 int i; 5614 for (i = 0; i < 256; i++) 5615 if (XOR (islower (i), ISLOWER (i)) 5616 || toupper (i) != TOUPPER (i)) 5617 exit(2); 5618 exit (0); 5619 } 5620 _ACEOF 5621 rm -f conftest$ac_exeext 5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5623 (eval $ac_link) 2>&5 5624 ac_status=$? 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5628 (eval $ac_try) 2>&5 5629 ac_status=$? 5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5631 (exit $ac_status); }; }; then 5632 : 5633 else 5634 echo "$as_me: program exited with status $ac_status" >&5 5635 echo "$as_me: failed program was:" >&5 5636 sed 's/^/| /' conftest.$ac_ext >&5 5637 5638 ( exit $ac_status ) 5639 ac_cv_header_stdc=no 5640 fi 5641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5642 fi 5643 fi 5644 fi 5645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5646 echo "${ECHO_T}$ac_cv_header_stdc" >&6 5647 if test $ac_cv_header_stdc = yes; then 5648 5649 cat >>confdefs.h <<\_ACEOF 5650 #define STDC_HEADERS 1 5651 _ACEOF 5652 5653 fi 5654 5655 5656 5657 for ac_header in stdlib.h string.h 4898 5658 do 4899 5659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5040 5800 _ACEOF 5041 5801 5042 else5043 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&55044 echo "$as_me: error: cannot find opengl headers" >&2;}5045 { (exit 1); exit 1; }; }5046 5802 fi 5047 5803 … … 5049 5805 5050 5806 5051 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 5052 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 5053 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 5807 # Checks for typedefs, structures, and compiler characteristics. 5808 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 5809 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 5810 if test "${ac_cv_header_stdbool_h+set}" = set; then 5054 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5055 5812 else 5056 ac_check_lib_save_LIBS=$LIBS 5057 LIBS="-lGLU $LIBS" 5058 cat >conftest.$ac_ext <<_ACEOF 5813 cat >conftest.$ac_ext <<_ACEOF 5059 5814 /* confdefs.h. */ 5060 5815 _ACEOF … … 5063 5818 /* end confdefs.h. */ 5064 5819 5065 /* Override any gcc2 internal prototype to avoid an error. */ 5066 #if def __cplusplus5067 extern "C" 5820 #include <stdbool.h> 5821 #ifndef bool 5822 # error bool is not defined 5068 5823 #endif 5069 /* We use char because int might match the return type of a gcc2 5070 builtin and then its argument prototype would still apply. */ 5071 char gluProject (); 5824 #ifndef false 5825 # error false is not defined 5826 #endif 5827 #if false 5828 # error false is not 0 5829 #endif 5830 #ifndef true 5831 # error true is not defined 5832 #endif 5833 #if true != 1 5834 # error true is not 1 5835 #endif 5836 #ifndef __bool_true_false_are_defined 5837 # error __bool_true_false_are_defined is not defined 5838 #endif 5839 5840 struct s { _Bool s: 1; _Bool t; } s; 5841 5842 char a[true == 1 ? 1 : -1]; 5843 char b[false == 0 ? 1 : -1]; 5844 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 5845 char d[(bool) -0.5 == true ? 1 : -1]; 5846 bool e = &s; 5847 char f[(_Bool) -0.0 == false ? 1 : -1]; 5848 char g[true]; 5849 char h[sizeof (_Bool)]; 5850 char i[sizeof s.t]; 5851 5072 5852 int 5073 5853 main () 5074 5854 { 5075 gluProject ();5855 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 5076 5856 ; 5077 5857 return 0; 5078 5858 } 5079 5859 _ACEOF 5080 rm -f conftest.$ac_objext conftest$ac_exeext5081 if { (eval echo "$as_me:$LINENO: \"$ac_ link\"") >&55082 (eval $ac_ link) 2>conftest.er15860 rm -f conftest.$ac_objext 5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5862 (eval $ac_compile) 2>conftest.er1 5083 5863 ac_status=$? 5084 5864 grep -v '^ *+' conftest.er1 >conftest.err … … 5094 5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 5875 (exit $ac_status); }; } && 5096 { ac_try='test -s conftest $ac_exeext'5876 { ac_try='test -s conftest.$ac_objext' 5097 5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5098 5878 (eval $ac_try) 2>&5 … … 5100 5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5101 5881 (exit $ac_status); }; }; then 5102 ac_cv_ lib_GLU_gluProject=yes5882 ac_cv_header_stdbool_h=yes 5103 5883 else 5104 5884 echo "$as_me: failed program was:" >&5 5105 5885 sed 's/^/| /' conftest.$ac_ext >&5 5106 5886 5107 ac_cv_lib_GLU_gluProject=no 5108 fi 5109 rm -f conftest.err conftest.$ac_objext \ 5110 conftest$ac_exeext conftest.$ac_ext 5111 LIBS=$ac_check_lib_save_LIBS 5112 fi 5113 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 5114 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 5115 if test $ac_cv_lib_GLU_gluProject = yes; then 5116 FOUND_GLU=yes 5117 fi 5118 5119 if test "$FOUND_GLU" = "yes" ; then 5120 LIBS="$LIBS -lGLU" 5121 else 5122 echo "------------------" 5123 echo "GLU library not found." 5124 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5125 echo "------------------" 5126 exit -1 5127 fi 5128 5129 # checking for SDL-headers 5130 5131 for ac_header in SDL/SDL.h 5887 ac_cv_header_stdbool_h=no 5888 fi 5889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5890 fi 5891 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 5892 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 5893 echo "$as_me:$LINENO: checking for _Bool" >&5 5894 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 5895 if test "${ac_cv_type__Bool+set}" = set; then 5896 echo $ECHO_N "(cached) $ECHO_C" >&6 5897 else 5898 cat >conftest.$ac_ext <<_ACEOF 5899 /* confdefs.h. */ 5900 _ACEOF 5901 cat confdefs.h >>conftest.$ac_ext 5902 cat >>conftest.$ac_ext <<_ACEOF 5903 /* end confdefs.h. */ 5904 $ac_includes_default 5905 int 5906 main () 5907 { 5908 if ((_Bool *) 0) 5909 return 0; 5910 if (sizeof (_Bool)) 5911 return 0; 5912 ; 5913 return 0; 5914 } 5915 _ACEOF 5916 rm -f conftest.$ac_objext 5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5918 (eval $ac_compile) 2>conftest.er1 5919 ac_status=$? 5920 grep -v '^ *+' conftest.er1 >conftest.err 5921 rm -f conftest.er1 5922 cat conftest.err >&5 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); } && 5925 { ac_try='test -z "$ac_c_werror_flag" 5926 || test ! -s conftest.err' 5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5928 (eval $ac_try) 2>&5 5929 ac_status=$? 5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 (exit $ac_status); }; } && 5932 { ac_try='test -s conftest.$ac_objext' 5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5934 (eval $ac_try) 2>&5 5935 ac_status=$? 5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5937 (exit $ac_status); }; }; then 5938 ac_cv_type__Bool=yes 5939 else 5940 echo "$as_me: failed program was:" >&5 5941 sed 's/^/| /' conftest.$ac_ext >&5 5942 5943 ac_cv_type__Bool=no 5944 fi 5945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5946 fi 5947 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 5948 echo "${ECHO_T}$ac_cv_type__Bool" >&6 5949 if test $ac_cv_type__Bool = yes; then 5950 5951 cat >>confdefs.h <<_ACEOF 5952 #define HAVE__BOOL 1 5953 _ACEOF 5954 5955 5956 fi 5957 5958 if test $ac_cv_header_stdbool_h = yes; then 5959 5960 cat >>confdefs.h <<\_ACEOF 5961 #define HAVE_STDBOOL_H 1 5962 _ACEOF 5963 5964 fi 5965 5966 5967 # Checks for library functions. 5968 5969 for ac_header in stdlib.h 5132 5970 do 5133 5971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5274 6112 _ACEOF 5275 6113 5276 else5277 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&55278 echo "$as_me: error: cannot find SDL headers" >&2;}5279 { (exit 1); exit 1; }; }5280 fi5281 5282 done5283 5284 5285 echo "$as_me:$LINENO: checking for main in -lSDL" >&55286 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&65287 if test "${ac_cv_lib_SDL_main+set}" = set; then5288 echo $ECHO_N "(cached) $ECHO_C" >&65289 else5290 ac_check_lib_save_LIBS=$LIBS5291 LIBS="-lSDL $LIBS"5292 cat >conftest.$ac_ext <<_ACEOF5293 /* confdefs.h. */5294 _ACEOF5295 cat confdefs.h >>conftest.$ac_ext5296 cat >>conftest.$ac_ext <<_ACEOF5297 /* end confdefs.h. */5298 5299 5300 int5301 main ()5302 {5303 main ();5304 ;5305 return 0;5306 }5307 _ACEOF5308 rm -f conftest.$ac_objext conftest$ac_exeext5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55310 (eval $ac_link) 2>conftest.er15311 ac_status=$?5312 grep -v '^ *+' conftest.er1 >conftest.err5313 rm -f conftest.er15314 cat conftest.err >&55315 echo "$as_me:$LINENO: \$? = $ac_status" >&55316 (exit $ac_status); } &&5317 { ac_try='test -z "$ac_c_werror_flag"5318 || test ! -s conftest.err'5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55320 (eval $ac_try) 2>&55321 ac_status=$?5322 echo "$as_me:$LINENO: \$? = $ac_status" >&55323 (exit $ac_status); }; } &&5324 { ac_try='test -s conftest$ac_exeext'5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55326 (eval $ac_try) 2>&55327 ac_status=$?5328 echo "$as_me:$LINENO: \$? = $ac_status" >&55329 (exit $ac_status); }; }; then5330 ac_cv_lib_SDL_main=yes5331 else5332 echo "$as_me: failed program was:" >&55333 sed 's/^/| /' conftest.$ac_ext >&55334 5335 ac_cv_lib_SDL_main=no5336 fi5337 rm -f conftest.err conftest.$ac_objext \5338 conftest$ac_exeext conftest.$ac_ext5339 LIBS=$ac_check_lib_save_LIBS5340 fi5341 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&55342 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&65343 if test $ac_cv_lib_SDL_main = yes; then5344 FOUND_SDL=yes5345 fi5346 5347 if test "$FOUND_SDL" = "yes" ; then5348 LIBS="$LIBS -lSDL"5349 else5350 echo "------------------"5351 echo "SDL library not found."5352 echo "please install the SDL library, which can be found at http://www.libsdl.org"5353 echo "------------------"5354 exit -15355 fi5356 5357 # FIXME: Replace `main' with a function in `-lOSMesa':5358 5359 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&55360 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&65361 if test "${ac_cv_lib_OSMesa_main+set}" = set; then5362 echo $ECHO_N "(cached) $ECHO_C" >&65363 else5364 ac_check_lib_save_LIBS=$LIBS5365 LIBS="-lOSMesa $LIBS"5366 cat >conftest.$ac_ext <<_ACEOF5367 /* confdefs.h. */5368 _ACEOF5369 cat confdefs.h >>conftest.$ac_ext5370 cat >>conftest.$ac_ext <<_ACEOF5371 /* end confdefs.h. */5372 5373 5374 int5375 main ()5376 {5377 main ();5378 ;5379 return 0;5380 }5381 _ACEOF5382 rm -f conftest.$ac_objext conftest$ac_exeext5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55384 (eval $ac_link) 2>conftest.er15385 ac_status=$?5386 grep -v '^ *+' conftest.er1 >conftest.err5387 rm -f conftest.er15388 cat conftest.err >&55389 echo "$as_me:$LINENO: \$? = $ac_status" >&55390 (exit $ac_status); } &&5391 { ac_try='test -z "$ac_c_werror_flag"5392 || test ! -s conftest.err'5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55394 (eval $ac_try) 2>&55395 ac_status=$?5396 echo "$as_me:$LINENO: \$? = $ac_status" >&55397 (exit $ac_status); }; } &&5398 { ac_try='test -s conftest$ac_exeext'5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55400 (eval $ac_try) 2>&55401 ac_status=$?5402 echo "$as_me:$LINENO: \$? = $ac_status" >&55403 (exit $ac_status); }; }; then5404 ac_cv_lib_OSMesa_main=yes5405 else5406 echo "$as_me: failed program was:" >&55407 sed 's/^/| /' conftest.$ac_ext >&55408 5409 ac_cv_lib_OSMesa_main=no5410 fi5411 rm -f conftest.err conftest.$ac_objext \5412 conftest$ac_exeext conftest.$ac_ext5413 LIBS=$ac_check_lib_save_LIBS5414 fi5415 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&55416 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&65417 if test $ac_cv_lib_OSMesa_main = yes; then5418 cat >>confdefs.h <<_ACEOF5419 #define HAVE_LIBOSMESA 15420 _ACEOF5421 5422 LIBS="-lOSMesa $LIBS"5423 5424 fi5425 5426 # FIXME: Replace `main' with a function in `-lX11':5427 5428 echo "$as_me:$LINENO: checking for main in -lX11" >&55429 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&65430 if test "${ac_cv_lib_X11_main+set}" = set; then5431 echo $ECHO_N "(cached) $ECHO_C" >&65432 else5433 ac_check_lib_save_LIBS=$LIBS5434 LIBS="-lX11 $LIBS"5435 cat >conftest.$ac_ext <<_ACEOF5436 /* confdefs.h. */5437 _ACEOF5438 cat confdefs.h >>conftest.$ac_ext5439 cat >>conftest.$ac_ext <<_ACEOF5440 /* end confdefs.h. */5441 5442 5443 int5444 main ()5445 {5446 main ();5447 ;5448 return 0;5449 }5450 _ACEOF5451 rm -f conftest.$ac_objext conftest$ac_exeext5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55453 (eval $ac_link) 2>conftest.er15454 ac_status=$?5455 grep -v '^ *+' conftest.er1 >conftest.err5456 rm -f conftest.er15457 cat conftest.err >&55458 echo "$as_me:$LINENO: \$? = $ac_status" >&55459 (exit $ac_status); } &&5460 { ac_try='test -z "$ac_c_werror_flag"5461 || test ! -s conftest.err'5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55463 (eval $ac_try) 2>&55464 ac_status=$?5465 echo "$as_me:$LINENO: \$? = $ac_status" >&55466 (exit $ac_status); }; } &&5467 { ac_try='test -s conftest$ac_exeext'5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55469 (eval $ac_try) 2>&55470 ac_status=$?5471 echo "$as_me:$LINENO: \$? = $ac_status" >&55472 (exit $ac_status); }; }; then5473 ac_cv_lib_X11_main=yes5474 else5475 echo "$as_me: failed program was:" >&55476 sed 's/^/| /' conftest.$ac_ext >&55477 5478 ac_cv_lib_X11_main=no5479 fi5480 rm -f conftest.err conftest.$ac_objext \5481 conftest$ac_exeext conftest.$ac_ext5482 LIBS=$ac_check_lib_save_LIBS5483 fi5484 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&55485 echo "${ECHO_T}$ac_cv_lib_X11_main" >&65486 if test $ac_cv_lib_X11_main = yes; then5487 cat >>confdefs.h <<_ACEOF5488 #define HAVE_LIBX11 15489 _ACEOF5490 5491 LIBS="-lX11 $LIBS"5492 5493 fi5494 5495 # FIXME: Replace `main' with a function in `-lXt':5496 5497 echo "$as_me:$LINENO: checking for main in -lXt" >&55498 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&65499 if test "${ac_cv_lib_Xt_main+set}" = set; then5500 echo $ECHO_N "(cached) $ECHO_C" >&65501 else5502 ac_check_lib_save_LIBS=$LIBS5503 LIBS="-lXt $LIBS"5504 cat >conftest.$ac_ext <<_ACEOF5505 /* confdefs.h. */5506 _ACEOF5507 cat confdefs.h >>conftest.$ac_ext5508 cat >>conftest.$ac_ext <<_ACEOF5509 /* end confdefs.h. */5510 5511 5512 int5513 main ()5514 {5515 main ();5516 ;5517 return 0;5518 }5519 _ACEOF5520 rm -f conftest.$ac_objext conftest$ac_exeext5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55522 (eval $ac_link) 2>conftest.er15523 ac_status=$?5524 grep -v '^ *+' conftest.er1 >conftest.err5525 rm -f conftest.er15526 cat conftest.err >&55527 echo "$as_me:$LINENO: \$? = $ac_status" >&55528 (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\"") >&55532 (eval $ac_try) 2>&55533 ac_status=$?5534 echo "$as_me:$LINENO: \$? = $ac_status" >&55535 (exit $ac_status); }; } &&5536 { ac_try='test -s conftest$ac_exeext'5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55538 (eval $ac_try) 2>&55539 ac_status=$?5540 echo "$as_me:$LINENO: \$? = $ac_status" >&55541 (exit $ac_status); }; }; then5542 ac_cv_lib_Xt_main=yes5543 else5544 echo "$as_me: failed program was:" >&55545 sed 's/^/| /' conftest.$ac_ext >&55546 5547 ac_cv_lib_Xt_main=no5548 fi5549 rm -f conftest.err conftest.$ac_objext \5550 conftest$ac_exeext conftest.$ac_ext5551 LIBS=$ac_check_lib_save_LIBS5552 fi5553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&55554 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&65555 if test $ac_cv_lib_Xt_main = yes; then5556 cat >>confdefs.h <<_ACEOF5557 #define HAVE_LIBXT 15558 _ACEOF5559 5560 LIBS="-lXt $LIBS"5561 5562 fi5563 5564 ;;5565 *)5566 mingw="no"5567 ;;5568 esac5569 5570 5571 5572 5573 5574 #checking for pthread libs5575 echo "$as_me:$LINENO: checking for main in -lpthread" >&55576 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&65577 if test "${ac_cv_lib_pthread_main+set}" = set; then5578 echo $ECHO_N "(cached) $ECHO_C" >&65579 else5580 ac_check_lib_save_LIBS=$LIBS5581 LIBS="-lpthread $LIBS"5582 cat >conftest.$ac_ext <<_ACEOF5583 /* confdefs.h. */5584 _ACEOF5585 cat confdefs.h >>conftest.$ac_ext5586 cat >>conftest.$ac_ext <<_ACEOF5587 /* end confdefs.h. */5588 5589 5590 int5591 main ()5592 {5593 main ();5594 ;5595 return 0;5596 }5597 _ACEOF5598 rm -f conftest.$ac_objext conftest$ac_exeext5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55600 (eval $ac_link) 2>conftest.er15601 ac_status=$?5602 grep -v '^ *+' conftest.er1 >conftest.err5603 rm -f conftest.er15604 cat conftest.err >&55605 echo "$as_me:$LINENO: \$? = $ac_status" >&55606 (exit $ac_status); } &&5607 { ac_try='test -z "$ac_c_werror_flag"5608 || test ! -s conftest.err'5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55610 (eval $ac_try) 2>&55611 ac_status=$?5612 echo "$as_me:$LINENO: \$? = $ac_status" >&55613 (exit $ac_status); }; } &&5614 { ac_try='test -s conftest$ac_exeext'5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55616 (eval $ac_try) 2>&55617 ac_status=$?5618 echo "$as_me:$LINENO: \$? = $ac_status" >&55619 (exit $ac_status); }; }; then5620 ac_cv_lib_pthread_main=yes5621 else5622 echo "$as_me: failed program was:" >&55623 sed 's/^/| /' conftest.$ac_ext >&55624 5625 ac_cv_lib_pthread_main=no5626 fi5627 rm -f conftest.err conftest.$ac_objext \5628 conftest$ac_exeext conftest.$ac_ext5629 LIBS=$ac_check_lib_save_LIBS5630 fi5631 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&55632 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&65633 if test $ac_cv_lib_pthread_main = yes; then5634 FOUND_pthread=yes5635 fi5636 5637 if test "$FOUND_pthread" = "yes" ; then5638 LIBS="$LIBS -lpthread"5639 fi5640 5641 5642 5643 5644 # FIXME: Replace `main' with a function in `-lm':5645 5646 echo "$as_me:$LINENO: checking for main in -lm" >&55647 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&65648 if test "${ac_cv_lib_m_main+set}" = set; then5649 echo $ECHO_N "(cached) $ECHO_C" >&65650 else5651 ac_check_lib_save_LIBS=$LIBS5652 LIBS="-lm $LIBS"5653 cat >conftest.$ac_ext <<_ACEOF5654 /* confdefs.h. */5655 _ACEOF5656 cat confdefs.h >>conftest.$ac_ext5657 cat >>conftest.$ac_ext <<_ACEOF5658 /* end confdefs.h. */5659 5660 5661 int5662 main ()5663 {5664 main ();5665 ;5666 return 0;5667 }5668 _ACEOF5669 rm -f conftest.$ac_objext conftest$ac_exeext5670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55671 (eval $ac_link) 2>conftest.er15672 ac_status=$?5673 grep -v '^ *+' conftest.er1 >conftest.err5674 rm -f conftest.er15675 cat conftest.err >&55676 echo "$as_me:$LINENO: \$? = $ac_status" >&55677 (exit $ac_status); } &&5678 { ac_try='test -z "$ac_c_werror_flag"5679 || test ! -s conftest.err'5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55681 (eval $ac_try) 2>&55682 ac_status=$?5683 echo "$as_me:$LINENO: \$? = $ac_status" >&55684 (exit $ac_status); }; } &&5685 { ac_try='test -s conftest$ac_exeext'5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55687 (eval $ac_try) 2>&55688 ac_status=$?5689 echo "$as_me:$LINENO: \$? = $ac_status" >&55690 (exit $ac_status); }; }; then5691 ac_cv_lib_m_main=yes5692 else5693 echo "$as_me: failed program was:" >&55694 sed 's/^/| /' conftest.$ac_ext >&55695 5696 ac_cv_lib_m_main=no5697 fi5698 rm -f conftest.err conftest.$ac_objext \5699 conftest$ac_exeext conftest.$ac_ext5700 LIBS=$ac_check_lib_save_LIBS5701 fi5702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&55703 echo "${ECHO_T}$ac_cv_lib_m_main" >&65704 if test $ac_cv_lib_m_main = yes; then5705 cat >>confdefs.h <<_ACEOF5706 #define HAVE_LIBM 15707 _ACEOF5708 5709 LIBS="-lm $LIBS"5710 5711 fi5712 5713 5714 LIBS="$LIBS `pkg-config --libs gtk+-2.0`"5715 5716 5717 # Checks for header files.5718 echo "$as_me:$LINENO: checking for ANSI C header files" >&55719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&65720 if test "${ac_cv_header_stdc+set}" = set; then5721 echo $ECHO_N "(cached) $ECHO_C" >&65722 else5723 cat >conftest.$ac_ext <<_ACEOF5724 /* confdefs.h. */5725 _ACEOF5726 cat confdefs.h >>conftest.$ac_ext5727 cat >>conftest.$ac_ext <<_ACEOF5728 /* end confdefs.h. */5729 #include <stdlib.h>5730 #include <stdarg.h>5731 #include <string.h>5732 #include <float.h>5733 5734 int5735 main ()5736 {5737 5738 ;5739 return 0;5740 }5741 _ACEOF5742 rm -f conftest.$ac_objext5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55744 (eval $ac_compile) 2>conftest.er15745 ac_status=$?5746 grep -v '^ *+' conftest.er1 >conftest.err5747 rm -f conftest.er15748 cat conftest.err >&55749 echo "$as_me:$LINENO: \$? = $ac_status" >&55750 (exit $ac_status); } &&5751 { ac_try='test -z "$ac_c_werror_flag"5752 || test ! -s conftest.err'5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55754 (eval $ac_try) 2>&55755 ac_status=$?5756 echo "$as_me:$LINENO: \$? = $ac_status" >&55757 (exit $ac_status); }; } &&5758 { ac_try='test -s conftest.$ac_objext'5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55760 (eval $ac_try) 2>&55761 ac_status=$?5762 echo "$as_me:$LINENO: \$? = $ac_status" >&55763 (exit $ac_status); }; }; then5764 ac_cv_header_stdc=yes5765 else5766 echo "$as_me: failed program was:" >&55767 sed 's/^/| /' conftest.$ac_ext >&55768 5769 ac_cv_header_stdc=no5770 fi5771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5772 5773 if test $ac_cv_header_stdc = yes; then5774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.5775 cat >conftest.$ac_ext <<_ACEOF5776 /* confdefs.h. */5777 _ACEOF5778 cat confdefs.h >>conftest.$ac_ext5779 cat >>conftest.$ac_ext <<_ACEOF5780 /* end confdefs.h. */5781 #include <string.h>5782 5783 _ACEOF5784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |5785 $EGREP "memchr" >/dev/null 2>&1; then5786 :5787 else5788 ac_cv_header_stdc=no5789 fi5790 rm -f conftest*5791 5792 fi5793 5794 if test $ac_cv_header_stdc = yes; then5795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.5796 cat >conftest.$ac_ext <<_ACEOF5797 /* confdefs.h. */5798 _ACEOF5799 cat confdefs.h >>conftest.$ac_ext5800 cat >>conftest.$ac_ext <<_ACEOF5801 /* end confdefs.h. */5802 #include <stdlib.h>5803 5804 _ACEOF5805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |5806 $EGREP "free" >/dev/null 2>&1; then5807 :5808 else5809 ac_cv_header_stdc=no5810 fi5811 rm -f conftest*5812 5813 fi5814 5815 if test $ac_cv_header_stdc = yes; then5816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.5817 if test "$cross_compiling" = yes; then5818 :5819 else5820 cat >conftest.$ac_ext <<_ACEOF5821 /* confdefs.h. */5822 _ACEOF5823 cat confdefs.h >>conftest.$ac_ext5824 cat >>conftest.$ac_ext <<_ACEOF5825 /* end confdefs.h. */5826 #include <ctype.h>5827 #if ((' ' & 0x0FF) == 0x020)5828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')5829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))5830 #else5831 # define ISLOWER(c) \5832 (('a' <= (c) && (c) <= 'i') \5833 || ('j' <= (c) && (c) <= 'r') \5834 || ('s' <= (c) && (c) <= 'z'))5835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))5836 #endif5837 5838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))5839 int5840 main ()5841 {5842 int i;5843 for (i = 0; i < 256; i++)5844 if (XOR (islower (i), ISLOWER (i))5845 || toupper (i) != TOUPPER (i))5846 exit(2);5847 exit (0);5848 }5849 _ACEOF5850 rm -f conftest$ac_exeext5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55852 (eval $ac_link) 2>&55853 ac_status=$?5854 echo "$as_me:$LINENO: \$? = $ac_status" >&55855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55857 (eval $ac_try) 2>&55858 ac_status=$?5859 echo "$as_me:$LINENO: \$? = $ac_status" >&55860 (exit $ac_status); }; }; then5861 :5862 else5863 echo "$as_me: program exited with status $ac_status" >&55864 echo "$as_me: failed program was:" >&55865 sed 's/^/| /' conftest.$ac_ext >&55866 5867 ( exit $ac_status )5868 ac_cv_header_stdc=no5869 fi5870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext5871 fi5872 fi5873 fi5874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&55875 echo "${ECHO_T}$ac_cv_header_stdc" >&65876 if test $ac_cv_header_stdc = yes; then5877 5878 cat >>confdefs.h <<\_ACEOF5879 #define STDC_HEADERS 15880 _ACEOF5881 5882 fi5883 5884 5885 5886 for ac_header in stdlib.h string.h5887 do5888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`5889 if eval "test \"\${$as_ac_Header+set}\" = set"; then5890 echo "$as_me:$LINENO: checking for $ac_header" >&55891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&65892 if eval "test \"\${$as_ac_Header+set}\" = set"; then5893 echo $ECHO_N "(cached) $ECHO_C" >&65894 fi5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&55896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&65897 else5898 # Is the header compilable?5899 echo "$as_me:$LINENO: checking $ac_header usability" >&55900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&65901 cat >conftest.$ac_ext <<_ACEOF5902 /* confdefs.h. */5903 _ACEOF5904 cat confdefs.h >>conftest.$ac_ext5905 cat >>conftest.$ac_ext <<_ACEOF5906 /* end confdefs.h. */5907 $ac_includes_default5908 #include <$ac_header>5909 _ACEOF5910 rm -f conftest.$ac_objext5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55912 (eval $ac_compile) 2>conftest.er15913 ac_status=$?5914 grep -v '^ *+' conftest.er1 >conftest.err5915 rm -f conftest.er15916 cat conftest.err >&55917 echo "$as_me:$LINENO: \$? = $ac_status" >&55918 (exit $ac_status); } &&5919 { ac_try='test -z "$ac_c_werror_flag"5920 || test ! -s conftest.err'5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55922 (eval $ac_try) 2>&55923 ac_status=$?5924 echo "$as_me:$LINENO: \$? = $ac_status" >&55925 (exit $ac_status); }; } &&5926 { ac_try='test -s conftest.$ac_objext'5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55928 (eval $ac_try) 2>&55929 ac_status=$?5930 echo "$as_me:$LINENO: \$? = $ac_status" >&55931 (exit $ac_status); }; }; then5932 ac_header_compiler=yes5933 else5934 echo "$as_me: failed program was:" >&55935 sed 's/^/| /' conftest.$ac_ext >&55936 5937 ac_header_compiler=no5938 fi5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&55941 echo "${ECHO_T}$ac_header_compiler" >&65942 5943 # Is the header present?5944 echo "$as_me:$LINENO: checking $ac_header presence" >&55945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&65946 cat >conftest.$ac_ext <<_ACEOF5947 /* confdefs.h. */5948 _ACEOF5949 cat confdefs.h >>conftest.$ac_ext5950 cat >>conftest.$ac_ext <<_ACEOF5951 /* end confdefs.h. */5952 #include <$ac_header>5953 _ACEOF5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15956 ac_status=$?5957 grep -v '^ *+' conftest.er1 >conftest.err5958 rm -f conftest.er15959 cat conftest.err >&55960 echo "$as_me:$LINENO: \$? = $ac_status" >&55961 (exit $ac_status); } >/dev/null; then5962 if test -s conftest.err; then5963 ac_cpp_err=$ac_c_preproc_warn_flag5964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag5965 else5966 ac_cpp_err=5967 fi5968 else5969 ac_cpp_err=yes5970 fi5971 if test -z "$ac_cpp_err"; then5972 ac_header_preproc=yes5973 else5974 echo "$as_me: failed program was:" >&55975 sed 's/^/| /' conftest.$ac_ext >&55976 5977 ac_header_preproc=no5978 fi5979 rm -f conftest.err conftest.$ac_ext5980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&55981 echo "${ECHO_T}$ac_header_preproc" >&65982 5983 # So? What about this header?5984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in5985 yes:no: )5986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&55987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}5988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&55989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}5990 ac_header_preproc=yes5991 ;;5992 no:yes:* )5993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&55994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}5995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&55996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}5997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&55998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}5999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&56000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&56004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}6005 (6006 cat <<\_ASBOX6007 ## ------------------------------------------- ##6008 ## Report this to orxonox-dev@mail.datacore.ch ##6009 ## ------------------------------------------- ##6010 _ASBOX6011 ) |6012 sed "s/^/$as_me: WARNING: /" >&26013 ;;6014 esac6015 echo "$as_me:$LINENO: checking for $ac_header" >&56016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66017 if eval "test \"\${$as_ac_Header+set}\" = set"; then6018 echo $ECHO_N "(cached) $ECHO_C" >&66019 else6020 eval "$as_ac_Header=\$ac_header_preproc"6021 fi6022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66024 6025 fi6026 if test `eval echo '${'$as_ac_Header'}'` = yes; then6027 cat >>confdefs.h <<_ACEOF6028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 16029 _ACEOF6030 6031 fi6032 6033 done6034 6035 6036 # Checks for typedefs, structures, and compiler characteristics.6037 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&56038 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&66039 if test "${ac_cv_header_stdbool_h+set}" = set; then6040 echo $ECHO_N "(cached) $ECHO_C" >&66041 else6042 cat >conftest.$ac_ext <<_ACEOF6043 /* confdefs.h. */6044 _ACEOF6045 cat confdefs.h >>conftest.$ac_ext6046 cat >>conftest.$ac_ext <<_ACEOF6047 /* end confdefs.h. */6048 6049 #include <stdbool.h>6050 #ifndef bool6051 # error bool is not defined6052 #endif6053 #ifndef false6054 # error false is not defined6055 #endif6056 #if false6057 # error false is not 06058 #endif6059 #ifndef true6060 # error true is not defined6061 #endif6062 #if true != 16063 # error true is not 16064 #endif6065 #ifndef __bool_true_false_are_defined6066 # error __bool_true_false_are_defined is not defined6067 #endif6068 6069 struct s { _Bool s: 1; _Bool t; } s;6070 6071 char a[true == 1 ? 1 : -1];6072 char b[false == 0 ? 1 : -1];6073 char c[__bool_true_false_are_defined == 1 ? 1 : -1];6074 char d[(bool) -0.5 == true ? 1 : -1];6075 bool e = &s;6076 char f[(_Bool) -0.0 == false ? 1 : -1];6077 char g[true];6078 char h[sizeof (_Bool)];6079 char i[sizeof s.t];6080 6081 int6082 main ()6083 {6084 return !a + !b + !c + !d + !e + !f + !g + !h + !i;6085 ;6086 return 0;6087 }6088 _ACEOF6089 rm -f conftest.$ac_objext6090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56091 (eval $ac_compile) 2>conftest.er16092 ac_status=$?6093 grep -v '^ *+' conftest.er1 >conftest.err6094 rm -f conftest.er16095 cat conftest.err >&56096 echo "$as_me:$LINENO: \$? = $ac_status" >&56097 (exit $ac_status); } &&6098 { ac_try='test -z "$ac_c_werror_flag"6099 || test ! -s conftest.err'6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56101 (eval $ac_try) 2>&56102 ac_status=$?6103 echo "$as_me:$LINENO: \$? = $ac_status" >&56104 (exit $ac_status); }; } &&6105 { ac_try='test -s conftest.$ac_objext'6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56107 (eval $ac_try) 2>&56108 ac_status=$?6109 echo "$as_me:$LINENO: \$? = $ac_status" >&56110 (exit $ac_status); }; }; then6111 ac_cv_header_stdbool_h=yes6112 else6113 echo "$as_me: failed program was:" >&56114 sed 's/^/| /' conftest.$ac_ext >&56115 6116 ac_cv_header_stdbool_h=no6117 fi6118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6119 fi6120 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&56121 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&66122 echo "$as_me:$LINENO: checking for _Bool" >&56123 echo $ECHO_N "checking for _Bool... $ECHO_C" >&66124 if test "${ac_cv_type__Bool+set}" = set; then6125 echo $ECHO_N "(cached) $ECHO_C" >&66126 else6127 cat >conftest.$ac_ext <<_ACEOF6128 /* confdefs.h. */6129 _ACEOF6130 cat confdefs.h >>conftest.$ac_ext6131 cat >>conftest.$ac_ext <<_ACEOF6132 /* end confdefs.h. */6133 $ac_includes_default6134 int6135 main ()6136 {6137 if ((_Bool *) 0)6138 return 0;6139 if (sizeof (_Bool))6140 return 0;6141 ;6142 return 0;6143 }6144 _ACEOF6145 rm -f conftest.$ac_objext6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56147 (eval $ac_compile) 2>conftest.er16148 ac_status=$?6149 grep -v '^ *+' conftest.er1 >conftest.err6150 rm -f conftest.er16151 cat conftest.err >&56152 echo "$as_me:$LINENO: \$? = $ac_status" >&56153 (exit $ac_status); } &&6154 { ac_try='test -z "$ac_c_werror_flag"6155 || test ! -s conftest.err'6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56157 (eval $ac_try) 2>&56158 ac_status=$?6159 echo "$as_me:$LINENO: \$? = $ac_status" >&56160 (exit $ac_status); }; } &&6161 { ac_try='test -s conftest.$ac_objext'6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56163 (eval $ac_try) 2>&56164 ac_status=$?6165 echo "$as_me:$LINENO: \$? = $ac_status" >&56166 (exit $ac_status); }; }; then6167 ac_cv_type__Bool=yes6168 else6169 echo "$as_me: failed program was:" >&56170 sed 's/^/| /' conftest.$ac_ext >&56171 6172 ac_cv_type__Bool=no6173 fi6174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6175 fi6176 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&56177 echo "${ECHO_T}$ac_cv_type__Bool" >&66178 if test $ac_cv_type__Bool = yes; then6179 6180 cat >>confdefs.h <<_ACEOF6181 #define HAVE__BOOL 16182 _ACEOF6183 6184 6185 fi6186 6187 if test $ac_cv_header_stdbool_h = yes; then6188 6189 cat >>confdefs.h <<\_ACEOF6190 #define HAVE_STDBOOL_H 16191 _ACEOF6192 6193 fi6194 6195 6196 # Checks for library functions.6197 6198 for ac_header in stdlib.h6199 do6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then6202 echo "$as_me:$LINENO: checking for $ac_header" >&56203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66204 if eval "test \"\${$as_ac_Header+set}\" = set"; then6205 echo $ECHO_N "(cached) $ECHO_C" >&66206 fi6207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66209 else6210 # Is the header compilable?6211 echo "$as_me:$LINENO: checking $ac_header usability" >&56212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&66213 cat >conftest.$ac_ext <<_ACEOF6214 /* confdefs.h. */6215 _ACEOF6216 cat confdefs.h >>conftest.$ac_ext6217 cat >>conftest.$ac_ext <<_ACEOF6218 /* end confdefs.h. */6219 $ac_includes_default6220 #include <$ac_header>6221 _ACEOF6222 rm -f conftest.$ac_objext6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56224 (eval $ac_compile) 2>conftest.er16225 ac_status=$?6226 grep -v '^ *+' conftest.er1 >conftest.err6227 rm -f conftest.er16228 cat conftest.err >&56229 echo "$as_me:$LINENO: \$? = $ac_status" >&56230 (exit $ac_status); } &&6231 { ac_try='test -z "$ac_c_werror_flag"6232 || test ! -s conftest.err'6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56234 (eval $ac_try) 2>&56235 ac_status=$?6236 echo "$as_me:$LINENO: \$? = $ac_status" >&56237 (exit $ac_status); }; } &&6238 { ac_try='test -s conftest.$ac_objext'6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56240 (eval $ac_try) 2>&56241 ac_status=$?6242 echo "$as_me:$LINENO: \$? = $ac_status" >&56243 (exit $ac_status); }; }; then6244 ac_header_compiler=yes6245 else6246 echo "$as_me: failed program was:" >&56247 sed 's/^/| /' conftest.$ac_ext >&56248 6249 ac_header_compiler=no6250 fi6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&56253 echo "${ECHO_T}$ac_header_compiler" >&66254 6255 # Is the header present?6256 echo "$as_me:$LINENO: checking $ac_header presence" >&56257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&66258 cat >conftest.$ac_ext <<_ACEOF6259 /* confdefs.h. */6260 _ACEOF6261 cat confdefs.h >>conftest.$ac_ext6262 cat >>conftest.$ac_ext <<_ACEOF6263 /* end confdefs.h. */6264 #include <$ac_header>6265 _ACEOF6266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&56267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er16268 ac_status=$?6269 grep -v '^ *+' conftest.er1 >conftest.err6270 rm -f conftest.er16271 cat conftest.err >&56272 echo "$as_me:$LINENO: \$? = $ac_status" >&56273 (exit $ac_status); } >/dev/null; then6274 if test -s conftest.err; then6275 ac_cpp_err=$ac_c_preproc_warn_flag6276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag6277 else6278 ac_cpp_err=6279 fi6280 else6281 ac_cpp_err=yes6282 fi6283 if test -z "$ac_cpp_err"; then6284 ac_header_preproc=yes6285 else6286 echo "$as_me: failed program was:" >&56287 sed 's/^/| /' conftest.$ac_ext >&56288 6289 ac_header_preproc=no6290 fi6291 rm -f conftest.err conftest.$ac_ext6292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&56293 echo "${ECHO_T}$ac_header_preproc" >&66294 6295 # So? What about this header?6296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in6297 yes:no: )6298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&56299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}6300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&56301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}6302 ac_header_preproc=yes6303 ;;6304 no:yes:* )6305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&56306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}6307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&56308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}6309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&56310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}6311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&56312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}6313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&56316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}6317 (6318 cat <<\_ASBOX6319 ## ------------------------------------------- ##6320 ## Report this to orxonox-dev@mail.datacore.ch ##6321 ## ------------------------------------------- ##6322 _ASBOX6323 ) |6324 sed "s/^/$as_me: WARNING: /" >&26325 ;;6326 esac6327 echo "$as_me:$LINENO: checking for $ac_header" >&56328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66329 if eval "test \"\${$as_ac_Header+set}\" = set"; then6330 echo $ECHO_N "(cached) $ECHO_C" >&66331 else6332 eval "$as_ac_Header=\$ac_header_preproc"6333 fi6334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66336 6337 fi6338 if test `eval echo '${'$as_ac_Header'}'` = yes; then6339 cat >>confdefs.h <<_ACEOF6340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 16341 _ACEOF6342 6343 6114 fi 6344 6115 … … 6641 6412 Usually this means the macro was only invoked conditionally." >&5 6642 6413 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 6414 Usually this means the macro was only invoked conditionally." >&2;} 6415 { (exit 1); exit 1; }; } 6416 fi 6417 if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then 6418 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. 6419 Usually this means the macro was only invoked conditionally." >&5 6420 echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. 6643 6421 Usually this means the macro was only invoked conditionally." >&2;} 6644 6422 { (exit 1); exit 1; }; } … … 7180 6958 s,@ECHO_T@,$ECHO_T,;t t 7181 6959 s,@LIBS@,$LIBS,;t t 6960 s,@build@,$build,;t t 6961 s,@build_cpu@,$build_cpu,;t t 6962 s,@build_vendor@,$build_vendor,;t t 6963 s,@build_os@,$build_os,;t t 6964 s,@host@,$host,;t t 6965 s,@host_cpu@,$host_cpu,;t t 6966 s,@host_vendor@,$host_vendor,;t t 6967 s,@host_os@,$host_os,;t t 6968 s,@target@,$target,;t t 6969 s,@target_cpu@,$target_cpu,;t t 6970 s,@target_vendor@,$target_vendor,;t t 6971 s,@target_os@,$target_os,;t t 7182 6972 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7183 6973 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t … … 7225 7015 s,@EGREP@,$EGREP,;t t 7226 7016 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 7017 s,@SDL_CONFIG@,$SDL_CONFIG,;t t 7018 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t 7019 s,@SDL_LIBS@,$SDL_LIBS,;t t 7020 s,@PKG_CONFIG@,$PKG_CONFIG,;t t 7021 s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t 7022 s,@GTK2_LIBS@,$GTK2_LIBS,;t t 7023 s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t 7024 s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t 7227 7025 s,@LIBOBJS@,$LIBOBJS,;t t 7228 7026 s,@LTLIBOBJS@,$LTLIBOBJS,;t t -
orxonox/trunk/configure.ac
r2968 r2980 2 2 # Process this file with autoconf to produce a configure script. 3 3 4 AC_PREREQ(2.56)4 #AC_PREREQ(2.56) 5 5 AC_INIT(orxonox, 0.1-pre-alpha, orxonox-dev@mail.datacore.ch) 6 7 # Detect the canonical host and target build environment. 8 AC_CANONICAL_BUILD 9 AC_CANONICAL_HOST 10 AC_CANONICAL_TARGET 11 12 6 13 AM_INIT_AUTOMAKE 7 14 … … 12 19 # Checks for programs. 13 20 AC_PROG_CXX 14 AC_PROG_CC15 16 17 18 21 AC_HEADER_STDC 19 22 … … 21 24 22 25 AC_MSG_CHECKING([for System]) 23 case `uname` in 26 ## checking for openGL-environment and other sys-specific parameters 27 case "$target" in 24 28 ### WINDOWS ### 25 * MINGW*)29 *-*-mingw32*) 26 30 echo "mingw-WINDOWS detected" 27 31 … … 70 74 LIBS="$LIBS -lmingw32" 71 75 fi 72 # checking for SDL-headers73 AC_CHECK_HEADERS(SDL/SDL.h ,,74 [AC_MSG_ERROR([cannot find SDL headers]) ])75 76 #checking for libSDL77 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)78 if test "$FOUND_sdlmain" = "yes" ; then79 LIBS="$LIBS -lsdlmain"80 else81 echo "------------------"82 echo "SDL library not found."83 echo "please install the SDL library, which can be found at http://www.libsdl.org"84 echo "------------------"85 exit 186 fi87 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)88 if test "$FOUND_sdl" = "yes" ; then89 LIBS="$LIBS -lsdl"90 else91 echo "------------------"92 echo "SDL library not found."93 echo "please install the SDL library, which can be found at http://www.libsdl.org"94 echo "------------------"95 exit -196 fi97 76 98 77 ;; 99 78 100 79 ### LINUX ### 101 * Linux*)80 *-*-linux*) 102 81 echo "Linux detected" 103 82 … … 134 113 exit -1 135 114 fi 136 137 # checking for SDL-headers138 AC_CHECK_HEADERS(SDL/SDL.h ,,139 [AC_MSG_ERROR([cannot find SDL headers]) ])140 141 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)142 if test "$FOUND_SDL" = "yes" ; then143 LIBS="$LIBS -lSDL"144 else145 echo "------------------"146 echo "SDL library not found."147 echo "please install the SDL library, which can be found at http://www.libsdl.org"148 echo "------------------"149 exit -1150 fi151 152 # FIXME: Replace `main' with a function in `-lOSMesa':153 AC_CHECK_LIB([OSMesa], [main])154 # FIXME: Replace `main' with a function in `-lX11':155 AC_CHECK_LIB([X11], [main])156 # FIXME: Replace `main' with a function in `-lXt':157 AC_CHECK_LIB([Xt], [main])158 115 ;; 159 116 *) … … 165 122 166 123 124 ## checking for SDL 125 SDL_VERSION=1.2.7 126 AM_PATH_SDL($SDL_VERSION, 127 :, 128 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 129 ) 130 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 131 LIBS="$LIBS $SDL_LIBS" 132 133 134 ## checking for GTK 135 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 136 AC_SUBST(GTK2_LIBS) 137 AC_SUBST(GTK2_CFLAGS) 138 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes) 139 167 140 168 141 #checking for pthread libs … … 173 146 174 147 175 176 177 148 # FIXME: Replace `main' with a function in `-lm': 178 149 AC_CHECK_LIB([m], [main]) 179 180 LIBS="$LIBS `pkg-config --libs gtk+-2.0`"181 150 182 151 -
orxonox/trunk/console/Makefile.am
r2589 r2980 1 AM_CXXFLAGS= `pkg-config --cflags gtk+-2.0`$(MSBITFIELDS)2 #AM_LDFLAGS=`pkg-config --libs gtk+-2.0` 1 AM_CXXFLAGS=$(GTK2_CFLAGS) $(MSBITFIELDS) 2 AM_LDFLAGS=$(GTK2_LIBS) 3 3 4 4 bin_PROGRAMS=console -
orxonox/trunk/console/Makefile.in
r2711 r2980 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = console$(EXEEXT) 41 42 subdir = console … … 97 98 EGREP = @EGREP@ 98 99 EXEEXT = @EXEEXT@ 100 GTK2_CFLAGS = @GTK2_CFLAGS@ 101 GTK2_LIBS = @GTK2_LIBS@ 102 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 103 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 99 104 INSTALL_DATA = @INSTALL_DATA@ 100 105 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 115 120 PACKAGE_VERSION = @PACKAGE_VERSION@ 116 121 PATH_SEPARATOR = @PATH_SEPARATOR@ 122 PKG_CONFIG = @PKG_CONFIG@ 123 SDL_CFLAGS = @SDL_CFLAGS@ 124 SDL_CONFIG = @SDL_CONFIG@ 125 SDL_LIBS = @SDL_LIBS@ 117 126 SET_MAKE = @SET_MAKE@ 118 127 SHELL = @SHELL@ … … 130 139 am__quote = @am__quote@ 131 140 bindir = @bindir@ 141 build = @build@ 132 142 build_alias = @build_alias@ 143 build_cpu = @build_cpu@ 144 build_os = @build_os@ 145 build_vendor = @build_vendor@ 133 146 datadir = @datadir@ 134 147 exec_prefix = @exec_prefix@ 148 host = @host@ 135 149 host_alias = @host_alias@ 150 host_cpu = @host_cpu@ 151 host_os = @host_os@ 152 host_vendor = @host_vendor@ 136 153 includedir = @includedir@ 137 154 infodir = @infodir@ … … 148 165 sharedstatedir = @sharedstatedir@ 149 166 sysconfdir = @sysconfdir@ 167 target = @target@ 150 168 target_alias = @target_alias@ 151 AM_CXXFLAGS = `pkg-config --cflags gtk+-2.0` $(MSBITFIELDS) 169 target_cpu = @target_cpu@ 170 target_os = @target_os@ 171 target_vendor = @target_vendor@ 172 AM_CXXFLAGS = $(GTK2_CFLAGS) $(MSBITFIELDS) 173 AM_LDFLAGS = $(GTK2_LIBS) 152 174 console_SOURCES = orxonox_console.cc orxonox_console_entry.cc orxonox_console_log.cc 153 175 noinst_HEADERS = orxonox_console.h orxonox_console_entry.h orxonox_console_log.h -
orxonox/trunk/gui/Makefile.am
r2613 r2980 1 AM_CXXFLAGS= `pkg-config --cflags gtk+-2.0`$(MSBITFIELDS)2 #AM_LDFLAGS=`pkg-config --libs gtk+-2.0` 1 AM_CXXFLAGS=$(GTK2_CFLAGS) $(MSBITFIELDS) 2 AM_LDFLAGS=$(GTK2_LIBS) 3 3 4 4 bin_PROGRAMS=gui -
orxonox/trunk/gui/Makefile.in
r2711 r2980 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = gui$(EXEEXT) 41 42 subdir = gui … … 103 104 EGREP = @EGREP@ 104 105 EXEEXT = @EXEEXT@ 106 GTK2_CFLAGS = @GTK2_CFLAGS@ 107 GTK2_LIBS = @GTK2_LIBS@ 108 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 109 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 105 110 INSTALL_DATA = @INSTALL_DATA@ 106 111 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 121 126 PACKAGE_VERSION = @PACKAGE_VERSION@ 122 127 PATH_SEPARATOR = @PATH_SEPARATOR@ 128 PKG_CONFIG = @PKG_CONFIG@ 129 SDL_CFLAGS = @SDL_CFLAGS@ 130 SDL_CONFIG = @SDL_CONFIG@ 131 SDL_LIBS = @SDL_LIBS@ 123 132 SET_MAKE = @SET_MAKE@ 124 133 SHELL = @SHELL@ … … 136 145 am__quote = @am__quote@ 137 146 bindir = @bindir@ 147 build = @build@ 138 148 build_alias = @build_alias@ 149 build_cpu = @build_cpu@ 150 build_os = @build_os@ 151 build_vendor = @build_vendor@ 139 152 datadir = @datadir@ 140 153 exec_prefix = @exec_prefix@ 154 host = @host@ 141 155 host_alias = @host_alias@ 156 host_cpu = @host_cpu@ 157 host_os = @host_os@ 158 host_vendor = @host_vendor@ 142 159 includedir = @includedir@ 143 160 infodir = @infodir@ … … 154 171 sharedstatedir = @sharedstatedir@ 155 172 sysconfdir = @sysconfdir@ 173 target = @target@ 156 174 target_alias = @target_alias@ 157 AM_CXXFLAGS = `pkg-config --cflags gtk+-2.0` $(MSBITFIELDS) 175 target_cpu = @target_cpu@ 176 target_os = @target_os@ 177 target_vendor = @target_vendor@ 178 AM_CXXFLAGS = $(GTK2_CFLAGS) $(MSBITFIELDS) 179 AM_LDFLAGS = $(GTK2_LIBS) 158 180 gui_SOURCES = orxonox_gui.cc orxonox_gui_video.cc orxonox_gui_audio.cc orxonox_gui_exec.cc orxonox_gui_flags.cc orxonox_gui_banner.cc orxonox_gui_keys.cc 159 181 noinst_HEADERS = orxonox_gui.h orxonox_gui_video.h orxonox_gui_audio.h orxonox_gui_exec.h orxonox_gui_flags.h orxonox_gui_banner.h orxonox_gui_keys.h -
orxonox/trunk/importer/Makefile.in
r2932 r2980 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = importer$(EXEEXT) 41 42 subdir = importer … … 98 99 EGREP = @EGREP@ 99 100 EXEEXT = @EXEEXT@ 101 GTK2_CFLAGS = @GTK2_CFLAGS@ 102 GTK2_LIBS = @GTK2_LIBS@ 103 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 104 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 100 105 INSTALL_DATA = @INSTALL_DATA@ 101 106 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 116 121 PACKAGE_VERSION = @PACKAGE_VERSION@ 117 122 PATH_SEPARATOR = @PATH_SEPARATOR@ 123 PKG_CONFIG = @PKG_CONFIG@ 124 SDL_CFLAGS = @SDL_CFLAGS@ 125 SDL_CONFIG = @SDL_CONFIG@ 126 SDL_LIBS = @SDL_LIBS@ 118 127 SET_MAKE = @SET_MAKE@ 119 128 SHELL = @SHELL@ … … 131 140 am__quote = @am__quote@ 132 141 bindir = @bindir@ 142 build = @build@ 133 143 build_alias = @build_alias@ 144 build_cpu = @build_cpu@ 145 build_os = @build_os@ 146 build_vendor = @build_vendor@ 134 147 datadir = @datadir@ 135 148 exec_prefix = @exec_prefix@ 149 host = @host@ 136 150 host_alias = @host_alias@ 151 host_cpu = @host_cpu@ 152 host_os = @host_os@ 153 host_vendor = @host_vendor@ 137 154 includedir = @includedir@ 138 155 infodir = @infodir@ … … 149 166 sharedstatedir = @sharedstatedir@ 150 167 sysconfdir = @sysconfdir@ 168 target = @target@ 151 169 target_alias = @target_alias@ 170 target_cpu = @target_cpu@ 171 target_os = @target_os@ 172 target_vendor = @target_vendor@ 152 173 AM_CXXFLAGS = "-I/usr/X11R6/include" 153 174 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS) -
orxonox/trunk/src/Makefile.in
r2816 r2980 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = orxonox$(EXEEXT) 41 42 subdir = src … … 113 114 EGREP = @EGREP@ 114 115 EXEEXT = @EXEEXT@ 116 GTK2_CFLAGS = @GTK2_CFLAGS@ 117 GTK2_LIBS = @GTK2_LIBS@ 118 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 119 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 115 120 INSTALL_DATA = @INSTALL_DATA@ 116 121 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 131 136 PACKAGE_VERSION = @PACKAGE_VERSION@ 132 137 PATH_SEPARATOR = @PATH_SEPARATOR@ 138 PKG_CONFIG = @PKG_CONFIG@ 139 SDL_CFLAGS = @SDL_CFLAGS@ 140 SDL_CONFIG = @SDL_CONFIG@ 141 SDL_LIBS = @SDL_LIBS@ 133 142 SET_MAKE = @SET_MAKE@ 134 143 SHELL = @SHELL@ … … 146 155 am__quote = @am__quote@ 147 156 bindir = @bindir@ 157 build = @build@ 148 158 build_alias = @build_alias@ 159 build_cpu = @build_cpu@ 160 build_os = @build_os@ 161 build_vendor = @build_vendor@ 149 162 datadir = @datadir@ 150 163 exec_prefix = @exec_prefix@ 164 host = @host@ 151 165 host_alias = @host_alias@ 166 host_cpu = @host_cpu@ 167 host_os = @host_os@ 168 host_vendor = @host_vendor@ 152 169 includedir = @includedir@ 153 170 infodir = @infodir@ … … 164 181 sharedstatedir = @sharedstatedir@ 165 182 sysconfdir = @sysconfdir@ 183 target = @target@ 166 184 target_alias = @target_alias@ 185 target_cpu = @target_cpu@ 186 target_os = @target_os@ 187 target_vendor = @target_vendor@ 167 188 AM_CXXFLAGS = "-I/usr/X11R6/include" 168 189 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS)
Note: See TracChangeset
for help on using the changeset viewer.