Changeset 4662 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 23, 2005, 2:09:07 AM (19 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/config.h.in
r4504 r4662 47 47 #undef HAVE_OPENGL_GL_H 48 48 49 /* Define to 1 if you have the <SDL.h> header file. */50 #undef HAVE_SDL_H51 52 49 /* Define to 1 if you have the <SDL_image.h> header file. */ 53 50 #undef HAVE_SDL_IMAGE_H 51 52 /* Define to 1 if you have the <SDL/SDL.h> header file. */ 53 #undef HAVE_SDL_SDL_H 54 55 /* Define to 1 if you have the <SDL/SDL_image.h> header file. */ 56 #undef HAVE_SDL_SDL_IMAGE_H 57 58 /* Define to 1 if you have the <SDL/SDL_ttf.h> header file. */ 59 #undef HAVE_SDL_SDL_TTF_H 54 60 55 61 /* Define to 1 if you have the <SDL_ttf.h> header file. */ -
orxonox/trunk/configure
r4644 r4662 4278 4278 echo "mingw-WINDOWS detected" 4279 4279 4280 CPPFLAGS="-I/usr/include /SDL -I/mingw/include/SDL"4280 CPPFLAGS="-I/usr/include -I/mingw/include" 4281 4281 4282 4282 mingw="yes" … … 4886 4886 # checking for SDL-headers 4887 4887 4888 for ac_header in SDL .h4888 for ac_header in SDL/SDL.h 4889 4889 do 4890 4890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5193 5193 Linux="yes" 5194 5194 5195 CPPFLAGS="-I/usr/X11R6/include -I/usr/include /SDL"5195 CPPFLAGS="-I/usr/X11R6/include -I/usr/include" 5196 5196 LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 5197 5197 # checking gl header … … 5666 5666 # checking for SDL-headers 5667 5667 5668 for ac_header in SDL .h5668 for ac_header in SDL/SDL.h 5669 5669 do 5670 5670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5911 5911 osX="yes" 5912 5912 5913 CPPFLAGS="-I/sw/include -I/sw/include /SDL$CPPFLAGS"5913 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 5914 5914 # checking gl header 5915 5915 … … 6225 6225 LIBS="$LIBS -framework OpenGL" 6226 6226 6227 6228 ## SDL-check 6227 6229 SDL_CFLAGS=`sdl-config --cflags` 6228 6230 SDL_LIBS=`sdl-config --libs` … … 7029 7031 # checking for SDL_ttf-headers 7030 7032 7031 for ac_header in SDL _ttf.h7033 for ac_header in SDL/SDL_ttf.h 7032 7034 do 7033 7035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7175 7177 7176 7178 else 7177 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 7178 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 7179 { (exit 1); exit 1; }; } 7180 fi 7181 7182 done 7183 7184 #fi 7185 # checking for SDL_ttf-lib 7186 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 7187 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 7188 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 7189 echo $ECHO_N "(cached) $ECHO_C" >&6 7190 else 7191 ac_check_lib_save_LIBS=$LIBS 7192 LIBS="-lSDL_ttf $LIBS" 7193 cat >conftest.$ac_ext <<_ACEOF 7194 /* confdefs.h. */ 7195 _ACEOF 7196 cat confdefs.h >>conftest.$ac_ext 7197 cat >>conftest.$ac_ext <<_ACEOF 7198 /* end confdefs.h. */ 7199 7200 7201 int 7202 main () 7203 { 7204 main (); 7205 ; 7206 return 0; 7207 } 7208 _ACEOF 7209 rm -f conftest.$ac_objext conftest$ac_exeext 7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7211 (eval $ac_link) 2>conftest.er1 7212 ac_status=$? 7213 grep -v '^ *+' conftest.er1 >conftest.err 7214 rm -f conftest.er1 7215 cat conftest.err >&5 7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7217 (exit $ac_status); } && 7218 { ac_try='test -z "$ac_c_werror_flag" 7219 || test ! -s conftest.err' 7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7221 (eval $ac_try) 2>&5 7222 ac_status=$? 7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7224 (exit $ac_status); }; } && 7225 { ac_try='test -s conftest$ac_exeext' 7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7227 (eval $ac_try) 2>&5 7228 ac_status=$? 7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7230 (exit $ac_status); }; }; then 7231 ac_cv_lib_SDL_ttf_main=yes 7232 else 7233 echo "$as_me: failed program was:" >&5 7234 sed 's/^/| /' conftest.$ac_ext >&5 7235 7236 ac_cv_lib_SDL_ttf_main=no 7237 fi 7238 rm -f conftest.err conftest.$ac_objext \ 7239 conftest$ac_exeext conftest.$ac_ext 7240 LIBS=$ac_check_lib_save_LIBS 7241 fi 7242 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 7243 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 7244 if test $ac_cv_lib_SDL_ttf_main = yes; then 7245 FOUND_SDL_ttf=yes 7246 fi 7247 7248 if test x$FOUND_SDL_ttf = xyes ; then 7249 LIBS="$LIBS -lSDL_ttf" 7250 else 7251 echo "------------------" 7252 echo "SDL_ttf library not found." 7253 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 7254 echo "------------------" 7255 exit -1 7256 fi 7257 7258 7259 #-----------# 7260 # SDL_Image # 7261 #-----------# 7262 # checking for SDL_image-headers 7263 7264 for ac_header in SDL_image.h 7179 7180 for ac_header in SDL_ttf.h 7265 7181 do 7266 7182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7408 7324 7409 7325 else 7410 echo "sdl_image header not found."; def_sdl_image=no; exit -1 7326 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 7327 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 7328 { (exit 1); exit 1; }; } 7329 fi 7330 7331 done 7332 7333 fi 7334 7335 done 7336 7337 #fi 7338 # checking for SDL_ttf-lib 7339 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 7340 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 7341 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 7342 echo $ECHO_N "(cached) $ECHO_C" >&6 7343 else 7344 ac_check_lib_save_LIBS=$LIBS 7345 LIBS="-lSDL_ttf $LIBS" 7346 cat >conftest.$ac_ext <<_ACEOF 7347 /* confdefs.h. */ 7348 _ACEOF 7349 cat confdefs.h >>conftest.$ac_ext 7350 cat >>conftest.$ac_ext <<_ACEOF 7351 /* end confdefs.h. */ 7352 7353 7354 int 7355 main () 7356 { 7357 main (); 7358 ; 7359 return 0; 7360 } 7361 _ACEOF 7362 rm -f conftest.$ac_objext conftest$ac_exeext 7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7364 (eval $ac_link) 2>conftest.er1 7365 ac_status=$? 7366 grep -v '^ *+' conftest.er1 >conftest.err 7367 rm -f conftest.er1 7368 cat conftest.err >&5 7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7370 (exit $ac_status); } && 7371 { ac_try='test -z "$ac_c_werror_flag" 7372 || test ! -s conftest.err' 7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7374 (eval $ac_try) 2>&5 7375 ac_status=$? 7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7377 (exit $ac_status); }; } && 7378 { ac_try='test -s conftest$ac_exeext' 7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7380 (eval $ac_try) 2>&5 7381 ac_status=$? 7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 (exit $ac_status); }; }; then 7384 ac_cv_lib_SDL_ttf_main=yes 7385 else 7386 echo "$as_me: failed program was:" >&5 7387 sed 's/^/| /' conftest.$ac_ext >&5 7388 7389 ac_cv_lib_SDL_ttf_main=no 7390 fi 7391 rm -f conftest.err conftest.$ac_objext \ 7392 conftest$ac_exeext conftest.$ac_ext 7393 LIBS=$ac_check_lib_save_LIBS 7394 fi 7395 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 7396 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 7397 if test $ac_cv_lib_SDL_ttf_main = yes; then 7398 FOUND_SDL_ttf=yes 7399 fi 7400 7401 if test x$FOUND_SDL_ttf = xyes ; then 7402 LIBS="$LIBS -lSDL_ttf" 7403 else 7404 echo "------------------" 7405 echo "SDL_ttf library not found." 7406 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 7407 echo "------------------" 7408 exit -1 7409 fi 7410 7411 7412 #-----------# 7413 # SDL_Image # 7414 #-----------# 7415 # checking for SDL_image-headers 7416 7417 for ac_header in SDL_image.h 7418 do 7419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7420 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7421 echo "$as_me:$LINENO: checking for $ac_header" >&5 7422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7423 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7424 echo $ECHO_N "(cached) $ECHO_C" >&6 7425 fi 7426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7428 else 7429 # Is the header compilable? 7430 echo "$as_me:$LINENO: checking $ac_header usability" >&5 7431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7432 cat >conftest.$ac_ext <<_ACEOF 7433 /* confdefs.h. */ 7434 _ACEOF 7435 cat confdefs.h >>conftest.$ac_ext 7436 cat >>conftest.$ac_ext <<_ACEOF 7437 /* end confdefs.h. */ 7438 $ac_includes_default 7439 #include <$ac_header> 7440 _ACEOF 7441 rm -f conftest.$ac_objext 7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7443 (eval $ac_compile) 2>conftest.er1 7444 ac_status=$? 7445 grep -v '^ *+' conftest.er1 >conftest.err 7446 rm -f conftest.er1 7447 cat conftest.err >&5 7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7449 (exit $ac_status); } && 7450 { ac_try='test -z "$ac_c_werror_flag" 7451 || test ! -s conftest.err' 7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7453 (eval $ac_try) 2>&5 7454 ac_status=$? 7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7456 (exit $ac_status); }; } && 7457 { ac_try='test -s conftest.$ac_objext' 7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7459 (eval $ac_try) 2>&5 7460 ac_status=$? 7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7462 (exit $ac_status); }; }; then 7463 ac_header_compiler=yes 7464 else 7465 echo "$as_me: failed program was:" >&5 7466 sed 's/^/| /' conftest.$ac_ext >&5 7467 7468 ac_header_compiler=no 7469 fi 7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7472 echo "${ECHO_T}$ac_header_compiler" >&6 7473 7474 # Is the header present? 7475 echo "$as_me:$LINENO: checking $ac_header presence" >&5 7476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7477 cat >conftest.$ac_ext <<_ACEOF 7478 /* confdefs.h. */ 7479 _ACEOF 7480 cat confdefs.h >>conftest.$ac_ext 7481 cat >>conftest.$ac_ext <<_ACEOF 7482 /* end confdefs.h. */ 7483 #include <$ac_header> 7484 _ACEOF 7485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7487 ac_status=$? 7488 grep -v '^ *+' conftest.er1 >conftest.err 7489 rm -f conftest.er1 7490 cat conftest.err >&5 7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7492 (exit $ac_status); } >/dev/null; then 7493 if test -s conftest.err; then 7494 ac_cpp_err=$ac_c_preproc_warn_flag 7495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7496 else 7497 ac_cpp_err= 7498 fi 7499 else 7500 ac_cpp_err=yes 7501 fi 7502 if test -z "$ac_cpp_err"; then 7503 ac_header_preproc=yes 7504 else 7505 echo "$as_me: failed program was:" >&5 7506 sed 's/^/| /' conftest.$ac_ext >&5 7507 7508 ac_header_preproc=no 7509 fi 7510 rm -f conftest.err conftest.$ac_ext 7511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7512 echo "${ECHO_T}$ac_header_preproc" >&6 7513 7514 # So? What about this header? 7515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7516 yes:no: ) 7517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7521 ac_header_preproc=yes 7522 ;; 7523 no:yes:* ) 7524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7536 ( 7537 cat <<\_ASBOX 7538 ## ---------------------------------------------- ## 7539 ## Report this to orxonox-dev at mail.datacore.ch ## 7540 ## ---------------------------------------------- ## 7541 _ASBOX 7542 ) | 7543 sed "s/^/$as_me: WARNING: /" >&2 7544 ;; 7545 esac 7546 echo "$as_me:$LINENO: checking for $ac_header" >&5 7547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7548 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7549 echo $ECHO_N "(cached) $ECHO_C" >&6 7550 else 7551 eval "$as_ac_Header=\$ac_header_preproc" 7552 fi 7553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7555 7556 fi 7557 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7558 cat >>confdefs.h <<_ACEOF 7559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7560 _ACEOF 7561 7562 else 7563 7564 for ac_header in SDL/SDL_image.h 7565 do 7566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7567 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7568 echo "$as_me:$LINENO: checking for $ac_header" >&5 7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7571 echo $ECHO_N "(cached) $ECHO_C" >&6 7572 fi 7573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7575 else 7576 # Is the header compilable? 7577 echo "$as_me:$LINENO: checking $ac_header usability" >&5 7578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7579 cat >conftest.$ac_ext <<_ACEOF 7580 /* confdefs.h. */ 7581 _ACEOF 7582 cat confdefs.h >>conftest.$ac_ext 7583 cat >>conftest.$ac_ext <<_ACEOF 7584 /* end confdefs.h. */ 7585 $ac_includes_default 7586 #include <$ac_header> 7587 _ACEOF 7588 rm -f conftest.$ac_objext 7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7590 (eval $ac_compile) 2>conftest.er1 7591 ac_status=$? 7592 grep -v '^ *+' conftest.er1 >conftest.err 7593 rm -f conftest.er1 7594 cat conftest.err >&5 7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7596 (exit $ac_status); } && 7597 { ac_try='test -z "$ac_c_werror_flag" 7598 || test ! -s conftest.err' 7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7600 (eval $ac_try) 2>&5 7601 ac_status=$? 7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7603 (exit $ac_status); }; } && 7604 { ac_try='test -s conftest.$ac_objext' 7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7606 (eval $ac_try) 2>&5 7607 ac_status=$? 7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7609 (exit $ac_status); }; }; then 7610 ac_header_compiler=yes 7611 else 7612 echo "$as_me: failed program was:" >&5 7613 sed 's/^/| /' conftest.$ac_ext >&5 7614 7615 ac_header_compiler=no 7616 fi 7617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7619 echo "${ECHO_T}$ac_header_compiler" >&6 7620 7621 # Is the header present? 7622 echo "$as_me:$LINENO: checking $ac_header presence" >&5 7623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7624 cat >conftest.$ac_ext <<_ACEOF 7625 /* confdefs.h. */ 7626 _ACEOF 7627 cat confdefs.h >>conftest.$ac_ext 7628 cat >>conftest.$ac_ext <<_ACEOF 7629 /* end confdefs.h. */ 7630 #include <$ac_header> 7631 _ACEOF 7632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7634 ac_status=$? 7635 grep -v '^ *+' conftest.er1 >conftest.err 7636 rm -f conftest.er1 7637 cat conftest.err >&5 7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7639 (exit $ac_status); } >/dev/null; then 7640 if test -s conftest.err; then 7641 ac_cpp_err=$ac_c_preproc_warn_flag 7642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7643 else 7644 ac_cpp_err= 7645 fi 7646 else 7647 ac_cpp_err=yes 7648 fi 7649 if test -z "$ac_cpp_err"; then 7650 ac_header_preproc=yes 7651 else 7652 echo "$as_me: failed program was:" >&5 7653 sed 's/^/| /' conftest.$ac_ext >&5 7654 7655 ac_header_preproc=no 7656 fi 7657 rm -f conftest.err conftest.$ac_ext 7658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7659 echo "${ECHO_T}$ac_header_preproc" >&6 7660 7661 # So? What about this header? 7662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7663 yes:no: ) 7664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7668 ac_header_preproc=yes 7669 ;; 7670 no:yes:* ) 7671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7683 ( 7684 cat <<\_ASBOX 7685 ## ---------------------------------------------- ## 7686 ## Report this to orxonox-dev at mail.datacore.ch ## 7687 ## ---------------------------------------------- ## 7688 _ASBOX 7689 ) | 7690 sed "s/^/$as_me: WARNING: /" >&2 7691 ;; 7692 esac 7693 echo "$as_me:$LINENO: checking for $ac_header" >&5 7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7696 echo $ECHO_N "(cached) $ECHO_C" >&6 7697 else 7698 eval "$as_ac_Header=\$ac_header_preproc" 7699 fi 7700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7702 7703 fi 7704 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7705 cat >>confdefs.h <<_ACEOF 7706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7707 _ACEOF 7708 7709 else 7710 { { echo "$as_me:$LINENO: error: sdl_image header not found." >&5 7711 echo "$as_me: error: sdl_image header not found." >&2;} 7712 { (exit 1); exit 1; }; } 7713 fi 7714 7715 done 7716 7411 7717 fi 7412 7718 -
orxonox/trunk/configure.ac
r4644 r4662 215 215 echo "mingw-WINDOWS detected" 216 216 217 CPPFLAGS="-I/usr/include /SDL -I/mingw/include/SDL"217 CPPFLAGS="-I/usr/include -I/mingw/include" 218 218 219 219 mingw="yes" … … 261 261 fi 262 262 # checking for SDL-headers 263 AC_CHECK_HEADERS([SDL .h] ,,263 AC_CHECK_HEADERS([SDL/SDL.h] ,, 264 264 [AC_MSG_ERROR([cannot find SDL headers]) ]) 265 265 … … 295 295 Linux="yes" 296 296 297 CPPFLAGS="-I/usr/X11R6/include -I/usr/include /SDL"297 CPPFLAGS="-I/usr/X11R6/include -I/usr/include" 298 298 LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 299 299 # checking gl header … … 329 329 330 330 # checking for SDL-headers 331 AC_CHECK_HEADERS([SDL .h] ,,331 AC_CHECK_HEADERS([SDL/SDL.h] ,, 332 332 [AC_MSG_ERROR([cannot find SDL headers]) ]) 333 333 … … 362 362 osX="yes" 363 363 364 CPPFLAGS="-I/sw/include -I/sw/include /SDL$CPPFLAGS"364 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 365 365 # checking gl header 366 366 AC_CHECK_HEADERS([OpenGL/gl.h] ,, … … 372 372 LIBS="$LIBS -framework OpenGL" 373 373 374 375 ## SDL-check 374 376 SDL_CFLAGS=`sdl-config --cflags` 375 377 SDL_LIBS=`sdl-config --libs` … … 475 477 #---------# 476 478 # checking for SDL_ttf-headers 477 AC_CHECK_HEADERS([SDL _ttf.h] ,,478 [AC_ MSG_ERROR([cannot find SDL_ttf header.])])479 AC_CHECK_HEADERS([SDL/SDL_ttf.h] ,, 480 [AC_CHECK_HEADERS([SDL_ttf.h] ,,AC_MSG_ERROR([cannot find SDL_ttf header.])])) 479 481 #fi 480 482 # checking for SDL_ttf-lib … … 496 498 # checking for SDL_image-headers 497 499 AC_CHECK_HEADERS([SDL_image.h] ,, 498 [ echo "sdl_image header not found."; def_sdl_image=no; exit -1])500 [AC_CHECK_HEADERS([SDL/SDL_image.h],, AC_MSG_ERROR([sdl_image header not found.]))]) 499 501 # checking for SDL_image-lib 500 502 AC_CHECK_LIB([SDL_image], [main], [FOUND_SDL_image=yes]) … … 596 598 src/lib/gui/Makefile 597 599 src/lib/tinyxml/Makefile 598 600 src/subprojects/Makefile 599 601 src/subprojects/testmain/Makefile 600 602 src/subprojects/importer/Makefile -
orxonox/trunk/orxonox.kdevelop
r4643 r4662 165 165 </groups> 166 166 <tree> 167 <hidepatterns>*.o </hidepatterns>167 <hidepatterns>*.o,*~</hidepatterns> 168 168 <hidenonprojectfiles>false</hidenonprojectfiles> 169 169 </tree> -
orxonox/trunk/src/defs/sdlincl.h
r4381 r4662 2 2 \file sdlincl.h 3 3 \brief This file includes sdl Headers. 4 4 5 5 no Class is defined here, but the SDL Headers 6 6 */ … … 9 9 #define _SDLINCL_H 10 10 11 #include <SDL .h>11 #include <SDL/SDL.h> 12 12 13 13 #endif /* _SDLINCL_H */ -
orxonox/trunk/src/lib/event/event_def.h
r4457 r4662 1 /*! 1 /*! 2 2 \file event_def.h 3 3 \brief some central definitions … … 8 8 #define _EVENT_DEF_H 9 9 10 #ifdef HAVE_SDL_H 10 11 #include "SDL_keysym.h" 12 #else 13 #include "SDL/SDL_keysym.h" 14 #endif 11 15 #include "stdincl.h" 12 16 -
orxonox/trunk/src/lib/graphics/importer/texture.cc
r4370 r4662 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 21 21 #include "graphics_engine.h" 22 22 23 #ifdef HAVE_SDL_IMAGE_H 23 24 #include <SDL_image.h> 25 #else 26 #include <SDL/SDL_image.h> 27 #endif 24 28 25 29 /** … … 32 36 if (imageName) 33 37 this->loadImage(imageName); 34 } 38 } 35 39 36 40 /** 37 41 \brief Destructor of a Texture 38 42 39 43 Frees Data, and deletes the textures from GL 40 44 */ … … 62 66 Uint32 saved_flags; 63 67 Uint8 saved_alpha; 64 68 65 69 w = surface->w; 66 70 h = surface->h; 67 71 68 72 image = SDL_CreateRGBSurface(SDL_SWSURFACE, 69 70 73 w, h, 74 32, 71 75 #if SDL_BYTEORDER == SDL_LIL_ENDIAN /* OpenGL RGBA masks */ 72 0x000000FF, 73 0x0000FF00, 74 0x00FF0000, 75 76 0x000000FF, 77 0x0000FF00, 78 0x00FF0000, 79 0xFF000000 76 80 #else 77 78 0x00FF0000, 79 0x0000FF00, 80 81 0xFF000000, 82 0x00FF0000, 83 0x0000FF00, 84 0x000000FF 81 85 #endif 82 86 ); 83 87 if ( image == NULL ) { 84 88 return 0; 85 89 } 86 90 87 91 /* Save the alpha blending attributes */ 88 92 saved_flags = surface->flags&(SDL_SRCALPHA|SDL_RLEACCELOK); 89 93 saved_alpha = surface->format->alpha; 90 94 if ( (saved_flags & SDL_SRCALPHA) == SDL_SRCALPHA ) { 91 95 SDL_SetAlpha(surface, 0, 0); 92 96 } 93 97 94 98 /* Copy the surface into the GL texture image */ 95 99 area.x = 0; … … 98 102 area.h = surface->h; 99 103 SDL_BlitSurface(surface, &area, image, &area); 100 104 101 105 /* Restore the alpha blending attributes */ 102 106 if ( (saved_flags & SDL_SRCALPHA) == SDL_SRCALPHA ) { 103 104 107 SDL_SetAlpha(surface, saved_flags | SDL_OPENGL, saved_alpha); 108 this->bAlpha = true; 105 109 } 106 110 107 111 /* Create an OpenGL texture for the image */ 108 112 glGenTextures(1, &texture); … … 112 116 // build the Texture 113 117 glTexImage2D(GL_TEXTURE_2D, 114 115 116 117 118 119 120 118 0, 119 GL_RGBA, 120 w, h, 121 0, 122 GL_RGBA, 123 GL_UNSIGNED_BYTE, 124 image->pixels); 121 125 // build the MipMaps 122 126 gluBuild2DMipmaps(GL_TEXTURE_2D, 123 124 125 126 127 128 129 127 GL_RGBA, 128 w, 129 h, 130 GL_RGBA, 131 GL_UNSIGNED_BYTE, 132 image->pixels); 133 130 134 SDL_FreeSurface(image); /* No longer needed */ 131 135 132 136 return texture; 133 137 } … … 143 147 { 144 148 if (imageName) 145 146 147 148 149 150 151 152 153 154 155 149 { 150 SDL_Surface* tmpSurf; 151 if (this->texture) 152 glDeleteTextures(1, &this->texture); 153 // load the new Image to memory 154 tmpSurf = IMG_Load(imageName); 155 if(!tmpSurf) 156 { 157 PRINTF(1)("IMG_Load: %s\n", IMG_GetError()); 158 return false; 159 } 156 160 157 161 GLubyte* pixels = (GLubyte*)tmpSurf->pixels; 158 162 159 160 161 163 PRINTF(3)("loading Image %s\n", imageName); 164 if (tmpSurf) 165 this->texture = loadTexToGL(tmpSurf); 162 166 163 164 165 166 167 168 SDL_FreeSurface(tmpSurf); 169 return true; 170 } 167 171 else 168 169 170 171 172 { 173 PRINTF(2)("Image not Found: %s\n", imageName); 174 return false; 175 } 172 176 } 173 177 } -
orxonox/trunk/src/lib/graphics/text_engine.h
r4597 r4662 19 19 20 20 #include "glincl.h" 21 22 #ifdef HAVE_SDL_IMAGE_H 21 23 #include "SDL_ttf.h" 24 #else 25 #include "SDL/SDL_ttf.h" 26 #endif 22 27 23 28 #include "vector.h" -
orxonox/trunk/src/subprojects/framework.h
r4651 r4662 4 4 #include "vector.h" 5 5 #include "glincl.h" 6 #include "SDL_events.h"7 6 #include "debug.h" 8 7 #include "graphics_engine.h"
Note: See TracChangeset
for help on using the changeset viewer.