Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2977 in orxonox.OLD for orxonox/branches/osX/configure


Ignore:
Timestamp:
Nov 24, 2004, 12:50:55 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/importer: merged back from the trunk again: command: svn merge trunk/ branches/osX -r 2887:HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/osX/configure

    r2879 r2977  
    37413741fi
    37423742
    3743 # 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.
    37443762
    37453763
     
    38133831
    38143832
    3815 for ac_header in
     3833
     3834for ac_header in GL/gl.h
    38163835do
    38173836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    39583977_ACEOF
    39593978
     3979else
     3980  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     3981echo "$as_me: error: cannot find opengl headers" >&2;}
     3982   { (exit 1); exit 1; }; }
    39603983fi
    39613984
    39623985done
    39633986
    3964 
    3965 
    3966 
    3967 ### CHECKING FOR SYSTEM ###
    3968 
    3969 echo "$as_me:$LINENO: checking for System" >&5
    3970 echo $ECHO_N "checking for System... $ECHO_C" >&6
    3971 case `uname` in
    3972 ### WINDOWS ###
    3973   *MINGW*)
    3974 echo "mingw-WINDOWS detected"
    3975 
    3976     mingw="yes"
    3977     MSBITFIELDS="-mms-bitfields"
    3978     MWINDOWS="-mwindows"
    3979 
    3980 # checking gl header
    3981         #done before loop
    3982 
    3983 # checking gl header (has to be here because of a Linux error)
    3984 
    3985 for ac_header in GL/gl.h
     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
     3991  echo $ECHO_N "(cached) $ECHO_C" >&6
     3992else
     3993  ac_check_lib_save_LIBS=$LIBS
     3994LIBS="-lopengl32  $LIBS"
     3995cat >conftest.$ac_ext <<_ACEOF
     3996/* confdefs.h.  */
     3997_ACEOF
     3998cat confdefs.h >>conftest.$ac_ext
     3999cat >>conftest.$ac_ext <<_ACEOF
     4000/* end confdefs.h.  */
     4001
     4002
     4003int
     4004main ()
     4005{
     4006main ();
     4007  ;
     4008  return 0;
     4009}
     4010_ACEOF
     4011rm -f conftest.$ac_objext conftest$ac_exeext
     4012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4013  (eval $ac_link) 2>conftest.er1
     4014  ac_status=$?
     4015  grep -v '^ *+' conftest.er1 >conftest.err
     4016  rm -f conftest.er1
     4017  cat conftest.err >&5
     4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4019  (exit $ac_status); } &&
     4020         { ac_try='test -z "$ac_c_werror_flag"
     4021                         || test ! -s conftest.err'
     4022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4023  (eval $ac_try) 2>&5
     4024  ac_status=$?
     4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4026  (exit $ac_status); }; } &&
     4027         { ac_try='test -s conftest$ac_exeext'
     4028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4029  (eval $ac_try) 2>&5
     4030  ac_status=$?
     4031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4032  (exit $ac_status); }; }; then
     4033  ac_cv_lib_opengl32_main=yes
     4034else
     4035  echo "$as_me: failed program was:" >&5
     4036sed 's/^/| /' conftest.$ac_ext >&5
     4037
     4038ac_cv_lib_opengl32_main=no
     4039fi
     4040rm -f conftest.err conftest.$ac_objext \
     4041      conftest$ac_exeext conftest.$ac_ext
     4042LIBS=$ac_check_lib_save_LIBS
     4043fi
     4044echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
     4045echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
     4046if test $ac_cv_lib_opengl32_main = yes; then
     4047  FOUND_opengl32=yes
     4048else
     4049  "gl/gl.h"
     4050fi
     4051
     4052    if test "$FOUND_opengl32" = "yes" ; then
     4053        LIBS="$LIBS -lopengl32"
     4054    else
     4055         echo "------------------"
     4056         echo "opengl not found."
     4057         echo "please install the opengl package which can be found at http://www.opengl.org"
     4058         echo "------------------"
     4059         exit -1
     4060    fi
     4061
     4062# cheking for GLU-header
     4063
     4064for ac_header in GL/glu.h
    39864065do
    39874066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    41364215done
    41374216
    4138 #   checking for Windows openGl library
    4139     echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
    4140 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
    4141 if test "${ac_cv_lib_opengl32_main+set}" = set; then
     4217
     4218# checking for libGLU
     4219    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
     4220echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
     4221if test "${ac_cv_lib_glu32_main+set}" = set; then
    41424222  echo $ECHO_N "(cached) $ECHO_C" >&6
    41434223else
    41444224  ac_check_lib_save_LIBS=$LIBS
    4145 LIBS="-lopengl32  $LIBS"
     4225LIBS="-lglu32  $LIBS"
    41464226cat >conftest.$ac_ext <<_ACEOF
    41474227/* confdefs.h.  */
     
    41824262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41834263  (exit $ac_status); }; }; then
    4184   ac_cv_lib_opengl32_main=yes
     4264  ac_cv_lib_glu32_main=yes
    41854265else
    41864266  echo "$as_me: failed program was:" >&5
    41874267sed 's/^/| /' conftest.$ac_ext >&5
    41884268
    4189 ac_cv_lib_opengl32_main=no
     4269ac_cv_lib_glu32_main=no
    41904270fi
    41914271rm -f conftest.err conftest.$ac_objext \
     
    41934273LIBS=$ac_check_lib_save_LIBS
    41944274fi
    4195 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
    4196 echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
    4197 if test $ac_cv_lib_opengl32_main = yes; then
    4198   FOUND_opengl32=yes
    4199 else
    4200   "gl/gl.h"
    4201 fi
    4202 
    4203     if test "$FOUND_opengl32" = "yes" ; then
    4204         LIBS="$LIBS -lopengl32"
     4275echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
     4276echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
     4277if test $ac_cv_lib_glu32_main = yes; then
     4278  FOUND_glu32=yes
     4279fi
     4280
     4281    if test "$FOUND_glu32" = "yes" ; then
     4282        LIBS="$LIBS -lGLU32"
    42054283    else
    42064284         echo "------------------"
    4207          echo "opengl not found."
    4208          echo "please install the opengl package which can be found at http://www.opengl.org"
     4285         echo "GLU library not found."
     4286         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    42094287         echo "------------------"
    42104288         exit -1
    42114289    fi
    42124290
    4213 # cheking for GLU-header
    4214 
    4215 for ac_header in GL/glu.h
     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
    42164361do
    42174362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    43594504
    43604505else
    4361   { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
    4362 echo "$as_me: error: cannot find opengl headers" >&2;}
     4506  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     4507echo "$as_me: error: cannot find SDL headers" >&2;}
    43634508   { (exit 1); exit 1; }; }
    43644509fi
     
    43674512
    43684513
    4369 # checking for libGLU
    4370     echo "$as_me:$LINENO: checking for main in -lglu32" >&5
    4371 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
    4372 if test "${ac_cv_lib_glu32_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
    43734518  echo $ECHO_N "(cached) $ECHO_C" >&6
    43744519else
    43754520  ac_check_lib_save_LIBS=$LIBS
    4376 LIBS="-lglu32  $LIBS"
     4521LIBS="-lsdlmain  $LIBS"
    43774522cat >conftest.$ac_ext <<_ACEOF
    43784523/* confdefs.h.  */
     
    44134558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44144559  (exit $ac_status); }; }; then
    4415   ac_cv_lib_glu32_main=yes
     4560  ac_cv_lib_sdlmain_main=yes
    44164561else
    44174562  echo "$as_me: failed program was:" >&5
    44184563sed 's/^/| /' conftest.$ac_ext >&5
    44194564
    4420 ac_cv_lib_glu32_main=no
     4565ac_cv_lib_sdlmain_main=no
    44214566fi
    44224567rm -f conftest.err conftest.$ac_objext \
     
    44244569LIBS=$ac_check_lib_save_LIBS
    44254570fi
    4426 echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
    4427 echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
    4428 if test $ac_cv_lib_glu32_main = yes; then
    4429   FOUND_glu32=yes
    4430 fi
    4431 
    4432     if test "$FOUND_glu32" = "yes" ; then
    4433         LIBS="$LIBS -lGLU32"
     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"
    44344579    else
    44354580         echo "------------------"
    4436          echo "GLU library not found."
    4437          echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     4581         echo "SDL library not found."
     4582         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    44384583         echo "------------------"
    4439          exit -1
     4584         exit 1
    44404585    fi
    4441 
    4442 
    4443 # checking for mingw32
    4444     echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
    4445 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
    4446 if test "${ac_cv_lib_mingw32_main+set}" = set; then
     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
    44474589  echo $ECHO_N "(cached) $ECHO_C" >&6
    44484590else
    44494591  ac_check_lib_save_LIBS=$LIBS
    4450 LIBS="-lmingw32  $LIBS"
     4592LIBS="-lsdl  $LIBS"
    44514593cat >conftest.$ac_ext <<_ACEOF
    44524594/* confdefs.h.  */
     
    44874629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44884630  (exit $ac_status); }; }; then
    4489   ac_cv_lib_mingw32_main=yes
     4631  ac_cv_lib_sdl_main=yes
    44904632else
    44914633  echo "$as_me: failed program was:" >&5
    44924634sed 's/^/| /' conftest.$ac_ext >&5
    44934635
    4494 ac_cv_lib_mingw32_main=no
     4636ac_cv_lib_sdl_main=no
    44954637fi
    44964638rm -f conftest.err conftest.$ac_objext \
     
    44984640LIBS=$ac_check_lib_save_LIBS
    44994641fi
    4500 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
    4501 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
    4502 if test $ac_cv_lib_mingw32_main = yes; then
    4503   FOUND_mingw32=yes
    4504 fi
    4505 
    4506     if test $FOUND_mingw32 = "yes"; then
    4507         LIBS="$LIBS -lmingw32"
     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
    45084656    fi
    4509 # checking for SDL-headers
    4510 
    4511 for ac_header in SDL/SDL.h
     4657
     4658    ;;
     4659
     4660### LINUX ###
     4661 *Linux*)
     4662echo "Linux detected"
     4663
     4664 Linux="yes"
     4665
     4666# checking gl header
     4667
     4668for ac_header in GL/gl.h
    45124669do
    45134670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    46554812
    46564813else
    4657   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    4658 echo "$as_me: error: cannot find SDL headers" >&2;}
     4814  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     4815echo "$as_me: error: cannot find opengl headers" >&2;}
    46594816   { (exit 1); exit 1; }; }
    46604817fi
     
    46634820
    46644821
    4665 #checking for libSDL
    4666     echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
    4667 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
    4668 if test "${ac_cv_lib_sdlmain_main+set}" = set; then
     4822#  checking for Unix GL
     4823   echo "$as_me:$LINENO: checking for main in -lGL" >&5
     4824echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
     4825if test "${ac_cv_lib_GL_main+set}" = set; then
    46694826  echo $ECHO_N "(cached) $ECHO_C" >&6
    46704827else
    46714828  ac_check_lib_save_LIBS=$LIBS
    4672 LIBS="-lsdlmain  $LIBS"
     4829LIBS="-lGL  $LIBS"
    46734830cat >conftest.$ac_ext <<_ACEOF
    46744831/* confdefs.h.  */
     
    47094866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    47104867  (exit $ac_status); }; }; then
    4711   ac_cv_lib_sdlmain_main=yes
     4868  ac_cv_lib_GL_main=yes
    47124869else
    47134870  echo "$as_me: failed program was:" >&5
    47144871sed 's/^/| /' conftest.$ac_ext >&5
    47154872
    4716 ac_cv_lib_sdlmain_main=no
     4873ac_cv_lib_GL_main=no
    47174874fi
    47184875rm -f conftest.err conftest.$ac_objext \
     
    47204877LIBS=$ac_check_lib_save_LIBS
    47214878fi
    4722 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
    4723 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
    4724 if test $ac_cv_lib_sdlmain_main = yes; then
    4725   FOUND_sdlmain=yes
    4726 fi
    4727 
    4728     if test "$FOUND_sdlmain" = "yes" ; then
    4729         LIBS="$LIBS -lsdlmain"
    4730     else
     4879echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
     4880echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
     4881if test $ac_cv_lib_GL_main = yes; then
     4882  FOUND_GL=yes
     4883fi
     4884
     4885   if test "$FOUND_GL" = "yes" ; then
     4886     LIBS="$LIBS -lGL"
     4887   else
    47314888         echo "------------------"
    4732          echo "SDL library not found."
    4733          echo "please install the SDL library, which can be found at http://www.libsdl.org"
    4734          echo "------------------"
    4735          exit 1
    4736     fi
    4737     echo "$as_me:$LINENO: checking for main in -lsdl" >&5
    4738 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
    4739 if test "${ac_cv_lib_sdl_main+set}" = set; then
    4740   echo $ECHO_N "(cached) $ECHO_C" >&6
    4741 else
    4742   ac_check_lib_save_LIBS=$LIBS
    4743 LIBS="-lsdl  $LIBS"
    4744 cat >conftest.$ac_ext <<_ACEOF
    4745 /* confdefs.h.  */
    4746 _ACEOF
    4747 cat confdefs.h >>conftest.$ac_ext
    4748 cat >>conftest.$ac_ext <<_ACEOF
    4749 /* end confdefs.h.  */
    4750 
    4751 
    4752 int
    4753 main ()
    4754 {
    4755 main ();
    4756   ;
    4757   return 0;
    4758 }
    4759 _ACEOF
    4760 rm -f conftest.$ac_objext conftest$ac_exeext
    4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4762   (eval $ac_link) 2>conftest.er1
    4763   ac_status=$?
    4764   grep -v '^ *+' conftest.er1 >conftest.err
    4765   rm -f conftest.er1
    4766   cat conftest.err >&5
    4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4768   (exit $ac_status); } &&
    4769          { ac_try='test -z "$ac_c_werror_flag"
    4770                          || test ! -s conftest.err'
    4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4772   (eval $ac_try) 2>&5
    4773   ac_status=$?
    4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4775   (exit $ac_status); }; } &&
    4776          { ac_try='test -s conftest$ac_exeext'
    4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4778   (eval $ac_try) 2>&5
    4779   ac_status=$?
    4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4781   (exit $ac_status); }; }; then
    4782   ac_cv_lib_sdl_main=yes
    4783 else
    4784   echo "$as_me: failed program was:" >&5
    4785 sed 's/^/| /' conftest.$ac_ext >&5
    4786 
    4787 ac_cv_lib_sdl_main=no
    4788 fi
    4789 rm -f conftest.err conftest.$ac_objext \
    4790       conftest$ac_exeext conftest.$ac_ext
    4791 LIBS=$ac_check_lib_save_LIBS
    4792 fi
    4793 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
    4794 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
    4795 if test $ac_cv_lib_sdl_main = yes; then
    4796   FOUND_sdl=yes
    4797 fi
    4798 
    4799     if test "$FOUND_sdl" = "yes" ; then
    4800         LIBS="$LIBS -lsdl"
    4801     else
    4802          echo "------------------"
    4803          echo "SDL library not found."
    4804          echo "please install the SDL library, which can be found at http://www.libsdl.org"
     4889         echo "opengl not found."
     4890         echo "please install the opengl package which can be found at http://www.opengl.org"
    48054891         echo "------------------"
    48064892         exit -1
    4807     fi
    4808 
    4809     ;;
    4810 
    4811 ### LINUX ###
    4812  *Linux*)
    4813 echo "Linux detected"
    4814 
    4815  Linux="yes"
    4816 
    4817 # checking gl header (has to be here because of a Linux error)
    4818 
    4819 for ac_header in GL/gl.h
     4893   fi
     4894
     4895# cheking for GLU-header
     4896
     4897for ac_header in GL/glu.h
    48204898do
    48214899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    49715049
    49725050
    4973 #  checking for Unix GL
    4974    echo "$as_me:$LINENO: checking for main in -lGL" >&5
    4975 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
    4976 if test "${ac_cv_lib_GL_main+set}" = set; then
     5051    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
     5052echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
     5053if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
    49775054  echo $ECHO_N "(cached) $ECHO_C" >&6
    49785055else
    49795056  ac_check_lib_save_LIBS=$LIBS
    4980 LIBS="-lGL  $LIBS"
     5057LIBS="-lGLU  $LIBS"
    49815058cat >conftest.$ac_ext <<_ACEOF
    49825059/* confdefs.h.  */
     
    49865063/* end confdefs.h.  */
    49875064
    4988 
     5065/* Override any gcc2 internal prototype to avoid an error.  */
     5066#ifdef __cplusplus
     5067extern "C"
     5068#endif
     5069/* We use char because int might match the return type of a gcc2
     5070   builtin and then its argument prototype would still apply.  */
     5071char gluProject ();
    49895072int
    49905073main ()
    49915074{
    4992 main ();
     5075gluProject ();
    49935076  ;
    49945077  return 0;
     
    50175100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    50185101  (exit $ac_status); }; }; then
    5019   ac_cv_lib_GL_main=yes
     5102  ac_cv_lib_GLU_gluProject=yes
    50205103else
    50215104  echo "$as_me: failed program was:" >&5
    50225105sed 's/^/| /' conftest.$ac_ext >&5
    50235106
    5024 ac_cv_lib_GL_main=no
     5107ac_cv_lib_GLU_gluProject=no
    50255108fi
    50265109rm -f conftest.err conftest.$ac_objext \
     
    50285111LIBS=$ac_check_lib_save_LIBS
    50295112fi
    5030 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
    5031 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
    5032 if test $ac_cv_lib_GL_main = yes; then
    5033   FOUND_GL=yes
    5034 fi
    5035 
    5036    if test "$FOUND_GL" = "yes" ; then
    5037      LIBS="$LIBS -lGL"
    5038    else
     5113echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
     5114echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
     5115if test $ac_cv_lib_GLU_gluProject = yes; then
     5116  FOUND_GLU=yes
     5117fi
     5118
     5119    if test "$FOUND_GLU" = "yes" ; then
     5120      LIBS="$LIBS -lGLU"
     5121    else
    50395122         echo "------------------"
    5040          echo "opengl not found."
    5041          echo "please install the opengl package which can be found at http://www.opengl.org"
     5123         echo "GLU library not found."
     5124         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    50425125         echo "------------------"
    50435126         exit -1
    5044    fi
    5045 
    5046 # cheking for GLU-header
    5047 
    5048 for ac_header in GL/glu.h
     5127    fi
     5128
     5129# checking for SDL-headers
     5130
     5131for ac_header in SDL/SDL.h
    50495132do
    50505133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    51925275
    51935276else
    5194   { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
    5195 echo "$as_me: error: cannot find opengl headers" >&2;}
    5196    { (exit 1); exit 1; }; }
    5197 fi
    5198 
    5199 done
    5200 
    5201 
    5202     echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
    5203 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
    5204 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
    5205   echo $ECHO_N "(cached) $ECHO_C" >&6
    5206 else
    5207   ac_check_lib_save_LIBS=$LIBS
    5208 LIBS="-lGLU  $LIBS"
    5209 cat >conftest.$ac_ext <<_ACEOF
    5210 /* confdefs.h.  */
    5211 _ACEOF
    5212 cat confdefs.h >>conftest.$ac_ext
    5213 cat >>conftest.$ac_ext <<_ACEOF
    5214 /* end confdefs.h.  */
    5215 
    5216 /* Override any gcc2 internal prototype to avoid an error.  */
    5217 #ifdef __cplusplus
    5218 extern "C"
    5219 #endif
    5220 /* We use char because int might match the return type of a gcc2
    5221    builtin and then its argument prototype would still apply.  */
    5222 char gluProject ();
    5223 int
    5224 main ()
    5225 {
    5226 gluProject ();
    5227   ;
    5228   return 0;
    5229 }
    5230 _ACEOF
    5231 rm -f conftest.$ac_objext conftest$ac_exeext
    5232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5233   (eval $ac_link) 2>conftest.er1
    5234   ac_status=$?
    5235   grep -v '^ *+' conftest.er1 >conftest.err
    5236   rm -f conftest.er1
    5237   cat conftest.err >&5
    5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5239   (exit $ac_status); } &&
    5240          { ac_try='test -z "$ac_c_werror_flag"
    5241                          || test ! -s conftest.err'
    5242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5243   (eval $ac_try) 2>&5
    5244   ac_status=$?
    5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5246   (exit $ac_status); }; } &&
    5247          { ac_try='test -s conftest$ac_exeext'
    5248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5249   (eval $ac_try) 2>&5
    5250   ac_status=$?
    5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5252   (exit $ac_status); }; }; then
    5253   ac_cv_lib_GLU_gluProject=yes
    5254 else
    5255   echo "$as_me: failed program was:" >&5
    5256 sed 's/^/| /' conftest.$ac_ext >&5
    5257 
    5258 ac_cv_lib_GLU_gluProject=no
    5259 fi
    5260 rm -f conftest.err conftest.$ac_objext \
    5261       conftest$ac_exeext conftest.$ac_ext
    5262 LIBS=$ac_check_lib_save_LIBS
    5263 fi
    5264 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
    5265 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
    5266 if test $ac_cv_lib_GLU_gluProject = yes; then
    5267   FOUND_GLU=yes
    5268 fi
    5269 
    5270     if test "$FOUND_GLU" = "yes" ; then
    5271       LIBS="$LIBS -lGLU"
    5272     else
    5273          echo "------------------"
    5274          echo "GLU library not found."
    5275          echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    5276          echo "------------------"
    5277          exit -1
    5278     fi
    5279 
    5280 # checking for SDL-headers
    5281 
    5282 for ac_header in SDL/SDL.h
    5283 do
    5284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5286   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5289   echo $ECHO_N "(cached) $ECHO_C" >&6
    5290 fi
    5291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5293 else
    5294   # Is the header compilable?
    5295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5297 cat >conftest.$ac_ext <<_ACEOF
    5298 /* confdefs.h.  */
    5299 _ACEOF
    5300 cat confdefs.h >>conftest.$ac_ext
    5301 cat >>conftest.$ac_ext <<_ACEOF
    5302 /* end confdefs.h.  */
    5303 $ac_includes_default
    5304 #include <$ac_header>
    5305 _ACEOF
    5306 rm -f conftest.$ac_objext
    5307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5308   (eval $ac_compile) 2>conftest.er1
    5309   ac_status=$?
    5310   grep -v '^ *+' conftest.er1 >conftest.err
    5311   rm -f conftest.er1
    5312   cat conftest.err >&5
    5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5314   (exit $ac_status); } &&
    5315          { ac_try='test -z "$ac_c_werror_flag"
    5316                          || test ! -s conftest.err'
    5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5318   (eval $ac_try) 2>&5
    5319   ac_status=$?
    5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5321   (exit $ac_status); }; } &&
    5322          { ac_try='test -s conftest.$ac_objext'
    5323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5324   (eval $ac_try) 2>&5
    5325   ac_status=$?
    5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5327   (exit $ac_status); }; }; then
    5328   ac_header_compiler=yes
    5329 else
    5330   echo "$as_me: failed program was:" >&5
    5331 sed 's/^/| /' conftest.$ac_ext >&5
    5332 
    5333 ac_header_compiler=no
    5334 fi
    5335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5337 echo "${ECHO_T}$ac_header_compiler" >&6
    5338 
    5339 # Is the header present?
    5340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5342 cat >conftest.$ac_ext <<_ACEOF
    5343 /* confdefs.h.  */
    5344 _ACEOF
    5345 cat confdefs.h >>conftest.$ac_ext
    5346 cat >>conftest.$ac_ext <<_ACEOF
    5347 /* end confdefs.h.  */
    5348 #include <$ac_header>
    5349 _ACEOF
    5350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5352   ac_status=$?
    5353   grep -v '^ *+' conftest.er1 >conftest.err
    5354   rm -f conftest.er1
    5355   cat conftest.err >&5
    5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5357   (exit $ac_status); } >/dev/null; then
    5358   if test -s conftest.err; then
    5359     ac_cpp_err=$ac_c_preproc_warn_flag
    5360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5361   else
    5362     ac_cpp_err=
    5363   fi
    5364 else
    5365   ac_cpp_err=yes
    5366 fi
    5367 if test -z "$ac_cpp_err"; then
    5368   ac_header_preproc=yes
    5369 else
    5370   echo "$as_me: failed program was:" >&5
    5371 sed 's/^/| /' conftest.$ac_ext >&5
    5372 
    5373   ac_header_preproc=no
    5374 fi
    5375 rm -f conftest.err conftest.$ac_ext
    5376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5377 echo "${ECHO_T}$ac_header_preproc" >&6
    5378 
    5379 # So?  What about this header?
    5380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5381   yes:no: )
    5382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5386     ac_header_preproc=yes
    5387     ;;
    5388   no:yes:* )
    5389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5391     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5392 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5393     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5395     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5396 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5399     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5401     (
    5402       cat <<\_ASBOX
    5403 ## ------------------------------------------- ##
    5404 ## Report this to orxonox-dev@mail.datacore.ch ##
    5405 ## ------------------------------------------- ##
    5406 _ASBOX
    5407     ) |
    5408       sed "s/^/$as_me: WARNING:     /" >&2
    5409     ;;
    5410 esac
    5411 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5414   echo $ECHO_N "(cached) $ECHO_C" >&6
    5415 else
    5416   eval "$as_ac_Header=\$ac_header_preproc"
    5417 fi
    5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5420 
    5421 fi
    5422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    5423   cat >>confdefs.h <<_ACEOF
    5424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    5425 _ACEOF
    5426 
    5427 else
    54285277  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    54295278echo "$as_me: error: cannot find SDL headers" >&2;}
     
    55065355     fi
    55075356
    5508     ;;
    5509   *)
    5510     mingw="no"
    5511     ;;
    5512 esac
    5513 echo "$as_me:$LINENO: result: $mingw" >&5
    5514 echo "${ECHO_T}$mingw" >&6
    5515 
    5516 
    5517 #### Checking for LIBraries.
    5518 
    5519 # FIXME: Replace `main' with a function in `-lOSMesa':
     5357     # FIXME: Replace `main' with a function in `-lOSMesa':
    55205358
    55215359echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
     
    55865424fi
    55875425
    5588 # FIXME: Replace `main' with a function in `-lX11':
     5426     # FIXME: Replace `main' with a function in `-lX11':
    55895427
    55905428echo "$as_me:$LINENO: checking for main in -lX11" >&5
     
    56555493fi
    56565494
    5657 # FIXME: Replace `main' with a function in `-lXt':
     5495     # FIXME: Replace `main' with a function in `-lXt':
    56585496
    56595497echo "$as_me:$LINENO: checking for main in -lXt" >&5
     
    57245562fi
    57255563
     5564    ;;
     5565  *)
     5566    mingw="no"
     5567    ;;
     5568esac
     5569
     5570
     5571
    57265572
    57275573
    57285574#checking for pthread libs
    5729 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
     5575 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
    57305576echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
    57315577if test "${ac_cv_lib_pthread_main+set}" = set; then
     
    57895635fi
    57905636
    5791 if test "$FOUND_pthread" = "yes" ; then
     5637 if test "$FOUND_pthread" = "yes" ; then
    57925638    LIBS="$LIBS -lpthread"
    5793 fi
     5639 fi
    57945640
    57955641
Note: See TracChangeset for help on using the changeset viewer.