Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3682 in orxonox.OLD for orxonox/branches/textEngine/configure


Ignore:
Timestamp:
Mar 30, 2005, 9:14:35 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: configure.ac adapded, and some minor changes at glfont

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/configure

    r3681 r3682  
    61066106## CHECKING FOR HEADERS AND LIBS ##
    61076107###################################
     6108
     6109#-----------#
     6110# SDL_Image #
     6111#-----------#
     6112#if test x$def_sdl_image = xyes; then
     6113# checking for SDL_image-headers
     6114
     6115for ac_header in SDL/SDL_ttf.h
     6116do
     6117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6118if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6119  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6121if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6122  echo $ECHO_N "(cached) $ECHO_C" >&6
     6123fi
     6124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6126else
     6127  # Is the header compilable?
     6128echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6130cat >conftest.$ac_ext <<_ACEOF
     6131/* confdefs.h.  */
     6132_ACEOF
     6133cat confdefs.h >>conftest.$ac_ext
     6134cat >>conftest.$ac_ext <<_ACEOF
     6135/* end confdefs.h.  */
     6136$ac_includes_default
     6137#include <$ac_header>
     6138_ACEOF
     6139rm -f conftest.$ac_objext
     6140if { (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
     6162else
     6163  echo "$as_me: failed program was:" >&5
     6164sed 's/^/| /' conftest.$ac_ext >&5
     6165
     6166ac_header_compiler=no
     6167fi
     6168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6170echo "${ECHO_T}$ac_header_compiler" >&6
     6171
     6172# Is the header present?
     6173echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6175cat >conftest.$ac_ext <<_ACEOF
     6176/* confdefs.h.  */
     6177_ACEOF
     6178cat confdefs.h >>conftest.$ac_ext
     6179cat >>conftest.$ac_ext <<_ACEOF
     6180/* end confdefs.h.  */
     6181#include <$ac_header>
     6182_ACEOF
     6183if { (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
     6197else
     6198  ac_cpp_err=yes
     6199fi
     6200if test -z "$ac_cpp_err"; then
     6201  ac_header_preproc=yes
     6202else
     6203  echo "$as_me: failed program was:" >&5
     6204sed 's/^/| /' conftest.$ac_ext >&5
     6205
     6206  ac_header_preproc=no
     6207fi
     6208rm -f conftest.err conftest.$ac_ext
     6209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6210echo "${ECHO_T}$ac_header_preproc" >&6
     6211
     6212# So?  What about this header?
     6213case $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
     6216echo "$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
     6218echo "$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
     6223echo "$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
     6225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6227echo "$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
     6229echo "$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
     6231echo "$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
     6233echo "$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    ;;
     6243esac
     6244echo "$as_me:$LINENO: checking for $ac_header" >&5
     6245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6246if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6247  echo $ECHO_N "(cached) $ECHO_C" >&6
     6248else
     6249  eval "$as_ac_Header=\$ac_header_preproc"
     6250fi
     6251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6253
     6254fi
     6255if 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
     6260else
     6261  echo "sdl_ttf not found. falling back to other options"; def_sdl_ttf=no
     6262fi
     6263
     6264done
     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
     6270echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6
     6271if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
     6272  echo $ECHO_N "(cached) $ECHO_C" >&6
     6273else
     6274  ac_check_lib_save_LIBS=$LIBS
     6275LIBS="-lSDL_ttf  $LIBS"
     6276cat >conftest.$ac_ext <<_ACEOF
     6277/* confdefs.h.  */
     6278_ACEOF
     6279cat confdefs.h >>conftest.$ac_ext
     6280cat >>conftest.$ac_ext <<_ACEOF
     6281/* end confdefs.h.  */
     6282
     6283
     6284int
     6285main ()
     6286{
     6287main ();
     6288  ;
     6289  return 0;
     6290}
     6291_ACEOF
     6292rm -f conftest.$ac_objext conftest$ac_exeext
     6293if { (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
     6315else
     6316  echo "$as_me: failed program was:" >&5
     6317sed 's/^/| /' conftest.$ac_ext >&5
     6318
     6319ac_cv_lib_SDL_ttf_main=no
     6320fi
     6321rm -f conftest.err conftest.$ac_objext \
     6322      conftest$ac_exeext conftest.$ac_ext
     6323LIBS=$ac_check_lib_save_LIBS
     6324fi
     6325echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
     6326echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6
     6327if test $ac_cv_lib_SDL_ttf_main = yes; then
     6328  FOUND_SDL_ttf=yes
     6329fi
     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
    61086342
    61096343#-----------#
Note: See TracChangeset for help on using the changeset viewer.