Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2980 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Nov 25, 2004, 11:28:18 AM (19 years ago)
Author:
bensch
Message:

orxonox/truk: configure.ac/makefile.am's better now. more dynamic

Location:
orxonox/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/Makefile.in

    r2819 r2980  
    3434PRE_UNINSTALL = :
    3535POST_UNINSTALL = :
    36 subdir = .
     36host_triplet = @host@
    3737DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
    3838        $(srcdir)/Makefile.in $(srcdir)/config.h.in \
    3939        $(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
     42subdir = .
    4143ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    4244am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    9496EGREP = @EGREP@
    9597EXEEXT = @EXEEXT@
     98GTK2_CFLAGS = @GTK2_CFLAGS@
     99GTK2_LIBS = @GTK2_LIBS@
     100HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
     101HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
    96102INSTALL_DATA = @INSTALL_DATA@
    97103INSTALL_PROGRAM = @INSTALL_PROGRAM@
     
    112118PACKAGE_VERSION = @PACKAGE_VERSION@
    113119PATH_SEPARATOR = @PATH_SEPARATOR@
     120PKG_CONFIG = @PKG_CONFIG@
     121SDL_CFLAGS = @SDL_CFLAGS@
     122SDL_CONFIG = @SDL_CONFIG@
     123SDL_LIBS = @SDL_LIBS@
    114124SET_MAKE = @SET_MAKE@
    115125SHELL = @SHELL@
     
    127137am__quote = @am__quote@
    128138bindir = @bindir@
     139build = @build@
    129140build_alias = @build_alias@
     141build_cpu = @build_cpu@
     142build_os = @build_os@
     143build_vendor = @build_vendor@
    130144datadir = @datadir@
    131145exec_prefix = @exec_prefix@
     146host = @host@
    132147host_alias = @host_alias@
     148host_cpu = @host_cpu@
     149host_os = @host_os@
     150host_vendor = @host_vendor@
    133151includedir = @includedir@
    134152infodir = @infodir@
     
    145163sharedstatedir = @sharedstatedir@
    146164sysconfdir = @sysconfdir@
     165target = @target@
    147166target_alias = @target_alias@
     167target_cpu = @target_cpu@
     168target_os = @target_os@
     169target_vendor = @target_vendor@
    148170SUBDIRS = src console gui importer
    149171all: config.h
  • orxonox/trunk/aclocal.m4

    r2819 r2980  
    1111# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    1212# PARTICULAR PURPOSE.
     13
     14
     15dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
     16dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
     17dnl also defines GSTUFF_PKG_ERRORS on error
     18AC_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
     79dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
     80dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
     81dnl
     82AC_DEFUN([AM_PATH_SDL],
     83[dnl
     84dnl Get the cflags and libraries from the sdl-config script
     85dnl
     86AC_ARG_WITH(sdl-prefix,[  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)],
     87            sdl_prefix="$withval", sdl_prefix="")
     88AC_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="")
     90AC_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"
     129dnl
     130dnl Now check if the installed SDL is sufficiently new. (Also sanity
     131dnl checks the results of sdl-config to some extent
     132dnl
     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
     140char*
     141my_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
     156int 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, &micro) != 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
     217int 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])
    13247
    14248#                                                        -*- Autoconf -*-
  • orxonox/trunk/config.h.in

    r2627 r2980  
    1616#undef HAVE_LIBM
    1717
    18 /* Define to 1 if you have the `OSMesa' library (-lOSMesa). */
    19 #undef HAVE_LIBOSMESA
    20 
    21 /* Define to 1 if you have the `X11' library (-lX11). */
    22 #undef HAVE_LIBX11
    23 
    24 /* Define to 1 if you have the `Xt' library (-lXt). */
    25 #undef HAVE_LIBXT
    26 
    2718/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
    2819   to 0 otherwise. */
     
    3122/* Define to 1 if you have the <memory.h> header file. */
    3223#undef HAVE_MEMORY_H
    33 
    34 /* Define to 1 if you have the <SDL/SDL.h> header file. */
    35 #undef HAVE_SDL_SDL_H
    3624
    3725/* Define to 1 if you have the `sqrt' function. */
  • orxonox/trunk/configure

    r2968 r2980  
    312312#endif"
    313313
    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 MSBITFIELDS LIBOBJS LTLIBOBJS'
     314ac_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'
    315315ac_subst_files=''
    316316
     
    846846  --program-suffix=SUFFIX            append SUFFIX to installed program names
    847847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     848
     849System 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]
    848853_ACEOF
    849854fi
     
    860865  --disable-dependency-tracking  speeds up one-time build
    861866  --enable-dependency-tracking   do not reject slow dependency extractors
     867  --disable-sdltest       Do not try to compile and run a test SDL program
     868
     869Optional 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)
    862874
    863875Some influential environment variables:
     
    13211333
    13221334
    1323 am__api_version="1.8"
     1335
     1336# Detect the canonical host and target build environment.
    13241337ac_aux_dir=
    13251338for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    13471360ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    13481361
     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
     1365echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1366   { (exit 1); exit 1; }; }
     1367
     1368echo "$as_me:$LINENO: checking build system type" >&5
     1369echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1370if test "${ac_cv_build+set}" = set; then
     1371  echo $ECHO_N "(cached) $ECHO_C" >&6
     1372else
     1373  ac_cv_build_alias=$build_alias
     1374test -z "$ac_cv_build_alias" &&
     1375  ac_cv_build_alias=`$ac_config_guess`
     1376test -z "$ac_cv_build_alias" &&
     1377  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1378echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1379   { (exit 1); exit 1; }; }
     1380ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1381  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1382echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1383   { (exit 1); exit 1; }; }
     1384
     1385fi
     1386echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1387echo "${ECHO_T}$ac_cv_build" >&6
     1388build=$ac_cv_build
     1389build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1390build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1391build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1392
     1393
     1394echo "$as_me:$LINENO: checking host system type" >&5
     1395echo $ECHO_N "checking host system type... $ECHO_C" >&6
     1396if test "${ac_cv_host+set}" = set; then
     1397  echo $ECHO_N "(cached) $ECHO_C" >&6
     1398else
     1399  ac_cv_host_alias=$host_alias
     1400test -z "$ac_cv_host_alias" &&
     1401  ac_cv_host_alias=$ac_cv_build_alias
     1402ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     1403  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     1404echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     1405   { (exit 1); exit 1; }; }
     1406
     1407fi
     1408echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     1409echo "${ECHO_T}$ac_cv_host" >&6
     1410host=$ac_cv_host
     1411host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1412host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1413host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1414
     1415
     1416echo "$as_me:$LINENO: checking target system type" >&5
     1417echo $ECHO_N "checking target system type... $ECHO_C" >&6
     1418if test "${ac_cv_target+set}" = set; then
     1419  echo $ECHO_N "(cached) $ECHO_C" >&6
     1420else
     1421  ac_cv_target_alias=$target_alias
     1422test "x$ac_cv_target_alias" = "x" &&
     1423  ac_cv_target_alias=$ac_cv_host_alias
     1424ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     1425  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     1426echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     1427   { (exit 1); exit 1; }; }
     1428
     1429fi
     1430echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     1431echo "${ECHO_T}$ac_cv_target" >&6
     1432target=$ac_cv_target
     1433target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1434target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1435target_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.
     1440test -n "$target_alias" &&
     1441  test "$program_prefix$program_suffix$program_transform_name" = \
     1442    NONENONEs,x,x, &&
     1443  program_prefix=${target_alias}-
     1444
     1445
     1446am__api_version="1.8"
    13491447# Find a good install program.  We prefer a C program (faster),
    13501448# so one script is as good as another.  But avoid the broken or
     
    33223420
    33233421
    3324 
    3325 
    3326 
    33273422ac_ext=c
    33283423ac_cpp='$CPP $CPPFLAGS'
     
    37463841echo "$as_me:$LINENO: checking for System" >&5
    37473842echo $ECHO_N "checking for System... $ECHO_C" >&6
    3748 case `uname` in
     3843## checking for openGL-environment and other sys-specific parameters
     3844case "$target" in
    37493845### WINDOWS ###
    3750   *MINGW*)
     3846  *-*-mingw32*)
    37513847echo "mingw-WINDOWS detected"
    37523848
     
    43564452        LIBS="$LIBS -lmingw32"
    43574453    fi
    4358 # checking for SDL-headers
    4359 
    4360 for ac_header in SDL/SDL.h
     4454
     4455    ;;
     4456
     4457### LINUX ###
     4458 *-*-linux*)
     4459echo "Linux detected"
     4460
     4461 Linux="yes"
     4462
     4463# checking gl header
     4464
     4465for ac_header in GL/gl.h
    43614466do
    43624467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    45044609
    45054610else
    4506   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    4507 echo "$as_me: error: cannot find SDL headers" >&2;}
     4611  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     4612echo "$as_me: error: cannot find opengl headers" >&2;}
    45084613   { (exit 1); exit 1; }; }
    45094614fi
     
    45124617
    45134618
    4514 #checking for libSDL
    4515     echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
    4516 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
    4517 if test "${ac_cv_lib_sdlmain_main+set}" = set; then
     4619#  checking for Unix GL
     4620   echo "$as_me:$LINENO: checking for main in -lGL" >&5
     4621echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
     4622if test "${ac_cv_lib_GL_main+set}" = set; then
    45184623  echo $ECHO_N "(cached) $ECHO_C" >&6
    45194624else
    45204625  ac_check_lib_save_LIBS=$LIBS
    4521 LIBS="-lsdlmain  $LIBS"
     4626LIBS="-lGL  $LIBS"
    45224627cat >conftest.$ac_ext <<_ACEOF
    45234628/* confdefs.h.  */
     
    45584663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45594664  (exit $ac_status); }; }; then
    4560   ac_cv_lib_sdlmain_main=yes
     4665  ac_cv_lib_GL_main=yes
    45614666else
    45624667  echo "$as_me: failed program was:" >&5
    45634668sed 's/^/| /' conftest.$ac_ext >&5
    45644669
    4565 ac_cv_lib_sdlmain_main=no
     4670ac_cv_lib_GL_main=no
    45664671fi
    45674672rm -f conftest.err conftest.$ac_objext \
     
    45694674LIBS=$ac_check_lib_save_LIBS
    45704675fi
    4571 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
    4572 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
    4573 if test $ac_cv_lib_sdlmain_main = yes; then
    4574   FOUND_sdlmain=yes
    4575 fi
    4576 
    4577     if test "$FOUND_sdlmain" = "yes" ; then
    4578         LIBS="$LIBS -lsdlmain"
    4579     else
     4676echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
     4677echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
     4678if test $ac_cv_lib_GL_main = yes; then
     4679  FOUND_GL=yes
     4680fi
     4681
     4682   if test "$FOUND_GL" = "yes" ; then
     4683     LIBS="$LIBS -lGL"
     4684   else
    45804685         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"
    46544688         echo "------------------"
    46554689         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
     4694for ac_header in GL/glu.h
    46694695do
    46704696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    48204846
    48214847
    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
     4849echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
     4850if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
    48264851  echo $ECHO_N "(cached) $ECHO_C" >&6
    48274852else
    48284853  ac_check_lib_save_LIBS=$LIBS
    4829 LIBS="-lGL  $LIBS"
     4854LIBS="-lGLU  $LIBS"
     4855cat >conftest.$ac_ext <<_ACEOF
     4856/* confdefs.h.  */
     4857_ACEOF
     4858cat confdefs.h >>conftest.$ac_ext
     4859cat >>conftest.$ac_ext <<_ACEOF
     4860/* end confdefs.h.  */
     4861
     4862/* Override any gcc2 internal prototype to avoid an error.  */
     4863#ifdef __cplusplus
     4864extern "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.  */
     4868char gluProject ();
     4869int
     4870main ()
     4871{
     4872gluProject ();
     4873  ;
     4874  return 0;
     4875}
     4876_ACEOF
     4877rm -f conftest.$ac_objext conftest$ac_exeext
     4878if { (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
     4900else
     4901  echo "$as_me: failed program was:" >&5
     4902sed 's/^/| /' conftest.$ac_ext >&5
     4903
     4904ac_cv_lib_GLU_gluProject=no
     4905fi
     4906rm -f conftest.err conftest.$ac_objext \
     4907      conftest$ac_exeext conftest.$ac_ext
     4908LIBS=$ac_check_lib_save_LIBS
     4909fi
     4910echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
     4911echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
     4912if test $ac_cv_lib_GLU_gluProject = yes; then
     4913  FOUND_GLU=yes
     4914fi
     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    ;;
     4929esac
     4930
     4931
     4932
     4933
     4934## checking for SDL
     4935SDL_VERSION=1.2.7
     4936
     4937# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
     4938if test "${with_sdl_prefix+set}" = set; then
     4939  withval="$with_sdl_prefix"
     4940  sdl_prefix="$withval"
     4941else
     4942  sdl_prefix=""
     4943fi;
     4944
     4945# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
     4946if test "${with_sdl_exec_prefix+set}" = set; then
     4947  withval="$with_sdl_exec_prefix"
     4948  sdl_exec_prefix="$withval"
     4949else
     4950  sdl_exec_prefix=""
     4951fi;
     4952# Check whether --enable-sdltest or --disable-sdltest was given.
     4953if test "${enable_sdltest+set}" = set; then
     4954  enableval="$enable_sdltest"
     4955
     4956else
     4957  enable_sdltest=yes
     4958fi;
     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.
     4976set dummy sdl-config; ac_word=$2
     4977echo "$as_me:$LINENO: checking for $ac_word" >&5
     4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4979if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
     4980  echo $ECHO_N "(cached) $ECHO_C" >&6
     4981else
     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
     4988for as_dir in $PATH
     4989do
     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
     4998done
     4999done
     5000
     5001  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
     5002  ;;
     5003esac
     5004fi
     5005SDL_CONFIG=$ac_cv_path_SDL_CONFIG
     5006
     5007if test -n "$SDL_CONFIG"; then
     5008  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
     5009echo "${ECHO_T}$SDL_CONFIG" >&6
     5010else
     5011  echo "$as_me:$LINENO: result: no" >&5
     5012echo "${ECHO_T}no" >&6
     5013fi
     5014
     5015  min_sdl_version=$SDL_VERSION
     5016  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
     5017echo $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"
     5039else
     5040  cat >conftest.$ac_ext <<_ACEOF
     5041/* confdefs.h.  */
     5042_ACEOF
     5043cat confdefs.h >>conftest.$ac_ext
     5044cat >>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
     5052char*
     5053my_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
     5068int 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, &micro) != 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
     5105rm -f conftest$ac_exeext
     5106if { (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  :
     5117else
     5118  echo "$as_me: program exited with status $ac_status" >&5
     5119echo "$as_me: failed program was:" >&5
     5120sed 's/^/| /' conftest.$ac_ext >&5
     5121
     5122( exit $ac_status )
     5123no_sdl=yes
     5124fi
     5125rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5126fi
     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
     5133echo "${ECHO_T}yes" >&6
     5134     :
     5135  else
     5136     echo "$as_me:$LINENO: result: no" >&5
     5137echo "${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
     5153cat confdefs.h >>conftest.$ac_ext
     5154cat >>conftest.$ac_ext <<_ACEOF
     5155/* end confdefs.h.  */
     5156
     5157#include <stdio.h>
     5158#include "SDL.h"
     5159
     5160int main(int argc, char *argv[])
     5161{ return 0; }
     5162#undef  main
     5163#define main K_and_R_C_main
     5164
     5165int
     5166main ()
     5167{
     5168 return 0;
     5169  ;
     5170  return 0;
     5171}
     5172_ACEOF
     5173rm -f conftest.$ac_objext conftest$ac_exeext
     5174if { (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"
     5204else
     5205  echo "$as_me: failed program was:" >&5
     5206sed '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"
     5212fi
     5213rm -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
     5222echo "$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
     5230CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
     5231LIBS="$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.
     5239set dummy pkg-config; ac_word=$2
     5240echo "$as_me:$LINENO: checking for $ac_word" >&5
     5241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5242if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     5243  echo $ECHO_N "(cached) $ECHO_C" >&6
     5244else
     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
     5251for as_dir in $PATH
     5252do
     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
     5261done
     5262done
     5263
     5264  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
     5265  ;;
     5266esac
     5267fi
     5268PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     5269
     5270if test -n "$PKG_CONFIG"; then
     5271  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     5272echo "${ECHO_T}$PKG_CONFIG" >&6
     5273else
     5274  echo "$as_me:$LINENO: result: no" >&5
     5275echo "${ECHO_T}no" >&6
     5276fi
     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
     5289echo $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
     5293echo "${ECHO_T}yes" >&6
     5294            succeeded=yes
     5295
     5296            echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
     5297echo $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
     5300echo "${ECHO_T}$GTK2_CFLAGS" >&6
     5301
     5302            echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
     5303echo $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
     5306echo "${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
     5334if test "x$have_gtk2" = xyes; then
     5335  HAVE_GTK2_TRUE=
     5336  HAVE_GTK2_FALSE='#'
     5337else
     5338  HAVE_GTK2_TRUE='#'
     5339  HAVE_GTK2_FALSE=
     5340fi
     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
     5347echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
     5348if test "${ac_cv_lib_pthread_main+set}" = set; then
     5349  echo $ECHO_N "(cached) $ECHO_C" >&6
     5350else
     5351  ac_check_lib_save_LIBS=$LIBS
     5352LIBS="-lpthread  $LIBS"
    48305353cat >conftest.$ac_ext <<_ACEOF
    48315354/* confdefs.h.  */
     
    48665389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    48675390  (exit $ac_status); }; }; then
    4868   ac_cv_lib_GL_main=yes
     5391  ac_cv_lib_pthread_main=yes
    48695392else
    48705393  echo "$as_me: failed program was:" >&5
    48715394sed 's/^/| /' conftest.$ac_ext >&5
    48725395
    4873 ac_cv_lib_GL_main=no
     5396ac_cv_lib_pthread_main=no
    48745397fi
    48755398rm -f conftest.err conftest.$ac_objext \
     
    48775400LIBS=$ac_check_lib_save_LIBS
    48785401fi
    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
     5402echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
     5403echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
     5404if test $ac_cv_lib_pthread_main = yes; then
     5405  FOUND_pthread=yes
     5406fi
     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
     5417echo "$as_me:$LINENO: checking for main in -lm" >&5
     5418echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     5419if test "${ac_cv_lib_m_main+set}" = set; then
     5420  echo $ECHO_N "(cached) $ECHO_C" >&6
     5421else
     5422  ac_check_lib_save_LIBS=$LIBS
     5423LIBS="-lm  $LIBS"
     5424cat >conftest.$ac_ext <<_ACEOF
     5425/* confdefs.h.  */
     5426_ACEOF
     5427cat confdefs.h >>conftest.$ac_ext
     5428cat >>conftest.$ac_ext <<_ACEOF
     5429/* end confdefs.h.  */
     5430
     5431
     5432int
     5433main ()
     5434{
     5435main ();
     5436  ;
     5437  return 0;
     5438}
     5439_ACEOF
     5440rm -f conftest.$ac_objext conftest$ac_exeext
     5441if { (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
     5463else
     5464  echo "$as_me: failed program was:" >&5
     5465sed 's/^/| /' conftest.$ac_ext >&5
     5466
     5467ac_cv_lib_m_main=no
     5468fi
     5469rm -f conftest.err conftest.$ac_objext \
     5470      conftest$ac_exeext conftest.$ac_ext
     5471LIBS=$ac_check_lib_save_LIBS
     5472fi
     5473echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     5474echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     5475if 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
     5482fi
     5483
     5484
     5485##LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
     5486
     5487
     5488# Checks for header files.
     5489echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     5490echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     5491if test "${ac_cv_header_stdc+set}" = set; then
     5492  echo $ECHO_N "(cached) $ECHO_C" >&6
     5493else
     5494  cat >conftest.$ac_ext <<_ACEOF
     5495/* confdefs.h.  */
     5496_ACEOF
     5497cat confdefs.h >>conftest.$ac_ext
     5498cat >>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
     5505int
     5506main ()
     5507{
     5508
     5509  ;
     5510  return 0;
     5511}
     5512_ACEOF
     5513rm -f conftest.$ac_objext
     5514if { (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
     5536else
     5537  echo "$as_me: failed program was:" >&5
     5538sed 's/^/| /' conftest.$ac_ext >&5
     5539
     5540ac_cv_header_stdc=no
     5541fi
     5542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5543
     5544if 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
     5549cat confdefs.h >>conftest.$ac_ext
     5550cat >>conftest.$ac_ext <<_ACEOF
     5551/* end confdefs.h.  */
     5552#include <string.h>
     5553
     5554_ACEOF
     5555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5556  $EGREP "memchr" >/dev/null 2>&1; then
     5557  :
     5558else
     5559  ac_cv_header_stdc=no
     5560fi
     5561rm -f conftest*
     5562
     5563fi
     5564
     5565if 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
     5570cat confdefs.h >>conftest.$ac_ext
     5571cat >>conftest.$ac_ext <<_ACEOF
     5572/* end confdefs.h.  */
     5573#include <stdlib.h>
     5574
     5575_ACEOF
     5576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5577  $EGREP "free" >/dev/null 2>&1; then
     5578  :
     5579else
     5580  ac_cv_header_stdc=no
     5581fi
     5582rm -f conftest*
     5583
     5584fi
     5585
     5586if 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  :
     5590else
     5591  cat >conftest.$ac_ext <<_ACEOF
     5592/* confdefs.h.  */
     5593_ACEOF
     5594cat confdefs.h >>conftest.$ac_ext
     5595cat >>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)))
     5610int
     5611main ()
     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
     5621rm -f conftest$ac_exeext
     5622if { (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  :
     5633else
     5634  echo "$as_me: program exited with status $ac_status" >&5
     5635echo "$as_me: failed program was:" >&5
     5636sed 's/^/| /' conftest.$ac_ext >&5
     5637
     5638( exit $ac_status )
     5639ac_cv_header_stdc=no
     5640fi
     5641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5642fi
     5643fi
     5644fi
     5645echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     5646echo "${ECHO_T}$ac_cv_header_stdc" >&6
     5647if test $ac_cv_header_stdc = yes; then
     5648
     5649cat >>confdefs.h <<\_ACEOF
     5650#define STDC_HEADERS 1
     5651_ACEOF
     5652
     5653fi
     5654
     5655
     5656
     5657for ac_header in stdlib.h string.h
    48985658do
    48995659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    50405800_ACEOF
    50415801
    5042 else
    5043   { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
    5044 echo "$as_me: error: cannot find opengl headers" >&2;}
    5045    { (exit 1); exit 1; }; }
    50465802fi
    50475803
     
    50495805
    50505806
    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.
     5808echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     5809echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     5810if test "${ac_cv_header_stdbool_h+set}" = set; then
    50545811  echo $ECHO_N "(cached) $ECHO_C" >&6
    50555812else
    5056   ac_check_lib_save_LIBS=$LIBS
    5057 LIBS="-lGLU  $LIBS"
    5058 cat >conftest.$ac_ext <<_ACEOF
     5813  cat >conftest.$ac_ext <<_ACEOF
    50595814/* confdefs.h.  */
    50605815_ACEOF
     
    50635818/* end confdefs.h.  */
    50645819
    5065 /* Override any gcc2 internal prototype to avoid an error.  */
    5066 #ifdef __cplusplus
    5067 extern "C"
     5820#include <stdbool.h>
     5821#ifndef bool
     5822# error bool is not defined
    50685823#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
    50725852int
    50735853main ()
    50745854{
    5075 gluProject ();
     5855 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
    50765856  ;
    50775857  return 0;
    50785858}
    50795859_ACEOF
    5080 rm -f conftest.$ac_objext conftest$ac_exeext
    5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5082   (eval $ac_link) 2>conftest.er1
     5860rm -f conftest.$ac_objext
     5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5862  (eval $ac_compile) 2>conftest.er1
    50835863  ac_status=$?
    50845864  grep -v '^ *+' conftest.er1 >conftest.err
     
    50945874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    50955875  (exit $ac_status); }; } &&
    5096          { ac_try='test -s conftest$ac_exeext'
     5876         { ac_try='test -s conftest.$ac_objext'
    50975877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    50985878  (eval $ac_try) 2>&5
     
    51005880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    51015881  (exit $ac_status); }; }; then
    5102   ac_cv_lib_GLU_gluProject=yes
     5882  ac_cv_header_stdbool_h=yes
    51035883else
    51045884  echo "$as_me: failed program was:" >&5
    51055885sed 's/^/| /' conftest.$ac_ext >&5
    51065886
    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
     5887ac_cv_header_stdbool_h=no
     5888fi
     5889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5890fi
     5891echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     5892echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     5893echo "$as_me:$LINENO: checking for _Bool" >&5
     5894echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     5895if test "${ac_cv_type__Bool+set}" = set; then
     5896  echo $ECHO_N "(cached) $ECHO_C" >&6
     5897else
     5898  cat >conftest.$ac_ext <<_ACEOF
     5899/* confdefs.h.  */
     5900_ACEOF
     5901cat confdefs.h >>conftest.$ac_ext
     5902cat >>conftest.$ac_ext <<_ACEOF
     5903/* end confdefs.h.  */
     5904$ac_includes_default
     5905int
     5906main ()
     5907{
     5908if ((_Bool *) 0)
     5909  return 0;
     5910if (sizeof (_Bool))
     5911  return 0;
     5912  ;
     5913  return 0;
     5914}
     5915_ACEOF
     5916rm -f conftest.$ac_objext
     5917if { (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
     5939else
     5940  echo "$as_me: failed program was:" >&5
     5941sed 's/^/| /' conftest.$ac_ext >&5
     5942
     5943ac_cv_type__Bool=no
     5944fi
     5945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5946fi
     5947echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     5948echo "${ECHO_T}$ac_cv_type__Bool" >&6
     5949if test $ac_cv_type__Bool = yes; then
     5950
     5951cat >>confdefs.h <<_ACEOF
     5952#define HAVE__BOOL 1
     5953_ACEOF
     5954
     5955
     5956fi
     5957
     5958if test $ac_cv_header_stdbool_h = yes; then
     5959
     5960cat >>confdefs.h <<\_ACEOF
     5961#define HAVE_STDBOOL_H 1
     5962_ACEOF
     5963
     5964fi
     5965
     5966
     5967# Checks for library functions.
     5968
     5969for ac_header in stdlib.h
    51325970do
    51335971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    52746112_ACEOF
    52756113
    5276 else
    5277   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    5278 echo "$as_me: error: cannot find SDL headers" >&2;}
    5279    { (exit 1); exit 1; }; }
    5280 fi
    5281 
    5282 done
    5283 
    5284 
    5285     echo "$as_me:$LINENO: checking for main in -lSDL" >&5
    5286 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
    5287 if test "${ac_cv_lib_SDL_main+set}" = set; then
    5288   echo $ECHO_N "(cached) $ECHO_C" >&6
    5289 else
    5290   ac_check_lib_save_LIBS=$LIBS
    5291 LIBS="-lSDL  $LIBS"
    5292 cat >conftest.$ac_ext <<_ACEOF
    5293 /* confdefs.h.  */
    5294 _ACEOF
    5295 cat confdefs.h >>conftest.$ac_ext
    5296 cat >>conftest.$ac_ext <<_ACEOF
    5297 /* end confdefs.h.  */
    5298 
    5299 
    5300 int
    5301 main ()
    5302 {
    5303 main ();
    5304   ;
    5305   return 0;
    5306 }
    5307 _ACEOF
    5308 rm -f conftest.$ac_objext conftest$ac_exeext
    5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5310   (eval $ac_link) 2>conftest.er1
    5311   ac_status=$?
    5312   grep -v '^ *+' conftest.er1 >conftest.err
    5313   rm -f conftest.er1
    5314   cat conftest.err >&5
    5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5316   (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\"") >&5
    5320   (eval $ac_try) 2>&5
    5321   ac_status=$?
    5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5323   (exit $ac_status); }; } &&
    5324          { ac_try='test -s conftest$ac_exeext'
    5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5326   (eval $ac_try) 2>&5
    5327   ac_status=$?
    5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5329   (exit $ac_status); }; }; then
    5330   ac_cv_lib_SDL_main=yes
    5331 else
    5332   echo "$as_me: failed program was:" >&5
    5333 sed 's/^/| /' conftest.$ac_ext >&5
    5334 
    5335 ac_cv_lib_SDL_main=no
    5336 fi
    5337 rm -f conftest.err conftest.$ac_objext \
    5338       conftest$ac_exeext conftest.$ac_ext
    5339 LIBS=$ac_check_lib_save_LIBS
    5340 fi
    5341 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
    5342 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
    5343 if test $ac_cv_lib_SDL_main = yes; then
    5344   FOUND_SDL=yes
    5345 fi
    5346 
    5347      if test "$FOUND_SDL" = "yes" ; then
    5348         LIBS="$LIBS -lSDL"
    5349      else
    5350          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 -1
    5355      fi
    5356 
    5357      # FIXME: Replace `main' with a function in `-lOSMesa':
    5358 
    5359 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
    5360 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
    5361 if test "${ac_cv_lib_OSMesa_main+set}" = set; then
    5362   echo $ECHO_N "(cached) $ECHO_C" >&6
    5363 else
    5364   ac_check_lib_save_LIBS=$LIBS
    5365 LIBS="-lOSMesa  $LIBS"
    5366 cat >conftest.$ac_ext <<_ACEOF
    5367 /* confdefs.h.  */
    5368 _ACEOF
    5369 cat confdefs.h >>conftest.$ac_ext
    5370 cat >>conftest.$ac_ext <<_ACEOF
    5371 /* end confdefs.h.  */
    5372 
    5373 
    5374 int
    5375 main ()
    5376 {
    5377 main ();
    5378   ;
    5379   return 0;
    5380 }
    5381 _ACEOF
    5382 rm -f conftest.$ac_objext conftest$ac_exeext
    5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5384   (eval $ac_link) 2>conftest.er1
    5385   ac_status=$?
    5386   grep -v '^ *+' conftest.er1 >conftest.err
    5387   rm -f conftest.er1
    5388   cat conftest.err >&5
    5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5390   (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\"") >&5
    5394   (eval $ac_try) 2>&5
    5395   ac_status=$?
    5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5397   (exit $ac_status); }; } &&
    5398          { ac_try='test -s conftest$ac_exeext'
    5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5400   (eval $ac_try) 2>&5
    5401   ac_status=$?
    5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5403   (exit $ac_status); }; }; then
    5404   ac_cv_lib_OSMesa_main=yes
    5405 else
    5406   echo "$as_me: failed program was:" >&5
    5407 sed 's/^/| /' conftest.$ac_ext >&5
    5408 
    5409 ac_cv_lib_OSMesa_main=no
    5410 fi
    5411 rm -f conftest.err conftest.$ac_objext \
    5412       conftest$ac_exeext conftest.$ac_ext
    5413 LIBS=$ac_check_lib_save_LIBS
    5414 fi
    5415 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
    5416 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
    5417 if test $ac_cv_lib_OSMesa_main = yes; then
    5418   cat >>confdefs.h <<_ACEOF
    5419 #define HAVE_LIBOSMESA 1
    5420 _ACEOF
    5421 
    5422   LIBS="-lOSMesa $LIBS"
    5423 
    5424 fi
    5425 
    5426      # FIXME: Replace `main' with a function in `-lX11':
    5427 
    5428 echo "$as_me:$LINENO: checking for main in -lX11" >&5
    5429 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
    5430 if test "${ac_cv_lib_X11_main+set}" = set; then
    5431   echo $ECHO_N "(cached) $ECHO_C" >&6
    5432 else
    5433   ac_check_lib_save_LIBS=$LIBS
    5434 LIBS="-lX11  $LIBS"
    5435 cat >conftest.$ac_ext <<_ACEOF
    5436 /* confdefs.h.  */
    5437 _ACEOF
    5438 cat confdefs.h >>conftest.$ac_ext
    5439 cat >>conftest.$ac_ext <<_ACEOF
    5440 /* end confdefs.h.  */
    5441 
    5442 
    5443 int
    5444 main ()
    5445 {
    5446 main ();
    5447   ;
    5448   return 0;
    5449 }
    5450 _ACEOF
    5451 rm -f conftest.$ac_objext conftest$ac_exeext
    5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5453   (eval $ac_link) 2>conftest.er1
    5454   ac_status=$?
    5455   grep -v '^ *+' conftest.er1 >conftest.err
    5456   rm -f conftest.er1
    5457   cat conftest.err >&5
    5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5459   (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\"") >&5
    5463   (eval $ac_try) 2>&5
    5464   ac_status=$?
    5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5466   (exit $ac_status); }; } &&
    5467          { ac_try='test -s conftest$ac_exeext'
    5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5469   (eval $ac_try) 2>&5
    5470   ac_status=$?
    5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5472   (exit $ac_status); }; }; then
    5473   ac_cv_lib_X11_main=yes
    5474 else
    5475   echo "$as_me: failed program was:" >&5
    5476 sed 's/^/| /' conftest.$ac_ext >&5
    5477 
    5478 ac_cv_lib_X11_main=no
    5479 fi
    5480 rm -f conftest.err conftest.$ac_objext \
    5481       conftest$ac_exeext conftest.$ac_ext
    5482 LIBS=$ac_check_lib_save_LIBS
    5483 fi
    5484 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
    5485 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
    5486 if test $ac_cv_lib_X11_main = yes; then
    5487   cat >>confdefs.h <<_ACEOF
    5488 #define HAVE_LIBX11 1
    5489 _ACEOF
    5490 
    5491   LIBS="-lX11 $LIBS"
    5492 
    5493 fi
    5494 
    5495      # FIXME: Replace `main' with a function in `-lXt':
    5496 
    5497 echo "$as_me:$LINENO: checking for main in -lXt" >&5
    5498 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
    5499 if test "${ac_cv_lib_Xt_main+set}" = set; then
    5500   echo $ECHO_N "(cached) $ECHO_C" >&6
    5501 else
    5502   ac_check_lib_save_LIBS=$LIBS
    5503 LIBS="-lXt  $LIBS"
    5504 cat >conftest.$ac_ext <<_ACEOF
    5505 /* confdefs.h.  */
    5506 _ACEOF
    5507 cat confdefs.h >>conftest.$ac_ext
    5508 cat >>conftest.$ac_ext <<_ACEOF
    5509 /* end confdefs.h.  */
    5510 
    5511 
    5512 int
    5513 main ()
    5514 {
    5515 main ();
    5516   ;
    5517   return 0;
    5518 }
    5519 _ACEOF
    5520 rm -f conftest.$ac_objext conftest$ac_exeext
    5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5522   (eval $ac_link) 2>conftest.er1
    5523   ac_status=$?
    5524   grep -v '^ *+' conftest.er1 >conftest.err
    5525   rm -f conftest.er1
    5526   cat conftest.err >&5
    5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5528   (exit $ac_status); } &&
    5529          { ac_try='test -z "$ac_c_werror_flag"
    5530                          || test ! -s conftest.err'
    5531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5532   (eval $ac_try) 2>&5
    5533   ac_status=$?
    5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5535   (exit $ac_status); }; } &&
    5536          { ac_try='test -s conftest$ac_exeext'
    5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5538   (eval $ac_try) 2>&5
    5539   ac_status=$?
    5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5541   (exit $ac_status); }; }; then
    5542   ac_cv_lib_Xt_main=yes
    5543 else
    5544   echo "$as_me: failed program was:" >&5
    5545 sed 's/^/| /' conftest.$ac_ext >&5
    5546 
    5547 ac_cv_lib_Xt_main=no
    5548 fi
    5549 rm -f conftest.err conftest.$ac_objext \
    5550       conftest$ac_exeext conftest.$ac_ext
    5551 LIBS=$ac_check_lib_save_LIBS
    5552 fi
    5553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
    5554 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
    5555 if test $ac_cv_lib_Xt_main = yes; then
    5556   cat >>confdefs.h <<_ACEOF
    5557 #define HAVE_LIBXT 1
    5558 _ACEOF
    5559 
    5560   LIBS="-lXt $LIBS"
    5561 
    5562 fi
    5563 
    5564     ;;
    5565   *)
    5566     mingw="no"
    5567     ;;
    5568 esac
    5569 
    5570 
    5571 
    5572 
    5573 
    5574 #checking for pthread libs
    5575  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
    5576 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
    5577 if test "${ac_cv_lib_pthread_main+set}" = set; then
    5578   echo $ECHO_N "(cached) $ECHO_C" >&6
    5579 else
    5580   ac_check_lib_save_LIBS=$LIBS
    5581 LIBS="-lpthread  $LIBS"
    5582 cat >conftest.$ac_ext <<_ACEOF
    5583 /* confdefs.h.  */
    5584 _ACEOF
    5585 cat confdefs.h >>conftest.$ac_ext
    5586 cat >>conftest.$ac_ext <<_ACEOF
    5587 /* end confdefs.h.  */
    5588 
    5589 
    5590 int
    5591 main ()
    5592 {
    5593 main ();
    5594   ;
    5595   return 0;
    5596 }
    5597 _ACEOF
    5598 rm -f conftest.$ac_objext conftest$ac_exeext
    5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5600   (eval $ac_link) 2>conftest.er1
    5601   ac_status=$?
    5602   grep -v '^ *+' conftest.er1 >conftest.err
    5603   rm -f conftest.er1
    5604   cat conftest.err >&5
    5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5606   (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\"") >&5
    5610   (eval $ac_try) 2>&5
    5611   ac_status=$?
    5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5613   (exit $ac_status); }; } &&
    5614          { ac_try='test -s conftest$ac_exeext'
    5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5616   (eval $ac_try) 2>&5
    5617   ac_status=$?
    5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5619   (exit $ac_status); }; }; then
    5620   ac_cv_lib_pthread_main=yes
    5621 else
    5622   echo "$as_me: failed program was:" >&5
    5623 sed 's/^/| /' conftest.$ac_ext >&5
    5624 
    5625 ac_cv_lib_pthread_main=no
    5626 fi
    5627 rm -f conftest.err conftest.$ac_objext \
    5628       conftest$ac_exeext conftest.$ac_ext
    5629 LIBS=$ac_check_lib_save_LIBS
    5630 fi
    5631 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
    5632 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
    5633 if test $ac_cv_lib_pthread_main = yes; then
    5634   FOUND_pthread=yes
    5635 fi
    5636 
    5637  if test "$FOUND_pthread" = "yes" ; then
    5638     LIBS="$LIBS -lpthread"
    5639  fi
    5640 
    5641 
    5642 
    5643 
    5644 # FIXME: Replace `main' with a function in `-lm':
    5645 
    5646 echo "$as_me:$LINENO: checking for main in -lm" >&5
    5647 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    5648 if test "${ac_cv_lib_m_main+set}" = set; then
    5649   echo $ECHO_N "(cached) $ECHO_C" >&6
    5650 else
    5651   ac_check_lib_save_LIBS=$LIBS
    5652 LIBS="-lm  $LIBS"
    5653 cat >conftest.$ac_ext <<_ACEOF
    5654 /* confdefs.h.  */
    5655 _ACEOF
    5656 cat confdefs.h >>conftest.$ac_ext
    5657 cat >>conftest.$ac_ext <<_ACEOF
    5658 /* end confdefs.h.  */
    5659 
    5660 
    5661 int
    5662 main ()
    5663 {
    5664 main ();
    5665   ;
    5666   return 0;
    5667 }
    5668 _ACEOF
    5669 rm -f conftest.$ac_objext conftest$ac_exeext
    5670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5671   (eval $ac_link) 2>conftest.er1
    5672   ac_status=$?
    5673   grep -v '^ *+' conftest.er1 >conftest.err
    5674   rm -f conftest.er1
    5675   cat conftest.err >&5
    5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5677   (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\"") >&5
    5681   (eval $ac_try) 2>&5
    5682   ac_status=$?
    5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5684   (exit $ac_status); }; } &&
    5685          { ac_try='test -s conftest$ac_exeext'
    5686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5687   (eval $ac_try) 2>&5
    5688   ac_status=$?
    5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5690   (exit $ac_status); }; }; then
    5691   ac_cv_lib_m_main=yes
    5692 else
    5693   echo "$as_me: failed program was:" >&5
    5694 sed 's/^/| /' conftest.$ac_ext >&5
    5695 
    5696 ac_cv_lib_m_main=no
    5697 fi
    5698 rm -f conftest.err conftest.$ac_objext \
    5699       conftest$ac_exeext conftest.$ac_ext
    5700 LIBS=$ac_check_lib_save_LIBS
    5701 fi
    5702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    5703 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    5704 if test $ac_cv_lib_m_main = yes; then
    5705   cat >>confdefs.h <<_ACEOF
    5706 #define HAVE_LIBM 1
    5707 _ACEOF
    5708 
    5709   LIBS="-lm $LIBS"
    5710 
    5711 fi
    5712 
    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" >&5
    5719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5720 if test "${ac_cv_header_stdc+set}" = set; then
    5721   echo $ECHO_N "(cached) $ECHO_C" >&6
    5722 else
    5723   cat >conftest.$ac_ext <<_ACEOF
    5724 /* confdefs.h.  */
    5725 _ACEOF
    5726 cat confdefs.h >>conftest.$ac_ext
    5727 cat >>conftest.$ac_ext <<_ACEOF
    5728 /* end confdefs.h.  */
    5729 #include <stdlib.h>
    5730 #include <stdarg.h>
    5731 #include <string.h>
    5732 #include <float.h>
    5733 
    5734 int
    5735 main ()
    5736 {
    5737 
    5738   ;
    5739   return 0;
    5740 }
    5741 _ACEOF
    5742 rm -f conftest.$ac_objext
    5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5744   (eval $ac_compile) 2>conftest.er1
    5745   ac_status=$?
    5746   grep -v '^ *+' conftest.er1 >conftest.err
    5747   rm -f conftest.er1
    5748   cat conftest.err >&5
    5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5750   (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\"") >&5
    5754   (eval $ac_try) 2>&5
    5755   ac_status=$?
    5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5757   (exit $ac_status); }; } &&
    5758          { ac_try='test -s conftest.$ac_objext'
    5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5760   (eval $ac_try) 2>&5
    5761   ac_status=$?
    5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5763   (exit $ac_status); }; }; then
    5764   ac_cv_header_stdc=yes
    5765 else
    5766   echo "$as_me: failed program was:" >&5
    5767 sed 's/^/| /' conftest.$ac_ext >&5
    5768 
    5769 ac_cv_header_stdc=no
    5770 fi
    5771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5772 
    5773 if test $ac_cv_header_stdc = yes; then
    5774   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5775   cat >conftest.$ac_ext <<_ACEOF
    5776 /* confdefs.h.  */
    5777 _ACEOF
    5778 cat confdefs.h >>conftest.$ac_ext
    5779 cat >>conftest.$ac_ext <<_ACEOF
    5780 /* end confdefs.h.  */
    5781 #include <string.h>
    5782 
    5783 _ACEOF
    5784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5785   $EGREP "memchr" >/dev/null 2>&1; then
    5786   :
    5787 else
    5788   ac_cv_header_stdc=no
    5789 fi
    5790 rm -f conftest*
    5791 
    5792 fi
    5793 
    5794 if test $ac_cv_header_stdc = yes; then
    5795   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5796   cat >conftest.$ac_ext <<_ACEOF
    5797 /* confdefs.h.  */
    5798 _ACEOF
    5799 cat confdefs.h >>conftest.$ac_ext
    5800 cat >>conftest.$ac_ext <<_ACEOF
    5801 /* end confdefs.h.  */
    5802 #include <stdlib.h>
    5803 
    5804 _ACEOF
    5805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5806   $EGREP "free" >/dev/null 2>&1; then
    5807   :
    5808 else
    5809   ac_cv_header_stdc=no
    5810 fi
    5811 rm -f conftest*
    5812 
    5813 fi
    5814 
    5815 if test $ac_cv_header_stdc = yes; then
    5816   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5817   if test "$cross_compiling" = yes; then
    5818   :
    5819 else
    5820   cat >conftest.$ac_ext <<_ACEOF
    5821 /* confdefs.h.  */
    5822 _ACEOF
    5823 cat confdefs.h >>conftest.$ac_ext
    5824 cat >>conftest.$ac_ext <<_ACEOF
    5825 /* 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 #else
    5831 # 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 #endif
    5837 
    5838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    5839 int
    5840 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 _ACEOF
    5850 rm -f conftest$ac_exeext
    5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5852   (eval $ac_link) 2>&5
    5853   ac_status=$?
    5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5857   (eval $ac_try) 2>&5
    5858   ac_status=$?
    5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5860   (exit $ac_status); }; }; then
    5861   :
    5862 else
    5863   echo "$as_me: program exited with status $ac_status" >&5
    5864 echo "$as_me: failed program was:" >&5
    5865 sed 's/^/| /' conftest.$ac_ext >&5
    5866 
    5867 ( exit $ac_status )
    5868 ac_cv_header_stdc=no
    5869 fi
    5870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5871 fi
    5872 fi
    5873 fi
    5874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5875 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    5876 if test $ac_cv_header_stdc = yes; then
    5877 
    5878 cat >>confdefs.h <<\_ACEOF
    5879 #define STDC_HEADERS 1
    5880 _ACEOF
    5881 
    5882 fi
    5883 
    5884 
    5885 
    5886 for ac_header in stdlib.h string.h
    5887 do
    5888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5890   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5893   echo $ECHO_N "(cached) $ECHO_C" >&6
    5894 fi
    5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5897 else
    5898   # Is the header compilable?
    5899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5901 cat >conftest.$ac_ext <<_ACEOF
    5902 /* confdefs.h.  */
    5903 _ACEOF
    5904 cat confdefs.h >>conftest.$ac_ext
    5905 cat >>conftest.$ac_ext <<_ACEOF
    5906 /* end confdefs.h.  */
    5907 $ac_includes_default
    5908 #include <$ac_header>
    5909 _ACEOF
    5910 rm -f conftest.$ac_objext
    5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5912   (eval $ac_compile) 2>conftest.er1
    5913   ac_status=$?
    5914   grep -v '^ *+' conftest.er1 >conftest.err
    5915   rm -f conftest.er1
    5916   cat conftest.err >&5
    5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5918   (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\"") >&5
    5922   (eval $ac_try) 2>&5
    5923   ac_status=$?
    5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5925   (exit $ac_status); }; } &&
    5926          { ac_try='test -s conftest.$ac_objext'
    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); }; }; then
    5932   ac_header_compiler=yes
    5933 else
    5934   echo "$as_me: failed program was:" >&5
    5935 sed 's/^/| /' conftest.$ac_ext >&5
    5936 
    5937 ac_header_compiler=no
    5938 fi
    5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5941 echo "${ECHO_T}$ac_header_compiler" >&6
    5942 
    5943 # Is the header present?
    5944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5946 cat >conftest.$ac_ext <<_ACEOF
    5947 /* confdefs.h.  */
    5948 _ACEOF
    5949 cat confdefs.h >>conftest.$ac_ext
    5950 cat >>conftest.$ac_ext <<_ACEOF
    5951 /* end confdefs.h.  */
    5952 #include <$ac_header>
    5953 _ACEOF
    5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5956   ac_status=$?
    5957   grep -v '^ *+' conftest.er1 >conftest.err
    5958   rm -f conftest.er1
    5959   cat conftest.err >&5
    5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5961   (exit $ac_status); } >/dev/null; then
    5962   if test -s conftest.err; then
    5963     ac_cpp_err=$ac_c_preproc_warn_flag
    5964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5965   else
    5966     ac_cpp_err=
    5967   fi
    5968 else
    5969   ac_cpp_err=yes
    5970 fi
    5971 if test -z "$ac_cpp_err"; then
    5972   ac_header_preproc=yes
    5973 else
    5974   echo "$as_me: failed program was:" >&5
    5975 sed 's/^/| /' conftest.$ac_ext >&5
    5976 
    5977   ac_header_preproc=no
    5978 fi
    5979 rm -f conftest.err conftest.$ac_ext
    5980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5981 echo "${ECHO_T}$ac_header_preproc" >&6
    5982 
    5983 # So?  What about this header?
    5984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5985   yes:no: )
    5986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5987 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" >&5
    5989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5990     ac_header_preproc=yes
    5991     ;;
    5992   no:yes:* )
    5993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5994 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?" >&5
    5996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5998 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\"" >&5
    6000 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" >&5
    6002 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" >&5
    6004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    6005     (
    6006       cat <<\_ASBOX
    6007 ## ------------------------------------------- ##
    6008 ## Report this to orxonox-dev@mail.datacore.ch ##
    6009 ## ------------------------------------------- ##
    6010 _ASBOX
    6011     ) |
    6012       sed "s/^/$as_me: WARNING:     /" >&2
    6013     ;;
    6014 esac
    6015 echo "$as_me:$LINENO: checking for $ac_header" >&5
    6016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6018   echo $ECHO_N "(cached) $ECHO_C" >&6
    6019 else
    6020   eval "$as_ac_Header=\$ac_header_preproc"
    6021 fi
    6022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6024 
    6025 fi
    6026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    6027   cat >>confdefs.h <<_ACEOF
    6028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    6029 _ACEOF
    6030 
    6031 fi
    6032 
    6033 done
    6034 
    6035 
    6036 # Checks for typedefs, structures, and compiler characteristics.
    6037 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    6038 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    6039 if test "${ac_cv_header_stdbool_h+set}" = set; then
    6040   echo $ECHO_N "(cached) $ECHO_C" >&6
    6041 else
    6042   cat >conftest.$ac_ext <<_ACEOF
    6043 /* confdefs.h.  */
    6044 _ACEOF
    6045 cat confdefs.h >>conftest.$ac_ext
    6046 cat >>conftest.$ac_ext <<_ACEOF
    6047 /* end confdefs.h.  */
    6048 
    6049 #include <stdbool.h>
    6050 #ifndef bool
    6051 # error bool is not defined
    6052 #endif
    6053 #ifndef false
    6054 # error false is not defined
    6055 #endif
    6056 #if false
    6057 # error false is not 0
    6058 #endif
    6059 #ifndef true
    6060 # error true is not defined
    6061 #endif
    6062 #if true != 1
    6063 # error true is not 1
    6064 #endif
    6065 #ifndef __bool_true_false_are_defined
    6066 # error __bool_true_false_are_defined is not defined
    6067 #endif
    6068 
    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 int
    6082 main ()
    6083 {
    6084  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
    6085   ;
    6086   return 0;
    6087 }
    6088 _ACEOF
    6089 rm -f conftest.$ac_objext
    6090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6091   (eval $ac_compile) 2>conftest.er1
    6092   ac_status=$?
    6093   grep -v '^ *+' conftest.er1 >conftest.err
    6094   rm -f conftest.er1
    6095   cat conftest.err >&5
    6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6097   (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\"") >&5
    6101   (eval $ac_try) 2>&5
    6102   ac_status=$?
    6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6104   (exit $ac_status); }; } &&
    6105          { ac_try='test -s conftest.$ac_objext'
    6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6107   (eval $ac_try) 2>&5
    6108   ac_status=$?
    6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6110   (exit $ac_status); }; }; then
    6111   ac_cv_header_stdbool_h=yes
    6112 else
    6113   echo "$as_me: failed program was:" >&5
    6114 sed 's/^/| /' conftest.$ac_ext >&5
    6115 
    6116 ac_cv_header_stdbool_h=no
    6117 fi
    6118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6119 fi
    6120 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    6121 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    6122 echo "$as_me:$LINENO: checking for _Bool" >&5
    6123 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    6124 if test "${ac_cv_type__Bool+set}" = set; then
    6125   echo $ECHO_N "(cached) $ECHO_C" >&6
    6126 else
    6127   cat >conftest.$ac_ext <<_ACEOF
    6128 /* confdefs.h.  */
    6129 _ACEOF
    6130 cat confdefs.h >>conftest.$ac_ext
    6131 cat >>conftest.$ac_ext <<_ACEOF
    6132 /* end confdefs.h.  */
    6133 $ac_includes_default
    6134 int
    6135 main ()
    6136 {
    6137 if ((_Bool *) 0)
    6138   return 0;
    6139 if (sizeof (_Bool))
    6140   return 0;
    6141   ;
    6142   return 0;
    6143 }
    6144 _ACEOF
    6145 rm -f conftest.$ac_objext
    6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6147   (eval $ac_compile) 2>conftest.er1
    6148   ac_status=$?
    6149   grep -v '^ *+' conftest.er1 >conftest.err
    6150   rm -f conftest.er1
    6151   cat conftest.err >&5
    6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6153   (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\"") >&5
    6157   (eval $ac_try) 2>&5
    6158   ac_status=$?
    6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6160   (exit $ac_status); }; } &&
    6161          { ac_try='test -s conftest.$ac_objext'
    6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6163   (eval $ac_try) 2>&5
    6164   ac_status=$?
    6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6166   (exit $ac_status); }; }; then
    6167   ac_cv_type__Bool=yes
    6168 else
    6169   echo "$as_me: failed program was:" >&5
    6170 sed 's/^/| /' conftest.$ac_ext >&5
    6171 
    6172 ac_cv_type__Bool=no
    6173 fi
    6174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6175 fi
    6176 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    6177 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    6178 if test $ac_cv_type__Bool = yes; then
    6179 
    6180 cat >>confdefs.h <<_ACEOF
    6181 #define HAVE__BOOL 1
    6182 _ACEOF
    6183 
    6184 
    6185 fi
    6186 
    6187 if test $ac_cv_header_stdbool_h = yes; then
    6188 
    6189 cat >>confdefs.h <<\_ACEOF
    6190 #define HAVE_STDBOOL_H 1
    6191 _ACEOF
    6192 
    6193 fi
    6194 
    6195 
    6196 # Checks for library functions.
    6197 
    6198 for ac_header in stdlib.h
    6199 do
    6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6202   echo "$as_me:$LINENO: checking for $ac_header" >&5
    6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6205   echo $ECHO_N "(cached) $ECHO_C" >&6
    6206 fi
    6207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6209 else
    6210   # Is the header compilable?
    6211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    6212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    6213 cat >conftest.$ac_ext <<_ACEOF
    6214 /* confdefs.h.  */
    6215 _ACEOF
    6216 cat confdefs.h >>conftest.$ac_ext
    6217 cat >>conftest.$ac_ext <<_ACEOF
    6218 /* end confdefs.h.  */
    6219 $ac_includes_default
    6220 #include <$ac_header>
    6221 _ACEOF
    6222 rm -f conftest.$ac_objext
    6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6224   (eval $ac_compile) 2>conftest.er1
    6225   ac_status=$?
    6226   grep -v '^ *+' conftest.er1 >conftest.err
    6227   rm -f conftest.er1
    6228   cat conftest.err >&5
    6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6230   (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\"") >&5
    6234   (eval $ac_try) 2>&5
    6235   ac_status=$?
    6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6237   (exit $ac_status); }; } &&
    6238          { ac_try='test -s conftest.$ac_objext'
    6239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6240   (eval $ac_try) 2>&5
    6241   ac_status=$?
    6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6243   (exit $ac_status); }; }; then
    6244   ac_header_compiler=yes
    6245 else
    6246   echo "$as_me: failed program was:" >&5
    6247 sed 's/^/| /' conftest.$ac_ext >&5
    6248 
    6249 ac_header_compiler=no
    6250 fi
    6251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    6253 echo "${ECHO_T}$ac_header_compiler" >&6
    6254 
    6255 # Is the header present?
    6256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    6257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    6258 cat >conftest.$ac_ext <<_ACEOF
    6259 /* confdefs.h.  */
    6260 _ACEOF
    6261 cat confdefs.h >>conftest.$ac_ext
    6262 cat >>conftest.$ac_ext <<_ACEOF
    6263 /* end confdefs.h.  */
    6264 #include <$ac_header>
    6265 _ACEOF
    6266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    6267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    6268   ac_status=$?
    6269   grep -v '^ *+' conftest.er1 >conftest.err
    6270   rm -f conftest.er1
    6271   cat conftest.err >&5
    6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6273   (exit $ac_status); } >/dev/null; then
    6274   if test -s conftest.err; then
    6275     ac_cpp_err=$ac_c_preproc_warn_flag
    6276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    6277   else
    6278     ac_cpp_err=
    6279   fi
    6280 else
    6281   ac_cpp_err=yes
    6282 fi
    6283 if test -z "$ac_cpp_err"; then
    6284   ac_header_preproc=yes
    6285 else
    6286   echo "$as_me: failed program was:" >&5
    6287 sed 's/^/| /' conftest.$ac_ext >&5
    6288 
    6289   ac_header_preproc=no
    6290 fi
    6291 rm -f conftest.err conftest.$ac_ext
    6292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    6293 echo "${ECHO_T}$ac_header_preproc" >&6
    6294 
    6295 # So?  What about this header?
    6296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    6297   yes:no: )
    6298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    6299 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" >&5
    6301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    6302     ac_header_preproc=yes
    6303     ;;
    6304   no:yes:* )
    6305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    6306 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?" >&5
    6308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    6309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    6310 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\"" >&5
    6312 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" >&5
    6314 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" >&5
    6316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    6317     (
    6318       cat <<\_ASBOX
    6319 ## ------------------------------------------- ##
    6320 ## Report this to orxonox-dev@mail.datacore.ch ##
    6321 ## ------------------------------------------- ##
    6322 _ASBOX
    6323     ) |
    6324       sed "s/^/$as_me: WARNING:     /" >&2
    6325     ;;
    6326 esac
    6327 echo "$as_me:$LINENO: checking for $ac_header" >&5
    6328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6330   echo $ECHO_N "(cached) $ECHO_C" >&6
    6331 else
    6332   eval "$as_ac_Header=\$ac_header_preproc"
    6333 fi
    6334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6336 
    6337 fi
    6338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    6339   cat >>confdefs.h <<_ACEOF
    6340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    6341 _ACEOF
    6342 
    63436114fi
    63446115
     
    66416412Usually this means the macro was only invoked conditionally." >&5
    66426413echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     6414Usually this means the macro was only invoked conditionally." >&2;}
     6415   { (exit 1); exit 1; }; }
     6416fi
     6417if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
     6418  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
     6419Usually this means the macro was only invoked conditionally." >&5
     6420echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
    66436421Usually this means the macro was only invoked conditionally." >&2;}
    66446422   { (exit 1); exit 1; }; }
     
    71806958s,@ECHO_T@,$ECHO_T,;t t
    71816959s,@LIBS@,$LIBS,;t t
     6960s,@build@,$build,;t t
     6961s,@build_cpu@,$build_cpu,;t t
     6962s,@build_vendor@,$build_vendor,;t t
     6963s,@build_os@,$build_os,;t t
     6964s,@host@,$host,;t t
     6965s,@host_cpu@,$host_cpu,;t t
     6966s,@host_vendor@,$host_vendor,;t t
     6967s,@host_os@,$host_os,;t t
     6968s,@target@,$target,;t t
     6969s,@target_cpu@,$target_cpu,;t t
     6970s,@target_vendor@,$target_vendor,;t t
     6971s,@target_os@,$target_os,;t t
    71826972s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    71836973s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    72257015s,@EGREP@,$EGREP,;t t
    72267016s,@MSBITFIELDS@,$MSBITFIELDS,;t t
     7017s,@SDL_CONFIG@,$SDL_CONFIG,;t t
     7018s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
     7019s,@SDL_LIBS@,$SDL_LIBS,;t t
     7020s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     7021s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
     7022s,@GTK2_LIBS@,$GTK2_LIBS,;t t
     7023s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
     7024s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
    72277025s,@LIBOBJS@,$LIBOBJS,;t t
    72287026s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • orxonox/trunk/configure.ac

    r2968 r2980  
    22# Process this file with autoconf to produce a configure script.
    33
    4 AC_PREREQ(2.56)
     4#AC_PREREQ(2.56)
    55AC_INIT(orxonox, 0.1-pre-alpha, orxonox-dev@mail.datacore.ch)
     6
     7# Detect the canonical host and target build environment.
     8AC_CANONICAL_BUILD
     9AC_CANONICAL_HOST
     10AC_CANONICAL_TARGET
     11
     12
    613AM_INIT_AUTOMAKE
    714
     
    1219# Checks for programs.
    1320AC_PROG_CXX
    14 AC_PROG_CC
    15 
    16 
    17 
    1821AC_HEADER_STDC
    1922
     
    2124
    2225AC_MSG_CHECKING([for System])
    23 case `uname` in
     26## checking for openGL-environment and other sys-specific parameters
     27case "$target" in
    2428### WINDOWS ###
    25   *MINGW*)
     29  *-*-mingw32*)
    2630echo "mingw-WINDOWS detected"
    2731
     
    7074        LIBS="$LIBS -lmingw32"
    7175    fi
    72 # checking for SDL-headers
    73     AC_CHECK_HEADERS(SDL/SDL.h ,,
    74       [AC_MSG_ERROR([cannot find SDL headers]) ])
    75 
    76 #checking for libSDL
    77     AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes)
    78     if test "$FOUND_sdlmain" = "yes" ; then
    79         LIBS="$LIBS -lsdlmain"
    80     else
    81          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 1
    86     fi
    87     AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes)
    88     if test "$FOUND_sdl" = "yes" ; then
    89         LIBS="$LIBS -lsdl"
    90     else
    91          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 -1
    96     fi
    9776
    9877    ;;
    9978
    10079### LINUX ###
    101  *Linux*)
     80 *-*-linux*)
    10281echo "Linux detected"
    10382
     
    134113         exit -1
    135114    fi   
    136 
    137 # checking for SDL-headers
    138     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" ; then
    143         LIBS="$LIBS -lSDL"
    144      else
    145          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 -1
    150      fi   
    151        
    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])
    158115    ;;
    159116  *)
     
    165122
    166123
     124## checking for SDL
     125SDL_VERSION=1.2.7
     126AM_PATH_SDL($SDL_VERSION,
     127   :,
     128   AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
     129   )
     130CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
     131LIBS="$LIBS $SDL_LIBS"
     132
     133
     134## checking for GTK
     135PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     136AC_SUBST(GTK2_LIBS)
     137AC_SUBST(GTK2_CFLAGS)
     138AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes)
     139
    167140
    168141#checking for pthread libs
     
    173146
    174147
    175 
    176 
    177148# FIXME: Replace `main' with a function in `-lm':
    178149 AC_CHECK_LIB([m], [main])
    179 
    180 LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
    181150
    182151
  • 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`
     1AM_CXXFLAGS=$(GTK2_CFLAGS) $(MSBITFIELDS)
     2AM_LDFLAGS=$(GTK2_LIBS)
    33
    44bin_PROGRAMS=console
  • orxonox/trunk/console/Makefile.in

    r2711 r2980  
    3838PRE_UNINSTALL = :
    3939POST_UNINSTALL = :
     40host_triplet = @host@
    4041bin_PROGRAMS = console$(EXEEXT)
    4142subdir = console
     
    9798EGREP = @EGREP@
    9899EXEEXT = @EXEEXT@
     100GTK2_CFLAGS = @GTK2_CFLAGS@
     101GTK2_LIBS = @GTK2_LIBS@
     102HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
     103HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
    99104INSTALL_DATA = @INSTALL_DATA@
    100105INSTALL_PROGRAM = @INSTALL_PROGRAM@
     
    115120PACKAGE_VERSION = @PACKAGE_VERSION@
    116121PATH_SEPARATOR = @PATH_SEPARATOR@
     122PKG_CONFIG = @PKG_CONFIG@
     123SDL_CFLAGS = @SDL_CFLAGS@
     124SDL_CONFIG = @SDL_CONFIG@
     125SDL_LIBS = @SDL_LIBS@
    117126SET_MAKE = @SET_MAKE@
    118127SHELL = @SHELL@
     
    130139am__quote = @am__quote@
    131140bindir = @bindir@
     141build = @build@
    132142build_alias = @build_alias@
     143build_cpu = @build_cpu@
     144build_os = @build_os@
     145build_vendor = @build_vendor@
    133146datadir = @datadir@
    134147exec_prefix = @exec_prefix@
     148host = @host@
    135149host_alias = @host_alias@
     150host_cpu = @host_cpu@
     151host_os = @host_os@
     152host_vendor = @host_vendor@
    136153includedir = @includedir@
    137154infodir = @infodir@
     
    148165sharedstatedir = @sharedstatedir@
    149166sysconfdir = @sysconfdir@
     167target = @target@
    150168target_alias = @target_alias@
    151 AM_CXXFLAGS = `pkg-config --cflags gtk+-2.0` $(MSBITFIELDS)
     169target_cpu = @target_cpu@
     170target_os = @target_os@
     171target_vendor = @target_vendor@
     172AM_CXXFLAGS = $(GTK2_CFLAGS) $(MSBITFIELDS)
     173AM_LDFLAGS = $(GTK2_LIBS)
    152174console_SOURCES = orxonox_console.cc orxonox_console_entry.cc orxonox_console_log.cc
    153175noinst_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`
     1AM_CXXFLAGS=$(GTK2_CFLAGS) $(MSBITFIELDS)
     2AM_LDFLAGS=$(GTK2_LIBS)
    33
    44bin_PROGRAMS=gui
  • orxonox/trunk/gui/Makefile.in

    r2711 r2980  
    3838PRE_UNINSTALL = :
    3939POST_UNINSTALL = :
     40host_triplet = @host@
    4041bin_PROGRAMS = gui$(EXEEXT)
    4142subdir = gui
     
    103104EGREP = @EGREP@
    104105EXEEXT = @EXEEXT@
     106GTK2_CFLAGS = @GTK2_CFLAGS@
     107GTK2_LIBS = @GTK2_LIBS@
     108HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
     109HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
    105110INSTALL_DATA = @INSTALL_DATA@
    106111INSTALL_PROGRAM = @INSTALL_PROGRAM@
     
    121126PACKAGE_VERSION = @PACKAGE_VERSION@
    122127PATH_SEPARATOR = @PATH_SEPARATOR@
     128PKG_CONFIG = @PKG_CONFIG@
     129SDL_CFLAGS = @SDL_CFLAGS@
     130SDL_CONFIG = @SDL_CONFIG@
     131SDL_LIBS = @SDL_LIBS@
    123132SET_MAKE = @SET_MAKE@
    124133SHELL = @SHELL@
     
    136145am__quote = @am__quote@
    137146bindir = @bindir@
     147build = @build@
    138148build_alias = @build_alias@
     149build_cpu = @build_cpu@
     150build_os = @build_os@
     151build_vendor = @build_vendor@
    139152datadir = @datadir@
    140153exec_prefix = @exec_prefix@
     154host = @host@
    141155host_alias = @host_alias@
     156host_cpu = @host_cpu@
     157host_os = @host_os@
     158host_vendor = @host_vendor@
    142159includedir = @includedir@
    143160infodir = @infodir@
     
    154171sharedstatedir = @sharedstatedir@
    155172sysconfdir = @sysconfdir@
     173target = @target@
    156174target_alias = @target_alias@
    157 AM_CXXFLAGS = `pkg-config --cflags gtk+-2.0` $(MSBITFIELDS)
     175target_cpu = @target_cpu@
     176target_os = @target_os@
     177target_vendor = @target_vendor@
     178AM_CXXFLAGS = $(GTK2_CFLAGS) $(MSBITFIELDS)
     179AM_LDFLAGS = $(GTK2_LIBS)
    158180gui_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
    159181noinst_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  
    3838PRE_UNINSTALL = :
    3939POST_UNINSTALL = :
     40host_triplet = @host@
    4041bin_PROGRAMS = importer$(EXEEXT)
    4142subdir = importer
     
    9899EGREP = @EGREP@
    99100EXEEXT = @EXEEXT@
     101GTK2_CFLAGS = @GTK2_CFLAGS@
     102GTK2_LIBS = @GTK2_LIBS@
     103HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
     104HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
    100105INSTALL_DATA = @INSTALL_DATA@
    101106INSTALL_PROGRAM = @INSTALL_PROGRAM@
     
    116121PACKAGE_VERSION = @PACKAGE_VERSION@
    117122PATH_SEPARATOR = @PATH_SEPARATOR@
     123PKG_CONFIG = @PKG_CONFIG@
     124SDL_CFLAGS = @SDL_CFLAGS@
     125SDL_CONFIG = @SDL_CONFIG@
     126SDL_LIBS = @SDL_LIBS@
    118127SET_MAKE = @SET_MAKE@
    119128SHELL = @SHELL@
     
    131140am__quote = @am__quote@
    132141bindir = @bindir@
     142build = @build@
    133143build_alias = @build_alias@
     144build_cpu = @build_cpu@
     145build_os = @build_os@
     146build_vendor = @build_vendor@
    134147datadir = @datadir@
    135148exec_prefix = @exec_prefix@
     149host = @host@
    136150host_alias = @host_alias@
     151host_cpu = @host_cpu@
     152host_os = @host_os@
     153host_vendor = @host_vendor@
    137154includedir = @includedir@
    138155infodir = @infodir@
     
    149166sharedstatedir = @sharedstatedir@
    150167sysconfdir = @sysconfdir@
     168target = @target@
    151169target_alias = @target_alias@
     170target_cpu = @target_cpu@
     171target_os = @target_os@
     172target_vendor = @target_vendor@
    152173AM_CXXFLAGS = "-I/usr/X11R6/include"
    153174AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib  -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS)
  • orxonox/trunk/src/Makefile.in

    r2816 r2980  
    3838PRE_UNINSTALL = :
    3939POST_UNINSTALL = :
     40host_triplet = @host@
    4041bin_PROGRAMS = orxonox$(EXEEXT)
    4142subdir = src
     
    113114EGREP = @EGREP@
    114115EXEEXT = @EXEEXT@
     116GTK2_CFLAGS = @GTK2_CFLAGS@
     117GTK2_LIBS = @GTK2_LIBS@
     118HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@
     119HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@
    115120INSTALL_DATA = @INSTALL_DATA@
    116121INSTALL_PROGRAM = @INSTALL_PROGRAM@
     
    131136PACKAGE_VERSION = @PACKAGE_VERSION@
    132137PATH_SEPARATOR = @PATH_SEPARATOR@
     138PKG_CONFIG = @PKG_CONFIG@
     139SDL_CFLAGS = @SDL_CFLAGS@
     140SDL_CONFIG = @SDL_CONFIG@
     141SDL_LIBS = @SDL_LIBS@
    133142SET_MAKE = @SET_MAKE@
    134143SHELL = @SHELL@
     
    146155am__quote = @am__quote@
    147156bindir = @bindir@
     157build = @build@
    148158build_alias = @build_alias@
     159build_cpu = @build_cpu@
     160build_os = @build_os@
     161build_vendor = @build_vendor@
    149162datadir = @datadir@
    150163exec_prefix = @exec_prefix@
     164host = @host@
    151165host_alias = @host_alias@
     166host_cpu = @host_cpu@
     167host_os = @host_os@
     168host_vendor = @host_vendor@
    152169includedir = @includedir@
    153170infodir = @infodir@
     
    164181sharedstatedir = @sharedstatedir@
    165182sysconfdir = @sysconfdir@
     183target = @target@
    166184target_alias = @target_alias@
     185target_cpu = @target_cpu@
     186target_os = @target_os@
     187target_vendor = @target_vendor@
    167188AM_CXXFLAGS = "-I/usr/X11R6/include"
    168189AM_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.