Changeset 4664 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Jun 23, 2005, 2:59:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r4662 r4664 5664 5664 fi 5665 5665 5666 # checking for SDL-headers 5666 # checking for SDL 5667 echo "$as_me:$LINENO: checking for SDL-version" >&5 5668 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 5669 SDL_VERSION=`sdl-config --version` 5670 echo $SDL_VERSION 5671 5672 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" 5667 5673 5668 5674 for ac_header in SDL/SDL.h … … 5812 5818 5813 5819 else 5814 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5815 echo "$as_me: error: cannot find SDL headers" >&2;} 5816 { (exit 1); exit 1; }; } 5817 fi 5818 5819 done 5820 5821 5822 # checking for SDL-lib 5823 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5824 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5825 if test "${ac_cv_lib_SDL_main+set}" = set; then 5820 5821 for ac_header in SDL.h 5822 do 5823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5824 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5825 echo "$as_me:$LINENO: checking for $ac_header" >&5 5826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5827 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5826 5828 echo $ECHO_N "(cached) $ECHO_C" >&6 5827 else 5828 ac_check_lib_save_LIBS=$LIBS 5829 LIBS="-lSDL $LIBS" 5829 fi 5830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5832 else 5833 # Is the header compilable? 5834 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5830 5836 cat >conftest.$ac_ext <<_ACEOF 5831 5837 /* confdefs.h. */ … … 5834 5840 cat >>conftest.$ac_ext <<_ACEOF 5835 5841 /* end confdefs.h. */ 5836 5837 5838 int 5839 main () 5840 { 5841 main (); 5842 ; 5843 return 0; 5844 } 5845 _ACEOF 5846 rm -f conftest.$ac_objext conftest$ac_exeext 5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5848 (eval $ac_link) 2>conftest.er1 5842 $ac_includes_default 5843 #include <$ac_header> 5844 _ACEOF 5845 rm -f conftest.$ac_objext 5846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5847 (eval $ac_compile) 2>conftest.er1 5849 5848 ac_status=$? 5850 5849 grep -v '^ *+' conftest.er1 >conftest.err … … 5860 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 5860 (exit $ac_status); }; } && 5862 { ac_try='test -s conftest $ac_exeext'5861 { ac_try='test -s conftest.$ac_objext' 5863 5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5864 5863 (eval $ac_try) 2>&5 … … 5866 5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 5866 (exit $ac_status); }; }; then 5868 ac_ cv_lib_SDL_main=yes5867 ac_header_compiler=yes 5869 5868 else 5870 5869 echo "$as_me: failed program was:" >&5 5871 5870 sed 's/^/| /' conftest.$ac_ext >&5 5872 5871 5873 ac_cv_lib_SDL_main=no 5874 fi 5875 rm -f conftest.err conftest.$ac_objext \ 5876 conftest$ac_exeext conftest.$ac_ext 5877 LIBS=$ac_check_lib_save_LIBS 5878 fi 5879 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5880 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5881 if test $ac_cv_lib_SDL_main = yes; then 5882 FOUND_SDL=yes 5883 fi 5884 5885 if test x$FOUND_SDL = xyes ; then 5886 LIBS="$LIBS -lSDL" 5887 else 5888 echo "------------------" 5889 echo "SDL library not found." 5890 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5891 echo "------------------" 5892 exit -1 5893 fi 5894 5895 5896 ## checking for SDL 5897 # SDL_VERSION=1.2.7 5898 # AM_PATH_SDL($SDL_VERSION, 5899 # :, 5900 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 5901 # ) 5902 # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5903 # LIBS="$LIBS $SDL_LIBS" 5872 ac_header_compiler=no 5873 fi 5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5876 echo "${ECHO_T}$ac_header_compiler" >&6 5877 5878 # Is the header present? 5879 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5881 cat >conftest.$ac_ext <<_ACEOF 5882 /* confdefs.h. */ 5883 _ACEOF 5884 cat confdefs.h >>conftest.$ac_ext 5885 cat >>conftest.$ac_ext <<_ACEOF 5886 /* end confdefs.h. */ 5887 #include <$ac_header> 5888 _ACEOF 5889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5891 ac_status=$? 5892 grep -v '^ *+' conftest.er1 >conftest.err 5893 rm -f conftest.er1 5894 cat conftest.err >&5 5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 (exit $ac_status); } >/dev/null; then 5897 if test -s conftest.err; then 5898 ac_cpp_err=$ac_c_preproc_warn_flag 5899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5900 else 5901 ac_cpp_err= 5902 fi 5903 else 5904 ac_cpp_err=yes 5905 fi 5906 if test -z "$ac_cpp_err"; then 5907 ac_header_preproc=yes 5908 else 5909 echo "$as_me: failed program was:" >&5 5910 sed 's/^/| /' conftest.$ac_ext >&5 5911 5912 ac_header_preproc=no 5913 fi 5914 rm -f conftest.err conftest.$ac_ext 5915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5916 echo "${ECHO_T}$ac_header_preproc" >&6 5917 5918 # So? What about this header? 5919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5920 yes:no: ) 5921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5925 ac_header_preproc=yes 5904 5926 ;; 5927 no:yes:* ) 5928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5940 ( 5941 cat <<\_ASBOX 5942 ## ---------------------------------------------- ## 5943 ## Report this to orxonox-dev at mail.datacore.ch ## 5944 ## ---------------------------------------------- ## 5945 _ASBOX 5946 ) | 5947 sed "s/^/$as_me: WARNING: /" >&2 5948 ;; 5949 esac 5950 echo "$as_me:$LINENO: checking for $ac_header" >&5 5951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5953 echo $ECHO_N "(cached) $ECHO_C" >&6 5954 else 5955 eval "$as_ac_Header=\$ac_header_preproc" 5956 fi 5957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5959 5960 fi 5961 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5962 cat >>confdefs.h <<_ACEOF 5963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5964 _ACEOF 5965 5966 else 5967 { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 5968 echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} 5969 { (exit 1); exit 1; }; } 5970 fi 5971 5972 done 5973 5974 fi 5975 5976 done 5977 5978 5979 LIBS="`sdl-config --libs` $LIBS" 5980 ;; 5981 5905 5982 #-----------# 5906 5983 # MAC -OS X #
Note: See TracChangeset
for help on using the changeset viewer.