Changeset 2190 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Jul 17, 2004, 12:11:20 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r2018 r2190 1730 1730 case `uname` in 1731 1731 *MINGW*) 1732 mingw= yes1732 mingw="yes" 1733 1733 MSBITFIELDS="-mms-bitfields" 1734 MWINDOWS="-mwindows" 1734 1735 ;; 1735 1736 *) 1736 mingw= no1737 mingw="no" 1737 1738 ;; 1738 1739 esac … … 4900 4901 fi 4901 4902 fi 4903 4904 ## mingw CHECK 4905 if test $mingw = yes ; then 4906 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4907 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4908 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4909 echo $ECHO_N "(cached) $ECHO_C" >&6 4910 else 4911 ac_check_lib_save_LIBS=$LIBS 4912 LIBS="-lmingw32 $LIBS" 4913 cat >conftest.$ac_ext <<_ACEOF 4914 /* confdefs.h. */ 4915 _ACEOF 4916 cat confdefs.h >>conftest.$ac_ext 4917 cat >>conftest.$ac_ext <<_ACEOF 4918 /* end confdefs.h. */ 4919 4920 4921 int 4922 main () 4923 { 4924 main (); 4925 ; 4926 return 0; 4927 } 4928 _ACEOF 4929 rm -f conftest.$ac_objext conftest$ac_exeext 4930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4931 (eval $ac_link) 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && 4938 { ac_try='test -z "$ac_c_werror_flag" 4939 || test ! -s conftest.err' 4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4941 (eval $ac_try) 2>&5 4942 ac_status=$? 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); }; } && 4945 { ac_try='test -s conftest$ac_exeext' 4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4947 (eval $ac_try) 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; }; then 4951 ac_cv_lib_mingw32_main=yes 4952 else 4953 echo "$as_me: failed program was:" >&5 4954 sed 's/^/| /' conftest.$ac_ext >&5 4955 4956 ac_cv_lib_mingw32_main=no 4957 fi 4958 rm -f conftest.err conftest.$ac_objext \ 4959 conftest$ac_exeext conftest.$ac_ext 4960 LIBS=$ac_check_lib_save_LIBS 4961 fi 4962 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4963 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4964 if test $ac_cv_lib_mingw32_main = yes; then 4965 FOUND_mingw32=yes 4966 fi 4967 4968 if test $FOUND_mingw32 = "yes"; then 4969 LIBS="$LIBS -lmingw32" 4970 fi 4971 fi 4972 4973 ## SDL CHECK 4974 4975 #checking for SDL libs 4976 4977 for ac_header in SDL/SDL.h 4978 do 4979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4980 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4981 echo "$as_me:$LINENO: checking for $ac_header" >&5 4982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4983 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4984 echo $ECHO_N "(cached) $ECHO_C" >&6 4985 fi 4986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4988 else 4989 # Is the header compilable? 4990 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4992 cat >conftest.$ac_ext <<_ACEOF 4993 /* confdefs.h. */ 4994 _ACEOF 4995 cat confdefs.h >>conftest.$ac_ext 4996 cat >>conftest.$ac_ext <<_ACEOF 4997 /* end confdefs.h. */ 4998 $ac_includes_default 4999 #include <$ac_header> 5000 _ACEOF 5001 rm -f conftest.$ac_objext 5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5003 (eval $ac_compile) 2>conftest.er1 5004 ac_status=$? 5005 grep -v '^ *+' conftest.er1 >conftest.err 5006 rm -f conftest.er1 5007 cat conftest.err >&5 5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 (exit $ac_status); } && 5010 { ac_try='test -z "$ac_c_werror_flag" 5011 || test ! -s conftest.err' 5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5013 (eval $ac_try) 2>&5 5014 ac_status=$? 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); }; } && 5017 { ac_try='test -s conftest.$ac_objext' 5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); }; }; then 5023 ac_header_compiler=yes 5024 else 5025 echo "$as_me: failed program was:" >&5 5026 sed 's/^/| /' conftest.$ac_ext >&5 5027 5028 ac_header_compiler=no 5029 fi 5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5032 echo "${ECHO_T}$ac_header_compiler" >&6 5033 5034 # Is the header present? 5035 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5037 cat >conftest.$ac_ext <<_ACEOF 5038 /* confdefs.h. */ 5039 _ACEOF 5040 cat confdefs.h >>conftest.$ac_ext 5041 cat >>conftest.$ac_ext <<_ACEOF 5042 /* end confdefs.h. */ 5043 #include <$ac_header> 5044 _ACEOF 5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5047 ac_status=$? 5048 grep -v '^ *+' conftest.er1 >conftest.err 5049 rm -f conftest.er1 5050 cat conftest.err >&5 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); } >/dev/null; then 5053 if test -s conftest.err; then 5054 ac_cpp_err=$ac_c_preproc_warn_flag 5055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5056 else 5057 ac_cpp_err= 5058 fi 5059 else 5060 ac_cpp_err=yes 5061 fi 5062 if test -z "$ac_cpp_err"; then 5063 ac_header_preproc=yes 5064 else 5065 echo "$as_me: failed program was:" >&5 5066 sed 's/^/| /' conftest.$ac_ext >&5 5067 5068 ac_header_preproc=no 5069 fi 5070 rm -f conftest.err conftest.$ac_ext 5071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5072 echo "${ECHO_T}$ac_header_preproc" >&6 5073 5074 # So? What about this header? 5075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5076 yes:no: ) 5077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5081 ac_header_preproc=yes 5082 ;; 5083 no:yes:* ) 5084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5096 ( 5097 cat <<\_ASBOX 5098 ## ------------------------------------------- ## 5099 ## Report this to orxonox-dev@mail.datacore.ch ## 5100 ## ------------------------------------------- ## 5101 _ASBOX 5102 ) | 5103 sed "s/^/$as_me: WARNING: /" >&2 5104 ;; 5105 esac 5106 echo "$as_me:$LINENO: checking for $ac_header" >&5 5107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5108 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5109 echo $ECHO_N "(cached) $ECHO_C" >&6 5110 else 5111 eval "$as_ac_Header=\$ac_header_preproc" 5112 fi 5113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5115 5116 fi 5117 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5118 cat >>confdefs.h <<_ACEOF 5119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5120 _ACEOF 5121 5122 else 5123 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5124 echo "$as_me: error: cannot find SDL headers" >&2;} 5125 { (exit 1); exit 1; }; } 5126 fi 5127 5128 done 5129 5130 if test $mingw = no ; then 5131 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5132 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5133 if test "${ac_cv_lib_SDL_main+set}" = set; then 5134 echo $ECHO_N "(cached) $ECHO_C" >&6 5135 else 5136 ac_check_lib_save_LIBS=$LIBS 5137 LIBS="-lSDL $LIBS" 5138 cat >conftest.$ac_ext <<_ACEOF 5139 /* confdefs.h. */ 5140 _ACEOF 5141 cat confdefs.h >>conftest.$ac_ext 5142 cat >>conftest.$ac_ext <<_ACEOF 5143 /* end confdefs.h. */ 5144 5145 5146 int 5147 main () 5148 { 5149 main (); 5150 ; 5151 return 0; 5152 } 5153 _ACEOF 5154 rm -f conftest.$ac_objext conftest$ac_exeext 5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5156 (eval $ac_link) 2>conftest.er1 5157 ac_status=$? 5158 grep -v '^ *+' conftest.er1 >conftest.err 5159 rm -f conftest.er1 5160 cat conftest.err >&5 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5162 (exit $ac_status); } && 5163 { ac_try='test -z "$ac_c_werror_flag" 5164 || test ! -s conftest.err' 5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5166 (eval $ac_try) 2>&5 5167 ac_status=$? 5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5169 (exit $ac_status); }; } && 5170 { ac_try='test -s conftest$ac_exeext' 5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5172 (eval $ac_try) 2>&5 5173 ac_status=$? 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5175 (exit $ac_status); }; }; then 5176 ac_cv_lib_SDL_main=yes 5177 else 5178 echo "$as_me: failed program was:" >&5 5179 sed 's/^/| /' conftest.$ac_ext >&5 5180 5181 ac_cv_lib_SDL_main=no 5182 fi 5183 rm -f conftest.err conftest.$ac_objext \ 5184 conftest$ac_exeext conftest.$ac_ext 5185 LIBS=$ac_check_lib_save_LIBS 5186 fi 5187 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5188 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5189 if test $ac_cv_lib_SDL_main = yes; then 5190 FOUND_SDL=yes 5191 fi 5192 5193 if test "$FOUND_SDL" = "yes" ; then 5194 LIBS="$LIBS -lSDL" 5195 fi 5196 # checking for Windows sdl library 5197 else 5198 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 5199 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 5200 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 5201 echo $ECHO_N "(cached) $ECHO_C" >&6 5202 else 5203 ac_check_lib_save_LIBS=$LIBS 5204 LIBS="-lsdlmain $LIBS" 5205 cat >conftest.$ac_ext <<_ACEOF 5206 /* confdefs.h. */ 5207 _ACEOF 5208 cat confdefs.h >>conftest.$ac_ext 5209 cat >>conftest.$ac_ext <<_ACEOF 5210 /* end confdefs.h. */ 5211 5212 5213 int 5214 main () 5215 { 5216 main (); 5217 ; 5218 return 0; 5219 } 5220 _ACEOF 5221 rm -f conftest.$ac_objext conftest$ac_exeext 5222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5223 (eval $ac_link) 2>conftest.er1 5224 ac_status=$? 5225 grep -v '^ *+' conftest.er1 >conftest.err 5226 rm -f conftest.er1 5227 cat conftest.err >&5 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 (exit $ac_status); } && 5230 { ac_try='test -z "$ac_c_werror_flag" 5231 || test ! -s conftest.err' 5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5233 (eval $ac_try) 2>&5 5234 ac_status=$? 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); }; } && 5237 { ac_try='test -s conftest$ac_exeext' 5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5239 (eval $ac_try) 2>&5 5240 ac_status=$? 5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); }; }; then 5243 ac_cv_lib_sdlmain_main=yes 5244 else 5245 echo "$as_me: failed program was:" >&5 5246 sed 's/^/| /' conftest.$ac_ext >&5 5247 5248 ac_cv_lib_sdlmain_main=no 5249 fi 5250 rm -f conftest.err conftest.$ac_objext \ 5251 conftest$ac_exeext conftest.$ac_ext 5252 LIBS=$ac_check_lib_save_LIBS 5253 fi 5254 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 5255 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 5256 if test $ac_cv_lib_sdlmain_main = yes; then 5257 FOUND_sdlmain=yes 5258 fi 5259 5260 if test "$FOUND_sdlmain" = "yes" ; then 5261 LIBS="$LIBS -lsdlmain" 5262 fi 5263 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 5264 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 5265 if test "${ac_cv_lib_sdl_main+set}" = set; then 5266 echo $ECHO_N "(cached) $ECHO_C" >&6 5267 else 5268 ac_check_lib_save_LIBS=$LIBS 5269 LIBS="-lsdl $LIBS" 5270 cat >conftest.$ac_ext <<_ACEOF 5271 /* confdefs.h. */ 5272 _ACEOF 5273 cat confdefs.h >>conftest.$ac_ext 5274 cat >>conftest.$ac_ext <<_ACEOF 5275 /* end confdefs.h. */ 5276 5277 5278 int 5279 main () 5280 { 5281 main (); 5282 ; 5283 return 0; 5284 } 5285 _ACEOF 5286 rm -f conftest.$ac_objext conftest$ac_exeext 5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5288 (eval $ac_link) 2>conftest.er1 5289 ac_status=$? 5290 grep -v '^ *+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } && 5295 { ac_try='test -z "$ac_c_werror_flag" 5296 || test ! -s conftest.err' 5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5298 (eval $ac_try) 2>&5 5299 ac_status=$? 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); }; } && 5302 { ac_try='test -s conftest$ac_exeext' 5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5304 (eval $ac_try) 2>&5 5305 ac_status=$? 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5307 (exit $ac_status); }; }; then 5308 ac_cv_lib_sdl_main=yes 5309 else 5310 echo "$as_me: failed program was:" >&5 5311 sed 's/^/| /' conftest.$ac_ext >&5 5312 5313 ac_cv_lib_sdl_main=no 5314 fi 5315 rm -f conftest.err conftest.$ac_objext \ 5316 conftest$ac_exeext conftest.$ac_ext 5317 LIBS=$ac_check_lib_save_LIBS 5318 fi 5319 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 5320 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 5321 if test $ac_cv_lib_sdl_main = yes; then 5322 FOUND_sdl=yes 5323 fi 5324 5325 if test "$FOUND_sdl" = "yes" ; then 5326 LIBS="$LIBS -lsdl" 5327 fi 5328 fi 5329 5330 #checking for pthread libs 5331 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 5332 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 5333 if test "${ac_cv_lib_pthread_main+set}" = set; then 5334 echo $ECHO_N "(cached) $ECHO_C" >&6 5335 else 5336 ac_check_lib_save_LIBS=$LIBS 5337 LIBS="-lpthread $LIBS" 5338 cat >conftest.$ac_ext <<_ACEOF 5339 /* confdefs.h. */ 5340 _ACEOF 5341 cat confdefs.h >>conftest.$ac_ext 5342 cat >>conftest.$ac_ext <<_ACEOF 5343 /* end confdefs.h. */ 5344 5345 5346 int 5347 main () 5348 { 5349 main (); 5350 ; 5351 return 0; 5352 } 5353 _ACEOF 5354 rm -f conftest.$ac_objext conftest$ac_exeext 5355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5356 (eval $ac_link) 2>conftest.er1 5357 ac_status=$? 5358 grep -v '^ *+' conftest.er1 >conftest.err 5359 rm -f conftest.er1 5360 cat conftest.err >&5 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); } && 5363 { ac_try='test -z "$ac_c_werror_flag" 5364 || test ! -s conftest.err' 5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5366 (eval $ac_try) 2>&5 5367 ac_status=$? 5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5369 (exit $ac_status); }; } && 5370 { ac_try='test -s conftest$ac_exeext' 5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5372 (eval $ac_try) 2>&5 5373 ac_status=$? 5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5375 (exit $ac_status); }; }; then 5376 ac_cv_lib_pthread_main=yes 5377 else 5378 echo "$as_me: failed program was:" >&5 5379 sed 's/^/| /' conftest.$ac_ext >&5 5380 5381 ac_cv_lib_pthread_main=no 5382 fi 5383 rm -f conftest.err conftest.$ac_objext \ 5384 conftest$ac_exeext conftest.$ac_ext 5385 LIBS=$ac_check_lib_save_LIBS 5386 fi 5387 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 5388 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 5389 if test $ac_cv_lib_pthread_main = yes; then 5390 FOUND_pthread=yes 5391 fi 5392 5393 if test "$FOUND_pthread" = "yes" ; then 5394 LIBS="$LIBS -lpthread" 5395 fi 5396 5397 5398 4902 5399 4903 5400 # FIXME: Replace `main' with a function in `-lm':
Note: See TracChangeset
for help on using the changeset viewer.