Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3238 in orxonox.OLD for orxonox/branches/sound/configure


Ignore:
Timestamp:
Dec 20, 2004, 2:42:54 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/sound/configure

    r2964 r3238  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha.
     3# Generated by GNU Autoconf 2.59 for orxonox 0.2.0_alpha-r1.
    44#
    55# Report bugs to <orxonox-dev@mail.datacore.ch>.
     
    270270PACKAGE_NAME='orxonox'
    271271PACKAGE_TARNAME='orxonox'
    272 PACKAGE_VERSION='0.1-pre-alpha'
    273 PACKAGE_STRING='orxonox 0.1-pre-alpha'
     272PACKAGE_VERSION='0.2.0_alpha-r1'
     273PACKAGE_STRING='orxonox 0.2.0_alpha-r1'
    274274PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch'
    275275
     
    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 DEBUG DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
    315315ac_subst_files=''
    316316
     
    789789  # This message is too long to be a string in the A/UX 3.1 sh.
    790790  cat <<_ACEOF
    791 \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems.
     791\`configure' configures orxonox 0.2.0_alpha-r1 to adapt to many kinds of systems.
    792792
    793793Usage: $0 [OPTION]... [VAR=VALUE]...
     
    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
     
    851856if test -n "$ac_init_help"; then
    852857  case $ac_init_help in
    853      short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";;
     858     short | recursive ) echo "Configuration of orxonox 0.2.0_alpha-r1:";;
    854859   esac
    855860  cat <<\_ACEOF
     
    860865  --disable-dependency-tracking  speeds up one-time build
    861866  --enable-dependency-tracking   do not reject slow dependency extractors
     867  --enable-debug          compiles in debug mode. Lots of debug info about the
     868                          game.
     869
     870Optional Packages:
     871  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     872  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     873  --without-gtk           Prevents GTK from being loaded
     874  --without-sdl-image     Prevents SDL_image from being loaded
    862875
    863876Some influential environment variables:
     
    971984if $ac_init_version; then
    972985  cat <<\_ACEOF
    973 orxonox configure 0.1-pre-alpha
     986orxonox configure 0.2.0_alpha-r1
    974987generated by GNU Autoconf 2.59
    975988
     
    985998running configure, to aid debugging if configure makes a mistake.
    986999
    987 It was created by orxonox $as_me 0.1-pre-alpha, which was
     1000It was created by orxonox $as_me 0.2.0_alpha-r1, which was
    9881001generated by GNU Autoconf 2.59.  Invocation command line was
    9891002
     
    13211334
    13221335
    1323 am__api_version="1.8"
     1336
     1337# Detect the canonical host and target build environment.
    13241338ac_aux_dir=
    13251339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    13471361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    13481362
     1363# Make sure we can run config.sub.
     1364$ac_config_sub sun4 >/dev/null 2>&1 ||
     1365  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1366echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1367   { (exit 1); exit 1; }; }
     1368
     1369echo "$as_me:$LINENO: checking build system type" >&5
     1370echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1371if test "${ac_cv_build+set}" = set; then
     1372  echo $ECHO_N "(cached) $ECHO_C" >&6
     1373else
     1374  ac_cv_build_alias=$build_alias
     1375test -z "$ac_cv_build_alias" &&
     1376  ac_cv_build_alias=`$ac_config_guess`
     1377test -z "$ac_cv_build_alias" &&
     1378  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1379echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1380   { (exit 1); exit 1; }; }
     1381ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1382  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1383echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1384   { (exit 1); exit 1; }; }
     1385
     1386fi
     1387echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1388echo "${ECHO_T}$ac_cv_build" >&6
     1389build=$ac_cv_build
     1390build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1391build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1392build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1393
     1394
     1395echo "$as_me:$LINENO: checking host system type" >&5
     1396echo $ECHO_N "checking host system type... $ECHO_C" >&6
     1397if test "${ac_cv_host+set}" = set; then
     1398  echo $ECHO_N "(cached) $ECHO_C" >&6
     1399else
     1400  ac_cv_host_alias=$host_alias
     1401test -z "$ac_cv_host_alias" &&
     1402  ac_cv_host_alias=$ac_cv_build_alias
     1403ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     1404  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     1405echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     1406   { (exit 1); exit 1; }; }
     1407
     1408fi
     1409echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     1410echo "${ECHO_T}$ac_cv_host" >&6
     1411host=$ac_cv_host
     1412host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1413host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1414host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1415
     1416
     1417echo "$as_me:$LINENO: checking target system type" >&5
     1418echo $ECHO_N "checking target system type... $ECHO_C" >&6
     1419if test "${ac_cv_target+set}" = set; then
     1420  echo $ECHO_N "(cached) $ECHO_C" >&6
     1421else
     1422  ac_cv_target_alias=$target_alias
     1423test "x$ac_cv_target_alias" = "x" &&
     1424  ac_cv_target_alias=$ac_cv_host_alias
     1425ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     1426  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     1427echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     1428   { (exit 1); exit 1; }; }
     1429
     1430fi
     1431echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     1432echo "${ECHO_T}$ac_cv_target" >&6
     1433target=$ac_cv_target
     1434target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1435target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1436target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1437
     1438
     1439# The aliases save the names the user supplied, while $host etc.
     1440# will get canonicalized.
     1441test -n "$target_alias" &&
     1442  test "$program_prefix$program_suffix$program_transform_name" = \
     1443    NONENONEs,x,x, &&
     1444  program_prefix=${target_alias}-
     1445
     1446
     1447am__api_version="1.8"
    13491448# Find a good install program.  We prefer a C program (faster),
    13501449# so one script is as good as another.  But avoid the broken or
     
    16201719# Define the identity of the package.
    16211720 PACKAGE='orxonox'
    1622  VERSION='0.1-pre-alpha'
     1721 VERSION='0.2.0_alpha-r1'
    16231722
    16241723
     
    33223421
    33233422
    3324 
    3325 
    3326 
    33273423ac_ext=c
    33283424ac_cpp='$CPP $CPPFLAGS'
     
    37423838
    37433839
     3840### CHECKING  OPTIONAT ARGUMENTS
     3841## DEBUG-statement
     3842DEBUG=no
     3843echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
     3844echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
     3845# Check whether --enable-debug or --disable-debug was given.
     3846if test "${enable_debug+set}" = set; then
     3847  enableval="$enable_debug"
     3848  DEBUG=$enableval
     3849fi;
     3850
     3851if test "$DEBUG" = "no"; then
     3852        echo "no"
     3853        echo " -> Setting debuglevel to 1. Like this you can still see errors."
     3854        DEBUG=1
     3855elif test "$DEBUG" = yes; then
     3856        echo "yes"
     3857        echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!."
     3858        DEBUG=3
     3859else
     3860        echo "yes set to $DEBUG"
     3861fi
     3862
     3863cat >>confdefs.h <<_ACEOF
     3864#define DEBUG $DEBUG
     3865_ACEOF
     3866
     3867
     3868
     3869
     3870## GTK-disabled
     3871echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
     3872echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
     3873
     3874# Check whether --with-gtk or --without-gtk was given.
     3875if test "${with_gtk+set}" = set; then
     3876  withval="$with_gtk"
     3877  def_gtk=no
     3878else
     3879  def_gtk=yes
     3880fi;
     3881if test "$def_gtk" = yes; then
     3882  echo "yes"
     3883fi
     3884if test "$def_gtk" = no; then
     3885  echo "no"
     3886fi
     3887### SDL_image-disable
     3888def_sdl_image=yes
     3889echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
     3890echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
     3891
     3892# Check whether --with-sdl_image or --without-sdl_image was given.
     3893if test "${with_sdl_image+set}" = set; then
     3894  withval="$with_sdl_image"
     3895  def_sdl_image=no
     3896fi;
     3897if test "$def_sdl_image" = yes; then
     3898  echo "yes"
     3899fi
     3900if test "$def_sdl_image" = no; then
     3901  echo "no"
     3902fi
     3903
     3904
     3905## PROGRAMM CHECKING
     3906# checking for Doxygen
     3907# Extract the first word of "doxygen", so it can be a program name with args.
     3908set dummy doxygen; ac_word=$2
     3909echo "$as_me:$LINENO: checking for $ac_word" >&5
     3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3911if test "${ac_cv_path_DOXYGEN+set}" = set; then
     3912  echo $ECHO_N "(cached) $ECHO_C" >&6
     3913else
     3914  case $DOXYGEN in
     3915  [\\/]* | ?:[\\/]*)
     3916  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
     3917  ;;
     3918  *)
     3919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3920for as_dir in $PATH
     3921do
     3922  IFS=$as_save_IFS
     3923  test -z "$as_dir" && as_dir=.
     3924  for ac_exec_ext in '' $ac_executable_extensions; do
     3925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3926    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
     3927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3928    break 2
     3929  fi
     3930done
     3931done
     3932
     3933  ;;
     3934esac
     3935fi
     3936DOXYGEN=$ac_cv_path_DOXYGEN
     3937
     3938if test -n "$DOXYGEN"; then
     3939  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
     3940echo "${ECHO_T}$DOXYGEN" >&6
     3941else
     3942  echo "$as_me:$LINENO: result: no" >&5
     3943echo "${ECHO_T}no" >&6
     3944fi
     3945
     3946
     3947
     3948if test $DOXYGEN; then
     3949  DOXYGEN_TRUE=
     3950  DOXYGEN_FALSE='#'
     3951else
     3952  DOXYGEN_TRUE='#'
     3953  DOXYGEN_FALSE=
     3954fi
     3955
     3956
    37443957### CHECKING FOR SYSTEM ###
    37453958
    37463959echo "$as_me:$LINENO: checking for System" >&5
    37473960echo $ECHO_N "checking for System... $ECHO_C" >&6
    3748 case `uname` in
     3961## checking for openGL-environment and other sys-specific parameters
     3962case "$target" in
    37493963### WINDOWS ###
    3750   *MINGW*)
     3964  *-*-mingw32*)
    37513965echo "mingw-WINDOWS detected"
    37523966
     
    42894503    fi
    42904504
    4291 
    42924505# checking for mingw32
    42934506    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
     
    45764789
    45774790    if test "$FOUND_sdlmain" = "yes" ; then
    4578         LIBS="$LIBS -lsdlmain"
     4791       LIBS="$LIBS -lsdlmain"
    45794792    else
    4580         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
     4793        echo "------------------"
     4794        echo "SDL library not found."
     4795        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     4796        echo "------------------"
     4797        exit 1
    45854798    fi
    45864799    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
     
    46474860
    46484861    if test "$FOUND_sdl" = "yes" ; then
    4649         LIBS="$LIBS -lsdl"
     4862       LIBS="$LIBS -lsdl"
    46504863    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"
    4654         echo "------------------"
    4655         exit -1
     4864        echo "------------------"
     4865        echo "SDL library not found."
     4866        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     4867        echo "------------------"
     4868        exit -1
    46564869    fi
    46574870
    4658 # checking for SDL-Mixer-headers
    4659 
    4660 for ac_header in SDL/SDL_mixer.h
     4871    ;;
     4872
     4873### LINUX ###
     4874 *-*-linux*)
     4875echo "Linux detected"
     4876
     4877 Linux="yes"
     4878
     4879CPPFLAGS="-I/usr/X11R6/include"
     4880LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
     4881# checking gl header
     4882
     4883for ac_header in GL/gl.h
    46614884do
    46624885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    48045027
    48055028else
    4806   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    4807 echo "$as_me: error: cannot find SDL headers" >&2;}
     5029  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     5030echo "$as_me: error: cannot find opengl headers" >&2;}
    48085031   { (exit 1); exit 1; }; }
    48095032fi
     
    48125035
    48135036
    4814 #checking for libSDL_mixer
    4815     echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
    4816 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
    4817 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
     5037#  checking for Unix GL
     5038   echo "$as_me:$LINENO: checking for main in -lGL" >&5
     5039echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
     5040if test "${ac_cv_lib_GL_main+set}" = set; then
    48185041  echo $ECHO_N "(cached) $ECHO_C" >&6
    48195042else
    48205043  ac_check_lib_save_LIBS=$LIBS
    4821 LIBS="-lSDL_mixer  $LIBS"
     5044LIBS="-lGL  $LIBS"
    48225045cat >conftest.$ac_ext <<_ACEOF
    48235046/* confdefs.h.  */
     
    48585081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    48595082  (exit $ac_status); }; }; then
    4860   ac_cv_lib_SDL_mixer_main=yes
     5083  ac_cv_lib_GL_main=yes
    48615084else
    48625085  echo "$as_me: failed program was:" >&5
    48635086sed 's/^/| /' conftest.$ac_ext >&5
    48645087
    4865 ac_cv_lib_SDL_mixer_main=no
     5088ac_cv_lib_GL_main=no
    48665089fi
    48675090rm -f conftest.err conftest.$ac_objext \
     
    48695092LIBS=$ac_check_lib_save_LIBS
    48705093fi
    4871 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
    4872 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
    4873 if test $ac_cv_lib_SDL_mixer_main = yes; then
    4874   FOUND_SDL_mixer=yes
    4875 fi
    4876 
    4877     if test "$FOUND_SDL_mixer" = "yes" ; then
    4878         LIBS="$LIBS -lSDL_mixer"
    4879     else
     5094echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
     5095echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
     5096if test $ac_cv_lib_GL_main = yes; then
     5097  FOUND_GL=yes
     5098fi
     5099
     5100   if test "$FOUND_GL" = "yes" ; then
     5101     LIBS="$LIBS -lGL"
     5102   else
    48805103         echo "------------------"
    4881          echo "SDL Mixer library not found."
    4882          echo "please install the SDL Mixer library, which can be found at http://www.libsdl.org"
     5104         echo "opengl not found."
     5105         echo "please install the opengl package which can be found at http://www.opengl.org"
    48835106         echo "------------------"
    4884          exit 1
    4885     fi
    4886 
    4887 
    4888     ;;
    4889 
    4890 ### LINUX ###
    4891  *Linux*)
    4892 echo "Linux detected"
    4893 
    4894  Linux="yes"
    4895 
    4896 # checking gl header
    4897 
    4898 for ac_header in GL/gl.h
     5107         exit -1
     5108   fi
     5109
     5110# cheking for GLU-header
     5111
     5112for ac_header in GL/glu.h
    48995113do
    49005114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    50505264
    50515265
    5052 #  checking for Unix GL
    5053    echo "$as_me:$LINENO: checking for main in -lGL" >&5
    5054 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
    5055 if test "${ac_cv_lib_GL_main+set}" = set; then
     5266    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
     5267echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
     5268if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
    50565269  echo $ECHO_N "(cached) $ECHO_C" >&6
    50575270else
    50585271  ac_check_lib_save_LIBS=$LIBS
    5059 LIBS="-lGL  $LIBS"
     5272LIBS="-lGLU  $LIBS"
    50605273cat >conftest.$ac_ext <<_ACEOF
    50615274/* confdefs.h.  */
     
    50655278/* end confdefs.h.  */
    50665279
    5067 
     5280/* Override any gcc2 internal prototype to avoid an error.  */
     5281#ifdef __cplusplus
     5282extern "C"
     5283#endif
     5284/* We use char because int might match the return type of a gcc2
     5285   builtin and then its argument prototype would still apply.  */
     5286char gluProject ();
    50685287int
    50695288main ()
    50705289{
    5071 main ();
     5290gluProject ();
    50725291  ;
    50735292  return 0;
     
    50965315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    50975316  (exit $ac_status); }; }; then
    5098   ac_cv_lib_GL_main=yes
     5317  ac_cv_lib_GLU_gluProject=yes
    50995318else
    51005319  echo "$as_me: failed program was:" >&5
    51015320sed 's/^/| /' conftest.$ac_ext >&5
    51025321
    5103 ac_cv_lib_GL_main=no
     5322ac_cv_lib_GLU_gluProject=no
    51045323fi
    51055324rm -f conftest.err conftest.$ac_objext \
     
    51075326LIBS=$ac_check_lib_save_LIBS
    51085327fi
    5109 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
    5110 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
    5111 if test $ac_cv_lib_GL_main = yes; then
    5112   FOUND_GL=yes
    5113 fi
    5114 
    5115    if test "$FOUND_GL" = "yes" ; then
    5116      LIBS="$LIBS -lGL"
    5117    else
     5328echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
     5329echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
     5330if test $ac_cv_lib_GLU_gluProject = yes; then
     5331  FOUND_GLU=yes
     5332fi
     5333
     5334    if test "$FOUND_GLU" = "yes" ; then
     5335      LIBS="$LIBS -lGLU"
     5336    else
    51185337         echo "------------------"
    5119          echo "opengl not found."
    5120          echo "please install the opengl package which can be found at http://www.opengl.org"
     5338         echo "GLU library not found."
     5339         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    51215340         echo "------------------"
    51225341         exit -1
    5123    fi
    5124 
    5125 # cheking for GLU-header
    5126 
    5127 for ac_header in GL/glu.h
     5342    fi
     5343
     5344# checking for SDL-headers
     5345
     5346for ac_header in SDL/SDL.h
    51285347do
    51295348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    52715490
    52725491else
    5273   { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
    5274 echo "$as_me: error: cannot find opengl headers" >&2;}
     5492  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     5493echo "$as_me: error: cannot find SDL headers" >&2;}
    52755494   { (exit 1); exit 1; }; }
    52765495fi
     
    52795498
    52805499
    5281     echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
    5282 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
    5283 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
     5500# checking for SDL-lib
     5501    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
     5502echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
     5503if test "${ac_cv_lib_SDL_main+set}" = set; then
    52845504  echo $ECHO_N "(cached) $ECHO_C" >&6
    52855505else
    52865506  ac_check_lib_save_LIBS=$LIBS
    5287 LIBS="-lGLU  $LIBS"
     5507LIBS="-lSDL  $LIBS"
    52885508cat >conftest.$ac_ext <<_ACEOF
    52895509/* confdefs.h.  */
     
    52935513/* end confdefs.h.  */
    52945514
    5295 /* Override any gcc2 internal prototype to avoid an error.  */
    5296 #ifdef __cplusplus
    5297 extern "C"
    5298 #endif
    5299 /* We use char because int might match the return type of a gcc2
    5300    builtin and then its argument prototype would still apply.  */
    5301 char gluProject ();
     5515
    53025516int
    53035517main ()
    53045518{
    5305 gluProject ();
     5519main ();
    53065520  ;
    53075521  return 0;
     
    53305544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    53315545  (exit $ac_status); }; }; then
    5332   ac_cv_lib_GLU_gluProject=yes
     5546  ac_cv_lib_SDL_main=yes
    53335547else
    53345548  echo "$as_me: failed program was:" >&5
    53355549sed 's/^/| /' conftest.$ac_ext >&5
    53365550
    5337 ac_cv_lib_GLU_gluProject=no
     5551ac_cv_lib_SDL_main=no
    53385552fi
    53395553rm -f conftest.err conftest.$ac_objext \
     
    53415555LIBS=$ac_check_lib_save_LIBS
    53425556fi
    5343 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
    5344 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
    5345 if test $ac_cv_lib_GLU_gluProject = yes; then
    5346   FOUND_GLU=yes
    5347 fi
    5348 
    5349     if test "$FOUND_GLU" = "yes" ; then
    5350       LIBS="$LIBS -lGLU"
    5351     else
    5352          echo "------------------"
    5353          echo "GLU library not found."
    5354          echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    5355          echo "------------------"
    5356          exit -1
    5357     fi
    5358 
    5359 # checking for SDL-headers
    5360 
    5361 for ac_header in SDL/SDL.h
     5557echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
     5558echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
     5559if test $ac_cv_lib_SDL_main = yes; then
     5560  FOUND_SDL=yes
     5561fi
     5562
     5563     if test "$FOUND_SDL" = "yes" ; then
     5564       LIBS="$LIBS -lSDL"
     5565     else
     5566        echo "------------------"
     5567        echo "SDL library not found."
     5568        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     5569        echo "------------------"
     5570        exit -1
     5571     fi
     5572
     5573
     5574## checking for SDL
     5575#    SDL_VERSION=1.2.7
     5576#    AM_PATH_SDL($SDL_VERSION,
     5577#      :,
     5578#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
     5579#      )
     5580#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
     5581#    LIBS="$LIBS $SDL_LIBS"
     5582    ;;
     5583
     5584### OS X ###
     5585 *darwin*)
     5586echo "OS X detected"
     5587
     5588 osX="yes"
     5589
     5590 CPPFLAGS="-I/sw/include $CPPFLAGS"
     5591# checking gl header
     5592
     5593for ac_header in OpenGL/gl.h
    53625594do
    53635595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    55055737
    55065738else
    5507   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    5508 echo "$as_me: error: cannot find SDL headers" >&2;}
     5739  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     5740echo "$as_me: error: cannot find opengl headers" >&2;}
    55095741   { (exit 1); exit 1; }; }
    55105742fi
     
    55125744done
    55135745
    5514 
    5515     echo "$as_me:$LINENO: checking for main in -lSDL" >&5
    5516 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
    5517 if test "${ac_cv_lib_SDL_main+set}" = set; then
    5518   echo $ECHO_N "(cached) $ECHO_C" >&6
    5519 else
    5520   ac_check_lib_save_LIBS=$LIBS
    5521 LIBS="-lSDL  $LIBS"
    5522 cat >conftest.$ac_ext <<_ACEOF
    5523 /* confdefs.h.  */
    5524 _ACEOF
    5525 cat confdefs.h >>conftest.$ac_ext
    5526 cat >>conftest.$ac_ext <<_ACEOF
    5527 /* end confdefs.h.  */
    5528 
    5529 
    5530 int
    5531 main ()
    5532 {
    5533 main ();
    5534   ;
    5535   return 0;
    5536 }
    5537 _ACEOF
    5538 rm -f conftest.$ac_objext conftest$ac_exeext
    5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5540   (eval $ac_link) 2>conftest.er1
    5541   ac_status=$?
    5542   grep -v '^ *+' conftest.er1 >conftest.err
    5543   rm -f conftest.er1
    5544   cat conftest.err >&5
    5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5546   (exit $ac_status); } &&
    5547          { ac_try='test -z "$ac_c_werror_flag"
    5548                          || test ! -s conftest.err'
    5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5550   (eval $ac_try) 2>&5
    5551   ac_status=$?
    5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5553   (exit $ac_status); }; } &&
    5554          { ac_try='test -s conftest$ac_exeext'
    5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5556   (eval $ac_try) 2>&5
    5557   ac_status=$?
    5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5559   (exit $ac_status); }; }; then
    5560   ac_cv_lib_SDL_main=yes
    5561 else
    5562   echo "$as_me: failed program was:" >&5
    5563 sed 's/^/| /' conftest.$ac_ext >&5
    5564 
    5565 ac_cv_lib_SDL_main=no
    5566 fi
    5567 rm -f conftest.err conftest.$ac_objext \
    5568       conftest$ac_exeext conftest.$ac_ext
    5569 LIBS=$ac_check_lib_save_LIBS
    5570 fi
    5571 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
    5572 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
    5573 if test $ac_cv_lib_SDL_main = yes; then
    5574   FOUND_SDL=yes
    5575 fi
    5576 
    5577      if test "$FOUND_SDL" = "yes" ; then
    5578         LIBS="$LIBS -lSDL"
    5579      else
    5580          echo "------------------"
    5581          echo "SDL library not found."
    5582          echo "please install the SDL library, which can be found at http://www.libsdl.org"
    5583          echo "------------------"
    5584          exit -1
    5585      fi
    5586 
    5587 # checking for SDL-Mixer-headers
    5588 
    5589 for ac_header in SDL/SDL_mixer.h
     5746# cheking for GLU-header
     5747
     5748for ac_header in OpenGL/glu.h
    55905749do
    55915750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    57335892
    57345893else
    5735   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    5736 echo "$as_me: error: cannot find SDL headers" >&2;}
     5894  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     5895echo "$as_me: error: cannot find opengl headers" >&2;}
    57375896   { (exit 1); exit 1; }; }
    57385897fi
     
    57415900
    57425901
    5743 
    5744 #checking for libSDL_mixer
    5745     echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
    5746 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
    5747 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
    5748   echo $ECHO_N "(cached) $ECHO_C" >&6
    5749 else
    5750   ac_check_lib_save_LIBS=$LIBS
    5751 LIBS="-lSDL_mixer  $LIBS"
    5752 cat >conftest.$ac_ext <<_ACEOF
    5753 /* confdefs.h.  */
    5754 _ACEOF
    5755 cat confdefs.h >>conftest.$ac_ext
    5756 cat >>conftest.$ac_ext <<_ACEOF
    5757 /* end confdefs.h.  */
    5758 
    5759 
    5760 int
    5761 main ()
    5762 {
    5763 main ();
    5764   ;
    5765   return 0;
    5766 }
    5767 _ACEOF
    5768 rm -f conftest.$ac_objext conftest$ac_exeext
    5769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5770   (eval $ac_link) 2>conftest.er1
    5771   ac_status=$?
    5772   grep -v '^ *+' conftest.er1 >conftest.err
    5773   rm -f conftest.er1
    5774   cat conftest.err >&5
    5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5776   (exit $ac_status); } &&
    5777          { ac_try='test -z "$ac_c_werror_flag"
    5778                          || test ! -s conftest.err'
    5779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5780   (eval $ac_try) 2>&5
    5781   ac_status=$?
    5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5783   (exit $ac_status); }; } &&
    5784          { ac_try='test -s conftest$ac_exeext'
    5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5786   (eval $ac_try) 2>&5
    5787   ac_status=$?
    5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5789   (exit $ac_status); }; }; then
    5790   ac_cv_lib_SDL_mixer_main=yes
    5791 else
    5792   echo "$as_me: failed program was:" >&5
    5793 sed 's/^/| /' conftest.$ac_ext >&5
    5794 
    5795 ac_cv_lib_SDL_mixer_main=no
    5796 fi
    5797 rm -f conftest.err conftest.$ac_objext \
    5798       conftest$ac_exeext conftest.$ac_ext
    5799 LIBS=$ac_check_lib_save_LIBS
    5800 fi
    5801 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
    5802 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
    5803 if test $ac_cv_lib_SDL_mixer_main = yes; then
    5804   FOUND_SDL_mixer=yes
    5805 fi
    5806 
    5807     if test "$FOUND_SDL_mixer" = "yes" ; then
    5808         LIBS="$LIBS -lSDL_mixer"
    5809     else
    5810          echo "------------------"
    5811          echo "SDL Mixer library not found."
    5812          echo "please install the SDL Mixer library, which can be found at http://www.libsdl.org"
    5813          echo "------------------"
    5814          exit 1
    5815     fi
     5902   LIBS="$LIBS -framework OpenGL"
     5903
     5904# checking for SDL-headers
     5905#    AC_CHECK_HEADERS(SDL/SDL.h ,,
     5906#      [AC_MSG_ERROR([cannot find SDL headers]) ])
     5907
     5908## checking for SDL
     5909#    SDL_VERSION=1.2.7
     5910#    AM_PATH_SDL($SDL_VERSION,
     5911#      :,
     5912#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
     5913#      )
     5914
     5915       SDL_CFLAGS=`sdl-config --cflags`
     5916       SDL_LIBS=`sdl-config --libs`
     5917       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
     5918       LIBS="$LIBS $SDL_LIBS"
    58165919
    58175920    ;;
     5921
    58185922  *)
    5819     mingw="no"
    58205923    ;;
    58215924esac
    5822 echo "$as_me:$LINENO: result: $mingw" >&5
    5823 echo "${ECHO_T}$mingw" >&6
    5824 
    5825 
    5826 #### Checking for LIBraries.
    5827 
    5828 # FIXME: Replace `main' with a function in `-lOSMesa':
    5829 
    5830 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
    5831 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
    5832 if test "${ac_cv_lib_OSMesa_main+set}" = set; then
    5833   echo $ECHO_N "(cached) $ECHO_C" >&6
    5834 else
    5835   ac_check_lib_save_LIBS=$LIBS
    5836 LIBS="-lOSMesa  $LIBS"
    5837 cat >conftest.$ac_ext <<_ACEOF
    5838 /* confdefs.h.  */
    5839 _ACEOF
    5840 cat confdefs.h >>conftest.$ac_ext
    5841 cat >>conftest.$ac_ext <<_ACEOF
    5842 /* end confdefs.h.  */
    5843 
    5844 
    5845 int
    5846 main ()
    5847 {
    5848 main ();
    5849   ;
    5850   return 0;
    5851 }
    5852 _ACEOF
    5853 rm -f conftest.$ac_objext conftest$ac_exeext
    5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5855   (eval $ac_link) 2>conftest.er1
    5856   ac_status=$?
    5857   grep -v '^ *+' conftest.er1 >conftest.err
    5858   rm -f conftest.er1
    5859   cat conftest.err >&5
    5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5861   (exit $ac_status); } &&
    5862          { ac_try='test -z "$ac_c_werror_flag"
    5863                          || test ! -s conftest.err'
    5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5865   (eval $ac_try) 2>&5
    5866   ac_status=$?
    5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5868   (exit $ac_status); }; } &&
    5869          { ac_try='test -s conftest$ac_exeext'
    5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5871   (eval $ac_try) 2>&5
    5872   ac_status=$?
    5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5874   (exit $ac_status); }; }; then
    5875   ac_cv_lib_OSMesa_main=yes
    5876 else
    5877   echo "$as_me: failed program was:" >&5
    5878 sed 's/^/| /' conftest.$ac_ext >&5
    5879 
    5880 ac_cv_lib_OSMesa_main=no
    5881 fi
    5882 rm -f conftest.err conftest.$ac_objext \
    5883       conftest$ac_exeext conftest.$ac_ext
    5884 LIBS=$ac_check_lib_save_LIBS
    5885 fi
    5886 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
    5887 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
    5888 if test $ac_cv_lib_OSMesa_main = yes; then
    5889   cat >>confdefs.h <<_ACEOF
    5890 #define HAVE_LIBOSMESA 1
    5891 _ACEOF
    5892 
    5893   LIBS="-lOSMesa $LIBS"
    5894 
    5895 fi
    5896 
    5897 # FIXME: Replace `main' with a function in `-lX11':
    5898 
    5899 echo "$as_me:$LINENO: checking for main in -lX11" >&5
    5900 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
    5901 if test "${ac_cv_lib_X11_main+set}" = set; then
    5902   echo $ECHO_N "(cached) $ECHO_C" >&6
    5903 else
    5904   ac_check_lib_save_LIBS=$LIBS
    5905 LIBS="-lX11  $LIBS"
    5906 cat >conftest.$ac_ext <<_ACEOF
    5907 /* confdefs.h.  */
    5908 _ACEOF
    5909 cat confdefs.h >>conftest.$ac_ext
    5910 cat >>conftest.$ac_ext <<_ACEOF
    5911 /* end confdefs.h.  */
    5912 
    5913 
    5914 int
    5915 main ()
    5916 {
    5917 main ();
    5918   ;
    5919   return 0;
    5920 }
    5921 _ACEOF
    5922 rm -f conftest.$ac_objext conftest$ac_exeext
    5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5924   (eval $ac_link) 2>conftest.er1
    5925   ac_status=$?
    5926   grep -v '^ *+' conftest.er1 >conftest.err
    5927   rm -f conftest.er1
    5928   cat conftest.err >&5
    5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5930   (exit $ac_status); } &&
    5931          { ac_try='test -z "$ac_c_werror_flag"
    5932                          || test ! -s conftest.err'
    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); }; } &&
    5938          { ac_try='test -s conftest$ac_exeext'
    5939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5940   (eval $ac_try) 2>&5
    5941   ac_status=$?
    5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5943   (exit $ac_status); }; }; then
    5944   ac_cv_lib_X11_main=yes
    5945 else
    5946   echo "$as_me: failed program was:" >&5
    5947 sed 's/^/| /' conftest.$ac_ext >&5
    5948 
    5949 ac_cv_lib_X11_main=no
    5950 fi
    5951 rm -f conftest.err conftest.$ac_objext \
    5952       conftest$ac_exeext conftest.$ac_ext
    5953 LIBS=$ac_check_lib_save_LIBS
    5954 fi
    5955 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
    5956 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
    5957 if test $ac_cv_lib_X11_main = yes; then
    5958   cat >>confdefs.h <<_ACEOF
    5959 #define HAVE_LIBX11 1
    5960 _ACEOF
    5961 
    5962   LIBS="-lX11 $LIBS"
    5963 
    5964 fi
    5965 
    5966 # FIXME: Replace `main' with a function in `-lXt':
    5967 
    5968 echo "$as_me:$LINENO: checking for main in -lXt" >&5
    5969 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
    5970 if test "${ac_cv_lib_Xt_main+set}" = set; then
    5971   echo $ECHO_N "(cached) $ECHO_C" >&6
    5972 else
    5973   ac_check_lib_save_LIBS=$LIBS
    5974 LIBS="-lXt  $LIBS"
    5975 cat >conftest.$ac_ext <<_ACEOF
    5976 /* confdefs.h.  */
    5977 _ACEOF
    5978 cat confdefs.h >>conftest.$ac_ext
    5979 cat >>conftest.$ac_ext <<_ACEOF
    5980 /* end confdefs.h.  */
    5981 
    5982 
    5983 int
    5984 main ()
    5985 {
    5986 main ();
    5987   ;
    5988   return 0;
    5989 }
    5990 _ACEOF
    5991 rm -f conftest.$ac_objext conftest$ac_exeext
    5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5993   (eval $ac_link) 2>conftest.er1
    5994   ac_status=$?
    5995   grep -v '^ *+' conftest.er1 >conftest.err
    5996   rm -f conftest.er1
    5997   cat conftest.err >&5
    5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5999   (exit $ac_status); } &&
    6000          { ac_try='test -z "$ac_c_werror_flag"
    6001                          || test ! -s conftest.err'
    6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6003   (eval $ac_try) 2>&5
    6004   ac_status=$?
    6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6006   (exit $ac_status); }; } &&
    6007          { ac_try='test -s conftest$ac_exeext'
    6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6009   (eval $ac_try) 2>&5
    6010   ac_status=$?
    6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6012   (exit $ac_status); }; }; then
    6013   ac_cv_lib_Xt_main=yes
    6014 else
    6015   echo "$as_me: failed program was:" >&5
    6016 sed 's/^/| /' conftest.$ac_ext >&5
    6017 
    6018 ac_cv_lib_Xt_main=no
    6019 fi
    6020 rm -f conftest.err conftest.$ac_objext \
    6021       conftest$ac_exeext conftest.$ac_ext
    6022 LIBS=$ac_check_lib_save_LIBS
    6023 fi
    6024 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
    6025 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
    6026 if test $ac_cv_lib_Xt_main = yes; then
    6027   cat >>confdefs.h <<_ACEOF
    6028 #define HAVE_LIBXT 1
    6029 _ACEOF
    6030 
    6031   LIBS="-lXt $LIBS"
    6032 
    6033 fi
    6034 
    6035 
    6036 
    6037 #checking for pthread libs
    6038 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
    6039 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
    6040 if test "${ac_cv_lib_pthread_main+set}" = set; then
    6041   echo $ECHO_N "(cached) $ECHO_C" >&6
    6042 else
    6043   ac_check_lib_save_LIBS=$LIBS
    6044 LIBS="-lpthread  $LIBS"
    6045 cat >conftest.$ac_ext <<_ACEOF
    6046 /* confdefs.h.  */
    6047 _ACEOF
    6048 cat confdefs.h >>conftest.$ac_ext
    6049 cat >>conftest.$ac_ext <<_ACEOF
    6050 /* end confdefs.h.  */
    6051 
    6052 
    6053 int
    6054 main ()
    6055 {
    6056 main ();
    6057   ;
    6058   return 0;
    6059 }
    6060 _ACEOF
    6061 rm -f conftest.$ac_objext conftest$ac_exeext
    6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6063   (eval $ac_link) 2>conftest.er1
    6064   ac_status=$?
    6065   grep -v '^ *+' conftest.er1 >conftest.err
    6066   rm -f conftest.er1
    6067   cat conftest.err >&5
    6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6069   (exit $ac_status); } &&
    6070          { ac_try='test -z "$ac_c_werror_flag"
    6071                          || test ! -s conftest.err'
    6072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6073   (eval $ac_try) 2>&5
    6074   ac_status=$?
    6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6076   (exit $ac_status); }; } &&
    6077          { ac_try='test -s conftest$ac_exeext'
    6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6079   (eval $ac_try) 2>&5
    6080   ac_status=$?
    6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6082   (exit $ac_status); }; }; then
    6083   ac_cv_lib_pthread_main=yes
    6084 else
    6085   echo "$as_me: failed program was:" >&5
    6086 sed 's/^/| /' conftest.$ac_ext >&5
    6087 
    6088 ac_cv_lib_pthread_main=no
    6089 fi
    6090 rm -f conftest.err conftest.$ac_objext \
    6091       conftest$ac_exeext conftest.$ac_ext
    6092 LIBS=$ac_check_lib_save_LIBS
    6093 fi
    6094 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
    6095 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
    6096 if test $ac_cv_lib_pthread_main = yes; then
    6097   FOUND_pthread=yes
    6098 fi
    6099 
    6100 if test "$FOUND_pthread" = "yes" ; then
    6101     LIBS="$LIBS -lpthread"
    6102 fi
    6103 
    6104 
    6105 
    6106 
    6107 # FIXME: Replace `main' with a function in `-lm':
    6108 
    6109 echo "$as_me:$LINENO: checking for main in -lm" >&5
    6110 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    6111 if test "${ac_cv_lib_m_main+set}" = set; then
    6112   echo $ECHO_N "(cached) $ECHO_C" >&6
    6113 else
    6114   ac_check_lib_save_LIBS=$LIBS
    6115 LIBS="-lm  $LIBS"
    6116 cat >conftest.$ac_ext <<_ACEOF
    6117 /* confdefs.h.  */
    6118 _ACEOF
    6119 cat confdefs.h >>conftest.$ac_ext
    6120 cat >>conftest.$ac_ext <<_ACEOF
    6121 /* end confdefs.h.  */
    6122 
    6123 
    6124 int
    6125 main ()
    6126 {
    6127 main ();
    6128   ;
    6129   return 0;
    6130 }
    6131 _ACEOF
    6132 rm -f conftest.$ac_objext conftest$ac_exeext
    6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6134   (eval $ac_link) 2>conftest.er1
    6135   ac_status=$?
    6136   grep -v '^ *+' conftest.er1 >conftest.err
    6137   rm -f conftest.er1
    6138   cat conftest.err >&5
    6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6140   (exit $ac_status); } &&
    6141          { ac_try='test -z "$ac_c_werror_flag"
    6142                          || test ! -s conftest.err'
    6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6144   (eval $ac_try) 2>&5
    6145   ac_status=$?
    6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6147   (exit $ac_status); }; } &&
    6148          { ac_try='test -s conftest$ac_exeext'
    6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6150   (eval $ac_try) 2>&5
    6151   ac_status=$?
    6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6153   (exit $ac_status); }; }; then
    6154   ac_cv_lib_m_main=yes
    6155 else
    6156   echo "$as_me: failed program was:" >&5
    6157 sed 's/^/| /' conftest.$ac_ext >&5
    6158 
    6159 ac_cv_lib_m_main=no
    6160 fi
    6161 rm -f conftest.err conftest.$ac_objext \
    6162       conftest$ac_exeext conftest.$ac_ext
    6163 LIBS=$ac_check_lib_save_LIBS
    6164 fi
    6165 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    6166 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    6167 if test $ac_cv_lib_m_main = yes; then
    6168   cat >>confdefs.h <<_ACEOF
    6169 #define HAVE_LIBM 1
    6170 _ACEOF
    6171 
    6172   LIBS="-lm $LIBS"
    6173 
    6174 fi
    6175 
    6176 
    6177 LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
    6178 
    6179 
    6180 # Checks for header files.
    6181 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    6182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    6183 if test "${ac_cv_header_stdc+set}" = set; then
    6184   echo $ECHO_N "(cached) $ECHO_C" >&6
    6185 else
    6186   cat >conftest.$ac_ext <<_ACEOF
    6187 /* confdefs.h.  */
    6188 _ACEOF
    6189 cat confdefs.h >>conftest.$ac_ext
    6190 cat >>conftest.$ac_ext <<_ACEOF
    6191 /* end confdefs.h.  */
    6192 #include <stdlib.h>
    6193 #include <stdarg.h>
    6194 #include <string.h>
    6195 #include <float.h>
    6196 
    6197 int
    6198 main ()
    6199 {
    6200 
    6201   ;
    6202   return 0;
    6203 }
    6204 _ACEOF
    6205 rm -f conftest.$ac_objext
    6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6207   (eval $ac_compile) 2>conftest.er1
    6208   ac_status=$?
    6209   grep -v '^ *+' conftest.er1 >conftest.err
    6210   rm -f conftest.er1
    6211   cat conftest.err >&5
    6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6213   (exit $ac_status); } &&
    6214          { ac_try='test -z "$ac_c_werror_flag"
    6215                          || test ! -s conftest.err'
    6216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6217   (eval $ac_try) 2>&5
    6218   ac_status=$?
    6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6220   (exit $ac_status); }; } &&
    6221          { ac_try='test -s conftest.$ac_objext'
    6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6223   (eval $ac_try) 2>&5
    6224   ac_status=$?
    6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6226   (exit $ac_status); }; }; then
    6227   ac_cv_header_stdc=yes
    6228 else
    6229   echo "$as_me: failed program was:" >&5
    6230 sed 's/^/| /' conftest.$ac_ext >&5
    6231 
    6232 ac_cv_header_stdc=no
    6233 fi
    6234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6235 
    6236 if test $ac_cv_header_stdc = yes; then
    6237   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    6238   cat >conftest.$ac_ext <<_ACEOF
    6239 /* confdefs.h.  */
    6240 _ACEOF
    6241 cat confdefs.h >>conftest.$ac_ext
    6242 cat >>conftest.$ac_ext <<_ACEOF
    6243 /* end confdefs.h.  */
    6244 #include <string.h>
    6245 
    6246 _ACEOF
    6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6248   $EGREP "memchr" >/dev/null 2>&1; then
    6249   :
    6250 else
    6251   ac_cv_header_stdc=no
    6252 fi
    6253 rm -f conftest*
    6254 
    6255 fi
    6256 
    6257 if test $ac_cv_header_stdc = yes; then
    6258   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    6259   cat >conftest.$ac_ext <<_ACEOF
    6260 /* confdefs.h.  */
    6261 _ACEOF
    6262 cat confdefs.h >>conftest.$ac_ext
    6263 cat >>conftest.$ac_ext <<_ACEOF
    6264 /* end confdefs.h.  */
    6265 #include <stdlib.h>
    6266 
    6267 _ACEOF
    6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6269   $EGREP "free" >/dev/null 2>&1; then
    6270   :
    6271 else
    6272   ac_cv_header_stdc=no
    6273 fi
    6274 rm -f conftest*
    6275 
    6276 fi
    6277 
    6278 if test $ac_cv_header_stdc = yes; then
    6279   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    6280   if test "$cross_compiling" = yes; then
    6281   :
    6282 else
    6283   cat >conftest.$ac_ext <<_ACEOF
    6284 /* confdefs.h.  */
    6285 _ACEOF
    6286 cat confdefs.h >>conftest.$ac_ext
    6287 cat >>conftest.$ac_ext <<_ACEOF
    6288 /* end confdefs.h.  */
    6289 #include <ctype.h>
    6290 #if ((' ' & 0x0FF) == 0x020)
    6291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    6292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    6293 #else
    6294 # define ISLOWER(c) \
    6295                    (('a' <= (c) && (c) <= 'i') \
    6296                      || ('j' <= (c) && (c) <= 'r') \
    6297                      || ('s' <= (c) && (c) <= 'z'))
    6298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    6299 #endif
    6300 
    6301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    6302 int
    6303 main ()
    6304 {
    6305   int i;
    6306   for (i = 0; i < 256; i++)
    6307     if (XOR (islower (i), ISLOWER (i))
    6308         || toupper (i) != TOUPPER (i))
    6309       exit(2);
    6310   exit (0);
    6311 }
    6312 _ACEOF
    6313 rm -f conftest$ac_exeext
    6314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6315   (eval $ac_link) 2>&5
    6316   ac_status=$?
    6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6320   (eval $ac_try) 2>&5
    6321   ac_status=$?
    6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6323   (exit $ac_status); }; }; then
    6324   :
    6325 else
    6326   echo "$as_me: program exited with status $ac_status" >&5
    6327 echo "$as_me: failed program was:" >&5
    6328 sed 's/^/| /' conftest.$ac_ext >&5
    6329 
    6330 ( exit $ac_status )
    6331 ac_cv_header_stdc=no
    6332 fi
    6333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6334 fi
    6335 fi
    6336 fi
    6337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    6338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    6339 if test $ac_cv_header_stdc = yes; then
    6340 
    6341 cat >>confdefs.h <<\_ACEOF
    6342 #define STDC_HEADERS 1
    6343 _ACEOF
    6344 
    6345 fi
    6346 
    6347 
    6348 
    6349 for ac_header in stdlib.h string.h
     5925
     5926
     5927
     5928
     5929## check for SDL_mixer
     5930# checking for SDL-Mixer-headers
     5931
     5932for ac_header in SDL/SDL_mixer.h
    63505933do
    63515934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    64926075_ACEOF
    64936076
     6077else
     6078  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     6079echo "$as_me: error: cannot find SDL headers" >&2;}
     6080   { (exit 1); exit 1; }; }
    64946081fi
    64956082
     
    64976084
    64986085
    6499 # Checks for typedefs, structures, and compiler characteristics.
    6500 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    6501 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    6502 if test "${ac_cv_header_stdbool_h+set}" = set; then
     6086
     6087#checking for libSDL_mixer
     6088    echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
     6089echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
     6090if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
    65036091  echo $ECHO_N "(cached) $ECHO_C" >&6
    65046092else
    6505   cat >conftest.$ac_ext <<_ACEOF
     6093  ac_check_lib_save_LIBS=$LIBS
     6094LIBS="-lSDL_mixer  $LIBS"
     6095cat >conftest.$ac_ext <<_ACEOF
    65066096/* confdefs.h.  */
    65076097_ACEOF
     
    65106100/* end confdefs.h.  */
    65116101
    6512 #include <stdbool.h>
    6513 #ifndef bool
    6514 # error bool is not defined
    6515 #endif
    6516 #ifndef false
    6517 # error false is not defined
    6518 #endif
    6519 #if false
    6520 # error false is not 0
    6521 #endif
    6522 #ifndef true
    6523 # error true is not defined
    6524 #endif
    6525 #if true != 1
    6526 # error true is not 1
    6527 #endif
    6528 #ifndef __bool_true_false_are_defined
    6529 # error __bool_true_false_are_defined is not defined
    6530 #endif
    6531 
    6532         struct s { _Bool s: 1; _Bool t; } s;
    6533 
    6534         char a[true == 1 ? 1 : -1];
    6535         char b[false == 0 ? 1 : -1];
    6536         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
    6537         char d[(bool) -0.5 == true ? 1 : -1];
    6538         bool e = &s;
    6539         char f[(_Bool) -0.0 == false ? 1 : -1];
    6540         char g[true];
    6541         char h[sizeof (_Bool)];
    6542         char i[sizeof s.t];
    65436102
    65446103int
    65456104main ()
    65466105{
    6547  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     6106main ();
    65486107  ;
    65496108  return 0;
    65506109}
    65516110_ACEOF
    6552 rm -f conftest.$ac_objext
    6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6554   (eval $ac_compile) 2>conftest.er1
     6111rm -f conftest.$ac_objext conftest$ac_exeext
     6112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6113  (eval $ac_link) 2>conftest.er1
    65556114  ac_status=$?
    65566115  grep -v '^ *+' conftest.er1 >conftest.err
     
    65666125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    65676126  (exit $ac_status); }; } &&
    6568          { ac_try='test -s conftest.$ac_objext'
     6127         { ac_try='test -s conftest$ac_exeext'
    65696128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    65706129  (eval $ac_try) 2>&5
     
    65726131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    65736132  (exit $ac_status); }; }; then
    6574   ac_cv_header_stdbool_h=yes
     6133  ac_cv_lib_SDL_mixer_main=yes
    65756134else
    65766135  echo "$as_me: failed program was:" >&5
    65776136sed 's/^/| /' conftest.$ac_ext >&5
    65786137
    6579 ac_cv_header_stdbool_h=no
    6580 fi
    6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6582 fi
    6583 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    6584 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    6585 echo "$as_me:$LINENO: checking for _Bool" >&5
    6586 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    6587 if test "${ac_cv_type__Bool+set}" = set; then
    6588   echo $ECHO_N "(cached) $ECHO_C" >&6
    6589 else
    6590   cat >conftest.$ac_ext <<_ACEOF
    6591 /* confdefs.h.  */
    6592 _ACEOF
    6593 cat confdefs.h >>conftest.$ac_ext
    6594 cat >>conftest.$ac_ext <<_ACEOF
    6595 /* end confdefs.h.  */
    6596 $ac_includes_default
    6597 int
    6598 main ()
    6599 {
    6600 if ((_Bool *) 0)
    6601   return 0;
    6602 if (sizeof (_Bool))
    6603   return 0;
    6604   ;
    6605   return 0;
    6606 }
    6607 _ACEOF
    6608 rm -f conftest.$ac_objext
    6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6610   (eval $ac_compile) 2>conftest.er1
    6611   ac_status=$?
    6612   grep -v '^ *+' conftest.er1 >conftest.err
    6613   rm -f conftest.er1
    6614   cat conftest.err >&5
    6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6616   (exit $ac_status); } &&
    6617          { ac_try='test -z "$ac_c_werror_flag"
    6618                          || test ! -s conftest.err'
    6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6620   (eval $ac_try) 2>&5
    6621   ac_status=$?
    6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6623   (exit $ac_status); }; } &&
    6624          { ac_try='test -s conftest.$ac_objext'
    6625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6626   (eval $ac_try) 2>&5
    6627   ac_status=$?
    6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6629   (exit $ac_status); }; }; then
    6630   ac_cv_type__Bool=yes
    6631 else
    6632   echo "$as_me: failed program was:" >&5
    6633 sed 's/^/| /' conftest.$ac_ext >&5
    6634 
    6635 ac_cv_type__Bool=no
    6636 fi
    6637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6638 fi
    6639 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    6640 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    6641 if test $ac_cv_type__Bool = yes; then
    6642 
    6643 cat >>confdefs.h <<_ACEOF
    6644 #define HAVE__BOOL 1
    6645 _ACEOF
    6646 
    6647 
    6648 fi
    6649 
    6650 if test $ac_cv_header_stdbool_h = yes; then
    6651 
    6652 cat >>confdefs.h <<\_ACEOF
    6653 #define HAVE_STDBOOL_H 1
    6654 _ACEOF
    6655 
    6656 fi
    6657 
    6658 
    6659 # Checks for library functions.
    6660 
    6661 for ac_header in stdlib.h
     6138ac_cv_lib_SDL_mixer_main=no
     6139fi
     6140rm -f conftest.err conftest.$ac_objext \
     6141      conftest$ac_exeext conftest.$ac_ext
     6142LIBS=$ac_check_lib_save_LIBS
     6143fi
     6144echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
     6145echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
     6146if test $ac_cv_lib_SDL_mixer_main = yes; then
     6147  FOUND_SDL_mixer=yes
     6148fi
     6149
     6150    if test "$FOUND_SDL_mixer" = "yes" ; then
     6151       LIBS="$LIBS -lSDL_mixer"
     6152    else
     6153        echo "------------------"
     6154        echo "SDL Mixer library not found."
     6155        echo "please install the SDL Mixer library, which can be found at http://www.libsdl.org"
     6156        echo "------------------"
     6157        exit 1
     6158    fi
     6159
     6160
     6161## check for SDL_Image
     6162if test "$def_sdl_image" = "yes"; then
     6163# checking for SDL_image-headers
     6164
     6165for ac_header in SDL/SDL_image.h
    66626166do
    66636167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    68046308_ACEOF
    68056309
     6310else
     6311  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
     6312fi
     6313
     6314done
     6315
     6316fi
     6317if test "$def_sdl_image" = "yes"; then
     6318# checking for SDL_image-lib
     6319  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
     6320echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
     6321if test "${ac_cv_lib_SDL_image_main+set}" = set; then
     6322  echo $ECHO_N "(cached) $ECHO_C" >&6
     6323else
     6324  ac_check_lib_save_LIBS=$LIBS
     6325LIBS="-lSDL_image  $LIBS"
     6326cat >conftest.$ac_ext <<_ACEOF
     6327/* confdefs.h.  */
     6328_ACEOF
     6329cat confdefs.h >>conftest.$ac_ext
     6330cat >>conftest.$ac_ext <<_ACEOF
     6331/* end confdefs.h.  */
     6332
     6333
     6334int
     6335main ()
     6336{
     6337main ();
     6338  ;
     6339  return 0;
     6340}
     6341_ACEOF
     6342rm -f conftest.$ac_objext conftest$ac_exeext
     6343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6344  (eval $ac_link) 2>conftest.er1
     6345  ac_status=$?
     6346  grep -v '^ *+' conftest.er1 >conftest.err
     6347  rm -f conftest.er1
     6348  cat conftest.err >&5
     6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6350  (exit $ac_status); } &&
     6351         { ac_try='test -z "$ac_c_werror_flag"
     6352                         || test ! -s conftest.err'
     6353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6354  (eval $ac_try) 2>&5
     6355  ac_status=$?
     6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6357  (exit $ac_status); }; } &&
     6358         { ac_try='test -s conftest$ac_exeext'
     6359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6360  (eval $ac_try) 2>&5
     6361  ac_status=$?
     6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6363  (exit $ac_status); }; }; then
     6364  ac_cv_lib_SDL_image_main=yes
     6365else
     6366  echo "$as_me: failed program was:" >&5
     6367sed 's/^/| /' conftest.$ac_ext >&5
     6368
     6369ac_cv_lib_SDL_image_main=no
     6370fi
     6371rm -f conftest.err conftest.$ac_objext \
     6372      conftest$ac_exeext conftest.$ac_ext
     6373LIBS=$ac_check_lib_save_LIBS
     6374fi
     6375echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
     6376echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
     6377if test $ac_cv_lib_SDL_image_main = yes; then
     6378  FOUND_SDL_image=yes
     6379fi
     6380
     6381     if test "$FOUND_SDL_image" = "yes" ; then
     6382       LIBS="$LIBS -lSDL_image"
     6383     else
     6384        echo "------------------"
     6385        echo "SDL_image library not found."
     6386        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
     6387        echo "------------------"
     6388        exit -1
     6389     fi
     6390fi
     6391
     6392
     6393if test "$def_sdl_image" = "no"; then
     6394 ## checking for libjpeg
     6395
     6396for ac_header in jpeglib.h
     6397do
     6398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6399if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6400  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6402if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6403  echo $ECHO_N "(cached) $ECHO_C" >&6
     6404fi
     6405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6407else
     6408  # Is the header compilable?
     6409echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6411cat >conftest.$ac_ext <<_ACEOF
     6412/* confdefs.h.  */
     6413_ACEOF
     6414cat confdefs.h >>conftest.$ac_ext
     6415cat >>conftest.$ac_ext <<_ACEOF
     6416/* end confdefs.h.  */
     6417$ac_includes_default
     6418#include <$ac_header>
     6419_ACEOF
     6420rm -f conftest.$ac_objext
     6421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6422  (eval $ac_compile) 2>conftest.er1
     6423  ac_status=$?
     6424  grep -v '^ *+' conftest.er1 >conftest.err
     6425  rm -f conftest.er1
     6426  cat conftest.err >&5
     6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6428  (exit $ac_status); } &&
     6429         { ac_try='test -z "$ac_c_werror_flag"
     6430                         || test ! -s conftest.err'
     6431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6432  (eval $ac_try) 2>&5
     6433  ac_status=$?
     6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6435  (exit $ac_status); }; } &&
     6436         { ac_try='test -s conftest.$ac_objext'
     6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6438  (eval $ac_try) 2>&5
     6439  ac_status=$?
     6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6441  (exit $ac_status); }; }; then
     6442  ac_header_compiler=yes
     6443else
     6444  echo "$as_me: failed program was:" >&5
     6445sed 's/^/| /' conftest.$ac_ext >&5
     6446
     6447ac_header_compiler=no
     6448fi
     6449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6451echo "${ECHO_T}$ac_header_compiler" >&6
     6452
     6453# Is the header present?
     6454echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6456cat >conftest.$ac_ext <<_ACEOF
     6457/* confdefs.h.  */
     6458_ACEOF
     6459cat confdefs.h >>conftest.$ac_ext
     6460cat >>conftest.$ac_ext <<_ACEOF
     6461/* end confdefs.h.  */
     6462#include <$ac_header>
     6463_ACEOF
     6464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6466  ac_status=$?
     6467  grep -v '^ *+' conftest.er1 >conftest.err
     6468  rm -f conftest.er1
     6469  cat conftest.err >&5
     6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6471  (exit $ac_status); } >/dev/null; then
     6472  if test -s conftest.err; then
     6473    ac_cpp_err=$ac_c_preproc_warn_flag
     6474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6475  else
     6476    ac_cpp_err=
     6477  fi
     6478else
     6479  ac_cpp_err=yes
     6480fi
     6481if test -z "$ac_cpp_err"; then
     6482  ac_header_preproc=yes
     6483else
     6484  echo "$as_me: failed program was:" >&5
     6485sed 's/^/| /' conftest.$ac_ext >&5
     6486
     6487  ac_header_preproc=no
     6488fi
     6489rm -f conftest.err conftest.$ac_ext
     6490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6491echo "${ECHO_T}$ac_header_preproc" >&6
     6492
     6493# So?  What about this header?
     6494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6495  yes:no: )
     6496    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6498    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6500    ac_header_preproc=yes
     6501    ;;
     6502  no:yes:* )
     6503    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6505    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6506echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6507    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6509    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6510echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6513    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6515    (
     6516      cat <<\_ASBOX
     6517## ------------------------------------------- ##
     6518## Report this to orxonox-dev@mail.datacore.ch ##
     6519## ------------------------------------------- ##
     6520_ASBOX
     6521    ) |
     6522      sed "s/^/$as_me: WARNING:     /" >&2
     6523    ;;
     6524esac
     6525echo "$as_me:$LINENO: checking for $ac_header" >&5
     6526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6527if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6528  echo $ECHO_N "(cached) $ECHO_C" >&6
     6529else
     6530  eval "$as_ac_Header=\$ac_header_preproc"
     6531fi
     6532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6534
     6535fi
     6536if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6537  cat >>confdefs.h <<_ACEOF
     6538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6539_ACEOF
     6540 jpegHeader="yes"
     6541else
     6542  jpegHeader="no"
     6543fi
     6544
     6545done
     6546
     6547 if test $jpegHeader = "no"; then
     6548        echo " not including jpeg."
     6549 else
     6550  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
     6551echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
     6552if test "${ac_cv_lib_jpeg_main+set}" = set; then
     6553  echo $ECHO_N "(cached) $ECHO_C" >&6
     6554else
     6555  ac_check_lib_save_LIBS=$LIBS
     6556LIBS="-ljpeg  $LIBS"
     6557cat >conftest.$ac_ext <<_ACEOF
     6558/* confdefs.h.  */
     6559_ACEOF
     6560cat confdefs.h >>conftest.$ac_ext
     6561cat >>conftest.$ac_ext <<_ACEOF
     6562/* end confdefs.h.  */
     6563
     6564
     6565int
     6566main ()
     6567{
     6568main ();
     6569  ;
     6570  return 0;
     6571}
     6572_ACEOF
     6573rm -f conftest.$ac_objext conftest$ac_exeext
     6574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6575  (eval $ac_link) 2>conftest.er1
     6576  ac_status=$?
     6577  grep -v '^ *+' conftest.er1 >conftest.err
     6578  rm -f conftest.er1
     6579  cat conftest.err >&5
     6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6581  (exit $ac_status); } &&
     6582         { ac_try='test -z "$ac_c_werror_flag"
     6583                         || test ! -s conftest.err'
     6584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6585  (eval $ac_try) 2>&5
     6586  ac_status=$?
     6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6588  (exit $ac_status); }; } &&
     6589         { ac_try='test -s conftest$ac_exeext'
     6590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6591  (eval $ac_try) 2>&5
     6592  ac_status=$?
     6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6594  (exit $ac_status); }; }; then
     6595  ac_cv_lib_jpeg_main=yes
     6596else
     6597  echo "$as_me: failed program was:" >&5
     6598sed 's/^/| /' conftest.$ac_ext >&5
     6599
     6600ac_cv_lib_jpeg_main=no
     6601fi
     6602rm -f conftest.err conftest.$ac_objext \
     6603      conftest$ac_exeext conftest.$ac_ext
     6604LIBS=$ac_check_lib_save_LIBS
     6605fi
     6606echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
     6607echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
     6608if test $ac_cv_lib_jpeg_main = yes; then
     6609  FOUND_jpeg=yes
     6610fi
     6611
     6612    if test "$FOUND_jpeg" = "yes" ; then
     6613      LIBS="$LIBS -ljpeg"
     6614    else
     6615         echo "------------------"
     6616         echo "jpeg library not found."
     6617         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
     6618         echo "------------------"
     6619         exit -1
     6620    fi
     6621 fi
     6622
     6623 ## checking for libpng
     6624
     6625for ac_header in png.h
     6626do
     6627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6628if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6629  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6631if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6632  echo $ECHO_N "(cached) $ECHO_C" >&6
     6633fi
     6634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6636else
     6637  # Is the header compilable?
     6638echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6640cat >conftest.$ac_ext <<_ACEOF
     6641/* confdefs.h.  */
     6642_ACEOF
     6643cat confdefs.h >>conftest.$ac_ext
     6644cat >>conftest.$ac_ext <<_ACEOF
     6645/* end confdefs.h.  */
     6646$ac_includes_default
     6647#include <$ac_header>
     6648_ACEOF
     6649rm -f conftest.$ac_objext
     6650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6651  (eval $ac_compile) 2>conftest.er1
     6652  ac_status=$?
     6653  grep -v '^ *+' conftest.er1 >conftest.err
     6654  rm -f conftest.er1
     6655  cat conftest.err >&5
     6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6657  (exit $ac_status); } &&
     6658         { ac_try='test -z "$ac_c_werror_flag"
     6659                         || test ! -s conftest.err'
     6660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6661  (eval $ac_try) 2>&5
     6662  ac_status=$?
     6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6664  (exit $ac_status); }; } &&
     6665         { ac_try='test -s conftest.$ac_objext'
     6666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6667  (eval $ac_try) 2>&5
     6668  ac_status=$?
     6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6670  (exit $ac_status); }; }; then
     6671  ac_header_compiler=yes
     6672else
     6673  echo "$as_me: failed program was:" >&5
     6674sed 's/^/| /' conftest.$ac_ext >&5
     6675
     6676ac_header_compiler=no
     6677fi
     6678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6680echo "${ECHO_T}$ac_header_compiler" >&6
     6681
     6682# Is the header present?
     6683echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6685cat >conftest.$ac_ext <<_ACEOF
     6686/* confdefs.h.  */
     6687_ACEOF
     6688cat confdefs.h >>conftest.$ac_ext
     6689cat >>conftest.$ac_ext <<_ACEOF
     6690/* end confdefs.h.  */
     6691#include <$ac_header>
     6692_ACEOF
     6693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6694  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6695  ac_status=$?
     6696  grep -v '^ *+' conftest.er1 >conftest.err
     6697  rm -f conftest.er1
     6698  cat conftest.err >&5
     6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6700  (exit $ac_status); } >/dev/null; then
     6701  if test -s conftest.err; then
     6702    ac_cpp_err=$ac_c_preproc_warn_flag
     6703    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6704  else
     6705    ac_cpp_err=
     6706  fi
     6707else
     6708  ac_cpp_err=yes
     6709fi
     6710if test -z "$ac_cpp_err"; then
     6711  ac_header_preproc=yes
     6712else
     6713  echo "$as_me: failed program was:" >&5
     6714sed 's/^/| /' conftest.$ac_ext >&5
     6715
     6716  ac_header_preproc=no
     6717fi
     6718rm -f conftest.err conftest.$ac_ext
     6719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6720echo "${ECHO_T}$ac_header_preproc" >&6
     6721
     6722# So?  What about this header?
     6723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6724  yes:no: )
     6725    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6727    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6729    ac_header_preproc=yes
     6730    ;;
     6731  no:yes:* )
     6732    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6734    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6735echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6736    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6738    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6739echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6742    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6744    (
     6745      cat <<\_ASBOX
     6746## ------------------------------------------- ##
     6747## Report this to orxonox-dev@mail.datacore.ch ##
     6748## ------------------------------------------- ##
     6749_ASBOX
     6750    ) |
     6751      sed "s/^/$as_me: WARNING:     /" >&2
     6752    ;;
     6753esac
     6754echo "$as_me:$LINENO: checking for $ac_header" >&5
     6755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6756if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6757  echo $ECHO_N "(cached) $ECHO_C" >&6
     6758else
     6759  eval "$as_ac_Header=\$ac_header_preproc"
     6760fi
     6761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6763
     6764fi
     6765if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6766  cat >>confdefs.h <<_ACEOF
     6767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6768_ACEOF
     6769 pngHeader="yes"
     6770else
     6771  pngHeader="no"
     6772fi
     6773
     6774done
     6775
     6776 if test $pngHeader = "no"; then
     6777        echo " not including png."
     6778 else
     6779  echo "$as_me:$LINENO: checking for main in -lpng" >&5
     6780echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
     6781if test "${ac_cv_lib_png_main+set}" = set; then
     6782  echo $ECHO_N "(cached) $ECHO_C" >&6
     6783else
     6784  ac_check_lib_save_LIBS=$LIBS
     6785LIBS="-lpng  $LIBS"
     6786cat >conftest.$ac_ext <<_ACEOF
     6787/* confdefs.h.  */
     6788_ACEOF
     6789cat confdefs.h >>conftest.$ac_ext
     6790cat >>conftest.$ac_ext <<_ACEOF
     6791/* end confdefs.h.  */
     6792
     6793
     6794int
     6795main ()
     6796{
     6797main ();
     6798  ;
     6799  return 0;
     6800}
     6801_ACEOF
     6802rm -f conftest.$ac_objext conftest$ac_exeext
     6803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6804  (eval $ac_link) 2>conftest.er1
     6805  ac_status=$?
     6806  grep -v '^ *+' conftest.er1 >conftest.err
     6807  rm -f conftest.er1
     6808  cat conftest.err >&5
     6809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6810  (exit $ac_status); } &&
     6811         { ac_try='test -z "$ac_c_werror_flag"
     6812                         || test ! -s conftest.err'
     6813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6814  (eval $ac_try) 2>&5
     6815  ac_status=$?
     6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6817  (exit $ac_status); }; } &&
     6818         { ac_try='test -s conftest$ac_exeext'
     6819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6820  (eval $ac_try) 2>&5
     6821  ac_status=$?
     6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6823  (exit $ac_status); }; }; then
     6824  ac_cv_lib_png_main=yes
     6825else
     6826  echo "$as_me: failed program was:" >&5
     6827sed 's/^/| /' conftest.$ac_ext >&5
     6828
     6829ac_cv_lib_png_main=no
     6830fi
     6831rm -f conftest.err conftest.$ac_objext \
     6832      conftest$ac_exeext conftest.$ac_ext
     6833LIBS=$ac_check_lib_save_LIBS
     6834fi
     6835echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
     6836echo "${ECHO_T}$ac_cv_lib_png_main" >&6
     6837if test $ac_cv_lib_png_main = yes; then
     6838  FOUND_png=yes
     6839fi
     6840
     6841    if test "$FOUND_png" = "yes" ; then
     6842      LIBS="$LIBS -lpng"
     6843    else
     6844         echo "------------------"
     6845         echo "png library not found."
     6846         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
     6847         echo "------------------"
     6848         exit -1
     6849    fi
     6850 fi
     6851fi
     6852
     6853## checking for GTK
     6854if test "$def_gtk" = yes; then
     6855
     6856        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     6857        echo "$as_me:$LINENO: checking for gtk2.0" >&5
     6858echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
     6859        if `pkg-config --exists gtk+-2.0`; then
     6860                echo "yes"
     6861                have_gtk2=yes
     6862                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
     6863                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     6864
     6865cat >>confdefs.h <<_ACEOF
     6866#define HAVE_GTK2 1
     6867_ACEOF
     6868
     6869        else
     6870                echo "no"
     6871        fi
     6872
     6873fi
     6874
     6875
     6876
     6877
     6878if test x$have_gtk2 = xyes; then
     6879  HAVE_GTK2_TRUE=
     6880  HAVE_GTK2_FALSE='#'
     6881else
     6882  HAVE_GTK2_TRUE='#'
     6883  HAVE_GTK2_FALSE=
     6884fi
     6885
     6886
     6887
     6888
     6889#checking for pthread libs
     6890# AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     6891# if test "$FOUND_pthread" = "yes" ; then
     6892#    LIBS="$LIBS -lpthread"
     6893# fi
     6894
     6895
     6896# FIXME: Replace `main' with a function in `-lm':
     6897
     6898echo "$as_me:$LINENO: checking for main in -lm" >&5
     6899echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     6900if test "${ac_cv_lib_m_main+set}" = set; then
     6901  echo $ECHO_N "(cached) $ECHO_C" >&6
     6902else
     6903  ac_check_lib_save_LIBS=$LIBS
     6904LIBS="-lm  $LIBS"
     6905cat >conftest.$ac_ext <<_ACEOF
     6906/* confdefs.h.  */
     6907_ACEOF
     6908cat confdefs.h >>conftest.$ac_ext
     6909cat >>conftest.$ac_ext <<_ACEOF
     6910/* end confdefs.h.  */
     6911
     6912
     6913int
     6914main ()
     6915{
     6916main ();
     6917  ;
     6918  return 0;
     6919}
     6920_ACEOF
     6921rm -f conftest.$ac_objext conftest$ac_exeext
     6922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6923  (eval $ac_link) 2>conftest.er1
     6924  ac_status=$?
     6925  grep -v '^ *+' conftest.er1 >conftest.err
     6926  rm -f conftest.er1
     6927  cat conftest.err >&5
     6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6929  (exit $ac_status); } &&
     6930         { ac_try='test -z "$ac_c_werror_flag"
     6931                         || test ! -s conftest.err'
     6932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6933  (eval $ac_try) 2>&5
     6934  ac_status=$?
     6935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6936  (exit $ac_status); }; } &&
     6937         { ac_try='test -s conftest$ac_exeext'
     6938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6939  (eval $ac_try) 2>&5
     6940  ac_status=$?
     6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6942  (exit $ac_status); }; }; then
     6943  ac_cv_lib_m_main=yes
     6944else
     6945  echo "$as_me: failed program was:" >&5
     6946sed 's/^/| /' conftest.$ac_ext >&5
     6947
     6948ac_cv_lib_m_main=no
     6949fi
     6950rm -f conftest.err conftest.$ac_objext \
     6951      conftest$ac_exeext conftest.$ac_ext
     6952LIBS=$ac_check_lib_save_LIBS
     6953fi
     6954echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     6955echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     6956if test $ac_cv_lib_m_main = yes; then
     6957  cat >>confdefs.h <<_ACEOF
     6958#define HAVE_LIBM 1
     6959_ACEOF
     6960
     6961  LIBS="-lm $LIBS"
     6962
     6963fi
     6964
     6965
     6966
     6967# Checks for header files.
     6968echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     6970if test "${ac_cv_header_stdc+set}" = set; then
     6971  echo $ECHO_N "(cached) $ECHO_C" >&6
     6972else
     6973  cat >conftest.$ac_ext <<_ACEOF
     6974/* confdefs.h.  */
     6975_ACEOF
     6976cat confdefs.h >>conftest.$ac_ext
     6977cat >>conftest.$ac_ext <<_ACEOF
     6978/* end confdefs.h.  */
     6979#include <stdlib.h>
     6980#include <stdarg.h>
     6981#include <string.h>
     6982#include <float.h>
     6983
     6984int
     6985main ()
     6986{
     6987
     6988  ;
     6989  return 0;
     6990}
     6991_ACEOF
     6992rm -f conftest.$ac_objext
     6993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6994  (eval $ac_compile) 2>conftest.er1
     6995  ac_status=$?
     6996  grep -v '^ *+' conftest.er1 >conftest.err
     6997  rm -f conftest.er1
     6998  cat conftest.err >&5
     6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7000  (exit $ac_status); } &&
     7001         { ac_try='test -z "$ac_c_werror_flag"
     7002                         || test ! -s conftest.err'
     7003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7004  (eval $ac_try) 2>&5
     7005  ac_status=$?
     7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7007  (exit $ac_status); }; } &&
     7008         { ac_try='test -s conftest.$ac_objext'
     7009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7010  (eval $ac_try) 2>&5
     7011  ac_status=$?
     7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7013  (exit $ac_status); }; }; then
     7014  ac_cv_header_stdc=yes
     7015else
     7016  echo "$as_me: failed program was:" >&5
     7017sed 's/^/| /' conftest.$ac_ext >&5
     7018
     7019ac_cv_header_stdc=no
     7020fi
     7021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7022
     7023if test $ac_cv_header_stdc = yes; then
     7024  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     7025  cat >conftest.$ac_ext <<_ACEOF
     7026/* confdefs.h.  */
     7027_ACEOF
     7028cat confdefs.h >>conftest.$ac_ext
     7029cat >>conftest.$ac_ext <<_ACEOF
     7030/* end confdefs.h.  */
     7031#include <string.h>
     7032
     7033_ACEOF
     7034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     7035  $EGREP "memchr" >/dev/null 2>&1; then
     7036  :
     7037else
     7038  ac_cv_header_stdc=no
     7039fi
     7040rm -f conftest*
     7041
     7042fi
     7043
     7044if test $ac_cv_header_stdc = yes; then
     7045  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     7046  cat >conftest.$ac_ext <<_ACEOF
     7047/* confdefs.h.  */
     7048_ACEOF
     7049cat confdefs.h >>conftest.$ac_ext
     7050cat >>conftest.$ac_ext <<_ACEOF
     7051/* end confdefs.h.  */
     7052#include <stdlib.h>
     7053
     7054_ACEOF
     7055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     7056  $EGREP "free" >/dev/null 2>&1; then
     7057  :
     7058else
     7059  ac_cv_header_stdc=no
     7060fi
     7061rm -f conftest*
     7062
     7063fi
     7064
     7065if test $ac_cv_header_stdc = yes; then
     7066  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     7067  if test "$cross_compiling" = yes; then
     7068  :
     7069else
     7070  cat >conftest.$ac_ext <<_ACEOF
     7071/* confdefs.h.  */
     7072_ACEOF
     7073cat confdefs.h >>conftest.$ac_ext
     7074cat >>conftest.$ac_ext <<_ACEOF
     7075/* end confdefs.h.  */
     7076#include <ctype.h>
     7077#if ((' ' & 0x0FF) == 0x020)
     7078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     7079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     7080#else
     7081# define ISLOWER(c) \
     7082                   (('a' <= (c) && (c) <= 'i') \
     7083                     || ('j' <= (c) && (c) <= 'r') \
     7084                     || ('s' <= (c) && (c) <= 'z'))
     7085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     7086#endif
     7087
     7088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     7089int
     7090main ()
     7091{
     7092  int i;
     7093  for (i = 0; i < 256; i++)
     7094    if (XOR (islower (i), ISLOWER (i))
     7095        || toupper (i) != TOUPPER (i))
     7096      exit(2);
     7097  exit (0);
     7098}
     7099_ACEOF
     7100rm -f conftest$ac_exeext
     7101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7102  (eval $ac_link) 2>&5
     7103  ac_status=$?
     7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7105  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     7106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7107  (eval $ac_try) 2>&5
     7108  ac_status=$?
     7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7110  (exit $ac_status); }; }; then
     7111  :
     7112else
     7113  echo "$as_me: program exited with status $ac_status" >&5
     7114echo "$as_me: failed program was:" >&5
     7115sed 's/^/| /' conftest.$ac_ext >&5
     7116
     7117( exit $ac_status )
     7118ac_cv_header_stdc=no
     7119fi
     7120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7121fi
     7122fi
     7123fi
     7124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     7125echo "${ECHO_T}$ac_cv_header_stdc" >&6
     7126if test $ac_cv_header_stdc = yes; then
     7127
     7128cat >>confdefs.h <<\_ACEOF
     7129#define STDC_HEADERS 1
     7130_ACEOF
     7131
     7132fi
     7133
     7134
     7135
     7136for ac_header in stdlib.h string.h
     7137do
     7138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7139if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7140  echo "$as_me:$LINENO: checking for $ac_header" >&5
     7141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7142if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7143  echo $ECHO_N "(cached) $ECHO_C" >&6
     7144fi
     7145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7147else
     7148  # Is the header compilable?
     7149echo "$as_me:$LINENO: checking $ac_header usability" >&5
     7150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     7151cat >conftest.$ac_ext <<_ACEOF
     7152/* confdefs.h.  */
     7153_ACEOF
     7154cat confdefs.h >>conftest.$ac_ext
     7155cat >>conftest.$ac_ext <<_ACEOF
     7156/* end confdefs.h.  */
     7157$ac_includes_default
     7158#include <$ac_header>
     7159_ACEOF
     7160rm -f conftest.$ac_objext
     7161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7162  (eval $ac_compile) 2>conftest.er1
     7163  ac_status=$?
     7164  grep -v '^ *+' conftest.er1 >conftest.err
     7165  rm -f conftest.er1
     7166  cat conftest.err >&5
     7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7168  (exit $ac_status); } &&
     7169         { ac_try='test -z "$ac_c_werror_flag"
     7170                         || test ! -s conftest.err'
     7171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7172  (eval $ac_try) 2>&5
     7173  ac_status=$?
     7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7175  (exit $ac_status); }; } &&
     7176         { ac_try='test -s conftest.$ac_objext'
     7177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7178  (eval $ac_try) 2>&5
     7179  ac_status=$?
     7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7181  (exit $ac_status); }; }; then
     7182  ac_header_compiler=yes
     7183else
     7184  echo "$as_me: failed program was:" >&5
     7185sed 's/^/| /' conftest.$ac_ext >&5
     7186
     7187ac_header_compiler=no
     7188fi
     7189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     7191echo "${ECHO_T}$ac_header_compiler" >&6
     7192
     7193# Is the header present?
     7194echo "$as_me:$LINENO: checking $ac_header presence" >&5
     7195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     7196cat >conftest.$ac_ext <<_ACEOF
     7197/* confdefs.h.  */
     7198_ACEOF
     7199cat confdefs.h >>conftest.$ac_ext
     7200cat >>conftest.$ac_ext <<_ACEOF
     7201/* end confdefs.h.  */
     7202#include <$ac_header>
     7203_ACEOF
     7204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7205  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7206  ac_status=$?
     7207  grep -v '^ *+' conftest.er1 >conftest.err
     7208  rm -f conftest.er1
     7209  cat conftest.err >&5
     7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7211  (exit $ac_status); } >/dev/null; then
     7212  if test -s conftest.err; then
     7213    ac_cpp_err=$ac_c_preproc_warn_flag
     7214    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     7215  else
     7216    ac_cpp_err=
     7217  fi
     7218else
     7219  ac_cpp_err=yes
     7220fi
     7221if test -z "$ac_cpp_err"; then
     7222  ac_header_preproc=yes
     7223else
     7224  echo "$as_me: failed program was:" >&5
     7225sed 's/^/| /' conftest.$ac_ext >&5
     7226
     7227  ac_header_preproc=no
     7228fi
     7229rm -f conftest.err conftest.$ac_ext
     7230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     7231echo "${ECHO_T}$ac_header_preproc" >&6
     7232
     7233# So?  What about this header?
     7234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     7235  yes:no: )
     7236    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     7237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     7238    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     7239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     7240    ac_header_preproc=yes
     7241    ;;
     7242  no:yes:* )
     7243    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     7244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     7245    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     7246echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     7247    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     7248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     7249    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     7250echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     7251    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     7252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     7253    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     7254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     7255    (
     7256      cat <<\_ASBOX
     7257## ------------------------------------------- ##
     7258## Report this to orxonox-dev@mail.datacore.ch ##
     7259## ------------------------------------------- ##
     7260_ASBOX
     7261    ) |
     7262      sed "s/^/$as_me: WARNING:     /" >&2
     7263    ;;
     7264esac
     7265echo "$as_me:$LINENO: checking for $ac_header" >&5
     7266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7267if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7268  echo $ECHO_N "(cached) $ECHO_C" >&6
     7269else
     7270  eval "$as_ac_Header=\$ac_header_preproc"
     7271fi
     7272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7274
     7275fi
     7276if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7277  cat >>confdefs.h <<_ACEOF
     7278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7279_ACEOF
     7280
     7281fi
     7282
     7283done
     7284
     7285
     7286# Checks for typedefs, structures, and compiler characteristics.
     7287echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     7288echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     7289if test "${ac_cv_header_stdbool_h+set}" = set; then
     7290  echo $ECHO_N "(cached) $ECHO_C" >&6
     7291else
     7292  cat >conftest.$ac_ext <<_ACEOF
     7293/* confdefs.h.  */
     7294_ACEOF
     7295cat confdefs.h >>conftest.$ac_ext
     7296cat >>conftest.$ac_ext <<_ACEOF
     7297/* end confdefs.h.  */
     7298
     7299#include <stdbool.h>
     7300#ifndef bool
     7301# error bool is not defined
     7302#endif
     7303#ifndef false
     7304# error false is not defined
     7305#endif
     7306#if false
     7307# error false is not 0
     7308#endif
     7309#ifndef true
     7310# error true is not defined
     7311#endif
     7312#if true != 1
     7313# error true is not 1
     7314#endif
     7315#ifndef __bool_true_false_are_defined
     7316# error __bool_true_false_are_defined is not defined
     7317#endif
     7318
     7319        struct s { _Bool s: 1; _Bool t; } s;
     7320
     7321        char a[true == 1 ? 1 : -1];
     7322        char b[false == 0 ? 1 : -1];
     7323        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
     7324        char d[(bool) -0.5 == true ? 1 : -1];
     7325        bool e = &s;
     7326        char f[(_Bool) -0.0 == false ? 1 : -1];
     7327        char g[true];
     7328        char h[sizeof (_Bool)];
     7329        char i[sizeof s.t];
     7330
     7331int
     7332main ()
     7333{
     7334 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     7335  ;
     7336  return 0;
     7337}
     7338_ACEOF
     7339rm -f conftest.$ac_objext
     7340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7341  (eval $ac_compile) 2>conftest.er1
     7342  ac_status=$?
     7343  grep -v '^ *+' conftest.er1 >conftest.err
     7344  rm -f conftest.er1
     7345  cat conftest.err >&5
     7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7347  (exit $ac_status); } &&
     7348         { ac_try='test -z "$ac_c_werror_flag"
     7349                         || test ! -s conftest.err'
     7350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7351  (eval $ac_try) 2>&5
     7352  ac_status=$?
     7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7354  (exit $ac_status); }; } &&
     7355         { ac_try='test -s conftest.$ac_objext'
     7356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7357  (eval $ac_try) 2>&5
     7358  ac_status=$?
     7359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7360  (exit $ac_status); }; }; then
     7361  ac_cv_header_stdbool_h=yes
     7362else
     7363  echo "$as_me: failed program was:" >&5
     7364sed 's/^/| /' conftest.$ac_ext >&5
     7365
     7366ac_cv_header_stdbool_h=no
     7367fi
     7368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7369fi
     7370echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     7371echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     7372echo "$as_me:$LINENO: checking for _Bool" >&5
     7373echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     7374if test "${ac_cv_type__Bool+set}" = set; then
     7375  echo $ECHO_N "(cached) $ECHO_C" >&6
     7376else
     7377  cat >conftest.$ac_ext <<_ACEOF
     7378/* confdefs.h.  */
     7379_ACEOF
     7380cat confdefs.h >>conftest.$ac_ext
     7381cat >>conftest.$ac_ext <<_ACEOF
     7382/* end confdefs.h.  */
     7383$ac_includes_default
     7384int
     7385main ()
     7386{
     7387if ((_Bool *) 0)
     7388  return 0;
     7389if (sizeof (_Bool))
     7390  return 0;
     7391  ;
     7392  return 0;
     7393}
     7394_ACEOF
     7395rm -f conftest.$ac_objext
     7396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7397  (eval $ac_compile) 2>conftest.er1
     7398  ac_status=$?
     7399  grep -v '^ *+' conftest.er1 >conftest.err
     7400  rm -f conftest.er1
     7401  cat conftest.err >&5
     7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7403  (exit $ac_status); } &&
     7404         { ac_try='test -z "$ac_c_werror_flag"
     7405                         || test ! -s conftest.err'
     7406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7407  (eval $ac_try) 2>&5
     7408  ac_status=$?
     7409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7410  (exit $ac_status); }; } &&
     7411         { ac_try='test -s conftest.$ac_objext'
     7412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7413  (eval $ac_try) 2>&5
     7414  ac_status=$?
     7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7416  (exit $ac_status); }; }; then
     7417  ac_cv_type__Bool=yes
     7418else
     7419  echo "$as_me: failed program was:" >&5
     7420sed 's/^/| /' conftest.$ac_ext >&5
     7421
     7422ac_cv_type__Bool=no
     7423fi
     7424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7425fi
     7426echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     7427echo "${ECHO_T}$ac_cv_type__Bool" >&6
     7428if test $ac_cv_type__Bool = yes; then
     7429
     7430cat >>confdefs.h <<_ACEOF
     7431#define HAVE__BOOL 1
     7432_ACEOF
     7433
     7434
     7435fi
     7436
     7437if test $ac_cv_header_stdbool_h = yes; then
     7438
     7439cat >>confdefs.h <<\_ACEOF
     7440#define HAVE_STDBOOL_H 1
     7441_ACEOF
     7442
     7443fi
     7444
     7445
     7446# Checks for library functions.
     7447
     7448for ac_header in stdlib.h
     7449do
     7450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7451if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7452  echo "$as_me:$LINENO: checking for $ac_header" >&5
     7453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7454if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7455  echo $ECHO_N "(cached) $ECHO_C" >&6
     7456fi
     7457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7459else
     7460  # Is the header compilable?
     7461echo "$as_me:$LINENO: checking $ac_header usability" >&5
     7462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     7463cat >conftest.$ac_ext <<_ACEOF
     7464/* confdefs.h.  */
     7465_ACEOF
     7466cat confdefs.h >>conftest.$ac_ext
     7467cat >>conftest.$ac_ext <<_ACEOF
     7468/* end confdefs.h.  */
     7469$ac_includes_default
     7470#include <$ac_header>
     7471_ACEOF
     7472rm -f conftest.$ac_objext
     7473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7474  (eval $ac_compile) 2>conftest.er1
     7475  ac_status=$?
     7476  grep -v '^ *+' conftest.er1 >conftest.err
     7477  rm -f conftest.er1
     7478  cat conftest.err >&5
     7479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7480  (exit $ac_status); } &&
     7481         { ac_try='test -z "$ac_c_werror_flag"
     7482                         || test ! -s conftest.err'
     7483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7484  (eval $ac_try) 2>&5
     7485  ac_status=$?
     7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7487  (exit $ac_status); }; } &&
     7488         { ac_try='test -s conftest.$ac_objext'
     7489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7490  (eval $ac_try) 2>&5
     7491  ac_status=$?
     7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7493  (exit $ac_status); }; }; then
     7494  ac_header_compiler=yes
     7495else
     7496  echo "$as_me: failed program was:" >&5
     7497sed 's/^/| /' conftest.$ac_ext >&5
     7498
     7499ac_header_compiler=no
     7500fi
     7501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     7503echo "${ECHO_T}$ac_header_compiler" >&6
     7504
     7505# Is the header present?
     7506echo "$as_me:$LINENO: checking $ac_header presence" >&5
     7507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     7508cat >conftest.$ac_ext <<_ACEOF
     7509/* confdefs.h.  */
     7510_ACEOF
     7511cat confdefs.h >>conftest.$ac_ext
     7512cat >>conftest.$ac_ext <<_ACEOF
     7513/* end confdefs.h.  */
     7514#include <$ac_header>
     7515_ACEOF
     7516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7518  ac_status=$?
     7519  grep -v '^ *+' conftest.er1 >conftest.err
     7520  rm -f conftest.er1
     7521  cat conftest.err >&5
     7522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7523  (exit $ac_status); } >/dev/null; then
     7524  if test -s conftest.err; then
     7525    ac_cpp_err=$ac_c_preproc_warn_flag
     7526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     7527  else
     7528    ac_cpp_err=
     7529  fi
     7530else
     7531  ac_cpp_err=yes
     7532fi
     7533if test -z "$ac_cpp_err"; then
     7534  ac_header_preproc=yes
     7535else
     7536  echo "$as_me: failed program was:" >&5
     7537sed 's/^/| /' conftest.$ac_ext >&5
     7538
     7539  ac_header_preproc=no
     7540fi
     7541rm -f conftest.err conftest.$ac_ext
     7542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     7543echo "${ECHO_T}$ac_header_preproc" >&6
     7544
     7545# So?  What about this header?
     7546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     7547  yes:no: )
     7548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     7549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     7550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     7551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     7552    ac_header_preproc=yes
     7553    ;;
     7554  no:yes:* )
     7555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     7556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     7557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     7558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     7559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     7560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     7561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     7562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     7563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     7564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     7565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     7566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     7567    (
     7568      cat <<\_ASBOX
     7569## ------------------------------------------- ##
     7570## Report this to orxonox-dev@mail.datacore.ch ##
     7571## ------------------------------------------- ##
     7572_ASBOX
     7573    ) |
     7574      sed "s/^/$as_me: WARNING:     /" >&2
     7575    ;;
     7576esac
     7577echo "$as_me:$LINENO: checking for $ac_header" >&5
     7578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7579if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7580  echo $ECHO_N "(cached) $ECHO_C" >&6
     7581else
     7582  eval "$as_ac_Header=\$ac_header_preproc"
     7583fi
     7584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7586
     7587fi
     7588if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7589  cat >>confdefs.h <<_ACEOF
     7590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7591_ACEOF
     7592
    68067593fi
    68077594
     
    69937780
    69947781
    6995                                                   ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile"
     7782                                                  ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile src/importer/Makefile"
    69967783
    69977784cat >confcache <<\_ACEOF
     
    71047891Usually this means the macro was only invoked conditionally." >&5
    71057892echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     7893Usually this means the macro was only invoked conditionally." >&2;}
     7894   { (exit 1); exit 1; }; }
     7895fi
     7896if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
     7897  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
     7898Usually this means the macro was only invoked conditionally." >&5
     7899echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
     7900Usually this means the macro was only invoked conditionally." >&2;}
     7901   { (exit 1); exit 1; }; }
     7902fi
     7903if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
     7904  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
     7905Usually this means the macro was only invoked conditionally." >&5
     7906echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
    71067907Usually this means the macro was only invoked conditionally." >&2;}
    71077908   { (exit 1); exit 1; }; }
     
    73788179cat >&5 <<_CSEOF
    73798180
    7380 This file was extended by orxonox $as_me 0.1-pre-alpha, which was
     8181This file was extended by orxonox $as_me 0.2.0_alpha-r1, which was
    73818182generated by GNU Autoconf 2.59.  Invocation command line was
    73828183
     
    74418242cat >>$CONFIG_STATUS <<_ACEOF
    74428243ac_cs_version="\\
    7443 orxonox config.status 0.1-pre-alpha
     8244orxonox config.status 0.2.0_alpha-r1
    74448245configured by $0, generated by GNU Autoconf 2.59,
    74458246  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     
    75528353  # Handling of arguments.
    75538354  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7554   "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
    7555   "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
     8355  "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
     8356  "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
    75568357  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    7557   "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;;
     8358  "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;;
    75588359  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    75598360  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     
    76438444s,@ECHO_T@,$ECHO_T,;t t
    76448445s,@LIBS@,$LIBS,;t t
     8446s,@build@,$build,;t t
     8447s,@build_cpu@,$build_cpu,;t t
     8448s,@build_vendor@,$build_vendor,;t t
     8449s,@build_os@,$build_os,;t t
     8450s,@host@,$host,;t t
     8451s,@host_cpu@,$host_cpu,;t t
     8452s,@host_vendor@,$host_vendor,;t t
     8453s,@host_os@,$host_os,;t t
     8454s,@target@,$target,;t t
     8455s,@target_cpu@,$target_cpu,;t t
     8456s,@target_vendor@,$target_vendor,;t t
     8457s,@target_os@,$target_os,;t t
    76458458s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    76468459s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    76878500s,@CPP@,$CPP,;t t
    76888501s,@EGREP@,$EGREP,;t t
     8502s,@DEBUG@,$DEBUG,;t t
     8503s,@DOXYGEN@,$DOXYGEN,;t t
     8504s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
     8505s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
    76898506s,@MSBITFIELDS@,$MSBITFIELDS,;t t
     8507s,@GTK2_LIBS@,$GTK2_LIBS,;t t
     8508s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
     8509s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
     8510s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
    76908511s,@LIBOBJS@,$LIBOBJS,;t t
    76918512s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Note: See TracChangeset for help on using the changeset viewer.