Changeset 3790 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Apr 13, 2005, 12:33:07 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r3789 r3790 4205 4205 echo "mingw-WINDOWS detected" 4206 4206 4207 CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL" 4208 4207 4209 mingw="yes" 4208 4210 MSBITFIELDS="-mms-bitfields" … … 4811 4813 # checking for SDL-headers 4812 4814 4813 for ac_header in SDL /SDL.h4815 for ac_header in SDL.h 4814 4816 do 4815 4817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5118 5120 Linux="yes" 5119 5121 5120 CPPFLAGS="-I/usr/X11R6/include "5122 CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL" 5121 5123 LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 5122 5124 # checking gl header … … 5591 5593 # checking for SDL-headers 5592 5594 5593 for ac_header in SDL /SDL.h5595 for ac_header in SDL.h 5594 5596 do 5595 5597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6180 6182 ################################### 6181 6183 6184 #---------# 6185 # SDL_ttf # 6186 #---------# 6187 # checking for SDL_ttf-headers 6188 6189 for ac_header in SDL_ttf.h 6190 do 6191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6192 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6193 echo "$as_me:$LINENO: checking for $ac_header" >&5 6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6196 echo $ECHO_N "(cached) $ECHO_C" >&6 6197 fi 6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6200 else 6201 # Is the header compilable? 6202 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6204 cat >conftest.$ac_ext <<_ACEOF 6205 /* confdefs.h. */ 6206 _ACEOF 6207 cat confdefs.h >>conftest.$ac_ext 6208 cat >>conftest.$ac_ext <<_ACEOF 6209 /* end confdefs.h. */ 6210 $ac_includes_default 6211 #include <$ac_header> 6212 _ACEOF 6213 rm -f conftest.$ac_objext 6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6215 (eval $ac_compile) 2>conftest.er1 6216 ac_status=$? 6217 grep -v '^ *+' conftest.er1 >conftest.err 6218 rm -f conftest.er1 6219 cat conftest.err >&5 6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6221 (exit $ac_status); } && 6222 { ac_try='test -z "$ac_c_werror_flag" 6223 || test ! -s conftest.err' 6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6225 (eval $ac_try) 2>&5 6226 ac_status=$? 6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6228 (exit $ac_status); }; } && 6229 { ac_try='test -s conftest.$ac_objext' 6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6231 (eval $ac_try) 2>&5 6232 ac_status=$? 6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6234 (exit $ac_status); }; }; then 6235 ac_header_compiler=yes 6236 else 6237 echo "$as_me: failed program was:" >&5 6238 sed 's/^/| /' conftest.$ac_ext >&5 6239 6240 ac_header_compiler=no 6241 fi 6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6244 echo "${ECHO_T}$ac_header_compiler" >&6 6245 6246 # Is the header present? 6247 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6249 cat >conftest.$ac_ext <<_ACEOF 6250 /* confdefs.h. */ 6251 _ACEOF 6252 cat confdefs.h >>conftest.$ac_ext 6253 cat >>conftest.$ac_ext <<_ACEOF 6254 /* end confdefs.h. */ 6255 #include <$ac_header> 6256 _ACEOF 6257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6259 ac_status=$? 6260 grep -v '^ *+' conftest.er1 >conftest.err 6261 rm -f conftest.er1 6262 cat conftest.err >&5 6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); } >/dev/null; then 6265 if test -s conftest.err; then 6266 ac_cpp_err=$ac_c_preproc_warn_flag 6267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6268 else 6269 ac_cpp_err= 6270 fi 6271 else 6272 ac_cpp_err=yes 6273 fi 6274 if test -z "$ac_cpp_err"; then 6275 ac_header_preproc=yes 6276 else 6277 echo "$as_me: failed program was:" >&5 6278 sed 's/^/| /' conftest.$ac_ext >&5 6279 6280 ac_header_preproc=no 6281 fi 6282 rm -f conftest.err conftest.$ac_ext 6283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6284 echo "${ECHO_T}$ac_header_preproc" >&6 6285 6286 # So? What about this header? 6287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6288 yes:no: ) 6289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6293 ac_header_preproc=yes 6294 ;; 6295 no:yes:* ) 6296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6308 ( 6309 cat <<\_ASBOX 6310 ## ---------------------------------------------- ## 6311 ## Report this to orxonox-dev at mail.datacore.ch ## 6312 ## ---------------------------------------------- ## 6313 _ASBOX 6314 ) | 6315 sed "s/^/$as_me: WARNING: /" >&2 6316 ;; 6317 esac 6318 echo "$as_me:$LINENO: checking for $ac_header" >&5 6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6320 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6321 echo $ECHO_N "(cached) $ECHO_C" >&6 6322 else 6323 eval "$as_ac_Header=\$ac_header_preproc" 6324 fi 6325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6327 6328 fi 6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6330 cat >>confdefs.h <<_ACEOF 6331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6332 _ACEOF 6333 6334 else 6335 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 6336 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 6337 { (exit 1); exit 1; }; } 6338 fi 6339 6340 done 6341 6342 #fi 6343 # checking for SDL_ttf-lib 6344 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 6345 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 6346 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 6347 echo $ECHO_N "(cached) $ECHO_C" >&6 6348 else 6349 ac_check_lib_save_LIBS=$LIBS 6350 LIBS="-lSDL_ttf $LIBS" 6351 cat >conftest.$ac_ext <<_ACEOF 6352 /* confdefs.h. */ 6353 _ACEOF 6354 cat confdefs.h >>conftest.$ac_ext 6355 cat >>conftest.$ac_ext <<_ACEOF 6356 /* end confdefs.h. */ 6357 6358 6359 int 6360 main () 6361 { 6362 main (); 6363 ; 6364 return 0; 6365 } 6366 _ACEOF 6367 rm -f conftest.$ac_objext conftest$ac_exeext 6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6369 (eval $ac_link) 2>conftest.er1 6370 ac_status=$? 6371 grep -v '^ *+' conftest.er1 >conftest.err 6372 rm -f conftest.er1 6373 cat conftest.err >&5 6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6375 (exit $ac_status); } && 6376 { ac_try='test -z "$ac_c_werror_flag" 6377 || test ! -s conftest.err' 6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6379 (eval $ac_try) 2>&5 6380 ac_status=$? 6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6382 (exit $ac_status); }; } && 6383 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 6389 ac_cv_lib_SDL_ttf_main=yes 6390 else 6391 echo "$as_me: failed program was:" >&5 6392 sed 's/^/| /' conftest.$ac_ext >&5 6393 6394 ac_cv_lib_SDL_ttf_main=no 6395 fi 6396 rm -f conftest.err conftest.$ac_objext \ 6397 conftest$ac_exeext conftest.$ac_ext 6398 LIBS=$ac_check_lib_save_LIBS 6399 fi 6400 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 6401 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 6402 if test $ac_cv_lib_SDL_ttf_main = yes; then 6403 FOUND_SDL_ttf=yes 6404 fi 6405 6406 if test x$FOUND_SDL_ttf = xyes ; then 6407 LIBS="$LIBS -lSDL_ttf" 6408 else 6409 echo "------------------" 6410 echo "SDL_ttf library not found." 6411 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 6412 echo "------------------" 6413 exit -1 6414 fi 6415 6182 6416 #-----------# 6183 6417 # SDL_Image # … … 6186 6420 # checking for SDL_image-headers 6187 6421 6188 for ac_header in SDL /SDL_image.h6422 for ac_header in SDL_image.h 6189 6423 do 6190 6424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Note: See TracChangeset
for help on using the changeset viewer.