Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 23, 2004, 6:13:50 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/sound: merged Trunk back into sound. and included all headers for real into the configure.ac-script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/sound/configure

    r2854 r2964  
    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 AWK SET_MAKE am__leading_dot MSBITFIELDS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP 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 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'
    315315ac_subst_files=''
    316316
     
    858858  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    859859  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    860   --disable-dependency-tracking Speeds up one-time builds
    861   --enable-dependency-tracking  Do not reject slow dependency extractors
     860  --disable-dependency-tracking  speeds up one-time build
     861  --enable-dependency-tracking   do not reject slow dependency extractors
    862862
    863863Some influential environment variables:
     
    13211321
    13221322
    1323 am__api_version="1.7"
     1323am__api_version="1.8"
    13241324ac_aux_dir=
    13251325for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    14841484rm conftest.sed
    14851485
    1486 
    14871486# expand $ac_aux_dir to an absolute path
    14881487am_aux_dir=`cd $ac_aux_dir && pwd`
     
    14961495  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    14971496echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
     1497fi
     1498
     1499if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     1500  # Keeping the `.' argument allows $(mkdir_p) to be used without
     1501  # argument.  Indeed, we sometimes output rules like
     1502  #   $(mkdir_p) $(somedir)
     1503  # where $(somedir) is conditionally defined.
     1504  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
     1505  # expensive solution, as it forces Make to start a sub-shell.)
     1506  mkdir_p='mkdir -p -- .'
     1507else
     1508  # On NextStep and OpenStep, the `mkdir' command does not
     1509  # recognize any option.  It will interpret all options as
     1510  # directories to create, and then abort because `.' already
     1511  # exists.
     1512  for d in ./-p ./--version;
     1513  do
     1514    test -d $d && rmdir $d
     1515  done
     1516  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
     1517  if test -f "$ac_aux_dir/mkinstalldirs"; then
     1518    mkdir_p='$(mkinstalldirs)'
     1519  else
     1520    mkdir_p='$(install_sh) -d'
     1521  fi
    14981522fi
    14991523
     
    15761600rmdir .tst 2>/dev/null
    15771601
    1578  # test to see if srcdir already configured
     1602# test to see if srcdir already configured
    15791603if test "`cd $srcdir && pwd`" != "`pwd`" &&
    15801604   test -f $srcdir/config.status; then
     
    17251749
    17261750          ac_config_headers="$ac_config_headers config.h"
    1727 
    1728 
    1729 echo "$as_me:$LINENO: checking for mingw" >&5
    1730 echo $ECHO_N "checking for mingw... $ECHO_C" >&6
    1731 case `uname` in
    1732   *MINGW*)
    1733     mingw="yes"
    1734     MSBITFIELDS="-mms-bitfields"
    1735     MWINDOWS="-mwindows"
    1736     ;;
    1737   *)
    1738     mingw="no"
    1739     ;;
    1740 esac
    1741 echo "$as_me:$LINENO: result: $mingw" >&5
    1742 echo "${ECHO_T}$mingw" >&6
    17431751
    17441752
     
    24072415    for i in 1 2 3 4 5 6; do
    24082416      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    2409       : > sub/conftst$i.h
     2417      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     2418      # Solaris 8's {/usr,}/bin/sh.
     2419      touch sub/conftst$i.h
    24102420    done
    24112421    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     
    24352445       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    24362446      # icc doesn't choke on unknown options, it will just issue warnings
    2437       # (even with -Werror).  So we grep stderr for any message
    2438       # that says an option was ignored.
    2439       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
     2447      # or remarks (even with -Werror).  So we grep stderr for any message
     2448      # that says an option was ignored or not supported.
     2449      # When given -MP, icc 7.0 and 7.1 complain thusly:
     2450      #   icc: Command line warning: ignoring option '-M'; no argument required
     2451      # The diagnosis changed in icc 8.0:
     2452      #   icc: Command line remark: option '-MP' not supported
     2453      if (grep 'ignoring option' conftest.err ||
     2454          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    24402455        am_cv_CXX_dependencies_compiler_type=$depmode
    24412456        break
     
    32383253    for i in 1 2 3 4 5 6; do
    32393254      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    3240       : > sub/conftst$i.h
     3255      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     3256      # Solaris 8's {/usr,}/bin/sh.
     3257      touch sub/conftst$i.h
    32413258    done
    32423259    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     
    32663283       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    32673284      # icc doesn't choke on unknown options, it will just issue warnings
    3268       # (even with -Werror).  So we grep stderr for any message
    3269       # that says an option was ignored.
    3270       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
     3285      # or remarks (even with -Werror).  So we grep stderr for any message
     3286      # that says an option was ignored or not supported.
     3287      # When given -MP, icc 7.0 and 7.1 complain thusly:
     3288      #   icc: Command line warning: ignoring option '-M'; no argument required
     3289      # The diagnosis changed in icc 8.0:
     3290      #   icc: Command line remark: option '-MP' not supported
     3291      if (grep 'ignoring option' conftest.err ||
     3292          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    32713293        am_cv_CC_dependencies_compiler_type=$depmode
    32723294        break
     
    33003322
    33013323
    3302 # Checks for libraries.
    3303 
    3304 #  cheking for libGL
     3324
     3325
    33053326
    33063327ac_ext=c
     
    37203741fi
    37213742
    3722 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3743
     3744### CHECKING FOR SYSTEM ###
     3745
     3746echo "$as_me:$LINENO: checking for System" >&5
     3747echo $ECHO_N "checking for System... $ECHO_C" >&6
     3748case `uname` in
     3749### WINDOWS ###
     3750  *MINGW*)
     3751echo "mingw-WINDOWS detected"
     3752
     3753    mingw="yes"
     3754    MSBITFIELDS="-mms-bitfields"
     3755    MWINDOWS="-mwindows"
     3756
     3757# checking gl header
     3758        #done before loop
     3759
     3760# checking gl header
     3761   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    37233762
    37243763
     
    39463985done
    39473986
    3948 
    3949 #   checking for Unix GL
    3950 echo "$as_me:$LINENO: checking for main in -lGL" >&5
    3951 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
    3952 if test "${ac_cv_lib_GL_main+set}" = set; then
     3987#   checking for Windows openGl library
     3988    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
     3989echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
     3990if test "${ac_cv_lib_opengl32_main+set}" = set; then
    39533991  echo $ECHO_N "(cached) $ECHO_C" >&6
    39543992else
    39553993  ac_check_lib_save_LIBS=$LIBS
    3956 LIBS="-lGL  $LIBS"
     3994LIBS="-lopengl32  $LIBS"
    39573995cat >conftest.$ac_ext <<_ACEOF
    39583996/* confdefs.h.  */
     
    39934031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39944032  (exit $ac_status); }; }; then
    3995   ac_cv_lib_GL_main=yes
    3996 else
    3997   echo "$as_me: failed program was:" >&5
    3998 sed 's/^/| /' conftest.$ac_ext >&5
    3999 
    4000 ac_cv_lib_GL_main=no
    4001 fi
    4002 rm -f conftest.err conftest.$ac_objext \
    4003       conftest$ac_exeext conftest.$ac_ext
    4004 LIBS=$ac_check_lib_save_LIBS
    4005 fi
    4006 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
    4007 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
    4008 if test $ac_cv_lib_GL_main = yes; then
    4009   FOUND_GL=yes
    4010 fi
    4011 
    4012 if test "$FOUND_GL" = "yes" ; then
    4013     LIBS="$LIBS -lGL"
    4014     #   checking for Windows openGl library
    4015 else
    4016     echo "We did not find the Linux opengl Library. Checking for Windows Library"
    4017     echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
    4018 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
    4019 if test "${ac_cv_lib_opengl32_main+set}" = set; then
    4020   echo $ECHO_N "(cached) $ECHO_C" >&6
    4021 else
    4022   ac_check_lib_save_LIBS=$LIBS
    4023 LIBS="-lopengl32  $LIBS"
    4024 cat >conftest.$ac_ext <<_ACEOF
    4025 /* confdefs.h.  */
    4026 _ACEOF
    4027 cat confdefs.h >>conftest.$ac_ext
    4028 cat >>conftest.$ac_ext <<_ACEOF
    4029 /* end confdefs.h.  */
    4030 
    4031 
    4032 int
    4033 main ()
    4034 {
    4035 main ();
    4036   ;
    4037   return 0;
    4038 }
    4039 _ACEOF
    4040 rm -f conftest.$ac_objext conftest$ac_exeext
    4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4042   (eval $ac_link) 2>conftest.er1
    4043   ac_status=$?
    4044   grep -v '^ *+' conftest.er1 >conftest.err
    4045   rm -f conftest.er1
    4046   cat conftest.err >&5
    4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4048   (exit $ac_status); } &&
    4049          { ac_try='test -z "$ac_c_werror_flag"
    4050                          || test ! -s conftest.err'
    4051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4052   (eval $ac_try) 2>&5
    4053   ac_status=$?
    4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4055   (exit $ac_status); }; } &&
    4056          { ac_try='test -s conftest$ac_exeext'
    4057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4058   (eval $ac_try) 2>&5
    4059   ac_status=$?
    4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4061   (exit $ac_status); }; }; then
    40624033  ac_cv_lib_opengl32_main=yes
    40634034else
     
    40814052    if test "$FOUND_opengl32" = "yes" ; then
    40824053        LIBS="$LIBS -lopengl32"
    4083 
    40844054    else
    40854055         echo "------------------"
     
    40894059         exit -1
    40904060    fi
    4091 fi
    4092 
    4093 #  cheking for libGLU
     4061
     4062# cheking for GLU-header
    40944063
    40954064for ac_header in GL/glu.h
     
    42474216
    42484217
    4249 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
    4250 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
    4251 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
    4252   echo $ECHO_N "(cached) $ECHO_C" >&6
    4253 else
    4254   ac_check_lib_save_LIBS=$LIBS
    4255 LIBS="-lGLU  $LIBS"
    4256 cat >conftest.$ac_ext <<_ACEOF
    4257 /* confdefs.h.  */
    4258 _ACEOF
    4259 cat confdefs.h >>conftest.$ac_ext
    4260 cat >>conftest.$ac_ext <<_ACEOF
    4261 /* end confdefs.h.  */
    4262 
    4263 /* Override any gcc2 internal prototype to avoid an error.  */
    4264 #ifdef __cplusplus
    4265 extern "C"
    4266 #endif
    4267 /* We use char because int might match the return type of a gcc2
    4268    builtin and then its argument prototype would still apply.  */
    4269 char gluProject ();
    4270 int
    4271 main ()
    4272 {
    4273 gluProject ();
    4274   ;
    4275   return 0;
    4276 }
    4277 _ACEOF
    4278 rm -f conftest.$ac_objext conftest$ac_exeext
    4279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4280   (eval $ac_link) 2>conftest.er1
    4281   ac_status=$?
    4282   grep -v '^ *+' conftest.er1 >conftest.err
    4283   rm -f conftest.er1
    4284   cat conftest.err >&5
    4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4286   (exit $ac_status); } &&
    4287          { ac_try='test -z "$ac_c_werror_flag"
    4288                          || test ! -s conftest.err'
    4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4290   (eval $ac_try) 2>&5
    4291   ac_status=$?
    4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4293   (exit $ac_status); }; } &&
    4294          { ac_try='test -s conftest$ac_exeext'
    4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4296   (eval $ac_try) 2>&5
    4297   ac_status=$?
    4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4299   (exit $ac_status); }; }; then
    4300   ac_cv_lib_GLU_gluProject=yes
    4301 else
    4302   echo "$as_me: failed program was:" >&5
    4303 sed 's/^/| /' conftest.$ac_ext >&5
    4304 
    4305 ac_cv_lib_GLU_gluProject=no
    4306 fi
    4307 rm -f conftest.err conftest.$ac_objext \
    4308       conftest$ac_exeext conftest.$ac_ext
    4309 LIBS=$ac_check_lib_save_LIBS
    4310 fi
    4311 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
    4312 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
    4313 if test $ac_cv_lib_GLU_gluProject = yes; then
    4314   FOUND_GLU=yes
    4315 fi
    4316 
    4317 if test "$FOUND_GLU" = "yes" ; then
    4318     LIBS="$LIBS -lGLU"
    4319     #   checking for Windows GLU32 library
    4320 else
    4321     echo "We did not find the Linux GLU Library. Checking for Windows Library"
     4218# checking for libGLU
    43224219    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
    43234220echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
     
    43844281    if test "$FOUND_glu32" = "yes" ; then
    43854282        LIBS="$LIBS -lGLU32"
    4386 
    4387         else
     4283    else
    43884284         echo "------------------"
    43894285         echo "GLU library not found."
     
    43924288         exit -1
    43934289    fi
    4394 fi
    4395 
    4396 
    4397 for ac_header in SDL/SDL_mixer.h
     4290
     4291
     4292# checking for mingw32
     4293    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
     4294echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
     4295if test "${ac_cv_lib_mingw32_main+set}" = set; then
     4296  echo $ECHO_N "(cached) $ECHO_C" >&6
     4297else
     4298  ac_check_lib_save_LIBS=$LIBS
     4299LIBS="-lmingw32  $LIBS"
     4300cat >conftest.$ac_ext <<_ACEOF
     4301/* confdefs.h.  */
     4302_ACEOF
     4303cat confdefs.h >>conftest.$ac_ext
     4304cat >>conftest.$ac_ext <<_ACEOF
     4305/* end confdefs.h.  */
     4306
     4307
     4308int
     4309main ()
     4310{
     4311main ();
     4312  ;
     4313  return 0;
     4314}
     4315_ACEOF
     4316rm -f conftest.$ac_objext conftest$ac_exeext
     4317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4318  (eval $ac_link) 2>conftest.er1
     4319  ac_status=$?
     4320  grep -v '^ *+' conftest.er1 >conftest.err
     4321  rm -f conftest.er1
     4322  cat conftest.err >&5
     4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4324  (exit $ac_status); } &&
     4325         { ac_try='test -z "$ac_c_werror_flag"
     4326                         || test ! -s conftest.err'
     4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4328  (eval $ac_try) 2>&5
     4329  ac_status=$?
     4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4331  (exit $ac_status); }; } &&
     4332         { ac_try='test -s conftest$ac_exeext'
     4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4334  (eval $ac_try) 2>&5
     4335  ac_status=$?
     4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4337  (exit $ac_status); }; }; then
     4338  ac_cv_lib_mingw32_main=yes
     4339else
     4340  echo "$as_me: failed program was:" >&5
     4341sed 's/^/| /' conftest.$ac_ext >&5
     4342
     4343ac_cv_lib_mingw32_main=no
     4344fi
     4345rm -f conftest.err conftest.$ac_objext \
     4346      conftest$ac_exeext conftest.$ac_ext
     4347LIBS=$ac_check_lib_save_LIBS
     4348fi
     4349echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
     4350echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
     4351if test $ac_cv_lib_mingw32_main = yes; then
     4352  FOUND_mingw32=yes
     4353fi
     4354
     4355    if test $FOUND_mingw32 = "yes"; then
     4356        LIBS="$LIBS -lmingw32"
     4357    fi
     4358# checking for SDL-headers
     4359
     4360for ac_header in SDL/SDL.h
    43984361do
    43994362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    45414504
    45424505else
    4543   { { echo "$as_me:$LINENO: error: cannot find sdlmixer headers" >&5
    4544 echo "$as_me: error: cannot find sdlmixer headers" >&2;}
     4506  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     4507echo "$as_me: error: cannot find SDL headers" >&2;}
    45454508   { (exit 1); exit 1; }; }
    45464509fi
     
    45494512
    45504513
    4551 LIBS="$LIBS -lSDL_mixer"
    4552 
    4553 # FIXME: Replace `main' with a function in `-lOSMesa':
    4554 
    4555 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
    4556 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
    4557 if test "${ac_cv_lib_OSMesa_main+set}" = set; then
     4514#checking for libSDL
     4515    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
     4516echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
     4517if test "${ac_cv_lib_sdlmain_main+set}" = set; then
    45584518  echo $ECHO_N "(cached) $ECHO_C" >&6
    45594519else
    45604520  ac_check_lib_save_LIBS=$LIBS
    4561 LIBS="-lOSMesa  $LIBS"
     4521LIBS="-lsdlmain  $LIBS"
    45624522cat >conftest.$ac_ext <<_ACEOF
    45634523/* confdefs.h.  */
     
    45984558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45994559  (exit $ac_status); }; }; then
    4600   ac_cv_lib_OSMesa_main=yes
     4560  ac_cv_lib_sdlmain_main=yes
    46014561else
    46024562  echo "$as_me: failed program was:" >&5
    46034563sed 's/^/| /' conftest.$ac_ext >&5
    46044564
    4605 ac_cv_lib_OSMesa_main=no
     4565ac_cv_lib_sdlmain_main=no
    46064566fi
    46074567rm -f conftest.err conftest.$ac_objext \
     
    46094569LIBS=$ac_check_lib_save_LIBS
    46104570fi
    4611 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
    4612 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
    4613 if test $ac_cv_lib_OSMesa_main = yes; then
    4614   cat >>confdefs.h <<_ACEOF
    4615 #define HAVE_LIBOSMESA 1
    4616 _ACEOF
    4617 
    4618   LIBS="-lOSMesa $LIBS"
    4619 
    4620 fi
    4621 
    4622 # FIXME: Replace `main' with a function in `-lX11':
    4623 
    4624 echo "$as_me:$LINENO: checking for main in -lX11" >&5
    4625 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
    4626 if test "${ac_cv_lib_X11_main+set}" = set; then
     4571echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
     4572echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
     4573if test $ac_cv_lib_sdlmain_main = yes; then
     4574  FOUND_sdlmain=yes
     4575fi
     4576
     4577    if test "$FOUND_sdlmain" = "yes" ; then
     4578        LIBS="$LIBS -lsdlmain"
     4579    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
     4585    fi
     4586    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
     4587echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
     4588if test "${ac_cv_lib_sdl_main+set}" = set; then
    46274589  echo $ECHO_N "(cached) $ECHO_C" >&6
    46284590else
    46294591  ac_check_lib_save_LIBS=$LIBS
    4630 LIBS="-lX11  $LIBS"
     4592LIBS="-lsdl  $LIBS"
    46314593cat >conftest.$ac_ext <<_ACEOF
    46324594/* confdefs.h.  */
     
    46674629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    46684630  (exit $ac_status); }; }; then
    4669   ac_cv_lib_X11_main=yes
     4631  ac_cv_lib_sdl_main=yes
    46704632else
    46714633  echo "$as_me: failed program was:" >&5
    46724634sed 's/^/| /' conftest.$ac_ext >&5
    46734635
    4674 ac_cv_lib_X11_main=no
     4636ac_cv_lib_sdl_main=no
    46754637fi
    46764638rm -f conftest.err conftest.$ac_objext \
     
    46784640LIBS=$ac_check_lib_save_LIBS
    46794641fi
    4680 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
    4681 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
    4682 if test $ac_cv_lib_X11_main = yes; then
    4683   cat >>confdefs.h <<_ACEOF
    4684 #define HAVE_LIBX11 1
    4685 _ACEOF
    4686 
    4687   LIBS="-lX11 $LIBS"
    4688 
    4689 fi
    4690 
    4691 # FIXME: Replace `main' with a function in `-lXt':
    4692 
    4693 echo "$as_me:$LINENO: checking for main in -lXt" >&5
    4694 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
    4695 if test "${ac_cv_lib_Xt_main+set}" = set; then
    4696   echo $ECHO_N "(cached) $ECHO_C" >&6
    4697 else
    4698   ac_check_lib_save_LIBS=$LIBS
    4699 LIBS="-lXt  $LIBS"
    4700 cat >conftest.$ac_ext <<_ACEOF
    4701 /* confdefs.h.  */
    4702 _ACEOF
    4703 cat confdefs.h >>conftest.$ac_ext
    4704 cat >>conftest.$ac_ext <<_ACEOF
    4705 /* end confdefs.h.  */
    4706 
    4707 
    4708 int
    4709 main ()
    4710 {
    4711 main ();
    4712   ;
    4713   return 0;
    4714 }
    4715 _ACEOF
    4716 rm -f conftest.$ac_objext conftest$ac_exeext
    4717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4718   (eval $ac_link) 2>conftest.er1
    4719   ac_status=$?
    4720   grep -v '^ *+' conftest.er1 >conftest.err
    4721   rm -f conftest.er1
    4722   cat conftest.err >&5
    4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4724   (exit $ac_status); } &&
    4725          { ac_try='test -z "$ac_c_werror_flag"
    4726                          || test ! -s conftest.err'
    4727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4728   (eval $ac_try) 2>&5
    4729   ac_status=$?
    4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4731   (exit $ac_status); }; } &&
    4732          { ac_try='test -s conftest$ac_exeext'
    4733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4734   (eval $ac_try) 2>&5
    4735   ac_status=$?
    4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4737   (exit $ac_status); }; }; then
    4738   ac_cv_lib_Xt_main=yes
    4739 else
    4740   echo "$as_me: failed program was:" >&5
    4741 sed 's/^/| /' conftest.$ac_ext >&5
    4742 
    4743 ac_cv_lib_Xt_main=no
    4744 fi
    4745 rm -f conftest.err conftest.$ac_objext \
    4746       conftest$ac_exeext conftest.$ac_ext
    4747 LIBS=$ac_check_lib_save_LIBS
    4748 fi
    4749 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
    4750 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
    4751 if test $ac_cv_lib_Xt_main = yes; then
    4752   cat >>confdefs.h <<_ACEOF
    4753 #define HAVE_LIBXT 1
    4754 _ACEOF
    4755 
    4756   LIBS="-lXt $LIBS"
    4757 
    4758 fi
    4759 
    4760 
    4761 ## mingw CHECK
    4762 if test $mingw = yes ; then
    4763         echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
    4764 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
    4765 if test "${ac_cv_lib_mingw32_main+set}" = set; then
    4766   echo $ECHO_N "(cached) $ECHO_C" >&6
    4767 else
    4768   ac_check_lib_save_LIBS=$LIBS
    4769 LIBS="-lmingw32  $LIBS"
    4770 cat >conftest.$ac_ext <<_ACEOF
    4771 /* confdefs.h.  */
    4772 _ACEOF
    4773 cat confdefs.h >>conftest.$ac_ext
    4774 cat >>conftest.$ac_ext <<_ACEOF
    4775 /* end confdefs.h.  */
    4776 
    4777 
    4778 int
    4779 main ()
    4780 {
    4781 main ();
    4782   ;
    4783   return 0;
    4784 }
    4785 _ACEOF
    4786 rm -f conftest.$ac_objext conftest$ac_exeext
    4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4788   (eval $ac_link) 2>conftest.er1
    4789   ac_status=$?
    4790   grep -v '^ *+' conftest.er1 >conftest.err
    4791   rm -f conftest.er1
    4792   cat conftest.err >&5
    4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4794   (exit $ac_status); } &&
    4795          { ac_try='test -z "$ac_c_werror_flag"
    4796                          || test ! -s conftest.err'
    4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4798   (eval $ac_try) 2>&5
    4799   ac_status=$?
    4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4801   (exit $ac_status); }; } &&
    4802          { ac_try='test -s conftest$ac_exeext'
    4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4804   (eval $ac_try) 2>&5
    4805   ac_status=$?
    4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4807   (exit $ac_status); }; }; then
    4808   ac_cv_lib_mingw32_main=yes
    4809 else
    4810   echo "$as_me: failed program was:" >&5
    4811 sed 's/^/| /' conftest.$ac_ext >&5
    4812 
    4813 ac_cv_lib_mingw32_main=no
    4814 fi
    4815 rm -f conftest.err conftest.$ac_objext \
    4816       conftest$ac_exeext conftest.$ac_ext
    4817 LIBS=$ac_check_lib_save_LIBS
    4818 fi
    4819 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
    4820 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
    4821 if test $ac_cv_lib_mingw32_main = yes; then
    4822   FOUND_mingw32=yes
    4823 fi
    4824 
    4825         if test $FOUND_mingw32 = "yes"; then
    4826                 LIBS="$LIBS -lmingw32"
    4827         fi
    4828 fi
    4829 
    4830 ## SDL CHECK
    4831 
    4832 #checking for SDL libs
    4833 
    4834 for ac_header in SDL/SDL.h
     4642echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
     4643echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
     4644if test $ac_cv_lib_sdl_main = yes; then
     4645  FOUND_sdl=yes
     4646fi
     4647
     4648    if test "$FOUND_sdl" = "yes" ; then
     4649        LIBS="$LIBS -lsdl"
     4650    else
     4651         echo "------------------"
     4652         echo "SDL library not found."
     4653         echo "please install the SDL library, which can be found at http://www.libsdl.org"
     4654         echo "------------------"
     4655         exit -1
     4656    fi
     4657
     4658# checking for SDL-Mixer-headers
     4659
     4660for ac_header in SDL/SDL_mixer.h
    48354661do
    48364662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    49854811done
    49864812
    4987 if test $mingw = no ; then
    4988         echo "$as_me:$LINENO: checking for main in -lSDL" >&5
    4989 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
    4990 if test "${ac_cv_lib_SDL_main+set}" = set; then
     4813
     4814#checking for libSDL_mixer
     4815    echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
     4816echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
     4817if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
    49914818  echo $ECHO_N "(cached) $ECHO_C" >&6
    49924819else
    49934820  ac_check_lib_save_LIBS=$LIBS
    4994 LIBS="-lSDL  $LIBS"
     4821LIBS="-lSDL_mixer  $LIBS"
    49954822cat >conftest.$ac_ext <<_ACEOF
    49964823/* confdefs.h.  */
     
    50314858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    50324859  (exit $ac_status); }; }; then
    5033   ac_cv_lib_SDL_main=yes
     4860  ac_cv_lib_SDL_mixer_main=yes
    50344861else
    50354862  echo "$as_me: failed program was:" >&5
    50364863sed 's/^/| /' conftest.$ac_ext >&5
    50374864
    5038 ac_cv_lib_SDL_main=no
     4865ac_cv_lib_SDL_mixer_main=no
    50394866fi
    50404867rm -f conftest.err conftest.$ac_objext \
     
    50424869LIBS=$ac_check_lib_save_LIBS
    50434870fi
    5044 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
    5045 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
    5046 if test $ac_cv_lib_SDL_main = yes; then
    5047   FOUND_SDL=yes
    5048 fi
    5049 
    5050         if test "$FOUND_SDL" = "yes" ; then
    5051                 LIBS="$LIBS -lSDL"
    5052         fi
    5053 #   checking for Windows sdl library
    5054 else
    5055     echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
    5056 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
    5057 if test "${ac_cv_lib_sdlmain_main+set}" = set; then
    5058   echo $ECHO_N "(cached) $ECHO_C" >&6
    5059 else
    5060   ac_check_lib_save_LIBS=$LIBS
    5061 LIBS="-lsdlmain  $LIBS"
    5062 cat >conftest.$ac_ext <<_ACEOF
    5063 /* confdefs.h.  */
    5064 _ACEOF
    5065 cat confdefs.h >>conftest.$ac_ext
    5066 cat >>conftest.$ac_ext <<_ACEOF
    5067 /* end confdefs.h.  */
    5068 
    5069 
    5070 int
    5071 main ()
    5072 {
    5073 main ();
    5074   ;
    5075   return 0;
    5076 }
    5077 _ACEOF
    5078 rm -f conftest.$ac_objext conftest$ac_exeext
    5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5080   (eval $ac_link) 2>conftest.er1
    5081   ac_status=$?
    5082   grep -v '^ *+' conftest.er1 >conftest.err
    5083   rm -f conftest.er1
    5084   cat conftest.err >&5
    5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5086   (exit $ac_status); } &&
    5087          { ac_try='test -z "$ac_c_werror_flag"
    5088                          || test ! -s conftest.err'
    5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5090   (eval $ac_try) 2>&5
    5091   ac_status=$?
    5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5093   (exit $ac_status); }; } &&
    5094          { ac_try='test -s conftest$ac_exeext'
    5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5096   (eval $ac_try) 2>&5
    5097   ac_status=$?
    5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5099   (exit $ac_status); }; }; then
    5100   ac_cv_lib_sdlmain_main=yes
    5101 else
    5102   echo "$as_me: failed program was:" >&5
    5103 sed 's/^/| /' conftest.$ac_ext >&5
    5104 
    5105 ac_cv_lib_sdlmain_main=no
    5106 fi
    5107 rm -f conftest.err conftest.$ac_objext \
    5108       conftest$ac_exeext conftest.$ac_ext
    5109 LIBS=$ac_check_lib_save_LIBS
    5110 fi
    5111 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
    5112 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
    5113 if test $ac_cv_lib_sdlmain_main = yes; then
    5114   FOUND_sdlmain=yes
    5115 fi
    5116 
    5117     if test "$FOUND_sdlmain" = "yes" ; then
    5118         LIBS="$LIBS -lsdlmain"
     4871echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
     4872echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
     4873if test $ac_cv_lib_SDL_mixer_main = yes; then
     4874  FOUND_SDL_mixer=yes
     4875fi
     4876
     4877    if test "$FOUND_SDL_mixer" = "yes" ; then
     4878        LIBS="$LIBS -lSDL_mixer"
     4879    else
     4880         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"
     4883         echo "------------------"
     4884         exit 1
    51194885    fi
    5120         echo "$as_me:$LINENO: checking for main in -lsdl" >&5
    5121 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
    5122 if test "${ac_cv_lib_sdl_main+set}" = set; then
    5123   echo $ECHO_N "(cached) $ECHO_C" >&6
    5124 else
    5125   ac_check_lib_save_LIBS=$LIBS
    5126 LIBS="-lsdl  $LIBS"
    5127 cat >conftest.$ac_ext <<_ACEOF
    5128 /* confdefs.h.  */
    5129 _ACEOF
    5130 cat confdefs.h >>conftest.$ac_ext
    5131 cat >>conftest.$ac_ext <<_ACEOF
    5132 /* end confdefs.h.  */
    5133 
    5134 
    5135 int
    5136 main ()
    5137 {
    5138 main ();
    5139   ;
    5140   return 0;
    5141 }
    5142 _ACEOF
    5143 rm -f conftest.$ac_objext conftest$ac_exeext
    5144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5145   (eval $ac_link) 2>conftest.er1
    5146   ac_status=$?
    5147   grep -v '^ *+' conftest.er1 >conftest.err
    5148   rm -f conftest.er1
    5149   cat conftest.err >&5
    5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5151   (exit $ac_status); } &&
    5152          { ac_try='test -z "$ac_c_werror_flag"
    5153                          || test ! -s conftest.err'
    5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5155   (eval $ac_try) 2>&5
    5156   ac_status=$?
    5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5158   (exit $ac_status); }; } &&
    5159          { ac_try='test -s conftest$ac_exeext'
    5160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5161   (eval $ac_try) 2>&5
    5162   ac_status=$?
    5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5164   (exit $ac_status); }; }; then
    5165   ac_cv_lib_sdl_main=yes
    5166 else
    5167   echo "$as_me: failed program was:" >&5
    5168 sed 's/^/| /' conftest.$ac_ext >&5
    5169 
    5170 ac_cv_lib_sdl_main=no
    5171 fi
    5172 rm -f conftest.err conftest.$ac_objext \
    5173       conftest$ac_exeext conftest.$ac_ext
    5174 LIBS=$ac_check_lib_save_LIBS
    5175 fi
    5176 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
    5177 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
    5178 if test $ac_cv_lib_sdl_main = yes; then
    5179   FOUND_sdl=yes
    5180 fi
    5181 
    5182         if test "$FOUND_sdl" = "yes" ; then
    5183                 LIBS="$LIBS -lsdl"
    5184         fi
    5185 fi
    5186 
    5187 #checking for pthread libs
    5188 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
    5189 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
    5190 if test "${ac_cv_lib_pthread_main+set}" = set; then
    5191   echo $ECHO_N "(cached) $ECHO_C" >&6
    5192 else
    5193   ac_check_lib_save_LIBS=$LIBS
    5194 LIBS="-lpthread  $LIBS"
    5195 cat >conftest.$ac_ext <<_ACEOF
    5196 /* confdefs.h.  */
    5197 _ACEOF
    5198 cat confdefs.h >>conftest.$ac_ext
    5199 cat >>conftest.$ac_ext <<_ACEOF
    5200 /* end confdefs.h.  */
    5201 
    5202 
    5203 int
    5204 main ()
    5205 {
    5206 main ();
    5207   ;
    5208   return 0;
    5209 }
    5210 _ACEOF
    5211 rm -f conftest.$ac_objext conftest$ac_exeext
    5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5213   (eval $ac_link) 2>conftest.er1
    5214   ac_status=$?
    5215   grep -v '^ *+' conftest.er1 >conftest.err
    5216   rm -f conftest.er1
    5217   cat conftest.err >&5
    5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5219   (exit $ac_status); } &&
    5220          { ac_try='test -z "$ac_c_werror_flag"
    5221                          || test ! -s conftest.err'
    5222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5223   (eval $ac_try) 2>&5
    5224   ac_status=$?
    5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5226   (exit $ac_status); }; } &&
    5227          { ac_try='test -s conftest$ac_exeext'
    5228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5229   (eval $ac_try) 2>&5
    5230   ac_status=$?
    5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5232   (exit $ac_status); }; }; then
    5233   ac_cv_lib_pthread_main=yes
    5234 else
    5235   echo "$as_me: failed program was:" >&5
    5236 sed 's/^/| /' conftest.$ac_ext >&5
    5237 
    5238 ac_cv_lib_pthread_main=no
    5239 fi
    5240 rm -f conftest.err conftest.$ac_objext \
    5241       conftest$ac_exeext conftest.$ac_ext
    5242 LIBS=$ac_check_lib_save_LIBS
    5243 fi
    5244 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
    5245 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
    5246 if test $ac_cv_lib_pthread_main = yes; then
    5247   FOUND_pthread=yes
    5248 fi
    5249 
    5250 if test "$FOUND_pthread" = "yes" ; then
    5251     LIBS="$LIBS -lpthread"
    5252 fi
    5253 
    5254 
    5255 
    5256 
    5257 # FIXME: Replace `main' with a function in `-lm':
    5258 
    5259 echo "$as_me:$LINENO: checking for main in -lm" >&5
    5260 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    5261 if test "${ac_cv_lib_m_main+set}" = set; then
    5262   echo $ECHO_N "(cached) $ECHO_C" >&6
    5263 else
    5264   ac_check_lib_save_LIBS=$LIBS
    5265 LIBS="-lm  $LIBS"
    5266 cat >conftest.$ac_ext <<_ACEOF
    5267 /* confdefs.h.  */
    5268 _ACEOF
    5269 cat confdefs.h >>conftest.$ac_ext
    5270 cat >>conftest.$ac_ext <<_ACEOF
    5271 /* end confdefs.h.  */
    5272 
    5273 
    5274 int
    5275 main ()
    5276 {
    5277 main ();
    5278   ;
    5279   return 0;
    5280 }
    5281 _ACEOF
    5282 rm -f conftest.$ac_objext conftest$ac_exeext
    5283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5284   (eval $ac_link) 2>conftest.er1
    5285   ac_status=$?
    5286   grep -v '^ *+' conftest.er1 >conftest.err
    5287   rm -f conftest.er1
    5288   cat conftest.err >&5
    5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5290   (exit $ac_status); } &&
    5291          { ac_try='test -z "$ac_c_werror_flag"
    5292                          || test ! -s conftest.err'
    5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5294   (eval $ac_try) 2>&5
    5295   ac_status=$?
    5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5297   (exit $ac_status); }; } &&
    5298          { ac_try='test -s conftest$ac_exeext'
    5299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5300   (eval $ac_try) 2>&5
    5301   ac_status=$?
    5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5303   (exit $ac_status); }; }; then
    5304   ac_cv_lib_m_main=yes
    5305 else
    5306   echo "$as_me: failed program was:" >&5
    5307 sed 's/^/| /' conftest.$ac_ext >&5
    5308 
    5309 ac_cv_lib_m_main=no
    5310 fi
    5311 rm -f conftest.err conftest.$ac_objext \
    5312       conftest$ac_exeext conftest.$ac_ext
    5313 LIBS=$ac_check_lib_save_LIBS
    5314 fi
    5315 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    5316 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    5317 if test $ac_cv_lib_m_main = yes; then
    5318   cat >>confdefs.h <<_ACEOF
    5319 #define HAVE_LIBM 1
    5320 _ACEOF
    5321 
    5322   LIBS="-lm $LIBS"
    5323 
    5324 fi
    5325 
    5326 
    5327 LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
    5328 
    5329 
    5330 # Checks for header files.
    5331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5333 if test "${ac_cv_header_stdc+set}" = set; then
    5334   echo $ECHO_N "(cached) $ECHO_C" >&6
    5335 else
    5336   cat >conftest.$ac_ext <<_ACEOF
    5337 /* confdefs.h.  */
    5338 _ACEOF
    5339 cat confdefs.h >>conftest.$ac_ext
    5340 cat >>conftest.$ac_ext <<_ACEOF
    5341 /* end confdefs.h.  */
    5342 #include <stdlib.h>
    5343 #include <stdarg.h>
    5344 #include <string.h>
    5345 #include <float.h>
    5346 
    5347 int
    5348 main ()
    5349 {
    5350 
    5351   ;
    5352   return 0;
    5353 }
    5354 _ACEOF
    5355 rm -f conftest.$ac_objext
    5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5357   (eval $ac_compile) 2>conftest.er1
    5358   ac_status=$?
    5359   grep -v '^ *+' conftest.er1 >conftest.err
    5360   rm -f conftest.er1
    5361   cat conftest.err >&5
    5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5363   (exit $ac_status); } &&
    5364          { ac_try='test -z "$ac_c_werror_flag"
    5365                          || test ! -s conftest.err'
    5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5367   (eval $ac_try) 2>&5
    5368   ac_status=$?
    5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5370   (exit $ac_status); }; } &&
    5371          { ac_try='test -s conftest.$ac_objext'
    5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5373   (eval $ac_try) 2>&5
    5374   ac_status=$?
    5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5376   (exit $ac_status); }; }; then
    5377   ac_cv_header_stdc=yes
    5378 else
    5379   echo "$as_me: failed program was:" >&5
    5380 sed 's/^/| /' conftest.$ac_ext >&5
    5381 
    5382 ac_cv_header_stdc=no
    5383 fi
    5384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5385 
    5386 if test $ac_cv_header_stdc = yes; then
    5387   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5388   cat >conftest.$ac_ext <<_ACEOF
    5389 /* confdefs.h.  */
    5390 _ACEOF
    5391 cat confdefs.h >>conftest.$ac_ext
    5392 cat >>conftest.$ac_ext <<_ACEOF
    5393 /* end confdefs.h.  */
    5394 #include <string.h>
    5395 
    5396 _ACEOF
    5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5398   $EGREP "memchr" >/dev/null 2>&1; then
    5399   :
    5400 else
    5401   ac_cv_header_stdc=no
    5402 fi
    5403 rm -f conftest*
    5404 
    5405 fi
    5406 
    5407 if test $ac_cv_header_stdc = yes; then
    5408   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5409   cat >conftest.$ac_ext <<_ACEOF
    5410 /* confdefs.h.  */
    5411 _ACEOF
    5412 cat confdefs.h >>conftest.$ac_ext
    5413 cat >>conftest.$ac_ext <<_ACEOF
    5414 /* end confdefs.h.  */
    5415 #include <stdlib.h>
    5416 
    5417 _ACEOF
    5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5419   $EGREP "free" >/dev/null 2>&1; then
    5420   :
    5421 else
    5422   ac_cv_header_stdc=no
    5423 fi
    5424 rm -f conftest*
    5425 
    5426 fi
    5427 
    5428 if test $ac_cv_header_stdc = yes; then
    5429   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5430   if test "$cross_compiling" = yes; then
    5431   :
    5432 else
    5433   cat >conftest.$ac_ext <<_ACEOF
    5434 /* confdefs.h.  */
    5435 _ACEOF
    5436 cat confdefs.h >>conftest.$ac_ext
    5437 cat >>conftest.$ac_ext <<_ACEOF
    5438 /* end confdefs.h.  */
    5439 #include <ctype.h>
    5440 #if ((' ' & 0x0FF) == 0x020)
    5441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    5442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    5443 #else
    5444 # define ISLOWER(c) \
    5445                    (('a' <= (c) && (c) <= 'i') \
    5446                      || ('j' <= (c) && (c) <= 'r') \
    5447                      || ('s' <= (c) && (c) <= 'z'))
    5448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    5449 #endif
    5450 
    5451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    5452 int
    5453 main ()
    5454 {
    5455   int i;
    5456   for (i = 0; i < 256; i++)
    5457     if (XOR (islower (i), ISLOWER (i))
    5458         || toupper (i) != TOUPPER (i))
    5459       exit(2);
    5460   exit (0);
    5461 }
    5462 _ACEOF
    5463 rm -f conftest$ac_exeext
    5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5465   (eval $ac_link) 2>&5
    5466   ac_status=$?
    5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5470   (eval $ac_try) 2>&5
    5471   ac_status=$?
    5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5473   (exit $ac_status); }; }; then
    5474   :
    5475 else
    5476   echo "$as_me: program exited with status $ac_status" >&5
    5477 echo "$as_me: failed program was:" >&5
    5478 sed 's/^/| /' conftest.$ac_ext >&5
    5479 
    5480 ( exit $ac_status )
    5481 ac_cv_header_stdc=no
    5482 fi
    5483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5484 fi
    5485 fi
    5486 fi
    5487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    5489 if test $ac_cv_header_stdc = yes; then
    5490 
    5491 cat >>confdefs.h <<\_ACEOF
    5492 #define STDC_HEADERS 1
    5493 _ACEOF
    5494 
    5495 fi
    5496 
    5497 
    5498 
    5499 for ac_header in stdlib.h string.h
     4886
     4887
     4888    ;;
     4889
     4890### LINUX ###
     4891 *Linux*)
     4892echo "Linux detected"
     4893
     4894 Linux="yes"
     4895
     4896# checking gl header
     4897
     4898for ac_header in GL/gl.h
    55004899do
    55014900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    56425041_ACEOF
    56435042
     5043else
     5044  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     5045echo "$as_me: error: cannot find opengl headers" >&2;}
     5046   { (exit 1); exit 1; }; }
    56445047fi
    56455048
     
    56475050
    56485051
    5649 # Checks for typedefs, structures, and compiler characteristics.
    5650 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    5651 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    5652 if test "${ac_cv_header_stdbool_h+set}" = set; then
     5052#  checking for Unix GL
     5053   echo "$as_me:$LINENO: checking for main in -lGL" >&5
     5054echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
     5055if test "${ac_cv_lib_GL_main+set}" = set; then
    56535056  echo $ECHO_N "(cached) $ECHO_C" >&6
    56545057else
    5655   cat >conftest.$ac_ext <<_ACEOF
     5058  ac_check_lib_save_LIBS=$LIBS
     5059LIBS="-lGL  $LIBS"
     5060cat >conftest.$ac_ext <<_ACEOF
    56565061/* confdefs.h.  */
    56575062_ACEOF
     
    56605065/* end confdefs.h.  */
    56615066
    5662 #include <stdbool.h>
    5663 #ifndef bool
    5664 # error bool is not defined
    5665 #endif
    5666 #ifndef false
    5667 # error false is not defined
    5668 #endif
    5669 #if false
    5670 # error false is not 0
    5671 #endif
    5672 #ifndef true
    5673 # error true is not defined
    5674 #endif
    5675 #if true != 1
    5676 # error true is not 1
    5677 #endif
    5678 #ifndef __bool_true_false_are_defined
    5679 # error __bool_true_false_are_defined is not defined
    5680 #endif
    5681 
    5682         struct s { _Bool s: 1; _Bool t; } s;
    5683 
    5684         char a[true == 1 ? 1 : -1];
    5685         char b[false == 0 ? 1 : -1];
    5686         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
    5687         char d[(bool) -0.5 == true ? 1 : -1];
    5688         bool e = &s;
    5689         char f[(_Bool) -0.0 == false ? 1 : -1];
    5690         char g[true];
    5691         char h[sizeof (_Bool)];
    5692         char i[sizeof s.t];
    56935067
    56945068int
    56955069main ()
    56965070{
    5697  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     5071main ();
    56985072  ;
    56995073  return 0;
    57005074}
    57015075_ACEOF
    5702 rm -f conftest.$ac_objext
    5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5704   (eval $ac_compile) 2>conftest.er1
     5076rm -f conftest.$ac_objext conftest$ac_exeext
     5077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5078  (eval $ac_link) 2>conftest.er1
    57055079  ac_status=$?
    57065080  grep -v '^ *+' conftest.er1 >conftest.err
     
    57165090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    57175091  (exit $ac_status); }; } &&
    5718          { ac_try='test -s conftest.$ac_objext'
     5092         { ac_try='test -s conftest$ac_exeext'
    57195093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    57205094  (eval $ac_try) 2>&5
     
    57225096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    57235097  (exit $ac_status); }; }; then
    5724   ac_cv_header_stdbool_h=yes
     5098  ac_cv_lib_GL_main=yes
    57255099else
    57265100  echo "$as_me: failed program was:" >&5
    57275101sed 's/^/| /' conftest.$ac_ext >&5
    57285102
    5729 ac_cv_header_stdbool_h=no
    5730 fi
    5731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5732 fi
    5733 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    5734 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    5735 echo "$as_me:$LINENO: checking for _Bool" >&5
    5736 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    5737 if test "${ac_cv_type__Bool+set}" = set; then
    5738   echo $ECHO_N "(cached) $ECHO_C" >&6
    5739 else
    5740   cat >conftest.$ac_ext <<_ACEOF
    5741 /* confdefs.h.  */
    5742 _ACEOF
    5743 cat confdefs.h >>conftest.$ac_ext
    5744 cat >>conftest.$ac_ext <<_ACEOF
    5745 /* end confdefs.h.  */
    5746 $ac_includes_default
    5747 int
    5748 main ()
    5749 {
    5750 if ((_Bool *) 0)
    5751   return 0;
    5752 if (sizeof (_Bool))
    5753   return 0;
    5754   ;
    5755   return 0;
    5756 }
    5757 _ACEOF
    5758 rm -f conftest.$ac_objext
    5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5760   (eval $ac_compile) 2>conftest.er1
    5761   ac_status=$?
    5762   grep -v '^ *+' conftest.er1 >conftest.err
    5763   rm -f conftest.er1
    5764   cat conftest.err >&5
    5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5766   (exit $ac_status); } &&
    5767          { ac_try='test -z "$ac_c_werror_flag"
    5768                          || test ! -s conftest.err'
    5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5770   (eval $ac_try) 2>&5
    5771   ac_status=$?
    5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5773   (exit $ac_status); }; } &&
    5774          { ac_try='test -s conftest.$ac_objext'
    5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5776   (eval $ac_try) 2>&5
    5777   ac_status=$?
    5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5779   (exit $ac_status); }; }; then
    5780   ac_cv_type__Bool=yes
    5781 else
    5782   echo "$as_me: failed program was:" >&5
    5783 sed 's/^/| /' conftest.$ac_ext >&5
    5784 
    5785 ac_cv_type__Bool=no
    5786 fi
    5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5788 fi
    5789 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    5790 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    5791 if test $ac_cv_type__Bool = yes; then
    5792 
    5793 cat >>confdefs.h <<_ACEOF
    5794 #define HAVE__BOOL 1
    5795 _ACEOF
    5796 
    5797 
    5798 fi
    5799 
    5800 if test $ac_cv_header_stdbool_h = yes; then
    5801 
    5802 cat >>confdefs.h <<\_ACEOF
    5803 #define HAVE_STDBOOL_H 1
    5804 _ACEOF
    5805 
    5806 fi
    5807 
    5808 
    5809 # Checks for library functions.
    5810 
    5811 for ac_header in stdlib.h
     5103ac_cv_lib_GL_main=no
     5104fi
     5105rm -f conftest.err conftest.$ac_objext \
     5106      conftest$ac_exeext conftest.$ac_ext
     5107LIBS=$ac_check_lib_save_LIBS
     5108fi
     5109echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
     5110echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
     5111if test $ac_cv_lib_GL_main = yes; then
     5112  FOUND_GL=yes
     5113fi
     5114
     5115   if test "$FOUND_GL" = "yes" ; then
     5116     LIBS="$LIBS -lGL"
     5117   else
     5118         echo "------------------"
     5119         echo "opengl not found."
     5120         echo "please install the opengl package which can be found at http://www.opengl.org"
     5121         echo "------------------"
     5122         exit -1
     5123   fi
     5124
     5125# cheking for GLU-header
     5126
     5127for ac_header in GL/glu.h
    58125128do
    58135129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    59545270_ACEOF
    59555271
     5272else
     5273  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     5274echo "$as_me: error: cannot find opengl headers" >&2;}
     5275   { (exit 1); exit 1; }; }
     5276fi
     5277
     5278done
     5279
     5280
     5281    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
     5282echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
     5283if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
     5284  echo $ECHO_N "(cached) $ECHO_C" >&6
     5285else
     5286  ac_check_lib_save_LIBS=$LIBS
     5287LIBS="-lGLU  $LIBS"
     5288cat >conftest.$ac_ext <<_ACEOF
     5289/* confdefs.h.  */
     5290_ACEOF
     5291cat confdefs.h >>conftest.$ac_ext
     5292cat >>conftest.$ac_ext <<_ACEOF
     5293/* end confdefs.h.  */
     5294
     5295/* Override any gcc2 internal prototype to avoid an error.  */
     5296#ifdef __cplusplus
     5297extern "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.  */
     5301char gluProject ();
     5302int
     5303main ()
     5304{
     5305gluProject ();
     5306  ;
     5307  return 0;
     5308}
     5309_ACEOF
     5310rm -f conftest.$ac_objext conftest$ac_exeext
     5311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5312  (eval $ac_link) 2>conftest.er1
     5313  ac_status=$?
     5314  grep -v '^ *+' conftest.er1 >conftest.err
     5315  rm -f conftest.er1
     5316  cat conftest.err >&5
     5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5318  (exit $ac_status); } &&
     5319         { ac_try='test -z "$ac_c_werror_flag"
     5320                         || test ! -s conftest.err'
     5321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5322  (eval $ac_try) 2>&5
     5323  ac_status=$?
     5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5325  (exit $ac_status); }; } &&
     5326         { ac_try='test -s conftest$ac_exeext'
     5327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5328  (eval $ac_try) 2>&5
     5329  ac_status=$?
     5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5331  (exit $ac_status); }; }; then
     5332  ac_cv_lib_GLU_gluProject=yes
     5333else
     5334  echo "$as_me: failed program was:" >&5
     5335sed 's/^/| /' conftest.$ac_ext >&5
     5336
     5337ac_cv_lib_GLU_gluProject=no
     5338fi
     5339rm -f conftest.err conftest.$ac_objext \
     5340      conftest$ac_exeext conftest.$ac_ext
     5341LIBS=$ac_check_lib_save_LIBS
     5342fi
     5343echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
     5344echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
     5345if test $ac_cv_lib_GLU_gluProject = yes; then
     5346  FOUND_GLU=yes
     5347fi
     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
     5361for ac_header in SDL/SDL.h
     5362do
     5363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5364if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5365  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5367if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5368  echo $ECHO_N "(cached) $ECHO_C" >&6
     5369fi
     5370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5372else
     5373  # Is the header compilable?
     5374echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5376cat >conftest.$ac_ext <<_ACEOF
     5377/* confdefs.h.  */
     5378_ACEOF
     5379cat confdefs.h >>conftest.$ac_ext
     5380cat >>conftest.$ac_ext <<_ACEOF
     5381/* end confdefs.h.  */
     5382$ac_includes_default
     5383#include <$ac_header>
     5384_ACEOF
     5385rm -f conftest.$ac_objext
     5386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5387  (eval $ac_compile) 2>conftest.er1
     5388  ac_status=$?
     5389  grep -v '^ *+' conftest.er1 >conftest.err
     5390  rm -f conftest.er1
     5391  cat conftest.err >&5
     5392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5393  (exit $ac_status); } &&
     5394         { ac_try='test -z "$ac_c_werror_flag"
     5395                         || test ! -s conftest.err'
     5396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5397  (eval $ac_try) 2>&5
     5398  ac_status=$?
     5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5400  (exit $ac_status); }; } &&
     5401         { ac_try='test -s conftest.$ac_objext'
     5402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5403  (eval $ac_try) 2>&5
     5404  ac_status=$?
     5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5406  (exit $ac_status); }; }; then
     5407  ac_header_compiler=yes
     5408else
     5409  echo "$as_me: failed program was:" >&5
     5410sed 's/^/| /' conftest.$ac_ext >&5
     5411
     5412ac_header_compiler=no
     5413fi
     5414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5416echo "${ECHO_T}$ac_header_compiler" >&6
     5417
     5418# Is the header present?
     5419echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5421cat >conftest.$ac_ext <<_ACEOF
     5422/* confdefs.h.  */
     5423_ACEOF
     5424cat confdefs.h >>conftest.$ac_ext
     5425cat >>conftest.$ac_ext <<_ACEOF
     5426/* end confdefs.h.  */
     5427#include <$ac_header>
     5428_ACEOF
     5429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5430  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5431  ac_status=$?
     5432  grep -v '^ *+' conftest.er1 >conftest.err
     5433  rm -f conftest.er1
     5434  cat conftest.err >&5
     5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5436  (exit $ac_status); } >/dev/null; then
     5437  if test -s conftest.err; then
     5438    ac_cpp_err=$ac_c_preproc_warn_flag
     5439    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5440  else
     5441    ac_cpp_err=
     5442  fi
     5443else
     5444  ac_cpp_err=yes
     5445fi
     5446if test -z "$ac_cpp_err"; then
     5447  ac_header_preproc=yes
     5448else
     5449  echo "$as_me: failed program was:" >&5
     5450sed 's/^/| /' conftest.$ac_ext >&5
     5451
     5452  ac_header_preproc=no
     5453fi
     5454rm -f conftest.err conftest.$ac_ext
     5455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5456echo "${ECHO_T}$ac_header_preproc" >&6
     5457
     5458# So?  What about this header?
     5459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5460  yes:no: )
     5461    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5463    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5465    ac_header_preproc=yes
     5466    ;;
     5467  no:yes:* )
     5468    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5470    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5471echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5472    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5474    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5475echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5478    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5480    (
     5481      cat <<\_ASBOX
     5482## ------------------------------------------- ##
     5483## Report this to orxonox-dev@mail.datacore.ch ##
     5484## ------------------------------------------- ##
     5485_ASBOX
     5486    ) |
     5487      sed "s/^/$as_me: WARNING:     /" >&2
     5488    ;;
     5489esac
     5490echo "$as_me:$LINENO: checking for $ac_header" >&5
     5491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5492if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5493  echo $ECHO_N "(cached) $ECHO_C" >&6
     5494else
     5495  eval "$as_ac_Header=\$ac_header_preproc"
     5496fi
     5497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5499
     5500fi
     5501if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5502  cat >>confdefs.h <<_ACEOF
     5503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5504_ACEOF
     5505
     5506else
     5507  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     5508echo "$as_me: error: cannot find SDL headers" >&2;}
     5509   { (exit 1); exit 1; }; }
     5510fi
     5511
     5512done
     5513
     5514
     5515    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
     5516echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
     5517if test "${ac_cv_lib_SDL_main+set}" = set; then
     5518  echo $ECHO_N "(cached) $ECHO_C" >&6
     5519else
     5520  ac_check_lib_save_LIBS=$LIBS
     5521LIBS="-lSDL  $LIBS"
     5522cat >conftest.$ac_ext <<_ACEOF
     5523/* confdefs.h.  */
     5524_ACEOF
     5525cat confdefs.h >>conftest.$ac_ext
     5526cat >>conftest.$ac_ext <<_ACEOF
     5527/* end confdefs.h.  */
     5528
     5529
     5530int
     5531main ()
     5532{
     5533main ();
     5534  ;
     5535  return 0;
     5536}
     5537_ACEOF
     5538rm -f conftest.$ac_objext conftest$ac_exeext
     5539if { (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
     5561else
     5562  echo "$as_me: failed program was:" >&5
     5563sed 's/^/| /' conftest.$ac_ext >&5
     5564
     5565ac_cv_lib_SDL_main=no
     5566fi
     5567rm -f conftest.err conftest.$ac_objext \
     5568      conftest$ac_exeext conftest.$ac_ext
     5569LIBS=$ac_check_lib_save_LIBS
     5570fi
     5571echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
     5572echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
     5573if test $ac_cv_lib_SDL_main = yes; then
     5574  FOUND_SDL=yes
     5575fi
     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
     5589for ac_header in SDL/SDL_mixer.h
     5590do
     5591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5592if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5593  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5595if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5596  echo $ECHO_N "(cached) $ECHO_C" >&6
     5597fi
     5598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5600else
     5601  # Is the header compilable?
     5602echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5604cat >conftest.$ac_ext <<_ACEOF
     5605/* confdefs.h.  */
     5606_ACEOF
     5607cat confdefs.h >>conftest.$ac_ext
     5608cat >>conftest.$ac_ext <<_ACEOF
     5609/* end confdefs.h.  */
     5610$ac_includes_default
     5611#include <$ac_header>
     5612_ACEOF
     5613rm -f conftest.$ac_objext
     5614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5615  (eval $ac_compile) 2>conftest.er1
     5616  ac_status=$?
     5617  grep -v '^ *+' conftest.er1 >conftest.err
     5618  rm -f conftest.er1
     5619  cat conftest.err >&5
     5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5621  (exit $ac_status); } &&
     5622         { ac_try='test -z "$ac_c_werror_flag"
     5623                         || test ! -s conftest.err'
     5624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5625  (eval $ac_try) 2>&5
     5626  ac_status=$?
     5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5628  (exit $ac_status); }; } &&
     5629         { ac_try='test -s conftest.$ac_objext'
     5630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5631  (eval $ac_try) 2>&5
     5632  ac_status=$?
     5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5634  (exit $ac_status); }; }; then
     5635  ac_header_compiler=yes
     5636else
     5637  echo "$as_me: failed program was:" >&5
     5638sed 's/^/| /' conftest.$ac_ext >&5
     5639
     5640ac_header_compiler=no
     5641fi
     5642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5643echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5644echo "${ECHO_T}$ac_header_compiler" >&6
     5645
     5646# Is the header present?
     5647echo "$as_me:$LINENO: checking $ac_header presence" >&5
     5648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     5649cat >conftest.$ac_ext <<_ACEOF
     5650/* confdefs.h.  */
     5651_ACEOF
     5652cat confdefs.h >>conftest.$ac_ext
     5653cat >>conftest.$ac_ext <<_ACEOF
     5654/* end confdefs.h.  */
     5655#include <$ac_header>
     5656_ACEOF
     5657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5658  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5659  ac_status=$?
     5660  grep -v '^ *+' conftest.er1 >conftest.err
     5661  rm -f conftest.er1
     5662  cat conftest.err >&5
     5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5664  (exit $ac_status); } >/dev/null; then
     5665  if test -s conftest.err; then
     5666    ac_cpp_err=$ac_c_preproc_warn_flag
     5667    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5668  else
     5669    ac_cpp_err=
     5670  fi
     5671else
     5672  ac_cpp_err=yes
     5673fi
     5674if test -z "$ac_cpp_err"; then
     5675  ac_header_preproc=yes
     5676else
     5677  echo "$as_me: failed program was:" >&5
     5678sed 's/^/| /' conftest.$ac_ext >&5
     5679
     5680  ac_header_preproc=no
     5681fi
     5682rm -f conftest.err conftest.$ac_ext
     5683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5684echo "${ECHO_T}$ac_header_preproc" >&6
     5685
     5686# So?  What about this header?
     5687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5688  yes:no: )
     5689    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     5690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     5692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     5693    ac_header_preproc=yes
     5694    ;;
     5695  no:yes:* )
     5696    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     5697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     5698    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     5699echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     5700    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     5701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     5702    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     5703echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     5704    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     5705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     5706    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     5707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     5708    (
     5709      cat <<\_ASBOX
     5710## ------------------------------------------- ##
     5711## Report this to orxonox-dev@mail.datacore.ch ##
     5712## ------------------------------------------- ##
     5713_ASBOX
     5714    ) |
     5715      sed "s/^/$as_me: WARNING:     /" >&2
     5716    ;;
     5717esac
     5718echo "$as_me:$LINENO: checking for $ac_header" >&5
     5719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5720if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5721  echo $ECHO_N "(cached) $ECHO_C" >&6
     5722else
     5723  eval "$as_ac_Header=\$ac_header_preproc"
     5724fi
     5725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5727
     5728fi
     5729if test `eval echo '${'$as_ac_Header'}'` = yes; then
     5730  cat >>confdefs.h <<_ACEOF
     5731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     5732_ACEOF
     5733
     5734else
     5735  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     5736echo "$as_me: error: cannot find SDL headers" >&2;}
     5737   { (exit 1); exit 1; }; }
     5738fi
     5739
     5740done
     5741
     5742
     5743
     5744#checking for libSDL_mixer
     5745    echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
     5746echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
     5747if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
     5748  echo $ECHO_N "(cached) $ECHO_C" >&6
     5749else
     5750  ac_check_lib_save_LIBS=$LIBS
     5751LIBS="-lSDL_mixer  $LIBS"
     5752cat >conftest.$ac_ext <<_ACEOF
     5753/* confdefs.h.  */
     5754_ACEOF
     5755cat confdefs.h >>conftest.$ac_ext
     5756cat >>conftest.$ac_ext <<_ACEOF
     5757/* end confdefs.h.  */
     5758
     5759
     5760int
     5761main ()
     5762{
     5763main ();
     5764  ;
     5765  return 0;
     5766}
     5767_ACEOF
     5768rm -f conftest.$ac_objext conftest$ac_exeext
     5769if { (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
     5791else
     5792  echo "$as_me: failed program was:" >&5
     5793sed 's/^/| /' conftest.$ac_ext >&5
     5794
     5795ac_cv_lib_SDL_mixer_main=no
     5796fi
     5797rm -f conftest.err conftest.$ac_objext \
     5798      conftest$ac_exeext conftest.$ac_ext
     5799LIBS=$ac_check_lib_save_LIBS
     5800fi
     5801echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
     5802echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
     5803if test $ac_cv_lib_SDL_mixer_main = yes; then
     5804  FOUND_SDL_mixer=yes
     5805fi
     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
     5816
     5817    ;;
     5818  *)
     5819    mingw="no"
     5820    ;;
     5821esac
     5822echo "$as_me:$LINENO: result: $mingw" >&5
     5823echo "${ECHO_T}$mingw" >&6
     5824
     5825
     5826#### Checking for LIBraries.
     5827
     5828# FIXME: Replace `main' with a function in `-lOSMesa':
     5829
     5830echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
     5831echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
     5832if test "${ac_cv_lib_OSMesa_main+set}" = set; then
     5833  echo $ECHO_N "(cached) $ECHO_C" >&6
     5834else
     5835  ac_check_lib_save_LIBS=$LIBS
     5836LIBS="-lOSMesa  $LIBS"
     5837cat >conftest.$ac_ext <<_ACEOF
     5838/* confdefs.h.  */
     5839_ACEOF
     5840cat confdefs.h >>conftest.$ac_ext
     5841cat >>conftest.$ac_ext <<_ACEOF
     5842/* end confdefs.h.  */
     5843
     5844
     5845int
     5846main ()
     5847{
     5848main ();
     5849  ;
     5850  return 0;
     5851}
     5852_ACEOF
     5853rm -f conftest.$ac_objext conftest$ac_exeext
     5854if { (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
     5876else
     5877  echo "$as_me: failed program was:" >&5
     5878sed 's/^/| /' conftest.$ac_ext >&5
     5879
     5880ac_cv_lib_OSMesa_main=no
     5881fi
     5882rm -f conftest.err conftest.$ac_objext \
     5883      conftest$ac_exeext conftest.$ac_ext
     5884LIBS=$ac_check_lib_save_LIBS
     5885fi
     5886echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
     5887echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
     5888if 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
     5895fi
     5896
     5897# FIXME: Replace `main' with a function in `-lX11':
     5898
     5899echo "$as_me:$LINENO: checking for main in -lX11" >&5
     5900echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
     5901if test "${ac_cv_lib_X11_main+set}" = set; then
     5902  echo $ECHO_N "(cached) $ECHO_C" >&6
     5903else
     5904  ac_check_lib_save_LIBS=$LIBS
     5905LIBS="-lX11  $LIBS"
     5906cat >conftest.$ac_ext <<_ACEOF
     5907/* confdefs.h.  */
     5908_ACEOF
     5909cat confdefs.h >>conftest.$ac_ext
     5910cat >>conftest.$ac_ext <<_ACEOF
     5911/* end confdefs.h.  */
     5912
     5913
     5914int
     5915main ()
     5916{
     5917main ();
     5918  ;
     5919  return 0;
     5920}
     5921_ACEOF
     5922rm -f conftest.$ac_objext conftest$ac_exeext
     5923if { (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
     5945else
     5946  echo "$as_me: failed program was:" >&5
     5947sed 's/^/| /' conftest.$ac_ext >&5
     5948
     5949ac_cv_lib_X11_main=no
     5950fi
     5951rm -f conftest.err conftest.$ac_objext \
     5952      conftest$ac_exeext conftest.$ac_ext
     5953LIBS=$ac_check_lib_save_LIBS
     5954fi
     5955echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
     5956echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
     5957if 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
     5964fi
     5965
     5966# FIXME: Replace `main' with a function in `-lXt':
     5967
     5968echo "$as_me:$LINENO: checking for main in -lXt" >&5
     5969echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
     5970if test "${ac_cv_lib_Xt_main+set}" = set; then
     5971  echo $ECHO_N "(cached) $ECHO_C" >&6
     5972else
     5973  ac_check_lib_save_LIBS=$LIBS
     5974LIBS="-lXt  $LIBS"
     5975cat >conftest.$ac_ext <<_ACEOF
     5976/* confdefs.h.  */
     5977_ACEOF
     5978cat confdefs.h >>conftest.$ac_ext
     5979cat >>conftest.$ac_ext <<_ACEOF
     5980/* end confdefs.h.  */
     5981
     5982
     5983int
     5984main ()
     5985{
     5986main ();
     5987  ;
     5988  return 0;
     5989}
     5990_ACEOF
     5991rm -f conftest.$ac_objext conftest$ac_exeext
     5992if { (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
     6014else
     6015  echo "$as_me: failed program was:" >&5
     6016sed 's/^/| /' conftest.$ac_ext >&5
     6017
     6018ac_cv_lib_Xt_main=no
     6019fi
     6020rm -f conftest.err conftest.$ac_objext \
     6021      conftest$ac_exeext conftest.$ac_ext
     6022LIBS=$ac_check_lib_save_LIBS
     6023fi
     6024echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
     6025echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
     6026if 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
     6033fi
     6034
     6035
     6036
     6037#checking for pthread libs
     6038echo "$as_me:$LINENO: checking for main in -lpthread" >&5
     6039echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
     6040if test "${ac_cv_lib_pthread_main+set}" = set; then
     6041  echo $ECHO_N "(cached) $ECHO_C" >&6
     6042else
     6043  ac_check_lib_save_LIBS=$LIBS
     6044LIBS="-lpthread  $LIBS"
     6045cat >conftest.$ac_ext <<_ACEOF
     6046/* confdefs.h.  */
     6047_ACEOF
     6048cat confdefs.h >>conftest.$ac_ext
     6049cat >>conftest.$ac_ext <<_ACEOF
     6050/* end confdefs.h.  */
     6051
     6052
     6053int
     6054main ()
     6055{
     6056main ();
     6057  ;
     6058  return 0;
     6059}
     6060_ACEOF
     6061rm -f conftest.$ac_objext conftest$ac_exeext
     6062if { (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
     6084else
     6085  echo "$as_me: failed program was:" >&5
     6086sed 's/^/| /' conftest.$ac_ext >&5
     6087
     6088ac_cv_lib_pthread_main=no
     6089fi
     6090rm -f conftest.err conftest.$ac_objext \
     6091      conftest$ac_exeext conftest.$ac_ext
     6092LIBS=$ac_check_lib_save_LIBS
     6093fi
     6094echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
     6095echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
     6096if test $ac_cv_lib_pthread_main = yes; then
     6097  FOUND_pthread=yes
     6098fi
     6099
     6100if test "$FOUND_pthread" = "yes" ; then
     6101    LIBS="$LIBS -lpthread"
     6102fi
     6103
     6104
     6105
     6106
     6107# FIXME: Replace `main' with a function in `-lm':
     6108
     6109echo "$as_me:$LINENO: checking for main in -lm" >&5
     6110echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     6111if test "${ac_cv_lib_m_main+set}" = set; then
     6112  echo $ECHO_N "(cached) $ECHO_C" >&6
     6113else
     6114  ac_check_lib_save_LIBS=$LIBS
     6115LIBS="-lm  $LIBS"
     6116cat >conftest.$ac_ext <<_ACEOF
     6117/* confdefs.h.  */
     6118_ACEOF
     6119cat confdefs.h >>conftest.$ac_ext
     6120cat >>conftest.$ac_ext <<_ACEOF
     6121/* end confdefs.h.  */
     6122
     6123
     6124int
     6125main ()
     6126{
     6127main ();
     6128  ;
     6129  return 0;
     6130}
     6131_ACEOF
     6132rm -f conftest.$ac_objext conftest$ac_exeext
     6133if { (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
     6155else
     6156  echo "$as_me: failed program was:" >&5
     6157sed 's/^/| /' conftest.$ac_ext >&5
     6158
     6159ac_cv_lib_m_main=no
     6160fi
     6161rm -f conftest.err conftest.$ac_objext \
     6162      conftest$ac_exeext conftest.$ac_ext
     6163LIBS=$ac_check_lib_save_LIBS
     6164fi
     6165echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     6166echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     6167if 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
     6174fi
     6175
     6176
     6177LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
     6178
     6179
     6180# Checks for header files.
     6181echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6182echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     6183if test "${ac_cv_header_stdc+set}" = set; then
     6184  echo $ECHO_N "(cached) $ECHO_C" >&6
     6185else
     6186  cat >conftest.$ac_ext <<_ACEOF
     6187/* confdefs.h.  */
     6188_ACEOF
     6189cat confdefs.h >>conftest.$ac_ext
     6190cat >>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
     6197int
     6198main ()
     6199{
     6200
     6201  ;
     6202  return 0;
     6203}
     6204_ACEOF
     6205rm -f conftest.$ac_objext
     6206if { (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
     6228else
     6229  echo "$as_me: failed program was:" >&5
     6230sed 's/^/| /' conftest.$ac_ext >&5
     6231
     6232ac_cv_header_stdc=no
     6233fi
     6234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6235
     6236if 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
     6241cat confdefs.h >>conftest.$ac_ext
     6242cat >>conftest.$ac_ext <<_ACEOF
     6243/* end confdefs.h.  */
     6244#include <string.h>
     6245
     6246_ACEOF
     6247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6248  $EGREP "memchr" >/dev/null 2>&1; then
     6249  :
     6250else
     6251  ac_cv_header_stdc=no
     6252fi
     6253rm -f conftest*
     6254
     6255fi
     6256
     6257if 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
     6262cat confdefs.h >>conftest.$ac_ext
     6263cat >>conftest.$ac_ext <<_ACEOF
     6264/* end confdefs.h.  */
     6265#include <stdlib.h>
     6266
     6267_ACEOF
     6268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6269  $EGREP "free" >/dev/null 2>&1; then
     6270  :
     6271else
     6272  ac_cv_header_stdc=no
     6273fi
     6274rm -f conftest*
     6275
     6276fi
     6277
     6278if 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  :
     6282else
     6283  cat >conftest.$ac_ext <<_ACEOF
     6284/* confdefs.h.  */
     6285_ACEOF
     6286cat confdefs.h >>conftest.$ac_ext
     6287cat >>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)))
     6302int
     6303main ()
     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
     6313rm -f conftest$ac_exeext
     6314if { (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  :
     6325else
     6326  echo "$as_me: program exited with status $ac_status" >&5
     6327echo "$as_me: failed program was:" >&5
     6328sed 's/^/| /' conftest.$ac_ext >&5
     6329
     6330( exit $ac_status )
     6331ac_cv_header_stdc=no
     6332fi
     6333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6334fi
     6335fi
     6336fi
     6337echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     6338echo "${ECHO_T}$ac_cv_header_stdc" >&6
     6339if test $ac_cv_header_stdc = yes; then
     6340
     6341cat >>confdefs.h <<\_ACEOF
     6342#define STDC_HEADERS 1
     6343_ACEOF
     6344
     6345fi
     6346
     6347
     6348
     6349for ac_header in stdlib.h string.h
     6350do
     6351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6352if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6353  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6355if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6356  echo $ECHO_N "(cached) $ECHO_C" >&6
     6357fi
     6358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6360else
     6361  # Is the header compilable?
     6362echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6364cat >conftest.$ac_ext <<_ACEOF
     6365/* confdefs.h.  */
     6366_ACEOF
     6367cat confdefs.h >>conftest.$ac_ext
     6368cat >>conftest.$ac_ext <<_ACEOF
     6369/* end confdefs.h.  */
     6370$ac_includes_default
     6371#include <$ac_header>
     6372_ACEOF
     6373rm -f conftest.$ac_objext
     6374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6375  (eval $ac_compile) 2>conftest.er1
     6376  ac_status=$?
     6377  grep -v '^ *+' conftest.er1 >conftest.err
     6378  rm -f conftest.er1
     6379  cat conftest.err >&5
     6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6381  (exit $ac_status); } &&
     6382         { ac_try='test -z "$ac_c_werror_flag"
     6383                         || test ! -s conftest.err'
     6384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6385  (eval $ac_try) 2>&5
     6386  ac_status=$?
     6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6388  (exit $ac_status); }; } &&
     6389         { ac_try='test -s conftest.$ac_objext'
     6390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6391  (eval $ac_try) 2>&5
     6392  ac_status=$?
     6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6394  (exit $ac_status); }; }; then
     6395  ac_header_compiler=yes
     6396else
     6397  echo "$as_me: failed program was:" >&5
     6398sed 's/^/| /' conftest.$ac_ext >&5
     6399
     6400ac_header_compiler=no
     6401fi
     6402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6404echo "${ECHO_T}$ac_header_compiler" >&6
     6405
     6406# Is the header present?
     6407echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6409cat >conftest.$ac_ext <<_ACEOF
     6410/* confdefs.h.  */
     6411_ACEOF
     6412cat confdefs.h >>conftest.$ac_ext
     6413cat >>conftest.$ac_ext <<_ACEOF
     6414/* end confdefs.h.  */
     6415#include <$ac_header>
     6416_ACEOF
     6417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6418  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6419  ac_status=$?
     6420  grep -v '^ *+' conftest.er1 >conftest.err
     6421  rm -f conftest.er1
     6422  cat conftest.err >&5
     6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6424  (exit $ac_status); } >/dev/null; then
     6425  if test -s conftest.err; then
     6426    ac_cpp_err=$ac_c_preproc_warn_flag
     6427    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6428  else
     6429    ac_cpp_err=
     6430  fi
     6431else
     6432  ac_cpp_err=yes
     6433fi
     6434if test -z "$ac_cpp_err"; then
     6435  ac_header_preproc=yes
     6436else
     6437  echo "$as_me: failed program was:" >&5
     6438sed 's/^/| /' conftest.$ac_ext >&5
     6439
     6440  ac_header_preproc=no
     6441fi
     6442rm -f conftest.err conftest.$ac_ext
     6443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6444echo "${ECHO_T}$ac_header_preproc" >&6
     6445
     6446# So?  What about this header?
     6447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6448  yes:no: )
     6449    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6453    ac_header_preproc=yes
     6454    ;;
     6455  no:yes:* )
     6456    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6458    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6459echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6460    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6462    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6463echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6466    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6468    (
     6469      cat <<\_ASBOX
     6470## ------------------------------------------- ##
     6471## Report this to orxonox-dev@mail.datacore.ch ##
     6472## ------------------------------------------- ##
     6473_ASBOX
     6474    ) |
     6475      sed "s/^/$as_me: WARNING:     /" >&2
     6476    ;;
     6477esac
     6478echo "$as_me:$LINENO: checking for $ac_header" >&5
     6479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6480if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6481  echo $ECHO_N "(cached) $ECHO_C" >&6
     6482else
     6483  eval "$as_ac_Header=\$ac_header_preproc"
     6484fi
     6485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6487
     6488fi
     6489if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6490  cat >>confdefs.h <<_ACEOF
     6491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6492_ACEOF
     6493
     6494fi
     6495
     6496done
     6497
     6498
     6499# Checks for typedefs, structures, and compiler characteristics.
     6500echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     6501echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     6502if test "${ac_cv_header_stdbool_h+set}" = set; then
     6503  echo $ECHO_N "(cached) $ECHO_C" >&6
     6504else
     6505  cat >conftest.$ac_ext <<_ACEOF
     6506/* confdefs.h.  */
     6507_ACEOF
     6508cat confdefs.h >>conftest.$ac_ext
     6509cat >>conftest.$ac_ext <<_ACEOF
     6510/* end confdefs.h.  */
     6511
     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];
     6543
     6544int
     6545main ()
     6546{
     6547 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     6548  ;
     6549  return 0;
     6550}
     6551_ACEOF
     6552rm -f conftest.$ac_objext
     6553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6554  (eval $ac_compile) 2>conftest.er1
     6555  ac_status=$?
     6556  grep -v '^ *+' conftest.er1 >conftest.err
     6557  rm -f conftest.er1
     6558  cat conftest.err >&5
     6559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6560  (exit $ac_status); } &&
     6561         { ac_try='test -z "$ac_c_werror_flag"
     6562                         || test ! -s conftest.err'
     6563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6564  (eval $ac_try) 2>&5
     6565  ac_status=$?
     6566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6567  (exit $ac_status); }; } &&
     6568         { ac_try='test -s conftest.$ac_objext'
     6569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6570  (eval $ac_try) 2>&5
     6571  ac_status=$?
     6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6573  (exit $ac_status); }; }; then
     6574  ac_cv_header_stdbool_h=yes
     6575else
     6576  echo "$as_me: failed program was:" >&5
     6577sed 's/^/| /' conftest.$ac_ext >&5
     6578
     6579ac_cv_header_stdbool_h=no
     6580fi
     6581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6582fi
     6583echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     6584echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     6585echo "$as_me:$LINENO: checking for _Bool" >&5
     6586echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     6587if test "${ac_cv_type__Bool+set}" = set; then
     6588  echo $ECHO_N "(cached) $ECHO_C" >&6
     6589else
     6590  cat >conftest.$ac_ext <<_ACEOF
     6591/* confdefs.h.  */
     6592_ACEOF
     6593cat confdefs.h >>conftest.$ac_ext
     6594cat >>conftest.$ac_ext <<_ACEOF
     6595/* end confdefs.h.  */
     6596$ac_includes_default
     6597int
     6598main ()
     6599{
     6600if ((_Bool *) 0)
     6601  return 0;
     6602if (sizeof (_Bool))
     6603  return 0;
     6604  ;
     6605  return 0;
     6606}
     6607_ACEOF
     6608rm -f conftest.$ac_objext
     6609if { (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
     6631else
     6632  echo "$as_me: failed program was:" >&5
     6633sed 's/^/| /' conftest.$ac_ext >&5
     6634
     6635ac_cv_type__Bool=no
     6636fi
     6637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6638fi
     6639echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     6640echo "${ECHO_T}$ac_cv_type__Bool" >&6
     6641if test $ac_cv_type__Bool = yes; then
     6642
     6643cat >>confdefs.h <<_ACEOF
     6644#define HAVE__BOOL 1
     6645_ACEOF
     6646
     6647
     6648fi
     6649
     6650if test $ac_cv_header_stdbool_h = yes; then
     6651
     6652cat >>confdefs.h <<\_ACEOF
     6653#define HAVE_STDBOOL_H 1
     6654_ACEOF
     6655
     6656fi
     6657
     6658
     6659# Checks for library functions.
     6660
     6661for ac_header in stdlib.h
     6662do
     6663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6664if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6665  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6667if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6668  echo $ECHO_N "(cached) $ECHO_C" >&6
     6669fi
     6670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6672else
     6673  # Is the header compilable?
     6674echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6676cat >conftest.$ac_ext <<_ACEOF
     6677/* confdefs.h.  */
     6678_ACEOF
     6679cat confdefs.h >>conftest.$ac_ext
     6680cat >>conftest.$ac_ext <<_ACEOF
     6681/* end confdefs.h.  */
     6682$ac_includes_default
     6683#include <$ac_header>
     6684_ACEOF
     6685rm -f conftest.$ac_objext
     6686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6687  (eval $ac_compile) 2>conftest.er1
     6688  ac_status=$?
     6689  grep -v '^ *+' conftest.er1 >conftest.err
     6690  rm -f conftest.er1
     6691  cat conftest.err >&5
     6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6693  (exit $ac_status); } &&
     6694         { ac_try='test -z "$ac_c_werror_flag"
     6695                         || test ! -s conftest.err'
     6696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6697  (eval $ac_try) 2>&5
     6698  ac_status=$?
     6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6700  (exit $ac_status); }; } &&
     6701         { ac_try='test -s conftest.$ac_objext'
     6702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6703  (eval $ac_try) 2>&5
     6704  ac_status=$?
     6705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6706  (exit $ac_status); }; }; then
     6707  ac_header_compiler=yes
     6708else
     6709  echo "$as_me: failed program was:" >&5
     6710sed 's/^/| /' conftest.$ac_ext >&5
     6711
     6712ac_header_compiler=no
     6713fi
     6714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6716echo "${ECHO_T}$ac_header_compiler" >&6
     6717
     6718# Is the header present?
     6719echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6721cat >conftest.$ac_ext <<_ACEOF
     6722/* confdefs.h.  */
     6723_ACEOF
     6724cat confdefs.h >>conftest.$ac_ext
     6725cat >>conftest.$ac_ext <<_ACEOF
     6726/* end confdefs.h.  */
     6727#include <$ac_header>
     6728_ACEOF
     6729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6730  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6731  ac_status=$?
     6732  grep -v '^ *+' conftest.er1 >conftest.err
     6733  rm -f conftest.er1
     6734  cat conftest.err >&5
     6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6736  (exit $ac_status); } >/dev/null; then
     6737  if test -s conftest.err; then
     6738    ac_cpp_err=$ac_c_preproc_warn_flag
     6739    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6740  else
     6741    ac_cpp_err=
     6742  fi
     6743else
     6744  ac_cpp_err=yes
     6745fi
     6746if test -z "$ac_cpp_err"; then
     6747  ac_header_preproc=yes
     6748else
     6749  echo "$as_me: failed program was:" >&5
     6750sed 's/^/| /' conftest.$ac_ext >&5
     6751
     6752  ac_header_preproc=no
     6753fi
     6754rm -f conftest.err conftest.$ac_ext
     6755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6756echo "${ECHO_T}$ac_header_preproc" >&6
     6757
     6758# So?  What about this header?
     6759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6760  yes:no: )
     6761    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6765    ac_header_preproc=yes
     6766    ;;
     6767  no:yes:* )
     6768    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6770    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6771echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6772    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6774    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6775echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6778    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6780    (
     6781      cat <<\_ASBOX
     6782## ------------------------------------------- ##
     6783## Report this to orxonox-dev@mail.datacore.ch ##
     6784## ------------------------------------------- ##
     6785_ASBOX
     6786    ) |
     6787      sed "s/^/$as_me: WARNING:     /" >&2
     6788    ;;
     6789esac
     6790echo "$as_me:$LINENO: checking for $ac_header" >&5
     6791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6792if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6793  echo $ECHO_N "(cached) $ECHO_C" >&6
     6794else
     6795  eval "$as_ac_Header=\$ac_header_preproc"
     6796fi
     6797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6799
     6800fi
     6801if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6802  cat >>confdefs.h <<_ACEOF
     6803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6804_ACEOF
     6805
    59566806fi
    59576807
     
    61436993
    61446994
    6145                                         ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile"
     6995                                                  ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile"
    61466996
    61476997cat >confcache <<\_ACEOF
     
    67057555  "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
    67067556  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
     7557  "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;;
    67077558  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    67087559  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     
    68087659s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
    68097660s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
     7661s,@mkdir_p@,$mkdir_p,;t t
    68107662s,@AWK@,$AWK,;t t
    68117663s,@SET_MAKE@,$SET_MAKE,;t t
    68127664s,@am__leading_dot@,$am__leading_dot,;t t
    6813 s,@MSBITFIELDS@,$MSBITFIELDS,;t t
    68147665s,@CXX@,$CXX,;t t
    68157666s,@CXXFLAGS@,$CXXFLAGS,;t t
     
    68367687s,@CPP@,$CPP,;t t
    68377688s,@EGREP@,$EGREP,;t t
     7689s,@MSBITFIELDS@,$MSBITFIELDS,;t t
    68387690s,@LIBOBJS@,$LIBOBJS,;t t
    68397691s,@LTLIBOBJS@,$LTLIBOBJS,;t t
     
    74638315  # Extract the definition of DEP_FILES from the Makefile without
    74648316  # running `make'.
    7465   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     8317  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    74668318  test -z "$DEPDIR" && continue
    74678319  # When using ansi2knr, U may be empty or an underscore; expand it
    7468   U=`sed -n -e '/^U = / s///p' < "$mf"`
     8320  U=`sed -n 's/^U = //p' < "$mf"`
    74698321  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    74708322  # We invoke sed twice because it is the simplest approach to
    74718323  # changing $(DEPDIR) to its actual value in the expansion.
    7472   for file in `sed -n -e '
     8324  for file in `sed -n '
    74738325    /^DEP_FILES = .*\\\\$/ {
    74748326      s/^DEP_FILES = //
Note: See TracChangeset for help on using the changeset viewer.