Changeset 3682 in orxonox.OLD for orxonox/branches/textEngine/configure
- Timestamp:
- Mar 30, 2005, 9:14:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/configure
r3681 r3682 6106 6106 ## CHECKING FOR HEADERS AND LIBS ## 6107 6107 ################################### 6108 6109 #-----------# 6110 # SDL_Image # 6111 #-----------# 6112 #if test x$def_sdl_image = xyes; then 6113 # checking for SDL_image-headers 6114 6115 for ac_header in SDL/SDL_ttf.h 6116 do 6117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6118 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6119 echo "$as_me:$LINENO: checking for $ac_header" >&5 6120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6121 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6122 echo $ECHO_N "(cached) $ECHO_C" >&6 6123 fi 6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6126 else 6127 # Is the header compilable? 6128 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6130 cat >conftest.$ac_ext <<_ACEOF 6131 /* confdefs.h. */ 6132 _ACEOF 6133 cat confdefs.h >>conftest.$ac_ext 6134 cat >>conftest.$ac_ext <<_ACEOF 6135 /* end confdefs.h. */ 6136 $ac_includes_default 6137 #include <$ac_header> 6138 _ACEOF 6139 rm -f conftest.$ac_objext 6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6141 (eval $ac_compile) 2>conftest.er1 6142 ac_status=$? 6143 grep -v '^ *+' conftest.er1 >conftest.err 6144 rm -f conftest.er1 6145 cat conftest.err >&5 6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6147 (exit $ac_status); } && 6148 { ac_try='test -z "$ac_c_werror_flag" 6149 || test ! -s conftest.err' 6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6151 (eval $ac_try) 2>&5 6152 ac_status=$? 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6154 (exit $ac_status); }; } && 6155 { ac_try='test -s conftest.$ac_objext' 6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 (eval $ac_try) 2>&5 6158 ac_status=$? 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); }; }; then 6161 ac_header_compiler=yes 6162 else 6163 echo "$as_me: failed program was:" >&5 6164 sed 's/^/| /' conftest.$ac_ext >&5 6165 6166 ac_header_compiler=no 6167 fi 6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6170 echo "${ECHO_T}$ac_header_compiler" >&6 6171 6172 # Is the header present? 6173 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6175 cat >conftest.$ac_ext <<_ACEOF 6176 /* confdefs.h. */ 6177 _ACEOF 6178 cat confdefs.h >>conftest.$ac_ext 6179 cat >>conftest.$ac_ext <<_ACEOF 6180 /* end confdefs.h. */ 6181 #include <$ac_header> 6182 _ACEOF 6183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6185 ac_status=$? 6186 grep -v '^ *+' conftest.er1 >conftest.err 6187 rm -f conftest.er1 6188 cat conftest.err >&5 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6190 (exit $ac_status); } >/dev/null; then 6191 if test -s conftest.err; then 6192 ac_cpp_err=$ac_c_preproc_warn_flag 6193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6194 else 6195 ac_cpp_err= 6196 fi 6197 else 6198 ac_cpp_err=yes 6199 fi 6200 if test -z "$ac_cpp_err"; then 6201 ac_header_preproc=yes 6202 else 6203 echo "$as_me: failed program was:" >&5 6204 sed 's/^/| /' conftest.$ac_ext >&5 6205 6206 ac_header_preproc=no 6207 fi 6208 rm -f conftest.err conftest.$ac_ext 6209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6210 echo "${ECHO_T}$ac_header_preproc" >&6 6211 6212 # So? What about this header? 6213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6214 yes:no: ) 6215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6219 ac_header_preproc=yes 6220 ;; 6221 no:yes:* ) 6222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6234 ( 6235 cat <<\_ASBOX 6236 ## ---------------------------------------------- ## 6237 ## Report this to orxonox-dev at mail.datacore.ch ## 6238 ## ---------------------------------------------- ## 6239 _ASBOX 6240 ) | 6241 sed "s/^/$as_me: WARNING: /" >&2 6242 ;; 6243 esac 6244 echo "$as_me:$LINENO: checking for $ac_header" >&5 6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6247 echo $ECHO_N "(cached) $ECHO_C" >&6 6248 else 6249 eval "$as_ac_Header=\$ac_header_preproc" 6250 fi 6251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6253 6254 fi 6255 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6256 cat >>confdefs.h <<_ACEOF 6257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6258 _ACEOF 6259 6260 else 6261 echo "sdl_ttf not found. falling back to other options"; def_sdl_ttf=no 6262 fi 6263 6264 done 6265 6266 #fi 6267 #if test x$def_sdl_ttf = xyes; then 6268 # checking for SDL_ttf-lib 6269 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 6270 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 6271 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 6272 echo $ECHO_N "(cached) $ECHO_C" >&6 6273 else 6274 ac_check_lib_save_LIBS=$LIBS 6275 LIBS="-lSDL_ttf $LIBS" 6276 cat >conftest.$ac_ext <<_ACEOF 6277 /* confdefs.h. */ 6278 _ACEOF 6279 cat confdefs.h >>conftest.$ac_ext 6280 cat >>conftest.$ac_ext <<_ACEOF 6281 /* end confdefs.h. */ 6282 6283 6284 int 6285 main () 6286 { 6287 main (); 6288 ; 6289 return 0; 6290 } 6291 _ACEOF 6292 rm -f conftest.$ac_objext conftest$ac_exeext 6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6294 (eval $ac_link) 2>conftest.er1 6295 ac_status=$? 6296 grep -v '^ *+' conftest.er1 >conftest.err 6297 rm -f conftest.er1 6298 cat conftest.err >&5 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); } && 6301 { ac_try='test -z "$ac_c_werror_flag" 6302 || test ! -s conftest.err' 6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6304 (eval $ac_try) 2>&5 6305 ac_status=$? 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); }; } && 6308 { ac_try='test -s conftest$ac_exeext' 6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6310 (eval $ac_try) 2>&5 6311 ac_status=$? 6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6313 (exit $ac_status); }; }; then 6314 ac_cv_lib_SDL_ttf_main=yes 6315 else 6316 echo "$as_me: failed program was:" >&5 6317 sed 's/^/| /' conftest.$ac_ext >&5 6318 6319 ac_cv_lib_SDL_ttf_main=no 6320 fi 6321 rm -f conftest.err conftest.$ac_objext \ 6322 conftest$ac_exeext conftest.$ac_ext 6323 LIBS=$ac_check_lib_save_LIBS 6324 fi 6325 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 6326 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 6327 if test $ac_cv_lib_SDL_ttf_main = yes; then 6328 FOUND_SDL_ttf=yes 6329 fi 6330 6331 if test x$FOUND_SDL_ttf = xyes ; then 6332 LIBS="$LIBS -lSDL_ttf" 6333 else 6334 echo "------------------" 6335 echo "SDL_ttf library not found." 6336 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 6337 echo "------------------" 6338 exit -1 6339 fi 6340 #fi 6341 6108 6342 6109 6343 #-----------#
Note: See TracChangeset
for help on using the changeset viewer.