[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[5502] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.3.2_alpha. |
---|
[1956] | 4 | # |
---|
[3240] | 5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 6 | # |
---|
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
[1853] | 13 | |
---|
[1956] | 14 | # Be Bourne compatible |
---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 22 | set -o posix |
---|
| 23 | fi |
---|
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[1853] | 25 | |
---|
[1956] | 26 | # Support unset when possible. |
---|
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
[1853] | 32 | |
---|
| 33 | |
---|
[1956] | 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
[1853] | 39 | |
---|
[1956] | 40 | # NLS nuisances. |
---|
| 41 | for as_var in \ |
---|
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 44 | LC_TELEPHONE LC_TIME |
---|
| 45 | do |
---|
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 47 | eval $as_var=C; export $as_var |
---|
| 48 | else |
---|
| 49 | $as_unset $as_var |
---|
| 50 | fi |
---|
| 51 | done |
---|
[1853] | 52 | |
---|
[1956] | 53 | # Required to use basename. |
---|
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 55 | as_expr=expr |
---|
| 56 | else |
---|
| 57 | as_expr=false |
---|
| 58 | fi |
---|
[1853] | 59 | |
---|
[1956] | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 61 | as_basename=basename |
---|
| 62 | else |
---|
| 63 | as_basename=false |
---|
| 64 | fi |
---|
[1853] | 65 | |
---|
[1956] | 66 | |
---|
| 67 | # Name of the executable. |
---|
| 68 | as_me=`$as_basename "$0" || |
---|
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 70 | X"$0" : 'X\(//\)$' \| \ |
---|
| 71 | X"$0" : 'X\(/\)$' \| \ |
---|
| 72 | . : '\(.\)' 2>/dev/null || |
---|
| 73 | echo X/"$0" | |
---|
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 77 | s/.*/./; q'` |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 81 | # Avoid depending upon Character Ranges. |
---|
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 85 | as_cr_digits='0123456789' |
---|
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 87 | |
---|
| 88 | # The user is always right. |
---|
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 90 | echo "#! /bin/sh" >conf$$.sh |
---|
| 91 | echo "exit 0" >>conf$$.sh |
---|
| 92 | chmod +x conf$$.sh |
---|
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 94 | PATH_SEPARATOR=';' |
---|
| 95 | else |
---|
| 96 | PATH_SEPARATOR=: |
---|
| 97 | fi |
---|
| 98 | rm -f conf$$.sh |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | as_lineno_1=$LINENO |
---|
| 103 | as_lineno_2=$LINENO |
---|
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 107 | # Find who we are. Look in the path if we contain no path at all |
---|
| 108 | # relative or not. |
---|
| 109 | case $0 in |
---|
| 110 | *[\\/]* ) as_myself=$0 ;; |
---|
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 112 | for as_dir in $PATH |
---|
| 113 | do |
---|
| 114 | IFS=$as_save_IFS |
---|
| 115 | test -z "$as_dir" && as_dir=. |
---|
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 117 | done |
---|
| 118 | |
---|
| 119 | ;; |
---|
| 120 | esac |
---|
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 122 | # in which case we are not to be found in the path. |
---|
| 123 | if test "x$as_myself" = x; then |
---|
| 124 | as_myself=$0 |
---|
| 125 | fi |
---|
| 126 | if test ! -f "$as_myself"; then |
---|
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 128 | { (exit 1); exit 1; }; } |
---|
| 129 | fi |
---|
| 130 | case $CONFIG_SHELL in |
---|
| 131 | '') |
---|
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 134 | do |
---|
| 135 | IFS=$as_save_IFS |
---|
| 136 | test -z "$as_dir" && as_dir=. |
---|
| 137 | for as_base in sh bash ksh sh5; do |
---|
| 138 | case $as_dir in |
---|
| 139 | /*) |
---|
| 140 | if ("$as_dir/$as_base" -c ' |
---|
| 141 | as_lineno_1=$LINENO |
---|
| 142 | as_lineno_2=$LINENO |
---|
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 148 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 149 | export CONFIG_SHELL |
---|
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 151 | fi;; |
---|
| 152 | esac |
---|
| 153 | done |
---|
| 154 | done |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 160 | # line-number line before each line; the second 'sed' does the real |
---|
| 161 | # work. The second script uses 'N' to pair each line-number line |
---|
| 162 | # with the numbered line, and appends trailing '-' during |
---|
| 163 | # substitution so that $LINENO is not a special case at line end. |
---|
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 166 | sed '=' <$as_myself | |
---|
| 167 | sed ' |
---|
| 168 | N |
---|
| 169 | s,$,-, |
---|
| 170 | : loop |
---|
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 172 | t loop |
---|
| 173 | s,-$,, |
---|
| 174 | s,^['$as_cr_digits']*\n,, |
---|
| 175 | ' >$as_me.lineno && |
---|
| 176 | chmod +x $as_me.lineno || |
---|
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 178 | { (exit 1); exit 1; }; } |
---|
| 179 | |
---|
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 181 | # (the dirname of $[0] is not the place where we might find the |
---|
| 182 | # original and so on. Autoconf is especially sensible to this). |
---|
| 183 | . ./$as_me.lineno |
---|
| 184 | # Exit status is that of the last command. |
---|
| 185 | exit |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 191 | ' ECHO_T=' ' ;; |
---|
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 194 | esac |
---|
| 195 | |
---|
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 197 | as_expr=expr |
---|
[1853] | 198 | else |
---|
[1956] | 199 | as_expr=false |
---|
[1853] | 200 | fi |
---|
| 201 | |
---|
[1956] | 202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 203 | echo >conf$$.file |
---|
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 207 | if test -f conf$$.exe; then |
---|
| 208 | # Don't use ln at all; we don't have any links |
---|
| 209 | as_ln_s='cp -p' |
---|
| 210 | else |
---|
| 211 | as_ln_s='ln -s' |
---|
| 212 | fi |
---|
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 214 | as_ln_s=ln |
---|
| 215 | else |
---|
| 216 | as_ln_s='cp -p' |
---|
[1853] | 217 | fi |
---|
[1956] | 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[1853] | 219 | |
---|
[1956] | 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
| 223 | test -d ./-p && rmdir ./-p |
---|
| 224 | as_mkdir_p=false |
---|
| 225 | fi |
---|
[1853] | 226 | |
---|
[1956] | 227 | as_executable_p="test -f" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
---|
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 231 | |
---|
| 232 | # Sed expression to map a string onto a valid variable name. |
---|
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | # IFS |
---|
| 237 | # We need space, tab and new line, in precisely that order. |
---|
| 238 | as_nl=' |
---|
| 239 | ' |
---|
| 240 | IFS=" $as_nl" |
---|
| 241 | |
---|
| 242 | # CDPATH. |
---|
| 243 | $as_unset CDPATH |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | # Name of the host. |
---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 248 | # so uname gets run too. |
---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 250 | |
---|
| 251 | exec 6>&1 |
---|
| 252 | |
---|
| 253 | # |
---|
| 254 | # Initializations. |
---|
| 255 | # |
---|
| 256 | ac_default_prefix=/usr/local |
---|
| 257 | ac_config_libobj_dir=. |
---|
| 258 | cross_compiling=no |
---|
| 259 | subdirs= |
---|
| 260 | MFLAGS= |
---|
| 261 | MAKEFLAGS= |
---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 263 | |
---|
| 264 | # Maximum number of lines to put in a shell here document. |
---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
---|
| 266 | # only ac_max_sed_lines should be used. |
---|
| 267 | : ${ac_max_here_lines=38} |
---|
| 268 | |
---|
| 269 | # Identity of this package. |
---|
| 270 | PACKAGE_NAME='orxonox' |
---|
| 271 | PACKAGE_TARNAME='orxonox' |
---|
[5502] | 272 | PACKAGE_VERSION='0.3.2_alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.3.2_alpha' |
---|
[3240] | 274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
[1956] | 275 | |
---|
| 276 | ac_unique_file="." |
---|
| 277 | # Factoring default headers for most tests. |
---|
| 278 | ac_includes_default="\ |
---|
| 279 | #include <stdio.h> |
---|
| 280 | #if HAVE_SYS_TYPES_H |
---|
| 281 | # include <sys/types.h> |
---|
| 282 | #endif |
---|
| 283 | #if HAVE_SYS_STAT_H |
---|
| 284 | # include <sys/stat.h> |
---|
| 285 | #endif |
---|
| 286 | #if STDC_HEADERS |
---|
| 287 | # include <stdlib.h> |
---|
| 288 | # include <stddef.h> |
---|
| 289 | #else |
---|
| 290 | # if HAVE_STDLIB_H |
---|
| 291 | # include <stdlib.h> |
---|
| 292 | # endif |
---|
| 293 | #endif |
---|
| 294 | #if HAVE_STRING_H |
---|
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 296 | # include <memory.h> |
---|
| 297 | # endif |
---|
| 298 | # include <string.h> |
---|
| 299 | #endif |
---|
| 300 | #if HAVE_STRINGS_H |
---|
| 301 | # include <strings.h> |
---|
| 302 | #endif |
---|
| 303 | #if HAVE_INTTYPES_H |
---|
| 304 | # include <inttypes.h> |
---|
| 305 | #else |
---|
| 306 | # if HAVE_STDINT_H |
---|
| 307 | # include <stdint.h> |
---|
| 308 | # endif |
---|
| 309 | #endif |
---|
| 310 | #if HAVE_UNISTD_H |
---|
| 311 | # include <unistd.h> |
---|
| 312 | #endif" |
---|
| 313 | |
---|
[5475] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' |
---|
[1956] | 315 | ac_subst_files='' |
---|
| 316 | |
---|
| 317 | # Initialize some variables set by options. |
---|
| 318 | ac_init_help= |
---|
| 319 | ac_init_version=false |
---|
| 320 | # The variables have the same names as the options, with |
---|
| 321 | # dashes changed to underlines. |
---|
| 322 | cache_file=/dev/null |
---|
| 323 | exec_prefix=NONE |
---|
| 324 | no_create= |
---|
| 325 | no_recursion= |
---|
| 326 | prefix=NONE |
---|
| 327 | program_prefix=NONE |
---|
| 328 | program_suffix=NONE |
---|
| 329 | program_transform_name=s,x,x, |
---|
| 330 | silent= |
---|
| 331 | site= |
---|
| 332 | srcdir= |
---|
| 333 | verbose= |
---|
| 334 | x_includes=NONE |
---|
| 335 | x_libraries=NONE |
---|
| 336 | |
---|
| 337 | # Installation directory options. |
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 340 | # by default will actually change. |
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 342 | bindir='${exec_prefix}/bin' |
---|
| 343 | sbindir='${exec_prefix}/sbin' |
---|
| 344 | libexecdir='${exec_prefix}/libexec' |
---|
| 345 | datadir='${prefix}/share' |
---|
| 346 | sysconfdir='${prefix}/etc' |
---|
| 347 | sharedstatedir='${prefix}/com' |
---|
| 348 | localstatedir='${prefix}/var' |
---|
| 349 | libdir='${exec_prefix}/lib' |
---|
| 350 | includedir='${prefix}/include' |
---|
| 351 | oldincludedir='/usr/include' |
---|
| 352 | infodir='${prefix}/info' |
---|
| 353 | mandir='${prefix}/man' |
---|
| 354 | |
---|
| 355 | ac_prev= |
---|
| 356 | for ac_option |
---|
| 357 | do |
---|
| 358 | # If the previous option needs an argument, assign it. |
---|
| 359 | if test -n "$ac_prev"; then |
---|
| 360 | eval "$ac_prev=\$ac_option" |
---|
| 361 | ac_prev= |
---|
| 362 | continue |
---|
| 363 | fi |
---|
| 364 | |
---|
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 366 | |
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 368 | |
---|
| 369 | case $ac_option in |
---|
| 370 | |
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 372 | ac_prev=bindir ;; |
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 374 | bindir=$ac_optarg ;; |
---|
| 375 | |
---|
| 376 | -build | --build | --buil | --bui | --bu) |
---|
| 377 | ac_prev=build_alias ;; |
---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 379 | build_alias=$ac_optarg ;; |
---|
| 380 | |
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 383 | ac_prev=cache_file ;; |
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 386 | cache_file=$ac_optarg ;; |
---|
| 387 | |
---|
| 388 | --config-cache | -C) |
---|
| 389 | cache_file=config.cache ;; |
---|
| 390 | |
---|
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 392 | ac_prev=datadir ;; |
---|
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 394 | | --da=*) |
---|
| 395 | datadir=$ac_optarg ;; |
---|
| 396 | |
---|
| 397 | -disable-* | --disable-*) |
---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 399 | # Reject names that are not valid shell variable names. |
---|
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 402 | { (exit 1); exit 1; }; } |
---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 404 | eval "enable_$ac_feature=no" ;; |
---|
| 405 | |
---|
| 406 | -enable-* | --enable-*) |
---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 408 | # Reject names that are not valid shell variable names. |
---|
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 411 | { (exit 1); exit 1; }; } |
---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 413 | case $ac_option in |
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 415 | *) ac_optarg=yes ;; |
---|
| 416 | esac |
---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 418 | |
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 421 | | --exec | --exe | --ex) |
---|
| 422 | ac_prev=exec_prefix ;; |
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 425 | | --exec=* | --exe=* | --ex=*) |
---|
| 426 | exec_prefix=$ac_optarg ;; |
---|
| 427 | |
---|
| 428 | -gas | --gas | --ga | --g) |
---|
| 429 | # Obsolete; use --with-gas. |
---|
| 430 | with_gas=yes ;; |
---|
| 431 | |
---|
| 432 | -help | --help | --hel | --he | -h) |
---|
| 433 | ac_init_help=long ;; |
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 435 | ac_init_help=recursive ;; |
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 437 | ac_init_help=short ;; |
---|
| 438 | |
---|
| 439 | -host | --host | --hos | --ho) |
---|
| 440 | ac_prev=host_alias ;; |
---|
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 442 | host_alias=$ac_optarg ;; |
---|
| 443 | |
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 445 | | --includ | --inclu | --incl | --inc) |
---|
| 446 | ac_prev=includedir ;; |
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 449 | includedir=$ac_optarg ;; |
---|
| 450 | |
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 452 | ac_prev=infodir ;; |
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 454 | infodir=$ac_optarg ;; |
---|
| 455 | |
---|
| 456 | -libdir | --libdir | --libdi | --libd) |
---|
| 457 | ac_prev=libdir ;; |
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 459 | libdir=$ac_optarg ;; |
---|
| 460 | |
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 462 | | --libexe | --libex | --libe) |
---|
| 463 | ac_prev=libexecdir ;; |
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 465 | | --libexe=* | --libex=* | --libe=*) |
---|
| 466 | libexecdir=$ac_optarg ;; |
---|
| 467 | |
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 469 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 470 | | --locals | --local | --loca | --loc | --lo) |
---|
| 471 | ac_prev=localstatedir ;; |
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 475 | localstatedir=$ac_optarg ;; |
---|
| 476 | |
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 478 | ac_prev=mandir ;; |
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 480 | mandir=$ac_optarg ;; |
---|
| 481 | |
---|
| 482 | -nfp | --nfp | --nf) |
---|
| 483 | # Obsolete; use --without-fp. |
---|
| 484 | with_fp=no ;; |
---|
| 485 | |
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 487 | | --no-cr | --no-c | -n) |
---|
| 488 | no_create=yes ;; |
---|
| 489 | |
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 492 | no_recursion=yes ;; |
---|
| 493 | |
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 496 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 497 | ac_prev=oldincludedir ;; |
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 501 | oldincludedir=$ac_optarg ;; |
---|
| 502 | |
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 504 | ac_prev=prefix ;; |
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 506 | prefix=$ac_optarg ;; |
---|
| 507 | |
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 509 | | --program-pre | --program-pr | --program-p) |
---|
| 510 | ac_prev=program_prefix ;; |
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 513 | program_prefix=$ac_optarg ;; |
---|
| 514 | |
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 516 | | --program-suf | --program-su | --program-s) |
---|
| 517 | ac_prev=program_suffix ;; |
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 520 | program_suffix=$ac_optarg ;; |
---|
| 521 | |
---|
| 522 | -program-transform-name | --program-transform-name \ |
---|
| 523 | | --program-transform-nam | --program-transform-na \ |
---|
| 524 | | --program-transform-n | --program-transform- \ |
---|
| 525 | | --program-transform | --program-transfor \ |
---|
| 526 | | --program-transfo | --program-transf \ |
---|
| 527 | | --program-trans | --program-tran \ |
---|
| 528 | | --progr-tra | --program-tr | --program-t) |
---|
| 529 | ac_prev=program_transform_name ;; |
---|
| 530 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 532 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 533 | | --program-transform=* | --program-transfor=* \ |
---|
| 534 | | --program-transfo=* | --program-transf=* \ |
---|
| 535 | | --program-trans=* | --program-tran=* \ |
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 537 | program_transform_name=$ac_optarg ;; |
---|
| 538 | |
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 540 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 541 | silent=yes ;; |
---|
| 542 | |
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 544 | ac_prev=sbindir ;; |
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 546 | | --sbi=* | --sb=*) |
---|
| 547 | sbindir=$ac_optarg ;; |
---|
| 548 | |
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 552 | | --sha | --sh) |
---|
| 553 | ac_prev=sharedstatedir ;; |
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 557 | | --sha=* | --sh=*) |
---|
| 558 | sharedstatedir=$ac_optarg ;; |
---|
| 559 | |
---|
| 560 | -site | --site | --sit) |
---|
| 561 | ac_prev=site ;; |
---|
| 562 | -site=* | --site=* | --sit=*) |
---|
| 563 | site=$ac_optarg ;; |
---|
| 564 | |
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 566 | ac_prev=srcdir ;; |
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 568 | srcdir=$ac_optarg ;; |
---|
| 569 | |
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 572 | ac_prev=sysconfdir ;; |
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 575 | sysconfdir=$ac_optarg ;; |
---|
| 576 | |
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 578 | ac_prev=target_alias ;; |
---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 580 | target_alias=$ac_optarg ;; |
---|
| 581 | |
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 583 | verbose=yes ;; |
---|
| 584 | |
---|
| 585 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 586 | ac_init_version=: ;; |
---|
| 587 | |
---|
| 588 | -with-* | --with-*) |
---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 590 | # Reject names that are not valid shell variable names. |
---|
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 593 | { (exit 1); exit 1; }; } |
---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 595 | case $ac_option in |
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 597 | *) ac_optarg=yes ;; |
---|
| 598 | esac |
---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 600 | |
---|
| 601 | -without-* | --without-*) |
---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 603 | # Reject names that are not valid shell variable names. |
---|
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 606 | { (exit 1); exit 1; }; } |
---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 608 | eval "with_$ac_package=no" ;; |
---|
| 609 | |
---|
| 610 | --x) |
---|
| 611 | # Obsolete; use --with-x. |
---|
| 612 | with_x=yes ;; |
---|
| 613 | |
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 616 | ac_prev=x_includes ;; |
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 619 | x_includes=$ac_optarg ;; |
---|
| 620 | |
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 623 | ac_prev=x_libraries ;; |
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 626 | x_libraries=$ac_optarg ;; |
---|
| 627 | |
---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 629 | Try \`$0 --help' for more information." >&2 |
---|
| 630 | { (exit 1); exit 1; }; } |
---|
| 631 | ;; |
---|
| 632 | |
---|
| 633 | *=*) |
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 635 | # Reject names that are not valid shell variable names. |
---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 638 | { (exit 1); exit 1; }; } |
---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 640 | eval "$ac_envvar='$ac_optarg'" |
---|
| 641 | export $ac_envvar ;; |
---|
| 642 | |
---|
| 643 | *) |
---|
| 644 | # FIXME: should be removed in autoconf 3.0. |
---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 649 | ;; |
---|
| 650 | |
---|
| 651 | esac |
---|
| 652 | done |
---|
| 653 | |
---|
| 654 | if test -n "$ac_prev"; then |
---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 657 | { (exit 1); exit 1; }; } |
---|
[1853] | 658 | fi |
---|
| 659 | |
---|
[1956] | 660 | # Be sure to have absolute paths. |
---|
| 661 | for ac_var in exec_prefix prefix |
---|
| 662 | do |
---|
| 663 | eval ac_val=$`echo $ac_var` |
---|
| 664 | case $ac_val in |
---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 667 | { (exit 1); exit 1; }; };; |
---|
| 668 | esac |
---|
| 669 | done |
---|
[1853] | 670 | |
---|
[1956] | 671 | # Be sure to have absolute paths. |
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 674 | do |
---|
| 675 | eval ac_val=$`echo $ac_var` |
---|
| 676 | case $ac_val in |
---|
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 679 | { (exit 1); exit 1; }; };; |
---|
| 680 | esac |
---|
| 681 | done |
---|
| 682 | |
---|
| 683 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 684 | # used to hold the argument of --host etc. |
---|
| 685 | # FIXME: To remove some day. |
---|
| 686 | build=$build_alias |
---|
| 687 | host=$host_alias |
---|
| 688 | target=$target_alias |
---|
| 689 | |
---|
| 690 | # FIXME: To remove some day. |
---|
| 691 | if test "x$host_alias" != x; then |
---|
| 692 | if test "x$build_alias" = x; then |
---|
| 693 | cross_compiling=maybe |
---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 697 | cross_compiling=yes |
---|
| 698 | fi |
---|
[1853] | 699 | fi |
---|
| 700 | |
---|
[1956] | 701 | ac_tool_prefix= |
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 703 | |
---|
| 704 | test "$silent" = yes && exec 6>/dev/null |
---|
| 705 | |
---|
| 706 | |
---|
| 707 | # Find the source files, if location was not specified. |
---|
| 708 | if test -z "$srcdir"; then |
---|
| 709 | ac_srcdir_defaulted=yes |
---|
| 710 | # Try the directory containing this script, then its parent. |
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 714 | X"$0" : 'X\(//\)$' \| \ |
---|
| 715 | X"$0" : 'X\(/\)' \| \ |
---|
| 716 | . : '\(.\)' 2>/dev/null || |
---|
| 717 | echo X"$0" | |
---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 722 | s/.*/./; q'` |
---|
| 723 | srcdir=$ac_confdir |
---|
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 725 | srcdir=.. |
---|
| 726 | fi |
---|
| 727 | else |
---|
| 728 | ac_srcdir_defaulted=no |
---|
| 729 | fi |
---|
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 733 | { (exit 1); exit 1; }; } |
---|
| 734 | else |
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 736 | { (exit 1); exit 1; }; } |
---|
| 737 | fi |
---|
| 738 | fi |
---|
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 741 | { (exit 1); exit 1; }; } |
---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 743 | ac_env_build_alias_set=${build_alias+set} |
---|
| 744 | ac_env_build_alias_value=$build_alias |
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 746 | ac_cv_env_build_alias_value=$build_alias |
---|
| 747 | ac_env_host_alias_set=${host_alias+set} |
---|
| 748 | ac_env_host_alias_value=$host_alias |
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 750 | ac_cv_env_host_alias_value=$host_alias |
---|
| 751 | ac_env_target_alias_set=${target_alias+set} |
---|
| 752 | ac_env_target_alias_value=$target_alias |
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 754 | ac_cv_env_target_alias_value=$target_alias |
---|
| 755 | ac_env_CXX_set=${CXX+set} |
---|
| 756 | ac_env_CXX_value=$CXX |
---|
| 757 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 758 | ac_cv_env_CXX_value=$CXX |
---|
| 759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 771 | ac_env_CC_set=${CC+set} |
---|
| 772 | ac_env_CC_value=$CC |
---|
| 773 | ac_cv_env_CC_set=${CC+set} |
---|
| 774 | ac_cv_env_CC_value=$CC |
---|
| 775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 776 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 779 | ac_env_CPP_set=${CPP+set} |
---|
| 780 | ac_env_CPP_value=$CPP |
---|
| 781 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 782 | ac_cv_env_CPP_value=$CPP |
---|
| 783 | |
---|
| 784 | # |
---|
| 785 | # Report the --help message. |
---|
| 786 | # |
---|
| 787 | if test "$ac_init_help" = "long"; then |
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 790 | cat <<_ACEOF |
---|
[5502] | 791 | \`configure' configures orxonox 0.3.2_alpha to adapt to many kinds of systems. |
---|
[1956] | 792 | |
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 794 | |
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 797 | |
---|
| 798 | Defaults for the options are specified in brackets. |
---|
| 799 | |
---|
| 800 | Configuration: |
---|
| 801 | -h, --help display this help and exit |
---|
| 802 | --help=short display options specific to this package |
---|
| 803 | --help=recursive display the short help of all the included packages |
---|
| 804 | -V, --version display version information and exit |
---|
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 808 | -n, --no-create do not create output files |
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 810 | |
---|
| 811 | _ACEOF |
---|
| 812 | |
---|
| 813 | cat <<_ACEOF |
---|
| 814 | Installation directories: |
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 816 | [$ac_default_prefix] |
---|
| 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 818 | [PREFIX] |
---|
| 819 | |
---|
| 820 | By default, \`make install' will install all the files in |
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 823 | for instance \`--prefix=\$HOME'. |
---|
| 824 | |
---|
| 825 | For better control, use the options below. |
---|
| 826 | |
---|
| 827 | Fine tuning of the installation directories: |
---|
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 836 | --includedir=DIR C header files [PREFIX/include] |
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 838 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 839 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 840 | _ACEOF |
---|
| 841 | |
---|
| 842 | cat <<\_ACEOF |
---|
| 843 | |
---|
| 844 | Program names: |
---|
| 845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
[2980] | 848 | |
---|
| 849 | System types: |
---|
| 850 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
[1956] | 853 | _ACEOF |
---|
| 854 | fi |
---|
| 855 | |
---|
| 856 | if test -n "$ac_init_help"; then |
---|
| 857 | case $ac_init_help in |
---|
[5502] | 858 | short | recursive ) echo "Configuration of orxonox 0.3.2_alpha:";; |
---|
[1956] | 859 | esac |
---|
| 860 | cat <<\_ACEOF |
---|
| 861 | |
---|
| 862 | Optional Features: |
---|
| 863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 865 | --disable-dependency-tracking speeds up one-time build |
---|
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[3205] | 867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
| 868 | game. |
---|
[5479] | 869 | --disable-modular-debug compiles in modular-debug |
---|
| 870 | that logs differently on the many modules of orxonox.mode |
---|
[4774] | 871 | --disable-gtk Prevents GTK from being loaded |
---|
| 872 | --disable-curl Prevents libcURL from being loaded |
---|
[3788] | 873 | --enable-profile builds orxonox with profiling support |
---|
[3863] | 874 | --enable-efence builds orxonox with efence support |
---|
[3558] | 875 | --enable-documentation also builds the sDocumentation while make from |
---|
| 876 | srcdir |
---|
[1956] | 877 | |
---|
[3173] | 878 | Optional Packages: |
---|
| 879 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 880 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[5479] | 881 | --with-shared-lib-path Tells the executable |
---|
[4774] | 882 | --with-sub-projects also builds the subProjects while make from srcdir |
---|
[5467] | 883 | --with-tardis sets all the necesary environment flags for |
---|
| 884 | linux-TARDIS boxes at the ETH Zurich |
---|
[3173] | 885 | |
---|
[1956] | 886 | Some influential environment variables: |
---|
| 887 | CXX C++ compiler command |
---|
| 888 | CXXFLAGS C++ compiler flags |
---|
| 889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 890 | nonstandard directory <lib dir> |
---|
| 891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 892 | headers in a nonstandard directory <include dir> |
---|
| 893 | CC C compiler command |
---|
| 894 | CFLAGS C compiler flags |
---|
| 895 | CPP C preprocessor |
---|
| 896 | |
---|
| 897 | Use these variables to override the choices made by `configure' or to help |
---|
| 898 | it to find libraries and programs with nonstandard names/locations. |
---|
| 899 | |
---|
[3240] | 900 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 901 | _ACEOF |
---|
| 902 | fi |
---|
| 903 | |
---|
| 904 | if test "$ac_init_help" = "recursive"; then |
---|
| 905 | # If there are subdirs, report their specific --help. |
---|
| 906 | ac_popdir=`pwd` |
---|
| 907 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 908 | test -d $ac_dir || continue |
---|
| 909 | ac_builddir=. |
---|
| 910 | |
---|
| 911 | if test "$ac_dir" != .; then |
---|
| 912 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 913 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 914 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 915 | else |
---|
| 916 | ac_dir_suffix= ac_top_builddir= |
---|
| 917 | fi |
---|
| 918 | |
---|
| 919 | case $srcdir in |
---|
| 920 | .) # No --srcdir option. We are building in place. |
---|
| 921 | ac_srcdir=. |
---|
| 922 | if test -z "$ac_top_builddir"; then |
---|
| 923 | ac_top_srcdir=. |
---|
| 924 | else |
---|
| 925 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 926 | fi ;; |
---|
| 927 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 928 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 929 | ac_top_srcdir=$srcdir ;; |
---|
| 930 | *) # Relative path. |
---|
| 931 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 932 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 933 | esac |
---|
| 934 | |
---|
| 935 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 936 | # the directories may not exist. |
---|
| 937 | case `pwd` in |
---|
| 938 | .) ac_abs_builddir="$ac_dir";; |
---|
| 939 | *) |
---|
| 940 | case "$ac_dir" in |
---|
| 941 | .) ac_abs_builddir=`pwd`;; |
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 943 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 944 | esac;; |
---|
| 945 | esac |
---|
| 946 | case $ac_abs_builddir in |
---|
| 947 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 948 | *) |
---|
| 949 | case ${ac_top_builddir}. in |
---|
| 950 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 952 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 953 | esac;; |
---|
| 954 | esac |
---|
| 955 | case $ac_abs_builddir in |
---|
| 956 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 957 | *) |
---|
| 958 | case $ac_srcdir in |
---|
| 959 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 960 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 961 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 962 | esac;; |
---|
| 963 | esac |
---|
| 964 | case $ac_abs_builddir in |
---|
| 965 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 966 | *) |
---|
| 967 | case $ac_top_srcdir in |
---|
| 968 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 969 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 970 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 971 | esac;; |
---|
| 972 | esac |
---|
| 973 | |
---|
| 974 | cd $ac_dir |
---|
| 975 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 976 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 977 | echo |
---|
| 978 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 979 | elif test -f $ac_srcdir/configure; then |
---|
| 980 | echo |
---|
| 981 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 982 | elif test -f $ac_srcdir/configure.ac || |
---|
| 983 | test -f $ac_srcdir/configure.in; then |
---|
| 984 | echo |
---|
| 985 | $ac_configure --help |
---|
| 986 | else |
---|
| 987 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 988 | fi |
---|
[5588] | 989 | cd $ac_popdir |
---|
[1956] | 990 | done |
---|
| 991 | fi |
---|
| 992 | |
---|
| 993 | test -n "$ac_init_help" && exit 0 |
---|
| 994 | if $ac_init_version; then |
---|
| 995 | cat <<\_ACEOF |
---|
[5502] | 996 | orxonox configure 0.3.2_alpha |
---|
[1956] | 997 | generated by GNU Autoconf 2.59 |
---|
| 998 | |
---|
| 999 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 1000 | This configure script is free software; the Free Software Foundation |
---|
| 1001 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1002 | _ACEOF |
---|
| 1003 | exit 0 |
---|
| 1004 | fi |
---|
| 1005 | exec 5>config.log |
---|
| 1006 | cat >&5 <<_ACEOF |
---|
| 1007 | This file contains any messages produced by compilers while |
---|
| 1008 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1009 | |
---|
[5502] | 1010 | It was created by orxonox $as_me 0.3.2_alpha, which was |
---|
[1956] | 1011 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1012 | |
---|
| 1013 | $ $0 $@ |
---|
| 1014 | |
---|
| 1015 | _ACEOF |
---|
| 1016 | { |
---|
| 1017 | cat <<_ASUNAME |
---|
| 1018 | ## --------- ## |
---|
| 1019 | ## Platform. ## |
---|
| 1020 | ## --------- ## |
---|
| 1021 | |
---|
| 1022 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1023 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1024 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1025 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1026 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1027 | |
---|
| 1028 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1029 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1030 | |
---|
| 1031 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1032 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1033 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1034 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1035 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1036 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1037 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1038 | |
---|
| 1039 | _ASUNAME |
---|
| 1040 | |
---|
| 1041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1042 | for as_dir in $PATH |
---|
| 1043 | do |
---|
| 1044 | IFS=$as_save_IFS |
---|
| 1045 | test -z "$as_dir" && as_dir=. |
---|
| 1046 | echo "PATH: $as_dir" |
---|
| 1047 | done |
---|
| 1048 | |
---|
| 1049 | } >&5 |
---|
| 1050 | |
---|
| 1051 | cat >&5 <<_ACEOF |
---|
| 1052 | |
---|
| 1053 | |
---|
| 1054 | ## ----------- ## |
---|
| 1055 | ## Core tests. ## |
---|
| 1056 | ## ----------- ## |
---|
| 1057 | |
---|
| 1058 | _ACEOF |
---|
| 1059 | |
---|
| 1060 | |
---|
| 1061 | # Keep a trace of the command line. |
---|
| 1062 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1063 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1064 | # Also quote any args containing shell meta-characters. |
---|
| 1065 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1066 | ac_configure_args= |
---|
| 1067 | ac_configure_args0= |
---|
| 1068 | ac_configure_args1= |
---|
| 1069 | ac_sep= |
---|
| 1070 | ac_must_keep_next=false |
---|
| 1071 | for ac_pass in 1 2 |
---|
| 1072 | do |
---|
| 1073 | for ac_arg |
---|
| 1074 | do |
---|
| 1075 | case $ac_arg in |
---|
| 1076 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1078 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1079 | continue ;; |
---|
| 1080 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1081 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1082 | esac |
---|
| 1083 | case $ac_pass in |
---|
| 1084 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1085 | 2) |
---|
| 1086 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1087 | if test $ac_must_keep_next = true; then |
---|
| 1088 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1089 | else |
---|
| 1090 | case $ac_arg in |
---|
| 1091 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1092 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1093 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1094 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1095 | case "$ac_configure_args0 " in |
---|
| 1096 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1097 | esac |
---|
| 1098 | ;; |
---|
| 1099 | -* ) ac_must_keep_next=true ;; |
---|
| 1100 | esac |
---|
| 1101 | fi |
---|
| 1102 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1103 | # Get rid of the leading space. |
---|
| 1104 | ac_sep=" " |
---|
| 1105 | ;; |
---|
| 1106 | esac |
---|
| 1107 | done |
---|
| 1108 | done |
---|
| 1109 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1110 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1111 | |
---|
| 1112 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1113 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1114 | # would cause problems or look ugly. |
---|
| 1115 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1116 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1117 | trap 'exit_status=$? |
---|
| 1118 | # Save into config.log some information that might help in debugging. |
---|
| 1119 | { |
---|
| 1120 | echo |
---|
| 1121 | |
---|
| 1122 | cat <<\_ASBOX |
---|
| 1123 | ## ---------------- ## |
---|
| 1124 | ## Cache variables. ## |
---|
| 1125 | ## ---------------- ## |
---|
| 1126 | _ASBOX |
---|
| 1127 | echo |
---|
| 1128 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1129 | { |
---|
| 1130 | (set) 2>&1 | |
---|
| 1131 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1132 | *ac_space=\ *) |
---|
| 1133 | sed -n \ |
---|
| 1134 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1136 | ;; |
---|
| 1137 | *) |
---|
| 1138 | sed -n \ |
---|
| 1139 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1140 | ;; |
---|
| 1141 | esac; |
---|
| 1142 | } |
---|
| 1143 | echo |
---|
| 1144 | |
---|
| 1145 | cat <<\_ASBOX |
---|
| 1146 | ## ----------------- ## |
---|
| 1147 | ## Output variables. ## |
---|
| 1148 | ## ----------------- ## |
---|
| 1149 | _ASBOX |
---|
| 1150 | echo |
---|
| 1151 | for ac_var in $ac_subst_vars |
---|
| 1152 | do |
---|
| 1153 | eval ac_val=$`echo $ac_var` |
---|
| 1154 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1155 | done | sort |
---|
| 1156 | echo |
---|
| 1157 | |
---|
| 1158 | if test -n "$ac_subst_files"; then |
---|
| 1159 | cat <<\_ASBOX |
---|
| 1160 | ## ------------- ## |
---|
| 1161 | ## Output files. ## |
---|
| 1162 | ## ------------- ## |
---|
| 1163 | _ASBOX |
---|
| 1164 | echo |
---|
| 1165 | for ac_var in $ac_subst_files |
---|
| 1166 | do |
---|
| 1167 | eval ac_val=$`echo $ac_var` |
---|
| 1168 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1169 | done | sort |
---|
| 1170 | echo |
---|
| 1171 | fi |
---|
| 1172 | |
---|
| 1173 | if test -s confdefs.h; then |
---|
| 1174 | cat <<\_ASBOX |
---|
| 1175 | ## ----------- ## |
---|
| 1176 | ## confdefs.h. ## |
---|
| 1177 | ## ----------- ## |
---|
| 1178 | _ASBOX |
---|
| 1179 | echo |
---|
| 1180 | sed "/^$/d" confdefs.h | sort |
---|
| 1181 | echo |
---|
| 1182 | fi |
---|
| 1183 | test "$ac_signal" != 0 && |
---|
| 1184 | echo "$as_me: caught signal $ac_signal" |
---|
| 1185 | echo "$as_me: exit $exit_status" |
---|
| 1186 | } >&5 |
---|
| 1187 | rm -f core *.core && |
---|
| 1188 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1189 | exit $exit_status |
---|
| 1190 | ' 0 |
---|
| 1191 | for ac_signal in 1 2 13 15; do |
---|
| 1192 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1193 | done |
---|
| 1194 | ac_signal=0 |
---|
| 1195 | |
---|
| 1196 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1197 | rm -rf conftest* confdefs.h |
---|
| 1198 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1199 | echo >confdefs.h |
---|
| 1200 | |
---|
| 1201 | # Predefined preprocessor variables. |
---|
| 1202 | |
---|
| 1203 | cat >>confdefs.h <<_ACEOF |
---|
| 1204 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1205 | _ACEOF |
---|
| 1206 | |
---|
| 1207 | |
---|
| 1208 | cat >>confdefs.h <<_ACEOF |
---|
| 1209 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1210 | _ACEOF |
---|
| 1211 | |
---|
| 1212 | |
---|
| 1213 | cat >>confdefs.h <<_ACEOF |
---|
| 1214 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1215 | _ACEOF |
---|
| 1216 | |
---|
| 1217 | |
---|
| 1218 | cat >>confdefs.h <<_ACEOF |
---|
| 1219 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1220 | _ACEOF |
---|
| 1221 | |
---|
| 1222 | |
---|
| 1223 | cat >>confdefs.h <<_ACEOF |
---|
| 1224 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1225 | _ACEOF |
---|
| 1226 | |
---|
| 1227 | |
---|
| 1228 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1229 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1230 | if test -z "$CONFIG_SITE"; then |
---|
| 1231 | if test "x$prefix" != xNONE; then |
---|
| 1232 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1233 | else |
---|
| 1234 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1235 | fi |
---|
| 1236 | fi |
---|
| 1237 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1238 | if test -r "$ac_site_file"; then |
---|
| 1239 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1240 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1241 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1242 | . "$ac_site_file" |
---|
| 1243 | fi |
---|
| 1244 | done |
---|
| 1245 | |
---|
| 1246 | if test -r "$cache_file"; then |
---|
| 1247 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1248 | # files actually), so we avoid doing that. |
---|
| 1249 | if test -f "$cache_file"; then |
---|
| 1250 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1251 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1252 | case $cache_file in |
---|
| 1253 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1254 | *) . ./$cache_file;; |
---|
| 1255 | esac |
---|
| 1256 | fi |
---|
| 1257 | else |
---|
| 1258 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1259 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1260 | >$cache_file |
---|
| 1261 | fi |
---|
| 1262 | |
---|
| 1263 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1264 | # value. |
---|
| 1265 | ac_cache_corrupted=false |
---|
| 1266 | for ac_var in `(set) 2>&1 | |
---|
| 1267 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1269 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1270 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1271 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1272 | case $ac_old_set,$ac_new_set in |
---|
| 1273 | set,) |
---|
| 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1275 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1276 | ac_cache_corrupted=: ;; |
---|
| 1277 | ,set) |
---|
| 1278 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1279 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1280 | ac_cache_corrupted=: ;; |
---|
| 1281 | ,);; |
---|
| 1282 | *) |
---|
| 1283 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1284 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1285 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1286 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1287 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1288 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1289 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1290 | ac_cache_corrupted=: |
---|
| 1291 | fi;; |
---|
| 1292 | esac |
---|
| 1293 | # Pass precious variables to config.status. |
---|
| 1294 | if test "$ac_new_set" = set; then |
---|
| 1295 | case $ac_new_val in |
---|
| 1296 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1297 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1298 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1299 | esac |
---|
| 1300 | case " $ac_configure_args " in |
---|
| 1301 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1302 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1303 | esac |
---|
| 1304 | fi |
---|
| 1305 | done |
---|
| 1306 | if $ac_cache_corrupted; then |
---|
| 1307 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1308 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1309 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1310 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1311 | { (exit 1); exit 1; }; } |
---|
| 1312 | fi |
---|
| 1313 | |
---|
| 1314 | ac_ext=c |
---|
| 1315 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | |
---|
| 1341 | |
---|
| 1342 | |
---|
| 1343 | |
---|
| 1344 | |
---|
| 1345 | |
---|
[2980] | 1346 | |
---|
[3424] | 1347 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1348 | ac_aux_dir= |
---|
| 1349 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1350 | if test -f $ac_dir/install-sh; then |
---|
| 1351 | ac_aux_dir=$ac_dir |
---|
| 1352 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1353 | break |
---|
| 1354 | elif test -f $ac_dir/install.sh; then |
---|
| 1355 | ac_aux_dir=$ac_dir |
---|
| 1356 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1357 | break |
---|
| 1358 | elif test -f $ac_dir/shtool; then |
---|
| 1359 | ac_aux_dir=$ac_dir |
---|
| 1360 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1361 | break |
---|
| 1362 | fi |
---|
| 1363 | done |
---|
| 1364 | if test -z "$ac_aux_dir"; then |
---|
| 1365 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1366 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1367 | { (exit 1); exit 1; }; } |
---|
| 1368 | fi |
---|
| 1369 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1370 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1371 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1372 | |
---|
[2980] | 1373 | # Make sure we can run config.sub. |
---|
| 1374 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1375 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1376 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1377 | { (exit 1); exit 1; }; } |
---|
| 1378 | |
---|
| 1379 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1380 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1381 | if test "${ac_cv_build+set}" = set; then |
---|
| 1382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1383 | else |
---|
| 1384 | ac_cv_build_alias=$build_alias |
---|
| 1385 | test -z "$ac_cv_build_alias" && |
---|
| 1386 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1387 | test -z "$ac_cv_build_alias" && |
---|
| 1388 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1389 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1390 | { (exit 1); exit 1; }; } |
---|
| 1391 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1393 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1394 | { (exit 1); exit 1; }; } |
---|
| 1395 | |
---|
| 1396 | fi |
---|
| 1397 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1398 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1399 | build=$ac_cv_build |
---|
| 1400 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1401 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1402 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1403 | |
---|
| 1404 | |
---|
| 1405 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1406 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1407 | if test "${ac_cv_host+set}" = set; then |
---|
| 1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1409 | else |
---|
| 1410 | ac_cv_host_alias=$host_alias |
---|
| 1411 | test -z "$ac_cv_host_alias" && |
---|
| 1412 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1413 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1415 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1416 | { (exit 1); exit 1; }; } |
---|
| 1417 | |
---|
| 1418 | fi |
---|
| 1419 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1420 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1421 | host=$ac_cv_host |
---|
| 1422 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1423 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1424 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1425 | |
---|
| 1426 | |
---|
| 1427 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1428 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1429 | if test "${ac_cv_target+set}" = set; then |
---|
| 1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1431 | else |
---|
| 1432 | ac_cv_target_alias=$target_alias |
---|
| 1433 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1434 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1435 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1436 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1437 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1438 | { (exit 1); exit 1; }; } |
---|
| 1439 | |
---|
| 1440 | fi |
---|
| 1441 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1442 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1443 | target=$ac_cv_target |
---|
| 1444 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1445 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1446 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1447 | |
---|
| 1448 | |
---|
| 1449 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1450 | # will get canonicalized. |
---|
| 1451 | test -n "$target_alias" && |
---|
| 1452 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1453 | NONENONEs,x,x, && |
---|
| 1454 | program_prefix=${target_alias}- |
---|
| 1455 | |
---|
[5475] | 1456 | am__api_version="1.9" |
---|
[1956] | 1457 | # Find a good install program. We prefer a C program (faster), |
---|
| 1458 | # so one script is as good as another. But avoid the broken or |
---|
| 1459 | # incompatible versions: |
---|
| 1460 | # SysV /etc/install, /usr/sbin/install |
---|
| 1461 | # SunOS /usr/etc/install |
---|
| 1462 | # IRIX /sbin/install |
---|
| 1463 | # AIX /bin/install |
---|
| 1464 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1465 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1466 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1467 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1468 | # OS/2's system install, which has a completely different semantic |
---|
| 1469 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1470 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1471 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1472 | if test -z "$INSTALL"; then |
---|
| 1473 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1475 | else |
---|
| 1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1477 | for as_dir in $PATH |
---|
| 1478 | do |
---|
| 1479 | IFS=$as_save_IFS |
---|
| 1480 | test -z "$as_dir" && as_dir=. |
---|
| 1481 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1482 | case $as_dir/ in |
---|
| 1483 | ./ | .// | /cC/* | \ |
---|
| 1484 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1485 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1486 | /usr/ucb/* ) ;; |
---|
| 1487 | *) |
---|
| 1488 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1489 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1490 | # by default. |
---|
| 1491 | for ac_prog in ginstall scoinst install; do |
---|
| 1492 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1493 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1494 | if test $ac_prog = install && |
---|
| 1495 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1496 | # AIX install. It has an incompatible calling convention. |
---|
| 1497 | : |
---|
| 1498 | elif test $ac_prog = install && |
---|
| 1499 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1500 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1501 | : |
---|
| 1502 | else |
---|
| 1503 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1504 | break 3 |
---|
| 1505 | fi |
---|
[1853] | 1506 | fi |
---|
[1956] | 1507 | done |
---|
| 1508 | done |
---|
| 1509 | ;; |
---|
| 1510 | esac |
---|
| 1511 | done |
---|
| 1512 | |
---|
| 1513 | |
---|
[1853] | 1514 | fi |
---|
[1956] | 1515 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1516 | INSTALL=$ac_cv_path_install |
---|
| 1517 | else |
---|
| 1518 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1519 | # path for INSTALL within a source directory, because that will |
---|
| 1520 | # break other packages using the cache if that directory is |
---|
| 1521 | # removed, or if the path is relative. |
---|
| 1522 | INSTALL=$ac_install_sh |
---|
| 1523 | fi |
---|
| 1524 | fi |
---|
| 1525 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1526 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1527 | |
---|
| 1528 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1529 | # It thinks the first close brace ends the variable substitution. |
---|
| 1530 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1531 | |
---|
| 1532 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1533 | |
---|
| 1534 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1535 | |
---|
| 1536 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1537 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1538 | # Just in case |
---|
| 1539 | sleep 1 |
---|
| 1540 | echo timestamp > conftest.file |
---|
| 1541 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1542 | # arguments. Must try -L first in case configure is actually a |
---|
| 1543 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1544 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1545 | # directory). |
---|
| 1546 | if ( |
---|
| 1547 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1548 | if test "$*" = "X"; then |
---|
| 1549 | # -L didn't work. |
---|
| 1550 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1551 | fi |
---|
| 1552 | rm -f conftest.file |
---|
| 1553 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1554 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1555 | |
---|
| 1556 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1557 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1558 | # broken ls alias from the environment. This has actually |
---|
| 1559 | # happened. Such a system could not be considered "sane". |
---|
| 1560 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1561 | alias in your environment" >&5 |
---|
| 1562 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1563 | alias in your environment" >&2;} |
---|
| 1564 | { (exit 1); exit 1; }; } |
---|
| 1565 | fi |
---|
| 1566 | |
---|
| 1567 | test "$2" = conftest.file |
---|
| 1568 | ) |
---|
| 1569 | then |
---|
| 1570 | # Ok. |
---|
| 1571 | : |
---|
[1853] | 1572 | else |
---|
[1956] | 1573 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1574 | Check your system clock" >&5 |
---|
| 1575 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1576 | Check your system clock" >&2;} |
---|
| 1577 | { (exit 1); exit 1; }; } |
---|
[1853] | 1578 | fi |
---|
[1956] | 1579 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1580 | echo "${ECHO_T}yes" >&6 |
---|
| 1581 | test "$program_prefix" != NONE && |
---|
| 1582 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1583 | # Use a double $ so make ignores it. |
---|
| 1584 | test "$program_suffix" != NONE && |
---|
| 1585 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1586 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1587 | # By default was `s,x,x', remove it if useless. |
---|
| 1588 | cat <<\_ACEOF >conftest.sed |
---|
| 1589 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1590 | _ACEOF |
---|
| 1591 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1592 | rm conftest.sed |
---|
[1853] | 1593 | |
---|
[1956] | 1594 | # expand $ac_aux_dir to an absolute path |
---|
| 1595 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1596 | |
---|
| 1597 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1598 | # Use eval to expand $SHELL |
---|
| 1599 | if eval "$MISSING --run true"; then |
---|
| 1600 | am_missing_run="$MISSING --run " |
---|
| 1601 | else |
---|
| 1602 | am_missing_run= |
---|
| 1603 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1604 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1605 | fi |
---|
| 1606 | |
---|
[4826] | 1607 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[5475] | 1608 | # We used to keeping the `.' as first argument, in order to |
---|
| 1609 | # allow $(mkdir_p) to be used without argument. As in |
---|
[2706] | 1610 | # $(mkdir_p) $(somedir) |
---|
[5475] | 1611 | # where $(somedir) is conditionally defined. However this is wrong |
---|
| 1612 | # for two reasons: |
---|
| 1613 | # 1. if the package is installed by a user who cannot write `.' |
---|
| 1614 | # make install will fail, |
---|
| 1615 | # 2. the above comment should most certainly read |
---|
| 1616 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
| 1617 | # so it does not work when $(somedir) is undefined and |
---|
| 1618 | # $(DESTDIR) is not. |
---|
| 1619 | # To support the latter case, we have to write |
---|
| 1620 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
| 1621 | # so the `.' trick is pointless. |
---|
| 1622 | mkdir_p='mkdir -p --' |
---|
[2706] | 1623 | else |
---|
| 1624 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1625 | # recognize any option. It will interpret all options as |
---|
| 1626 | # directories to create, and then abort because `.' already |
---|
| 1627 | # exists. |
---|
[4826] | 1628 | for d in ./-p ./--version; |
---|
[2706] | 1629 | do |
---|
| 1630 | test -d $d && rmdir $d |
---|
| 1631 | done |
---|
| 1632 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1633 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1634 | mkdir_p='$(mkinstalldirs)' |
---|
| 1635 | else |
---|
| 1636 | mkdir_p='$(install_sh) -d' |
---|
| 1637 | fi |
---|
| 1638 | fi |
---|
| 1639 | |
---|
[1956] | 1640 | for ac_prog in gawk mawk nawk awk |
---|
| 1641 | do |
---|
| 1642 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1643 | set dummy $ac_prog; ac_word=$2 |
---|
| 1644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1646 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1648 | else |
---|
| 1649 | if test -n "$AWK"; then |
---|
| 1650 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1651 | else |
---|
| 1652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1653 | for as_dir in $PATH |
---|
| 1654 | do |
---|
| 1655 | IFS=$as_save_IFS |
---|
| 1656 | test -z "$as_dir" && as_dir=. |
---|
| 1657 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1659 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1661 | break 2 |
---|
| 1662 | fi |
---|
| 1663 | done |
---|
| 1664 | done |
---|
| 1665 | |
---|
| 1666 | fi |
---|
| 1667 | fi |
---|
| 1668 | AWK=$ac_cv_prog_AWK |
---|
| 1669 | if test -n "$AWK"; then |
---|
| 1670 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1671 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1672 | else |
---|
| 1673 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1674 | echo "${ECHO_T}no" >&6 |
---|
| 1675 | fi |
---|
| 1676 | |
---|
| 1677 | test -n "$AWK" && break |
---|
| 1678 | done |
---|
| 1679 | |
---|
| 1680 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1681 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1682 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1683 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1685 | else |
---|
| 1686 | cat >conftest.make <<\_ACEOF |
---|
| 1687 | all: |
---|
| 1688 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1689 | _ACEOF |
---|
| 1690 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1691 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1692 | if test -n "$ac_maketemp"; then |
---|
| 1693 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1694 | else |
---|
| 1695 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1696 | fi |
---|
| 1697 | rm -f conftest.make |
---|
| 1698 | fi |
---|
| 1699 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1700 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1701 | echo "${ECHO_T}yes" >&6 |
---|
| 1702 | SET_MAKE= |
---|
| 1703 | else |
---|
| 1704 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1705 | echo "${ECHO_T}no" >&6 |
---|
| 1706 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1707 | fi |
---|
| 1708 | |
---|
| 1709 | rm -rf .tst 2>/dev/null |
---|
| 1710 | mkdir .tst 2>/dev/null |
---|
| 1711 | if test -d .tst; then |
---|
| 1712 | am__leading_dot=. |
---|
| 1713 | else |
---|
| 1714 | am__leading_dot=_ |
---|
| 1715 | fi |
---|
| 1716 | rmdir .tst 2>/dev/null |
---|
| 1717 | |
---|
[2706] | 1718 | # test to see if srcdir already configured |
---|
[1956] | 1719 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1720 | test -f $srcdir/config.status; then |
---|
| 1721 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1722 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1723 | { (exit 1); exit 1; }; } |
---|
| 1724 | fi |
---|
| 1725 | |
---|
| 1726 | # test whether we have cygpath |
---|
| 1727 | if test -z "$CYGPATH_W"; then |
---|
| 1728 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1729 | CYGPATH_W='cygpath -w' |
---|
| 1730 | else |
---|
| 1731 | CYGPATH_W=echo |
---|
| 1732 | fi |
---|
| 1733 | fi |
---|
| 1734 | |
---|
| 1735 | |
---|
| 1736 | # Define the identity of the package. |
---|
| 1737 | PACKAGE='orxonox' |
---|
[5502] | 1738 | VERSION='0.3.2_alpha' |
---|
[1956] | 1739 | |
---|
| 1740 | |
---|
| 1741 | cat >>confdefs.h <<_ACEOF |
---|
| 1742 | #define PACKAGE "$PACKAGE" |
---|
| 1743 | _ACEOF |
---|
| 1744 | |
---|
| 1745 | |
---|
| 1746 | cat >>confdefs.h <<_ACEOF |
---|
| 1747 | #define VERSION "$VERSION" |
---|
| 1748 | _ACEOF |
---|
| 1749 | |
---|
| 1750 | # Some tools Automake needs. |
---|
| 1751 | |
---|
| 1752 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1753 | |
---|
| 1754 | |
---|
| 1755 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1756 | |
---|
| 1757 | |
---|
| 1758 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1759 | |
---|
| 1760 | |
---|
| 1761 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1762 | |
---|
| 1763 | |
---|
| 1764 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1765 | |
---|
| 1766 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1767 | |
---|
| 1768 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1769 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1770 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1771 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1772 | if test "$cross_compiling" != no; then |
---|
| 1773 | if test -n "$ac_tool_prefix"; then |
---|
| 1774 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1775 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1778 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1780 | else |
---|
| 1781 | if test -n "$STRIP"; then |
---|
| 1782 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1783 | else |
---|
| 1784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1785 | for as_dir in $PATH |
---|
| 1786 | do |
---|
| 1787 | IFS=$as_save_IFS |
---|
| 1788 | test -z "$as_dir" && as_dir=. |
---|
| 1789 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1790 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1791 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1793 | break 2 |
---|
| 1794 | fi |
---|
| 1795 | done |
---|
| 1796 | done |
---|
| 1797 | |
---|
| 1798 | fi |
---|
| 1799 | fi |
---|
| 1800 | STRIP=$ac_cv_prog_STRIP |
---|
| 1801 | if test -n "$STRIP"; then |
---|
| 1802 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1803 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1804 | else |
---|
| 1805 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1806 | echo "${ECHO_T}no" >&6 |
---|
| 1807 | fi |
---|
| 1808 | |
---|
| 1809 | fi |
---|
| 1810 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1811 | ac_ct_STRIP=$STRIP |
---|
| 1812 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1813 | set dummy strip; ac_word=$2 |
---|
| 1814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1816 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1818 | else |
---|
| 1819 | if test -n "$ac_ct_STRIP"; then |
---|
| 1820 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1821 | else |
---|
| 1822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1823 | for as_dir in $PATH |
---|
| 1824 | do |
---|
| 1825 | IFS=$as_save_IFS |
---|
| 1826 | test -z "$as_dir" && as_dir=. |
---|
| 1827 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1829 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1831 | break 2 |
---|
| 1832 | fi |
---|
| 1833 | done |
---|
| 1834 | done |
---|
| 1835 | |
---|
| 1836 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1837 | fi |
---|
| 1838 | fi |
---|
| 1839 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1840 | if test -n "$ac_ct_STRIP"; then |
---|
| 1841 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1842 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1843 | else |
---|
| 1844 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1845 | echo "${ECHO_T}no" >&6 |
---|
| 1846 | fi |
---|
| 1847 | |
---|
| 1848 | STRIP=$ac_ct_STRIP |
---|
| 1849 | else |
---|
| 1850 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1851 | fi |
---|
| 1852 | |
---|
| 1853 | fi |
---|
| 1854 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1855 | |
---|
| 1856 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1857 | # some platforms. |
---|
[5475] | 1858 | # Always define AMTAR for backward compatibility. |
---|
[1956] | 1859 | |
---|
[5475] | 1860 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
[1956] | 1861 | |
---|
[5475] | 1862 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
[1956] | 1863 | |
---|
| 1864 | |
---|
[2627] | 1865 | |
---|
[5475] | 1866 | |
---|
| 1867 | |
---|
| 1868 | |
---|
| 1869 | |
---|
[1959] | 1870 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1871 | |
---|
| 1872 | |
---|
[3424] | 1873 | ######################### |
---|
| 1874 | ## Checks for programs ## |
---|
| 1875 | ######################### |
---|
[1956] | 1876 | ac_ext=cc |
---|
| 1877 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1878 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1879 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1880 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1881 | if test -n "$ac_tool_prefix"; then |
---|
| 1882 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1883 | do |
---|
| 1884 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1885 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1888 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1890 | else |
---|
| 1891 | if test -n "$CXX"; then |
---|
| 1892 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1893 | else |
---|
| 1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1895 | for as_dir in $PATH |
---|
| 1896 | do |
---|
| 1897 | IFS=$as_save_IFS |
---|
| 1898 | test -z "$as_dir" && as_dir=. |
---|
| 1899 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1901 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1903 | break 2 |
---|
| 1904 | fi |
---|
| 1905 | done |
---|
| 1906 | done |
---|
| 1907 | |
---|
| 1908 | fi |
---|
| 1909 | fi |
---|
| 1910 | CXX=$ac_cv_prog_CXX |
---|
| 1911 | if test -n "$CXX"; then |
---|
| 1912 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1913 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1914 | else |
---|
| 1915 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1916 | echo "${ECHO_T}no" >&6 |
---|
| 1917 | fi |
---|
| 1918 | |
---|
| 1919 | test -n "$CXX" && break |
---|
| 1920 | done |
---|
| 1921 | fi |
---|
| 1922 | if test -z "$CXX"; then |
---|
| 1923 | ac_ct_CXX=$CXX |
---|
| 1924 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1925 | do |
---|
| 1926 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1927 | set dummy $ac_prog; ac_word=$2 |
---|
| 1928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1930 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1932 | else |
---|
| 1933 | if test -n "$ac_ct_CXX"; then |
---|
| 1934 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1935 | else |
---|
| 1936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1937 | for as_dir in $PATH |
---|
| 1938 | do |
---|
| 1939 | IFS=$as_save_IFS |
---|
| 1940 | test -z "$as_dir" && as_dir=. |
---|
| 1941 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1943 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1945 | break 2 |
---|
| 1946 | fi |
---|
| 1947 | done |
---|
| 1948 | done |
---|
| 1949 | |
---|
| 1950 | fi |
---|
| 1951 | fi |
---|
| 1952 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1953 | if test -n "$ac_ct_CXX"; then |
---|
| 1954 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1955 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1956 | else |
---|
| 1957 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1958 | echo "${ECHO_T}no" >&6 |
---|
| 1959 | fi |
---|
| 1960 | |
---|
| 1961 | test -n "$ac_ct_CXX" && break |
---|
| 1962 | done |
---|
| 1963 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1964 | |
---|
| 1965 | CXX=$ac_ct_CXX |
---|
| 1966 | fi |
---|
| 1967 | |
---|
| 1968 | |
---|
| 1969 | # Provide some information about the compiler. |
---|
| 1970 | echo "$as_me:$LINENO:" \ |
---|
| 1971 | "checking for C++ compiler version" >&5 |
---|
| 1972 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1973 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1974 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1975 | ac_status=$? |
---|
| 1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1977 | (exit $ac_status); } |
---|
| 1978 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1979 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1980 | ac_status=$? |
---|
| 1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1982 | (exit $ac_status); } |
---|
| 1983 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1984 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1985 | ac_status=$? |
---|
| 1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1987 | (exit $ac_status); } |
---|
| 1988 | |
---|
| 1989 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1990 | /* confdefs.h. */ |
---|
| 1991 | _ACEOF |
---|
| 1992 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1993 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1994 | /* end confdefs.h. */ |
---|
| 1995 | |
---|
| 1996 | int |
---|
| 1997 | main () |
---|
| 1998 | { |
---|
| 1999 | |
---|
| 2000 | ; |
---|
| 2001 | return 0; |
---|
| 2002 | } |
---|
| 2003 | _ACEOF |
---|
| 2004 | ac_clean_files_save=$ac_clean_files |
---|
| 2005 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 2006 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2007 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2008 | # of exeext. |
---|
| 2009 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 2010 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 2011 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2012 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 2013 | (eval $ac_link_default) 2>&5 |
---|
| 2014 | ac_status=$? |
---|
| 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2016 | (exit $ac_status); }; then |
---|
| 2017 | # Find the output, starting from the most likely. This scheme is |
---|
| 2018 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2019 | # resort. |
---|
| 2020 | |
---|
| 2021 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2022 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2023 | ac_cv_exeext= |
---|
| 2024 | # b.out is created by i960 compilers. |
---|
| 2025 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2026 | do |
---|
| 2027 | test -f "$ac_file" || continue |
---|
| 2028 | case $ac_file in |
---|
| 2029 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2030 | ;; |
---|
| 2031 | conftest.$ac_ext ) |
---|
| 2032 | # This is the source file. |
---|
| 2033 | ;; |
---|
| 2034 | [ab].out ) |
---|
| 2035 | # We found the default executable, but exeext='' is most |
---|
| 2036 | # certainly right. |
---|
| 2037 | break;; |
---|
| 2038 | *.* ) |
---|
| 2039 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2040 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2041 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2042 | # maintain Libtool? --akim. |
---|
| 2043 | export ac_cv_exeext |
---|
| 2044 | break;; |
---|
| 2045 | * ) |
---|
| 2046 | break;; |
---|
| 2047 | esac |
---|
| 2048 | done |
---|
| 2049 | else |
---|
| 2050 | echo "$as_me: failed program was:" >&5 |
---|
| 2051 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2052 | |
---|
| 2053 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2054 | See \`config.log' for more details." >&5 |
---|
| 2055 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2056 | See \`config.log' for more details." >&2;} |
---|
| 2057 | { (exit 77); exit 77; }; } |
---|
| 2058 | fi |
---|
| 2059 | |
---|
| 2060 | ac_exeext=$ac_cv_exeext |
---|
| 2061 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2062 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2063 | |
---|
| 2064 | # Check the compiler produces executables we can run. If not, either |
---|
| 2065 | # the compiler is broken, or we cross compile. |
---|
| 2066 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2067 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2068 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2069 | # If not cross compiling, check that we can run a simple program. |
---|
| 2070 | if test "$cross_compiling" != yes; then |
---|
| 2071 | if { ac_try='./$ac_file' |
---|
| 2072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2073 | (eval $ac_try) 2>&5 |
---|
| 2074 | ac_status=$? |
---|
| 2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2076 | (exit $ac_status); }; }; then |
---|
| 2077 | cross_compiling=no |
---|
| 2078 | else |
---|
| 2079 | if test "$cross_compiling" = maybe; then |
---|
| 2080 | cross_compiling=yes |
---|
| 2081 | else |
---|
| 2082 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2083 | If you meant to cross compile, use \`--host'. |
---|
| 2084 | See \`config.log' for more details." >&5 |
---|
| 2085 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2086 | If you meant to cross compile, use \`--host'. |
---|
| 2087 | See \`config.log' for more details." >&2;} |
---|
| 2088 | { (exit 1); exit 1; }; } |
---|
| 2089 | fi |
---|
| 2090 | fi |
---|
| 2091 | fi |
---|
| 2092 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2093 | echo "${ECHO_T}yes" >&6 |
---|
| 2094 | |
---|
| 2095 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2096 | ac_clean_files=$ac_clean_files_save |
---|
| 2097 | # Check the compiler produces executables we can run. If not, either |
---|
| 2098 | # the compiler is broken, or we cross compile. |
---|
| 2099 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2100 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2101 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2102 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2103 | |
---|
| 2104 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2105 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2107 | (eval $ac_link) 2>&5 |
---|
| 2108 | ac_status=$? |
---|
| 2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2110 | (exit $ac_status); }; then |
---|
| 2111 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2112 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2113 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2114 | # `rm'. |
---|
| 2115 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2116 | test -f "$ac_file" || continue |
---|
| 2117 | case $ac_file in |
---|
| 2118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2119 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2120 | export ac_cv_exeext |
---|
| 2121 | break;; |
---|
| 2122 | * ) break;; |
---|
| 2123 | esac |
---|
| 2124 | done |
---|
| 2125 | else |
---|
| 2126 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2127 | See \`config.log' for more details." >&5 |
---|
| 2128 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2129 | See \`config.log' for more details." >&2;} |
---|
| 2130 | { (exit 1); exit 1; }; } |
---|
| 2131 | fi |
---|
| 2132 | |
---|
| 2133 | rm -f conftest$ac_cv_exeext |
---|
| 2134 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2135 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2136 | |
---|
| 2137 | rm -f conftest.$ac_ext |
---|
| 2138 | EXEEXT=$ac_cv_exeext |
---|
| 2139 | ac_exeext=$EXEEXT |
---|
| 2140 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2141 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2142 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2144 | else |
---|
| 2145 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2146 | /* confdefs.h. */ |
---|
| 2147 | _ACEOF |
---|
| 2148 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2150 | /* end confdefs.h. */ |
---|
| 2151 | |
---|
| 2152 | int |
---|
| 2153 | main () |
---|
| 2154 | { |
---|
| 2155 | |
---|
| 2156 | ; |
---|
| 2157 | return 0; |
---|
| 2158 | } |
---|
| 2159 | _ACEOF |
---|
| 2160 | rm -f conftest.o conftest.obj |
---|
| 2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2162 | (eval $ac_compile) 2>&5 |
---|
| 2163 | ac_status=$? |
---|
| 2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2165 | (exit $ac_status); }; then |
---|
| 2166 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2167 | case $ac_file in |
---|
| 2168 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2169 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2170 | break;; |
---|
| 2171 | esac |
---|
| 2172 | done |
---|
| 2173 | else |
---|
| 2174 | echo "$as_me: failed program was:" >&5 |
---|
| 2175 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2176 | |
---|
| 2177 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2178 | See \`config.log' for more details." >&5 |
---|
| 2179 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2180 | See \`config.log' for more details." >&2;} |
---|
| 2181 | { (exit 1); exit 1; }; } |
---|
| 2182 | fi |
---|
| 2183 | |
---|
| 2184 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2185 | fi |
---|
| 2186 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2187 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2188 | OBJEXT=$ac_cv_objext |
---|
| 2189 | ac_objext=$OBJEXT |
---|
| 2190 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2191 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2192 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2194 | else |
---|
| 2195 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2196 | /* confdefs.h. */ |
---|
| 2197 | _ACEOF |
---|
| 2198 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2199 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2200 | /* end confdefs.h. */ |
---|
| 2201 | |
---|
| 2202 | int |
---|
| 2203 | main () |
---|
| 2204 | { |
---|
| 2205 | #ifndef __GNUC__ |
---|
| 2206 | choke me |
---|
| 2207 | #endif |
---|
| 2208 | |
---|
| 2209 | ; |
---|
| 2210 | return 0; |
---|
| 2211 | } |
---|
| 2212 | _ACEOF |
---|
| 2213 | rm -f conftest.$ac_objext |
---|
| 2214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2215 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2216 | ac_status=$? |
---|
| 2217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2218 | rm -f conftest.er1 |
---|
| 2219 | cat conftest.err >&5 |
---|
| 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2221 | (exit $ac_status); } && |
---|
[5588] | 2222 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2223 | || test ! -s conftest.err' |
---|
[1956] | 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2225 | (eval $ac_try) 2>&5 |
---|
| 2226 | ac_status=$? |
---|
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2228 | (exit $ac_status); }; } && |
---|
| 2229 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2231 | (eval $ac_try) 2>&5 |
---|
| 2232 | ac_status=$? |
---|
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2234 | (exit $ac_status); }; }; then |
---|
| 2235 | ac_compiler_gnu=yes |
---|
| 2236 | else |
---|
| 2237 | echo "$as_me: failed program was:" >&5 |
---|
| 2238 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2239 | |
---|
| 2240 | ac_compiler_gnu=no |
---|
| 2241 | fi |
---|
| 2242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2243 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2244 | |
---|
| 2245 | fi |
---|
| 2246 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2247 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2248 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2249 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2250 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2251 | CXXFLAGS="-g" |
---|
| 2252 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2253 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2254 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2256 | else |
---|
| 2257 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2258 | /* confdefs.h. */ |
---|
| 2259 | _ACEOF |
---|
| 2260 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2261 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2262 | /* end confdefs.h. */ |
---|
| 2263 | |
---|
| 2264 | int |
---|
| 2265 | main () |
---|
| 2266 | { |
---|
| 2267 | |
---|
| 2268 | ; |
---|
| 2269 | return 0; |
---|
| 2270 | } |
---|
| 2271 | _ACEOF |
---|
| 2272 | rm -f conftest.$ac_objext |
---|
| 2273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2274 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2275 | ac_status=$? |
---|
| 2276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2277 | rm -f conftest.er1 |
---|
| 2278 | cat conftest.err >&5 |
---|
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2280 | (exit $ac_status); } && |
---|
[5588] | 2281 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2282 | || test ! -s conftest.err' |
---|
[1956] | 2283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2284 | (eval $ac_try) 2>&5 |
---|
| 2285 | ac_status=$? |
---|
| 2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2287 | (exit $ac_status); }; } && |
---|
| 2288 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2290 | (eval $ac_try) 2>&5 |
---|
| 2291 | ac_status=$? |
---|
| 2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2293 | (exit $ac_status); }; }; then |
---|
| 2294 | ac_cv_prog_cxx_g=yes |
---|
| 2295 | else |
---|
| 2296 | echo "$as_me: failed program was:" >&5 |
---|
| 2297 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2298 | |
---|
| 2299 | ac_cv_prog_cxx_g=no |
---|
| 2300 | fi |
---|
| 2301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2302 | fi |
---|
| 2303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2304 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2305 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2306 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2307 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2308 | if test "$GXX" = yes; then |
---|
| 2309 | CXXFLAGS="-g -O2" |
---|
| 2310 | else |
---|
| 2311 | CXXFLAGS="-g" |
---|
| 2312 | fi |
---|
| 2313 | else |
---|
| 2314 | if test "$GXX" = yes; then |
---|
| 2315 | CXXFLAGS="-O2" |
---|
| 2316 | else |
---|
| 2317 | CXXFLAGS= |
---|
| 2318 | fi |
---|
| 2319 | fi |
---|
| 2320 | for ac_declaration in \ |
---|
| 2321 | '' \ |
---|
| 2322 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2323 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2324 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2325 | 'extern "C" void exit (int);' \ |
---|
| 2326 | 'void exit (int);' |
---|
| 2327 | do |
---|
| 2328 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2329 | /* confdefs.h. */ |
---|
| 2330 | _ACEOF |
---|
| 2331 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2332 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2333 | /* end confdefs.h. */ |
---|
| 2334 | $ac_declaration |
---|
| 2335 | #include <stdlib.h> |
---|
| 2336 | int |
---|
| 2337 | main () |
---|
| 2338 | { |
---|
| 2339 | exit (42); |
---|
| 2340 | ; |
---|
| 2341 | return 0; |
---|
| 2342 | } |
---|
| 2343 | _ACEOF |
---|
| 2344 | rm -f conftest.$ac_objext |
---|
| 2345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2346 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2347 | ac_status=$? |
---|
| 2348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2349 | rm -f conftest.er1 |
---|
| 2350 | cat conftest.err >&5 |
---|
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2352 | (exit $ac_status); } && |
---|
[5588] | 2353 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2354 | || test ! -s conftest.err' |
---|
[1956] | 2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2356 | (eval $ac_try) 2>&5 |
---|
| 2357 | ac_status=$? |
---|
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2359 | (exit $ac_status); }; } && |
---|
| 2360 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2362 | (eval $ac_try) 2>&5 |
---|
| 2363 | ac_status=$? |
---|
| 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2365 | (exit $ac_status); }; }; then |
---|
| 2366 | : |
---|
| 2367 | else |
---|
| 2368 | echo "$as_me: failed program was:" >&5 |
---|
| 2369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2370 | |
---|
| 2371 | continue |
---|
| 2372 | fi |
---|
| 2373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2374 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2375 | /* confdefs.h. */ |
---|
| 2376 | _ACEOF |
---|
| 2377 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2378 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2379 | /* end confdefs.h. */ |
---|
| 2380 | $ac_declaration |
---|
| 2381 | int |
---|
| 2382 | main () |
---|
| 2383 | { |
---|
| 2384 | exit (42); |
---|
| 2385 | ; |
---|
| 2386 | return 0; |
---|
| 2387 | } |
---|
| 2388 | _ACEOF |
---|
| 2389 | rm -f conftest.$ac_objext |
---|
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2391 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2392 | ac_status=$? |
---|
| 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2394 | rm -f conftest.er1 |
---|
| 2395 | cat conftest.err >&5 |
---|
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2397 | (exit $ac_status); } && |
---|
[5588] | 2398 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2399 | || test ! -s conftest.err' |
---|
[1956] | 2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2401 | (eval $ac_try) 2>&5 |
---|
| 2402 | ac_status=$? |
---|
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2404 | (exit $ac_status); }; } && |
---|
| 2405 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2407 | (eval $ac_try) 2>&5 |
---|
| 2408 | ac_status=$? |
---|
| 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2410 | (exit $ac_status); }; }; then |
---|
| 2411 | break |
---|
| 2412 | else |
---|
| 2413 | echo "$as_me: failed program was:" >&5 |
---|
| 2414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2415 | |
---|
| 2416 | fi |
---|
| 2417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2418 | done |
---|
| 2419 | rm -f conftest* |
---|
| 2420 | if test -n "$ac_declaration"; then |
---|
| 2421 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2422 | echo $ac_declaration >>confdefs.h |
---|
| 2423 | echo '#endif' >>confdefs.h |
---|
| 2424 | fi |
---|
| 2425 | |
---|
| 2426 | ac_ext=c |
---|
| 2427 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2431 | DEPDIR="${am__leading_dot}deps" |
---|
| 2432 | |
---|
| 2433 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2434 | |
---|
| 2435 | |
---|
| 2436 | am_make=${MAKE-make} |
---|
| 2437 | cat > confinc << 'END' |
---|
| 2438 | am__doit: |
---|
| 2439 | @echo done |
---|
| 2440 | .PHONY: am__doit |
---|
| 2441 | END |
---|
| 2442 | # If we don't find an include directive, just comment out the code. |
---|
| 2443 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2444 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2445 | am__include="#" |
---|
| 2446 | am__quote= |
---|
| 2447 | _am_result=none |
---|
| 2448 | # First try GNU make style include. |
---|
| 2449 | echo "include confinc" > confmf |
---|
| 2450 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2451 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2452 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2453 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2454 | # case it prints its new name instead of `make'. |
---|
| 2455 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2456 | am__include=include |
---|
| 2457 | am__quote= |
---|
| 2458 | _am_result=GNU |
---|
| 2459 | fi |
---|
| 2460 | # Now try BSD make style include. |
---|
| 2461 | if test "$am__include" = "#"; then |
---|
| 2462 | echo '.include "confinc"' > confmf |
---|
| 2463 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2464 | am__include=.include |
---|
| 2465 | am__quote="\"" |
---|
| 2466 | _am_result=BSD |
---|
| 2467 | fi |
---|
| 2468 | fi |
---|
| 2469 | |
---|
| 2470 | |
---|
| 2471 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2472 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2473 | rm -f confinc confmf |
---|
| 2474 | |
---|
| 2475 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2476 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2477 | enableval="$enable_dependency_tracking" |
---|
| 2478 | |
---|
| 2479 | fi; |
---|
| 2480 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2481 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2482 | AMDEPBACKSLASH='\' |
---|
| 2483 | fi |
---|
| 2484 | |
---|
| 2485 | |
---|
| 2486 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2487 | AMDEP_TRUE= |
---|
| 2488 | AMDEP_FALSE='#' |
---|
| 2489 | else |
---|
| 2490 | AMDEP_TRUE='#' |
---|
| 2491 | AMDEP_FALSE= |
---|
| 2492 | fi |
---|
| 2493 | |
---|
| 2494 | |
---|
| 2495 | |
---|
| 2496 | |
---|
| 2497 | depcc="$CXX" am_compiler_list= |
---|
| 2498 | |
---|
| 2499 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2500 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2501 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2503 | else |
---|
| 2504 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2505 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2506 | # making bogus files that we don't know about and never remove. For |
---|
| 2507 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2508 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2509 | # in D'. |
---|
| 2510 | mkdir conftest.dir |
---|
| 2511 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2512 | # using a relative directory. |
---|
| 2513 | cp "$am_depcomp" conftest.dir |
---|
| 2514 | cd conftest.dir |
---|
| 2515 | # We will build objects and dependencies in a subdirectory because |
---|
| 2516 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2517 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2518 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2519 | # the current directory while Tru64 will put them in the object |
---|
| 2520 | # directory. |
---|
| 2521 | mkdir sub |
---|
| 2522 | |
---|
| 2523 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2524 | if test "$am_compiler_list" = ""; then |
---|
| 2525 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2526 | fi |
---|
| 2527 | for depmode in $am_compiler_list; do |
---|
| 2528 | # Setup a source with many dependencies, because some compilers |
---|
| 2529 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2530 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2531 | # |
---|
| 2532 | # We need to recreate these files for each test, as the compiler may |
---|
| 2533 | # overwrite some of them when testing with obscure command lines. |
---|
| 2534 | # This happens at least with the AIX C compiler. |
---|
| 2535 | : > sub/conftest.c |
---|
| 2536 | for i in 1 2 3 4 5 6; do |
---|
| 2537 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[4826] | 2538 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2539 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2540 | touch sub/conftst$i.h |
---|
[1956] | 2541 | done |
---|
| 2542 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2543 | |
---|
| 2544 | case $depmode in |
---|
| 2545 | nosideeffect) |
---|
| 2546 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2547 | # only be used when explicitly requested |
---|
| 2548 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2549 | continue |
---|
| 2550 | else |
---|
| 2551 | break |
---|
| 2552 | fi |
---|
| 2553 | ;; |
---|
| 2554 | none) break ;; |
---|
| 2555 | esac |
---|
| 2556 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2557 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2558 | # handle `-M -o', and we need to detect this. |
---|
| 2559 | if depmode=$depmode \ |
---|
| 2560 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2561 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2562 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2563 | >/dev/null 2>conftest.err && |
---|
| 2564 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2565 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2566 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2567 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[4826] | 2568 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2569 | # that says an option was ignored or not supported. |
---|
| 2570 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2571 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2572 | # The diagnosis changed in icc 8.0: |
---|
| 2573 | # icc: Command line remark: option '-MP' not supported |
---|
| 2574 | if (grep 'ignoring option' conftest.err || |
---|
| 2575 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2576 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2577 | break |
---|
| 2578 | fi |
---|
| 2579 | fi |
---|
| 2580 | done |
---|
| 2581 | |
---|
| 2582 | cd .. |
---|
| 2583 | rm -rf conftest.dir |
---|
| 2584 | else |
---|
| 2585 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2586 | fi |
---|
| 2587 | |
---|
| 2588 | fi |
---|
| 2589 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2590 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2591 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2592 | |
---|
| 2593 | |
---|
| 2594 | |
---|
| 2595 | if |
---|
| 2596 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2597 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2598 | am__fastdepCXX_TRUE= |
---|
| 2599 | am__fastdepCXX_FALSE='#' |
---|
| 2600 | else |
---|
| 2601 | am__fastdepCXX_TRUE='#' |
---|
| 2602 | am__fastdepCXX_FALSE= |
---|
| 2603 | fi |
---|
| 2604 | |
---|
| 2605 | |
---|
[5463] | 2606 | if test -n "$ac_tool_prefix"; then |
---|
| 2607 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2608 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 2609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2611 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 2612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[4054] | 2613 | else |
---|
[5463] | 2614 | if test -n "$RANLIB"; then |
---|
| 2615 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2616 | else |
---|
| 2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2618 | for as_dir in $PATH |
---|
| 2619 | do |
---|
| 2620 | IFS=$as_save_IFS |
---|
| 2621 | test -z "$as_dir" && as_dir=. |
---|
| 2622 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2624 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 2625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2626 | break 2 |
---|
| 2627 | fi |
---|
| 2628 | done |
---|
| 2629 | done |
---|
[4054] | 2630 | |
---|
[5463] | 2631 | fi |
---|
| 2632 | fi |
---|
| 2633 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2634 | if test -n "$RANLIB"; then |
---|
| 2635 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2636 | echo "${ECHO_T}$RANLIB" >&6 |
---|
[4054] | 2637 | else |
---|
[5463] | 2638 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2639 | echo "${ECHO_T}no" >&6 |
---|
| 2640 | fi |
---|
[4054] | 2641 | |
---|
[5463] | 2642 | fi |
---|
| 2643 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2644 | ac_ct_RANLIB=$RANLIB |
---|
| 2645 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2646 | set dummy ranlib; ac_word=$2 |
---|
| 2647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2649 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 2650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[4054] | 2651 | else |
---|
[5463] | 2652 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2653 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2654 | else |
---|
| 2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2656 | for as_dir in $PATH |
---|
| 2657 | do |
---|
| 2658 | IFS=$as_save_IFS |
---|
| 2659 | test -z "$as_dir" && as_dir=. |
---|
| 2660 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2662 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 2663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2664 | break 2 |
---|
| 2665 | fi |
---|
| 2666 | done |
---|
| 2667 | done |
---|
[4054] | 2668 | |
---|
[5463] | 2669 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 2670 | fi |
---|
| 2671 | fi |
---|
| 2672 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2673 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2674 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 2675 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 2676 | else |
---|
| 2677 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2678 | echo "${ECHO_T}no" >&6 |
---|
| 2679 | fi |
---|
| 2680 | |
---|
| 2681 | RANLIB=$ac_ct_RANLIB |
---|
| 2682 | else |
---|
| 2683 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2684 | fi |
---|
| 2685 | |
---|
[1956] | 2686 | ac_ext=c |
---|
| 2687 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2691 | if test -n "$ac_tool_prefix"; then |
---|
| 2692 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2693 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2696 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2698 | else |
---|
| 2699 | if test -n "$CC"; then |
---|
| 2700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2701 | else |
---|
| 2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2703 | for as_dir in $PATH |
---|
| 2704 | do |
---|
| 2705 | IFS=$as_save_IFS |
---|
| 2706 | test -z "$as_dir" && as_dir=. |
---|
| 2707 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2709 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2711 | break 2 |
---|
| 2712 | fi |
---|
| 2713 | done |
---|
| 2714 | done |
---|
| 2715 | |
---|
| 2716 | fi |
---|
| 2717 | fi |
---|
| 2718 | CC=$ac_cv_prog_CC |
---|
| 2719 | if test -n "$CC"; then |
---|
| 2720 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2721 | echo "${ECHO_T}$CC" >&6 |
---|
| 2722 | else |
---|
| 2723 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2724 | echo "${ECHO_T}no" >&6 |
---|
| 2725 | fi |
---|
| 2726 | |
---|
| 2727 | fi |
---|
| 2728 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2729 | ac_ct_CC=$CC |
---|
| 2730 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2731 | set dummy gcc; ac_word=$2 |
---|
| 2732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2734 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2736 | else |
---|
| 2737 | if test -n "$ac_ct_CC"; then |
---|
| 2738 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2739 | else |
---|
| 2740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2741 | for as_dir in $PATH |
---|
| 2742 | do |
---|
| 2743 | IFS=$as_save_IFS |
---|
| 2744 | test -z "$as_dir" && as_dir=. |
---|
| 2745 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2747 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2749 | break 2 |
---|
| 2750 | fi |
---|
| 2751 | done |
---|
| 2752 | done |
---|
| 2753 | |
---|
| 2754 | fi |
---|
| 2755 | fi |
---|
| 2756 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2757 | if test -n "$ac_ct_CC"; then |
---|
| 2758 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2759 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2760 | else |
---|
| 2761 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2762 | echo "${ECHO_T}no" >&6 |
---|
| 2763 | fi |
---|
| 2764 | |
---|
| 2765 | CC=$ac_ct_CC |
---|
| 2766 | else |
---|
| 2767 | CC="$ac_cv_prog_CC" |
---|
| 2768 | fi |
---|
| 2769 | |
---|
| 2770 | if test -z "$CC"; then |
---|
| 2771 | if test -n "$ac_tool_prefix"; then |
---|
| 2772 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2773 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2774 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2776 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2778 | else |
---|
| 2779 | if test -n "$CC"; then |
---|
| 2780 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2781 | else |
---|
| 2782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2783 | for as_dir in $PATH |
---|
| 2784 | do |
---|
| 2785 | IFS=$as_save_IFS |
---|
| 2786 | test -z "$as_dir" && as_dir=. |
---|
| 2787 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2789 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2791 | break 2 |
---|
| 2792 | fi |
---|
| 2793 | done |
---|
| 2794 | done |
---|
| 2795 | |
---|
| 2796 | fi |
---|
| 2797 | fi |
---|
| 2798 | CC=$ac_cv_prog_CC |
---|
| 2799 | if test -n "$CC"; then |
---|
| 2800 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2801 | echo "${ECHO_T}$CC" >&6 |
---|
| 2802 | else |
---|
| 2803 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2804 | echo "${ECHO_T}no" >&6 |
---|
| 2805 | fi |
---|
| 2806 | |
---|
| 2807 | fi |
---|
| 2808 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2809 | ac_ct_CC=$CC |
---|
| 2810 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2811 | set dummy cc; ac_word=$2 |
---|
| 2812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2814 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2816 | else |
---|
| 2817 | if test -n "$ac_ct_CC"; then |
---|
| 2818 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2819 | else |
---|
| 2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2821 | for as_dir in $PATH |
---|
| 2822 | do |
---|
| 2823 | IFS=$as_save_IFS |
---|
| 2824 | test -z "$as_dir" && as_dir=. |
---|
| 2825 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2827 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2829 | break 2 |
---|
| 2830 | fi |
---|
| 2831 | done |
---|
| 2832 | done |
---|
| 2833 | |
---|
| 2834 | fi |
---|
| 2835 | fi |
---|
| 2836 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2837 | if test -n "$ac_ct_CC"; then |
---|
| 2838 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2839 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2840 | else |
---|
| 2841 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2842 | echo "${ECHO_T}no" >&6 |
---|
| 2843 | fi |
---|
| 2844 | |
---|
| 2845 | CC=$ac_ct_CC |
---|
| 2846 | else |
---|
| 2847 | CC="$ac_cv_prog_CC" |
---|
| 2848 | fi |
---|
| 2849 | |
---|
| 2850 | fi |
---|
| 2851 | if test -z "$CC"; then |
---|
| 2852 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2853 | set dummy cc; ac_word=$2 |
---|
| 2854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2856 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2858 | else |
---|
| 2859 | if test -n "$CC"; then |
---|
| 2860 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2861 | else |
---|
| 2862 | ac_prog_rejected=no |
---|
| 2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2864 | for as_dir in $PATH |
---|
| 2865 | do |
---|
| 2866 | IFS=$as_save_IFS |
---|
| 2867 | test -z "$as_dir" && as_dir=. |
---|
| 2868 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2870 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2871 | ac_prog_rejected=yes |
---|
| 2872 | continue |
---|
| 2873 | fi |
---|
| 2874 | ac_cv_prog_CC="cc" |
---|
| 2875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2876 | break 2 |
---|
| 2877 | fi |
---|
| 2878 | done |
---|
| 2879 | done |
---|
| 2880 | |
---|
| 2881 | if test $ac_prog_rejected = yes; then |
---|
| 2882 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2883 | set dummy $ac_cv_prog_CC |
---|
| 2884 | shift |
---|
| 2885 | if test $# != 0; then |
---|
| 2886 | # We chose a different compiler from the bogus one. |
---|
| 2887 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2888 | # first if we set CC to just the basename; use the full file name. |
---|
| 2889 | shift |
---|
| 2890 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2891 | fi |
---|
| 2892 | fi |
---|
| 2893 | fi |
---|
| 2894 | fi |
---|
| 2895 | CC=$ac_cv_prog_CC |
---|
| 2896 | if test -n "$CC"; then |
---|
| 2897 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2898 | echo "${ECHO_T}$CC" >&6 |
---|
| 2899 | else |
---|
| 2900 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2901 | echo "${ECHO_T}no" >&6 |
---|
| 2902 | fi |
---|
| 2903 | |
---|
| 2904 | fi |
---|
| 2905 | if test -z "$CC"; then |
---|
| 2906 | if test -n "$ac_tool_prefix"; then |
---|
| 2907 | for ac_prog in cl |
---|
| 2908 | do |
---|
| 2909 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2910 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2913 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2915 | else |
---|
| 2916 | if test -n "$CC"; then |
---|
| 2917 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2918 | else |
---|
| 2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2920 | for as_dir in $PATH |
---|
| 2921 | do |
---|
| 2922 | IFS=$as_save_IFS |
---|
| 2923 | test -z "$as_dir" && as_dir=. |
---|
| 2924 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2926 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2928 | break 2 |
---|
| 2929 | fi |
---|
| 2930 | done |
---|
| 2931 | done |
---|
| 2932 | |
---|
| 2933 | fi |
---|
| 2934 | fi |
---|
| 2935 | CC=$ac_cv_prog_CC |
---|
| 2936 | if test -n "$CC"; then |
---|
| 2937 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2938 | echo "${ECHO_T}$CC" >&6 |
---|
| 2939 | else |
---|
| 2940 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2941 | echo "${ECHO_T}no" >&6 |
---|
| 2942 | fi |
---|
| 2943 | |
---|
| 2944 | test -n "$CC" && break |
---|
| 2945 | done |
---|
| 2946 | fi |
---|
| 2947 | if test -z "$CC"; then |
---|
| 2948 | ac_ct_CC=$CC |
---|
| 2949 | for ac_prog in cl |
---|
| 2950 | do |
---|
| 2951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2952 | set dummy $ac_prog; ac_word=$2 |
---|
| 2953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2955 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2957 | else |
---|
| 2958 | if test -n "$ac_ct_CC"; then |
---|
| 2959 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2960 | else |
---|
| 2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2962 | for as_dir in $PATH |
---|
| 2963 | do |
---|
| 2964 | IFS=$as_save_IFS |
---|
| 2965 | test -z "$as_dir" && as_dir=. |
---|
| 2966 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2968 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2970 | break 2 |
---|
| 2971 | fi |
---|
| 2972 | done |
---|
| 2973 | done |
---|
| 2974 | |
---|
| 2975 | fi |
---|
| 2976 | fi |
---|
| 2977 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2978 | if test -n "$ac_ct_CC"; then |
---|
| 2979 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2980 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2981 | else |
---|
| 2982 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2983 | echo "${ECHO_T}no" >&6 |
---|
| 2984 | fi |
---|
| 2985 | |
---|
| 2986 | test -n "$ac_ct_CC" && break |
---|
| 2987 | done |
---|
| 2988 | |
---|
| 2989 | CC=$ac_ct_CC |
---|
| 2990 | fi |
---|
| 2991 | |
---|
| 2992 | fi |
---|
| 2993 | |
---|
| 2994 | |
---|
| 2995 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2996 | See \`config.log' for more details." >&5 |
---|
| 2997 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2998 | See \`config.log' for more details." >&2;} |
---|
| 2999 | { (exit 1); exit 1; }; } |
---|
| 3000 | |
---|
| 3001 | # Provide some information about the compiler. |
---|
| 3002 | echo "$as_me:$LINENO:" \ |
---|
| 3003 | "checking for C compiler version" >&5 |
---|
| 3004 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 3005 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 3006 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 3007 | ac_status=$? |
---|
| 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3009 | (exit $ac_status); } |
---|
| 3010 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 3011 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 3012 | ac_status=$? |
---|
| 3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3014 | (exit $ac_status); } |
---|
| 3015 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 3016 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 3017 | ac_status=$? |
---|
| 3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3019 | (exit $ac_status); } |
---|
| 3020 | |
---|
| 3021 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 3022 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 3023 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 3024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3025 | else |
---|
| 3026 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3027 | /* confdefs.h. */ |
---|
| 3028 | _ACEOF |
---|
| 3029 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3031 | /* end confdefs.h. */ |
---|
| 3032 | |
---|
| 3033 | int |
---|
| 3034 | main () |
---|
| 3035 | { |
---|
| 3036 | #ifndef __GNUC__ |
---|
| 3037 | choke me |
---|
| 3038 | #endif |
---|
| 3039 | |
---|
| 3040 | ; |
---|
| 3041 | return 0; |
---|
| 3042 | } |
---|
| 3043 | _ACEOF |
---|
| 3044 | rm -f conftest.$ac_objext |
---|
| 3045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3046 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3047 | ac_status=$? |
---|
| 3048 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3049 | rm -f conftest.er1 |
---|
| 3050 | cat conftest.err >&5 |
---|
| 3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3052 | (exit $ac_status); } && |
---|
[5588] | 3053 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3054 | || test ! -s conftest.err' |
---|
[1956] | 3055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3056 | (eval $ac_try) 2>&5 |
---|
| 3057 | ac_status=$? |
---|
| 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3059 | (exit $ac_status); }; } && |
---|
| 3060 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3062 | (eval $ac_try) 2>&5 |
---|
| 3063 | ac_status=$? |
---|
| 3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3065 | (exit $ac_status); }; }; then |
---|
| 3066 | ac_compiler_gnu=yes |
---|
| 3067 | else |
---|
| 3068 | echo "$as_me: failed program was:" >&5 |
---|
| 3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3070 | |
---|
| 3071 | ac_compiler_gnu=no |
---|
| 3072 | fi |
---|
| 3073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3074 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3075 | |
---|
| 3076 | fi |
---|
| 3077 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3078 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 3079 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 3080 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3081 | ac_save_CFLAGS=$CFLAGS |
---|
| 3082 | CFLAGS="-g" |
---|
| 3083 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 3084 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 3085 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 3086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3087 | else |
---|
| 3088 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3089 | /* confdefs.h. */ |
---|
| 3090 | _ACEOF |
---|
| 3091 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3092 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3093 | /* end confdefs.h. */ |
---|
| 3094 | |
---|
| 3095 | int |
---|
| 3096 | main () |
---|
| 3097 | { |
---|
| 3098 | |
---|
| 3099 | ; |
---|
| 3100 | return 0; |
---|
| 3101 | } |
---|
| 3102 | _ACEOF |
---|
| 3103 | rm -f conftest.$ac_objext |
---|
| 3104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3105 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3106 | ac_status=$? |
---|
| 3107 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3108 | rm -f conftest.er1 |
---|
| 3109 | cat conftest.err >&5 |
---|
| 3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3111 | (exit $ac_status); } && |
---|
[5588] | 3112 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3113 | || test ! -s conftest.err' |
---|
[1956] | 3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3115 | (eval $ac_try) 2>&5 |
---|
| 3116 | ac_status=$? |
---|
| 3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3118 | (exit $ac_status); }; } && |
---|
| 3119 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3121 | (eval $ac_try) 2>&5 |
---|
| 3122 | ac_status=$? |
---|
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3124 | (exit $ac_status); }; }; then |
---|
| 3125 | ac_cv_prog_cc_g=yes |
---|
| 3126 | else |
---|
| 3127 | echo "$as_me: failed program was:" >&5 |
---|
| 3128 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3129 | |
---|
| 3130 | ac_cv_prog_cc_g=no |
---|
| 3131 | fi |
---|
| 3132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3133 | fi |
---|
| 3134 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3135 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3136 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3137 | CFLAGS=$ac_save_CFLAGS |
---|
| 3138 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3139 | if test "$GCC" = yes; then |
---|
| 3140 | CFLAGS="-g -O2" |
---|
| 3141 | else |
---|
| 3142 | CFLAGS="-g" |
---|
| 3143 | fi |
---|
| 3144 | else |
---|
| 3145 | if test "$GCC" = yes; then |
---|
| 3146 | CFLAGS="-O2" |
---|
| 3147 | else |
---|
| 3148 | CFLAGS= |
---|
| 3149 | fi |
---|
| 3150 | fi |
---|
| 3151 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3152 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3153 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3155 | else |
---|
| 3156 | ac_cv_prog_cc_stdc=no |
---|
| 3157 | ac_save_CC=$CC |
---|
| 3158 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3159 | /* confdefs.h. */ |
---|
| 3160 | _ACEOF |
---|
| 3161 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3163 | /* end confdefs.h. */ |
---|
| 3164 | #include <stdarg.h> |
---|
| 3165 | #include <stdio.h> |
---|
| 3166 | #include <sys/types.h> |
---|
| 3167 | #include <sys/stat.h> |
---|
| 3168 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3169 | struct buf { int x; }; |
---|
| 3170 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3171 | static char *e (p, i) |
---|
| 3172 | char **p; |
---|
| 3173 | int i; |
---|
| 3174 | { |
---|
| 3175 | return p[i]; |
---|
| 3176 | } |
---|
| 3177 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3178 | { |
---|
| 3179 | char *s; |
---|
| 3180 | va_list v; |
---|
| 3181 | va_start (v,p); |
---|
| 3182 | s = g (p, va_arg (v,int)); |
---|
| 3183 | va_end (v); |
---|
| 3184 | return s; |
---|
| 3185 | } |
---|
| 3186 | |
---|
| 3187 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3188 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3189 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3190 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3191 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3192 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3193 | that's true only with -std1. */ |
---|
| 3194 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3195 | |
---|
| 3196 | int test (int i, double x); |
---|
| 3197 | struct s1 {int (*f) (int a);}; |
---|
| 3198 | struct s2 {int (*f) (double a);}; |
---|
| 3199 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3200 | int argc; |
---|
| 3201 | char **argv; |
---|
| 3202 | int |
---|
| 3203 | main () |
---|
| 3204 | { |
---|
| 3205 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3206 | ; |
---|
| 3207 | return 0; |
---|
| 3208 | } |
---|
| 3209 | _ACEOF |
---|
| 3210 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3211 | # breaks some systems' header files. |
---|
| 3212 | # AIX -qlanglvl=ansi |
---|
| 3213 | # Ultrix and OSF/1 -std1 |
---|
| 3214 | # HP-UX 10.20 and later -Ae |
---|
| 3215 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3216 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3217 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3218 | do |
---|
| 3219 | CC="$ac_save_CC $ac_arg" |
---|
| 3220 | rm -f conftest.$ac_objext |
---|
| 3221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3222 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3223 | ac_status=$? |
---|
| 3224 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3225 | rm -f conftest.er1 |
---|
| 3226 | cat conftest.err >&5 |
---|
| 3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3228 | (exit $ac_status); } && |
---|
[5588] | 3229 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3230 | || test ! -s conftest.err' |
---|
[1956] | 3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3232 | (eval $ac_try) 2>&5 |
---|
| 3233 | ac_status=$? |
---|
| 3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3235 | (exit $ac_status); }; } && |
---|
| 3236 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3238 | (eval $ac_try) 2>&5 |
---|
| 3239 | ac_status=$? |
---|
| 3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3241 | (exit $ac_status); }; }; then |
---|
| 3242 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3243 | break |
---|
| 3244 | else |
---|
| 3245 | echo "$as_me: failed program was:" >&5 |
---|
| 3246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3247 | |
---|
| 3248 | fi |
---|
| 3249 | rm -f conftest.err conftest.$ac_objext |
---|
| 3250 | done |
---|
| 3251 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3252 | CC=$ac_save_CC |
---|
| 3253 | |
---|
| 3254 | fi |
---|
| 3255 | |
---|
| 3256 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3257 | x|xno) |
---|
| 3258 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3259 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3260 | *) |
---|
| 3261 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3262 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3263 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3264 | esac |
---|
| 3265 | |
---|
| 3266 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3267 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3268 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3269 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3270 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3271 | #ifndef __cplusplus |
---|
| 3272 | choke me |
---|
| 3273 | #endif |
---|
| 3274 | _ACEOF |
---|
| 3275 | rm -f conftest.$ac_objext |
---|
| 3276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3277 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3278 | ac_status=$? |
---|
| 3279 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3280 | rm -f conftest.er1 |
---|
| 3281 | cat conftest.err >&5 |
---|
| 3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3283 | (exit $ac_status); } && |
---|
[5588] | 3284 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3285 | || test ! -s conftest.err' |
---|
[1956] | 3286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3287 | (eval $ac_try) 2>&5 |
---|
| 3288 | ac_status=$? |
---|
| 3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3290 | (exit $ac_status); }; } && |
---|
| 3291 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3293 | (eval $ac_try) 2>&5 |
---|
| 3294 | ac_status=$? |
---|
| 3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3296 | (exit $ac_status); }; }; then |
---|
| 3297 | for ac_declaration in \ |
---|
| 3298 | '' \ |
---|
| 3299 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3300 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3301 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3302 | 'extern "C" void exit (int);' \ |
---|
| 3303 | 'void exit (int);' |
---|
| 3304 | do |
---|
| 3305 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3306 | /* confdefs.h. */ |
---|
| 3307 | _ACEOF |
---|
| 3308 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3309 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3310 | /* end confdefs.h. */ |
---|
| 3311 | $ac_declaration |
---|
| 3312 | #include <stdlib.h> |
---|
| 3313 | int |
---|
| 3314 | main () |
---|
| 3315 | { |
---|
| 3316 | exit (42); |
---|
| 3317 | ; |
---|
| 3318 | return 0; |
---|
| 3319 | } |
---|
| 3320 | _ACEOF |
---|
| 3321 | rm -f conftest.$ac_objext |
---|
| 3322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3323 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3324 | ac_status=$? |
---|
| 3325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3326 | rm -f conftest.er1 |
---|
| 3327 | cat conftest.err >&5 |
---|
| 3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3329 | (exit $ac_status); } && |
---|
[5588] | 3330 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3331 | || test ! -s conftest.err' |
---|
[1956] | 3332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3333 | (eval $ac_try) 2>&5 |
---|
| 3334 | ac_status=$? |
---|
| 3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3336 | (exit $ac_status); }; } && |
---|
| 3337 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3339 | (eval $ac_try) 2>&5 |
---|
| 3340 | ac_status=$? |
---|
| 3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3342 | (exit $ac_status); }; }; then |
---|
| 3343 | : |
---|
| 3344 | else |
---|
| 3345 | echo "$as_me: failed program was:" >&5 |
---|
| 3346 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3347 | |
---|
| 3348 | continue |
---|
| 3349 | fi |
---|
| 3350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3351 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3352 | /* confdefs.h. */ |
---|
| 3353 | _ACEOF |
---|
| 3354 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3356 | /* end confdefs.h. */ |
---|
| 3357 | $ac_declaration |
---|
| 3358 | int |
---|
| 3359 | main () |
---|
| 3360 | { |
---|
| 3361 | exit (42); |
---|
| 3362 | ; |
---|
| 3363 | return 0; |
---|
| 3364 | } |
---|
| 3365 | _ACEOF |
---|
| 3366 | rm -f conftest.$ac_objext |
---|
| 3367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3368 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3369 | ac_status=$? |
---|
| 3370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3371 | rm -f conftest.er1 |
---|
| 3372 | cat conftest.err >&5 |
---|
| 3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3374 | (exit $ac_status); } && |
---|
[5588] | 3375 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3376 | || test ! -s conftest.err' |
---|
[1956] | 3377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3378 | (eval $ac_try) 2>&5 |
---|
| 3379 | ac_status=$? |
---|
| 3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3381 | (exit $ac_status); }; } && |
---|
| 3382 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3384 | (eval $ac_try) 2>&5 |
---|
| 3385 | ac_status=$? |
---|
| 3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3387 | (exit $ac_status); }; }; then |
---|
| 3388 | break |
---|
| 3389 | else |
---|
| 3390 | echo "$as_me: failed program was:" >&5 |
---|
| 3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3392 | |
---|
| 3393 | fi |
---|
| 3394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3395 | done |
---|
| 3396 | rm -f conftest* |
---|
| 3397 | if test -n "$ac_declaration"; then |
---|
| 3398 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3399 | echo $ac_declaration >>confdefs.h |
---|
| 3400 | echo '#endif' >>confdefs.h |
---|
| 3401 | fi |
---|
| 3402 | |
---|
| 3403 | else |
---|
| 3404 | echo "$as_me: failed program was:" >&5 |
---|
| 3405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3406 | |
---|
| 3407 | fi |
---|
| 3408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3409 | ac_ext=c |
---|
| 3410 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3414 | |
---|
| 3415 | depcc="$CC" am_compiler_list= |
---|
| 3416 | |
---|
| 3417 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3418 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3419 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3421 | else |
---|
| 3422 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3423 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3424 | # making bogus files that we don't know about and never remove. For |
---|
| 3425 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3426 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3427 | # in D'. |
---|
| 3428 | mkdir conftest.dir |
---|
| 3429 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3430 | # using a relative directory. |
---|
| 3431 | cp "$am_depcomp" conftest.dir |
---|
| 3432 | cd conftest.dir |
---|
| 3433 | # We will build objects and dependencies in a subdirectory because |
---|
| 3434 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3435 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3436 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3437 | # the current directory while Tru64 will put them in the object |
---|
| 3438 | # directory. |
---|
| 3439 | mkdir sub |
---|
| 3440 | |
---|
| 3441 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3442 | if test "$am_compiler_list" = ""; then |
---|
| 3443 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3444 | fi |
---|
| 3445 | for depmode in $am_compiler_list; do |
---|
| 3446 | # Setup a source with many dependencies, because some compilers |
---|
| 3447 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3448 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3449 | # |
---|
| 3450 | # We need to recreate these files for each test, as the compiler may |
---|
| 3451 | # overwrite some of them when testing with obscure command lines. |
---|
| 3452 | # This happens at least with the AIX C compiler. |
---|
| 3453 | : > sub/conftest.c |
---|
| 3454 | for i in 1 2 3 4 5 6; do |
---|
| 3455 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[4826] | 3456 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3457 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3458 | touch sub/conftst$i.h |
---|
[1956] | 3459 | done |
---|
| 3460 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3461 | |
---|
| 3462 | case $depmode in |
---|
| 3463 | nosideeffect) |
---|
| 3464 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3465 | # only be used when explicitly requested |
---|
| 3466 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3467 | continue |
---|
| 3468 | else |
---|
| 3469 | break |
---|
| 3470 | fi |
---|
| 3471 | ;; |
---|
| 3472 | none) break ;; |
---|
| 3473 | esac |
---|
| 3474 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3475 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3476 | # handle `-M -o', and we need to detect this. |
---|
| 3477 | if depmode=$depmode \ |
---|
| 3478 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3479 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3480 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3481 | >/dev/null 2>conftest.err && |
---|
| 3482 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3483 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3484 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3485 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[4826] | 3486 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3487 | # that says an option was ignored or not supported. |
---|
| 3488 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3489 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3490 | # The diagnosis changed in icc 8.0: |
---|
| 3491 | # icc: Command line remark: option '-MP' not supported |
---|
| 3492 | if (grep 'ignoring option' conftest.err || |
---|
| 3493 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3494 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3495 | break |
---|
| 3496 | fi |
---|
| 3497 | fi |
---|
| 3498 | done |
---|
| 3499 | |
---|
| 3500 | cd .. |
---|
| 3501 | rm -rf conftest.dir |
---|
| 3502 | else |
---|
| 3503 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3504 | fi |
---|
| 3505 | |
---|
| 3506 | fi |
---|
| 3507 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3508 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3509 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3510 | |
---|
| 3511 | |
---|
| 3512 | |
---|
| 3513 | if |
---|
| 3514 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3515 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3516 | am__fastdepCC_TRUE= |
---|
| 3517 | am__fastdepCC_FALSE='#' |
---|
| 3518 | else |
---|
| 3519 | am__fastdepCC_TRUE='#' |
---|
| 3520 | am__fastdepCC_FALSE= |
---|
| 3521 | fi |
---|
| 3522 | |
---|
| 3523 | |
---|
| 3524 | |
---|
[1971] | 3525 | ac_ext=c |
---|
| 3526 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3530 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3531 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3532 | # On Suns, sometimes $CPP names a directory. |
---|
| 3533 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3534 | CPP= |
---|
| 3535 | fi |
---|
| 3536 | if test -z "$CPP"; then |
---|
| 3537 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3539 | else |
---|
[1971] | 3540 | # Double quotes because CPP needs to be expanded |
---|
| 3541 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3542 | do |
---|
| 3543 | ac_preproc_ok=false |
---|
| 3544 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3545 | do |
---|
| 3546 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3547 | # with a fresh cross-compiler works. |
---|
| 3548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3549 | # <limits.h> exists even on freestanding compilers. |
---|
| 3550 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3551 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3552 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3553 | /* confdefs.h. */ |
---|
| 3554 | _ACEOF |
---|
| 3555 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3557 | /* end confdefs.h. */ |
---|
| 3558 | #ifdef __STDC__ |
---|
| 3559 | # include <limits.h> |
---|
| 3560 | #else |
---|
| 3561 | # include <assert.h> |
---|
| 3562 | #endif |
---|
| 3563 | Syntax error |
---|
| 3564 | _ACEOF |
---|
| 3565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3567 | ac_status=$? |
---|
| 3568 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3569 | rm -f conftest.er1 |
---|
| 3570 | cat conftest.err >&5 |
---|
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3572 | (exit $ac_status); } >/dev/null; then |
---|
| 3573 | if test -s conftest.err; then |
---|
| 3574 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3576 | else |
---|
| 3577 | ac_cpp_err= |
---|
| 3578 | fi |
---|
| 3579 | else |
---|
| 3580 | ac_cpp_err=yes |
---|
| 3581 | fi |
---|
| 3582 | if test -z "$ac_cpp_err"; then |
---|
| 3583 | : |
---|
| 3584 | else |
---|
| 3585 | echo "$as_me: failed program was:" >&5 |
---|
| 3586 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3587 | |
---|
| 3588 | # Broken: fails on valid input. |
---|
| 3589 | continue |
---|
| 3590 | fi |
---|
| 3591 | rm -f conftest.err conftest.$ac_ext |
---|
| 3592 | |
---|
| 3593 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3594 | # can be detected and how. |
---|
| 3595 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3596 | /* confdefs.h. */ |
---|
| 3597 | _ACEOF |
---|
| 3598 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3600 | /* end confdefs.h. */ |
---|
| 3601 | #include <ac_nonexistent.h> |
---|
| 3602 | _ACEOF |
---|
| 3603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3605 | ac_status=$? |
---|
| 3606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3607 | rm -f conftest.er1 |
---|
| 3608 | cat conftest.err >&5 |
---|
| 3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3610 | (exit $ac_status); } >/dev/null; then |
---|
| 3611 | if test -s conftest.err; then |
---|
| 3612 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3614 | else |
---|
| 3615 | ac_cpp_err= |
---|
| 3616 | fi |
---|
| 3617 | else |
---|
| 3618 | ac_cpp_err=yes |
---|
| 3619 | fi |
---|
| 3620 | if test -z "$ac_cpp_err"; then |
---|
| 3621 | # Broken: success on invalid input. |
---|
| 3622 | continue |
---|
| 3623 | else |
---|
| 3624 | echo "$as_me: failed program was:" >&5 |
---|
| 3625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3626 | |
---|
| 3627 | # Passes both tests. |
---|
| 3628 | ac_preproc_ok=: |
---|
| 3629 | break |
---|
| 3630 | fi |
---|
| 3631 | rm -f conftest.err conftest.$ac_ext |
---|
| 3632 | |
---|
| 3633 | done |
---|
| 3634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3635 | rm -f conftest.err conftest.$ac_ext |
---|
| 3636 | if $ac_preproc_ok; then |
---|
| 3637 | break |
---|
| 3638 | fi |
---|
| 3639 | |
---|
| 3640 | done |
---|
| 3641 | ac_cv_prog_CPP=$CPP |
---|
| 3642 | |
---|
| 3643 | fi |
---|
| 3644 | CPP=$ac_cv_prog_CPP |
---|
| 3645 | else |
---|
| 3646 | ac_cv_prog_CPP=$CPP |
---|
| 3647 | fi |
---|
| 3648 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3649 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3650 | ac_preproc_ok=false |
---|
| 3651 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3652 | do |
---|
| 3653 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3654 | # with a fresh cross-compiler works. |
---|
| 3655 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3656 | # <limits.h> exists even on freestanding compilers. |
---|
| 3657 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3658 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3659 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3660 | /* confdefs.h. */ |
---|
| 3661 | _ACEOF |
---|
| 3662 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3663 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3664 | /* end confdefs.h. */ |
---|
| 3665 | #ifdef __STDC__ |
---|
| 3666 | # include <limits.h> |
---|
| 3667 | #else |
---|
| 3668 | # include <assert.h> |
---|
| 3669 | #endif |
---|
| 3670 | Syntax error |
---|
| 3671 | _ACEOF |
---|
| 3672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3674 | ac_status=$? |
---|
| 3675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3676 | rm -f conftest.er1 |
---|
| 3677 | cat conftest.err >&5 |
---|
| 3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3679 | (exit $ac_status); } >/dev/null; then |
---|
| 3680 | if test -s conftest.err; then |
---|
| 3681 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3683 | else |
---|
| 3684 | ac_cpp_err= |
---|
| 3685 | fi |
---|
| 3686 | else |
---|
| 3687 | ac_cpp_err=yes |
---|
| 3688 | fi |
---|
| 3689 | if test -z "$ac_cpp_err"; then |
---|
| 3690 | : |
---|
| 3691 | else |
---|
| 3692 | echo "$as_me: failed program was:" >&5 |
---|
| 3693 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3694 | |
---|
| 3695 | # Broken: fails on valid input. |
---|
| 3696 | continue |
---|
| 3697 | fi |
---|
| 3698 | rm -f conftest.err conftest.$ac_ext |
---|
| 3699 | |
---|
| 3700 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3701 | # can be detected and how. |
---|
| 3702 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3703 | /* confdefs.h. */ |
---|
| 3704 | _ACEOF |
---|
| 3705 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3706 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3707 | /* end confdefs.h. */ |
---|
| 3708 | #include <ac_nonexistent.h> |
---|
| 3709 | _ACEOF |
---|
| 3710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3712 | ac_status=$? |
---|
| 3713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3714 | rm -f conftest.er1 |
---|
| 3715 | cat conftest.err >&5 |
---|
| 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3717 | (exit $ac_status); } >/dev/null; then |
---|
| 3718 | if test -s conftest.err; then |
---|
| 3719 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3721 | else |
---|
| 3722 | ac_cpp_err= |
---|
| 3723 | fi |
---|
| 3724 | else |
---|
| 3725 | ac_cpp_err=yes |
---|
| 3726 | fi |
---|
| 3727 | if test -z "$ac_cpp_err"; then |
---|
| 3728 | # Broken: success on invalid input. |
---|
| 3729 | continue |
---|
| 3730 | else |
---|
| 3731 | echo "$as_me: failed program was:" >&5 |
---|
| 3732 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3733 | |
---|
| 3734 | # Passes both tests. |
---|
| 3735 | ac_preproc_ok=: |
---|
| 3736 | break |
---|
| 3737 | fi |
---|
| 3738 | rm -f conftest.err conftest.$ac_ext |
---|
| 3739 | |
---|
| 3740 | done |
---|
| 3741 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3742 | rm -f conftest.err conftest.$ac_ext |
---|
| 3743 | if $ac_preproc_ok; then |
---|
| 3744 | : |
---|
| 3745 | else |
---|
| 3746 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3747 | See \`config.log' for more details." >&5 |
---|
| 3748 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3749 | See \`config.log' for more details." >&2;} |
---|
| 3750 | { (exit 1); exit 1; }; } |
---|
| 3751 | fi |
---|
| 3752 | |
---|
| 3753 | ac_ext=c |
---|
| 3754 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3758 | |
---|
| 3759 | |
---|
[5463] | 3760 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3761 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3762 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
[1971] | 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3764 | else |
---|
[5463] | 3765 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3766 | then ac_cv_prog_egrep='grep -E' |
---|
| 3767 | else ac_cv_prog_egrep='egrep' |
---|
[1971] | 3768 | fi |
---|
| 3769 | fi |
---|
[5463] | 3770 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3771 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3772 | EGREP=$ac_cv_prog_egrep |
---|
[1971] | 3773 | |
---|
| 3774 | |
---|
| 3775 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3776 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3777 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3779 | else |
---|
| 3780 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3781 | /* confdefs.h. */ |
---|
| 3782 | _ACEOF |
---|
| 3783 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3784 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3785 | /* end confdefs.h. */ |
---|
| 3786 | #include <stdlib.h> |
---|
| 3787 | #include <stdarg.h> |
---|
| 3788 | #include <string.h> |
---|
| 3789 | #include <float.h> |
---|
| 3790 | |
---|
| 3791 | int |
---|
| 3792 | main () |
---|
| 3793 | { |
---|
| 3794 | |
---|
| 3795 | ; |
---|
| 3796 | return 0; |
---|
| 3797 | } |
---|
| 3798 | _ACEOF |
---|
| 3799 | rm -f conftest.$ac_objext |
---|
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3801 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3802 | ac_status=$? |
---|
| 3803 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3804 | rm -f conftest.er1 |
---|
| 3805 | cat conftest.err >&5 |
---|
| 3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3807 | (exit $ac_status); } && |
---|
[5588] | 3808 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3809 | || test ! -s conftest.err' |
---|
[1971] | 3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3811 | (eval $ac_try) 2>&5 |
---|
| 3812 | ac_status=$? |
---|
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3814 | (exit $ac_status); }; } && |
---|
| 3815 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3817 | (eval $ac_try) 2>&5 |
---|
| 3818 | ac_status=$? |
---|
| 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3820 | (exit $ac_status); }; }; then |
---|
| 3821 | ac_cv_header_stdc=yes |
---|
| 3822 | else |
---|
| 3823 | echo "$as_me: failed program was:" >&5 |
---|
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3825 | |
---|
| 3826 | ac_cv_header_stdc=no |
---|
| 3827 | fi |
---|
| 3828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3829 | |
---|
| 3830 | if test $ac_cv_header_stdc = yes; then |
---|
| 3831 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3832 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3833 | /* confdefs.h. */ |
---|
| 3834 | _ACEOF |
---|
| 3835 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3836 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3837 | /* end confdefs.h. */ |
---|
| 3838 | #include <string.h> |
---|
| 3839 | |
---|
| 3840 | _ACEOF |
---|
| 3841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3842 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3843 | : |
---|
| 3844 | else |
---|
| 3845 | ac_cv_header_stdc=no |
---|
| 3846 | fi |
---|
| 3847 | rm -f conftest* |
---|
| 3848 | |
---|
| 3849 | fi |
---|
| 3850 | |
---|
| 3851 | if test $ac_cv_header_stdc = yes; then |
---|
| 3852 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3853 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3854 | /* confdefs.h. */ |
---|
| 3855 | _ACEOF |
---|
| 3856 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3857 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3858 | /* end confdefs.h. */ |
---|
| 3859 | #include <stdlib.h> |
---|
| 3860 | |
---|
| 3861 | _ACEOF |
---|
| 3862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3863 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3864 | : |
---|
| 3865 | else |
---|
| 3866 | ac_cv_header_stdc=no |
---|
| 3867 | fi |
---|
| 3868 | rm -f conftest* |
---|
| 3869 | |
---|
| 3870 | fi |
---|
| 3871 | |
---|
| 3872 | if test $ac_cv_header_stdc = yes; then |
---|
| 3873 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3874 | if test "$cross_compiling" = yes; then |
---|
| 3875 | : |
---|
| 3876 | else |
---|
| 3877 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3878 | /* confdefs.h. */ |
---|
| 3879 | _ACEOF |
---|
| 3880 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3882 | /* end confdefs.h. */ |
---|
| 3883 | #include <ctype.h> |
---|
| 3884 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3885 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3886 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3887 | #else |
---|
| 3888 | # define ISLOWER(c) \ |
---|
| 3889 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3890 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3891 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3892 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3893 | #endif |
---|
| 3894 | |
---|
| 3895 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3896 | int |
---|
| 3897 | main () |
---|
| 3898 | { |
---|
| 3899 | int i; |
---|
| 3900 | for (i = 0; i < 256; i++) |
---|
| 3901 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3902 | || toupper (i) != TOUPPER (i)) |
---|
| 3903 | exit(2); |
---|
| 3904 | exit (0); |
---|
| 3905 | } |
---|
| 3906 | _ACEOF |
---|
| 3907 | rm -f conftest$ac_exeext |
---|
| 3908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3909 | (eval $ac_link) 2>&5 |
---|
| 3910 | ac_status=$? |
---|
| 3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3914 | (eval $ac_try) 2>&5 |
---|
| 3915 | ac_status=$? |
---|
| 3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3917 | (exit $ac_status); }; }; then |
---|
| 3918 | : |
---|
| 3919 | else |
---|
| 3920 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3921 | echo "$as_me: failed program was:" >&5 |
---|
| 3922 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3923 | |
---|
| 3924 | ( exit $ac_status ) |
---|
| 3925 | ac_cv_header_stdc=no |
---|
| 3926 | fi |
---|
| 3927 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3928 | fi |
---|
| 3929 | fi |
---|
| 3930 | fi |
---|
| 3931 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3932 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3933 | if test $ac_cv_header_stdc = yes; then |
---|
| 3934 | |
---|
| 3935 | cat >>confdefs.h <<\_ACEOF |
---|
| 3936 | #define STDC_HEADERS 1 |
---|
| 3937 | _ACEOF |
---|
| 3938 | |
---|
| 3939 | fi |
---|
| 3940 | |
---|
| 3941 | |
---|
[4774] | 3942 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
| 3943 | |
---|
[3424] | 3944 | ################################## |
---|
| 3945 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3946 | ################################## |
---|
[4774] | 3947 | #----------------# |
---|
| 3948 | # Data-Directory # |
---|
| 3949 | #----------------# |
---|
| 3950 | DATA_DIR=$datadir |
---|
| 3951 | echo \$\{prefix\} |
---|
| 3952 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
| 3953 | echo "not given" |
---|
| 3954 | DATA_DIR=/usr/share |
---|
| 3955 | else |
---|
| 3956 | echo "given: $DATA_DIR" |
---|
| 3957 | fi |
---|
[3424] | 3958 | |
---|
[4774] | 3959 | cat >>confdefs.h <<_ACEOF |
---|
| 3960 | #define DATADIR "$DATA_DIR" |
---|
| 3961 | _ACEOF |
---|
| 3962 | |
---|
| 3963 | |
---|
[3424] | 3964 | #-----------------# |
---|
[5221] | 3965 | # shared-lib-path # |
---|
| 3966 | #-----------------# |
---|
| 3967 | SHARED_LIB_PATH=no |
---|
| 3968 | echo "$as_me:$LINENO: checking shared lib path" >&5 |
---|
| 3969 | echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 |
---|
| 3970 | |
---|
| 3971 | # Check whether --with-shared-lib-path or --without-shared-lib-path was given. |
---|
| 3972 | if test "${with_shared_lib_path+set}" = set; then |
---|
| 3973 | withval="$with_shared_lib_path" |
---|
[5224] | 3974 | SHARED_LIB_PATH=$withval |
---|
[5221] | 3975 | fi; |
---|
[5224] | 3976 | if test x$SHARED_LIB_PATH != xno; then |
---|
[5265] | 3977 | echo "set to $SHARED_LIB_PATH" |
---|
[5224] | 3978 | else |
---|
[5221] | 3979 | echo "no" |
---|
| 3980 | fi |
---|
| 3981 | |
---|
| 3982 | |
---|
| 3983 | #-----------------# |
---|
[3424] | 3984 | # DEBUG-statement # |
---|
| 3985 | #-----------------# |
---|
[3173] | 3986 | DEBUG=no |
---|
| 3987 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3988 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3989 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3990 | if test "${enable_debug+set}" = set; then |
---|
| 3991 | enableval="$enable_debug" |
---|
[3205] | 3992 | DEBUG=$enableval |
---|
[3173] | 3993 | fi; |
---|
| 3994 | |
---|
[3424] | 3995 | if test x$DEBUG = xno; then |
---|
[4556] | 3996 | echo "no" |
---|
| 3997 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
| 3998 | DEBUG=4 |
---|
[3424] | 3999 | elif test x$DEBUG = xyes; then |
---|
[4556] | 4000 | echo "yes" |
---|
| 4001 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 4002 | DEBUG=4 |
---|
[3205] | 4003 | else |
---|
[4556] | 4004 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 4005 | fi |
---|
| 4006 | |
---|
[3173] | 4007 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 4008 | #define DEBUG $DEBUG |
---|
[3173] | 4009 | _ACEOF |
---|
| 4010 | |
---|
| 4011 | |
---|
| 4012 | |
---|
[3592] | 4013 | #---------------# |
---|
| 4014 | # Modular Debug # |
---|
| 4015 | #---------------# |
---|
| 4016 | MODULAR_DEBUG=yes |
---|
| 4017 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
| 4018 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
| 4019 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
| 4020 | if test "${enable_modular_debug+set}" = set; then |
---|
| 4021 | enableval="$enable_modular_debug" |
---|
| 4022 | MODULAR_DEBUG=$enableval |
---|
| 4023 | fi; |
---|
| 4024 | |
---|
| 4025 | if test x$MODULAR_DEBUG = xno; then |
---|
[4556] | 4026 | echo "no" |
---|
[3592] | 4027 | elif test x$MODULAR_DEBUG = xyes; then |
---|
[4556] | 4028 | echo "yes" |
---|
[3592] | 4029 | |
---|
| 4030 | cat >>confdefs.h <<_ACEOF |
---|
| 4031 | #define MODULAR_DEBUG 1 |
---|
| 4032 | _ACEOF |
---|
| 4033 | |
---|
| 4034 | fi |
---|
| 4035 | |
---|
[3424] | 4036 | #--------------# |
---|
| 4037 | # GTK-disabled # |
---|
| 4038 | #--------------# |
---|
[3100] | 4039 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 4040 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[4774] | 4041 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
| 4042 | if test "${enable_gtk+set}" = set; then |
---|
| 4043 | enableval="$enable_gtk" |
---|
[3100] | 4044 | def_gtk=no |
---|
[3205] | 4045 | else |
---|
| 4046 | def_gtk=yes |
---|
[3100] | 4047 | fi; |
---|
[3424] | 4048 | if test x$def_gtk = xyes; then |
---|
[3100] | 4049 | echo "yes" |
---|
| 4050 | fi |
---|
[3424] | 4051 | if test x$def_gtk = xno; then |
---|
[3100] | 4052 | echo "no" |
---|
| 4053 | fi |
---|
[3423] | 4054 | |
---|
[3424] | 4055 | #------------------# |
---|
| 4056 | # libCurl-disabled # |
---|
| 4057 | #------------------# |
---|
[3423] | 4058 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 4059 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
[4774] | 4060 | # Check whether --enable-curl or --disable-curl was given. |
---|
| 4061 | if test "${enable_curl+set}" = set; then |
---|
| 4062 | enableval="$enable_curl" |
---|
[3423] | 4063 | def_curl=no |
---|
| 4064 | else |
---|
| 4065 | def_curl=yes |
---|
| 4066 | fi; |
---|
[3424] | 4067 | if test x$def_curl = xyes; then |
---|
[3423] | 4068 | echo "yes" |
---|
| 4069 | fi |
---|
[3424] | 4070 | if test x$def_curl = xno; then |
---|
[3423] | 4071 | echo "no" |
---|
| 4072 | fi |
---|
| 4073 | |
---|
[3424] | 4074 | #-------------------# |
---|
| 4075 | # SubProject-enable # |
---|
| 4076 | #-------------------# |
---|
| 4077 | def_sub_projects=no |
---|
[3377] | 4078 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 4079 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
[4774] | 4080 | |
---|
| 4081 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
| 4082 | if test "${with_sub_projects+set}" = set; then |
---|
| 4083 | withval="$with_sub_projects" |
---|
[3377] | 4084 | def_sub_projects=yes |
---|
| 4085 | fi; |
---|
[3424] | 4086 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 4087 | echo "yes" |
---|
| 4088 | fi |
---|
[3424] | 4089 | if test x$def_sub_projects = xno; then |
---|
[3377] | 4090 | echo "no" |
---|
| 4091 | fi |
---|
| 4092 | |
---|
| 4093 | |
---|
| 4094 | if test x$def_sub_projects = xyes; then |
---|
| 4095 | SUB_PROJECTS_TRUE= |
---|
| 4096 | SUB_PROJECTS_FALSE='#' |
---|
| 4097 | else |
---|
| 4098 | SUB_PROJECTS_TRUE='#' |
---|
| 4099 | SUB_PROJECTS_FALSE= |
---|
| 4100 | fi |
---|
| 4101 | |
---|
| 4102 | |
---|
[3788] | 4103 | #-------------------# |
---|
| 4104 | # Profiling Enabled # |
---|
| 4105 | #-------------------# |
---|
| 4106 | def_profiling=no |
---|
| 4107 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
| 4108 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
| 4109 | # Check whether --enable-profile or --disable-profile was given. |
---|
| 4110 | if test "${enable_profile+set}" = set; then |
---|
| 4111 | enableval="$enable_profile" |
---|
| 4112 | def_profiling=yes |
---|
| 4113 | fi; |
---|
| 4114 | if test x$def_profiling = xyes; then |
---|
| 4115 | echo "yes" |
---|
| 4116 | CXXFLAGS="$CXXFLAGS -pg" |
---|
| 4117 | fi |
---|
| 4118 | if test x$def_profiling = xno; then |
---|
| 4119 | echo "no" |
---|
| 4120 | fi |
---|
| 4121 | |
---|
[3863] | 4122 | #----------------# |
---|
| 4123 | # efence Enabled # |
---|
| 4124 | #----------------# |
---|
| 4125 | def_efence=no |
---|
| 4126 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
| 4127 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
| 4128 | # Check whether --enable-efence or --disable-efence was given. |
---|
| 4129 | if test "${enable_efence+set}" = set; then |
---|
| 4130 | enableval="$enable_efence" |
---|
| 4131 | def_efence=yes |
---|
| 4132 | fi; |
---|
| 4133 | if test x$def_efence = xyes; then |
---|
| 4134 | echo "yes" |
---|
| 4135 | fi |
---|
| 4136 | if test x$def_efence = xno; then |
---|
| 4137 | echo "no" |
---|
| 4138 | fi |
---|
| 4139 | |
---|
[3558] | 4140 | #----------------------# |
---|
| 4141 | # Documentation-enable # |
---|
| 4142 | #----------------------# |
---|
| 4143 | def_documentation=no |
---|
| 4144 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
| 4145 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
| 4146 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
| 4147 | if test "${enable_documentation+set}" = set; then |
---|
| 4148 | enableval="$enable_documentation" |
---|
| 4149 | def_documentation=yes |
---|
| 4150 | fi; |
---|
| 4151 | if test x$def_documentation = xyes; then |
---|
| 4152 | echo "yes" |
---|
| 4153 | fi |
---|
| 4154 | if test x$def_documentation = xno; then |
---|
| 4155 | echo "no" |
---|
| 4156 | fi |
---|
| 4157 | |
---|
| 4158 | |
---|
| 4159 | if test x$def_documentation = xyes; then |
---|
| 4160 | DOCUMENTATION_TRUE= |
---|
| 4161 | DOCUMENTATION_FALSE='#' |
---|
| 4162 | else |
---|
| 4163 | DOCUMENTATION_TRUE='#' |
---|
| 4164 | DOCUMENTATION_FALSE= |
---|
| 4165 | fi |
---|
| 4166 | |
---|
[4774] | 4167 | |
---|
[5467] | 4168 | |
---|
| 4169 | |
---|
| 4170 | #---------------------------# |
---|
| 4171 | # WITH TARDIS (convenience) # |
---|
| 4172 | #---------------------------# |
---|
| 4173 | def_tardis=no |
---|
[5479] | 4174 | GTKPATH="" |
---|
[5467] | 4175 | echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5 |
---|
| 4176 | echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6 |
---|
| 4177 | |
---|
[5468] | 4178 | # Check whether --with-tardis or --without-tardis was given. |
---|
| 4179 | if test "${with_tardis+set}" = set; then |
---|
| 4180 | withval="$with_tardis" |
---|
[5467] | 4181 | def_tardis=yes |
---|
| 4182 | fi; |
---|
| 4183 | if test x$def_tardis = xyes; then |
---|
[5471] | 4184 | ARCH=i686-debian-linux3.1 |
---|
| 4185 | ## GAMELIBS |
---|
[5467] | 4186 | PREFIX=/usr/pack/gamelibs-1.0-to |
---|
[5471] | 4187 | CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include" |
---|
| 4188 | LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib" |
---|
| 4189 | ## GTK |
---|
| 4190 | GTKPREFIX=/usr/pack/gtk-2.8.3-mo |
---|
[5479] | 4191 | GTKPATH=${GTKPREFIX}/${ARCH}/bin |
---|
[5471] | 4192 | CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include" |
---|
| 4193 | LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib" |
---|
[5467] | 4194 | echo "yes" |
---|
| 4195 | fi |
---|
| 4196 | if test x$def_tardis = xno; then |
---|
| 4197 | echo "no" |
---|
| 4198 | fi |
---|
| 4199 | |
---|
[3424] | 4200 | ####################### |
---|
| 4201 | ## PROGRAMM CHECKING ## |
---|
| 4202 | ## 3. party Programs ## |
---|
| 4203 | ####################### |
---|
| 4204 | |
---|
| 4205 | #----------------------# |
---|
| 4206 | # checking for Doxygen # |
---|
| 4207 | #----------------------# |
---|
[3219] | 4208 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4209 | set dummy doxygen; ac_word=$2 |
---|
| 4210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4212 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4214 | else |
---|
| 4215 | case $DOXYGEN in |
---|
| 4216 | [\\/]* | ?:[\\/]*) |
---|
| 4217 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4218 | ;; |
---|
| 4219 | *) |
---|
| 4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4221 | for as_dir in $PATH |
---|
| 4222 | do |
---|
| 4223 | IFS=$as_save_IFS |
---|
| 4224 | test -z "$as_dir" && as_dir=. |
---|
| 4225 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4227 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4229 | break 2 |
---|
| 4230 | fi |
---|
| 4231 | done |
---|
| 4232 | done |
---|
| 4233 | |
---|
| 4234 | ;; |
---|
| 4235 | esac |
---|
| 4236 | fi |
---|
| 4237 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4238 | |
---|
| 4239 | if test -n "$DOXYGEN"; then |
---|
| 4240 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4241 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4242 | else |
---|
| 4243 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4244 | echo "${ECHO_T}no" >&6 |
---|
| 4245 | fi |
---|
| 4246 | |
---|
| 4247 | |
---|
| 4248 | |
---|
| 4249 | if test $DOXYGEN; then |
---|
| 4250 | DOXYGEN_TRUE= |
---|
| 4251 | DOXYGEN_FALSE='#' |
---|
| 4252 | else |
---|
| 4253 | DOXYGEN_TRUE='#' |
---|
| 4254 | DOXYGEN_FALSE= |
---|
| 4255 | fi |
---|
| 4256 | |
---|
| 4257 | |
---|
[3789] | 4258 | #--------------------# |
---|
| 4259 | # checking for gprof # |
---|
| 4260 | #--------------------# |
---|
| 4261 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
| 4262 | set dummy gprof; ac_word=$2 |
---|
| 4263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4265 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
| 4266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4267 | else |
---|
| 4268 | case $GPROF in |
---|
| 4269 | [\\/]* | ?:[\\/]*) |
---|
| 4270 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
| 4271 | ;; |
---|
| 4272 | *) |
---|
| 4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4274 | for as_dir in $PATH |
---|
| 4275 | do |
---|
| 4276 | IFS=$as_save_IFS |
---|
| 4277 | test -z "$as_dir" && as_dir=. |
---|
| 4278 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4280 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4282 | break 2 |
---|
| 4283 | fi |
---|
| 4284 | done |
---|
| 4285 | done |
---|
| 4286 | |
---|
| 4287 | ;; |
---|
| 4288 | esac |
---|
| 4289 | fi |
---|
| 4290 | GPROF=$ac_cv_path_GPROF |
---|
| 4291 | |
---|
| 4292 | if test -n "$GPROF"; then |
---|
| 4293 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
| 4294 | echo "${ECHO_T}$GPROF" >&6 |
---|
| 4295 | else |
---|
| 4296 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4297 | echo "${ECHO_T}no" >&6 |
---|
| 4298 | fi |
---|
| 4299 | |
---|
| 4300 | |
---|
[4130] | 4301 | #-------------------------# |
---|
| 4302 | # checking for pkg-config # |
---|
| 4303 | #-------------------------# |
---|
| 4304 | if test x$def_gtk = xyes; then |
---|
[5479] | 4305 | if test x${GTKPATH} != x; then |
---|
| 4306 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
[4130] | 4307 | set dummy pkg-config; ac_word=$2 |
---|
| 4308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4310 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
| 4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4312 | else |
---|
| 4313 | case $PKG_CONFIG in |
---|
| 4314 | [\\/]* | ?:[\\/]*) |
---|
| 4315 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
| 4316 | ;; |
---|
| 4317 | *) |
---|
| 4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
[5479] | 4319 | for as_dir in $GTKPATH |
---|
| 4320 | do |
---|
| 4321 | IFS=$as_save_IFS |
---|
| 4322 | test -z "$as_dir" && as_dir=. |
---|
| 4323 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4325 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4327 | break 2 |
---|
| 4328 | fi |
---|
| 4329 | done |
---|
| 4330 | done |
---|
| 4331 | |
---|
| 4332 | ;; |
---|
| 4333 | esac |
---|
| 4334 | fi |
---|
| 4335 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
| 4336 | |
---|
| 4337 | if test -n "$PKG_CONFIG"; then |
---|
| 4338 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
| 4339 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
| 4340 | else |
---|
| 4341 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4342 | echo "${ECHO_T}no" >&6 |
---|
| 4343 | fi |
---|
| 4344 | |
---|
| 4345 | else |
---|
| 4346 | # Extract the first word of "pkg-config ", so it can be a program name with args. |
---|
| 4347 | set dummy pkg-config ; ac_word=$2 |
---|
| 4348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4350 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
| 4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4352 | else |
---|
| 4353 | case $PKG_CONFIG in |
---|
| 4354 | [\\/]* | ?:[\\/]*) |
---|
| 4355 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
| 4356 | ;; |
---|
| 4357 | *) |
---|
| 4358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
[4130] | 4359 | for as_dir in $PATH |
---|
| 4360 | do |
---|
| 4361 | IFS=$as_save_IFS |
---|
| 4362 | test -z "$as_dir" && as_dir=. |
---|
| 4363 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4364 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4365 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4367 | break 2 |
---|
| 4368 | fi |
---|
| 4369 | done |
---|
| 4370 | done |
---|
| 4371 | |
---|
| 4372 | ;; |
---|
| 4373 | esac |
---|
| 4374 | fi |
---|
| 4375 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
| 4376 | |
---|
| 4377 | if test -n "$PKG_CONFIG"; then |
---|
| 4378 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
| 4379 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
| 4380 | else |
---|
| 4381 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4382 | echo "${ECHO_T}no" >&6 |
---|
| 4383 | fi |
---|
| 4384 | |
---|
[5479] | 4385 | fi |
---|
[4130] | 4386 | fi |
---|
| 4387 | |
---|
| 4388 | |
---|
[3424] | 4389 | ######################### |
---|
| 4390 | ## CHECKING FOR SYSTEM ## |
---|
| 4391 | ######################### |
---|
| 4392 | ## here the system is checked, and openGL is included |
---|
| 4393 | ## also checking for SDL on differen Systems |
---|
[1971] | 4394 | |
---|
[2925] | 4395 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4396 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4397 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4398 | case "$target" in |
---|
[4825] | 4399 | |
---|
| 4400 | ########### |
---|
[3424] | 4401 | #---------# |
---|
| 4402 | # WINDOWS # |
---|
| 4403 | #---------# |
---|
[4825] | 4404 | ########### |
---|
[2980] | 4405 | *-*-mingw32*) |
---|
[2925] | 4406 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4407 | |
---|
[5224] | 4408 | CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" |
---|
[3790] | 4409 | |
---|
[2925] | 4410 | mingw="yes" |
---|
| 4411 | MSBITFIELDS="-mms-bitfields" |
---|
| 4412 | MWINDOWS="-mwindows" |
---|
[1971] | 4413 | |
---|
[5276] | 4414 | #--------# |
---|
| 4415 | # MIN-GW # |
---|
| 4416 | #--------# |
---|
[4697] | 4417 | # checking for mingw32 |
---|
| 4418 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4419 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4420 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4422 | else |
---|
| 4423 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4424 | LIBS="-lmingw32 $LIBS" |
---|
| 4425 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4426 | /* confdefs.h. */ |
---|
| 4427 | _ACEOF |
---|
| 4428 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4430 | /* end confdefs.h. */ |
---|
[1971] | 4431 | |
---|
| 4432 | |
---|
[4697] | 4433 | int |
---|
| 4434 | main () |
---|
| 4435 | { |
---|
| 4436 | main (); |
---|
| 4437 | ; |
---|
| 4438 | return 0; |
---|
| 4439 | } |
---|
| 4440 | _ACEOF |
---|
| 4441 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4443 | (eval $ac_link) 2>conftest.er1 |
---|
| 4444 | ac_status=$? |
---|
| 4445 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4446 | rm -f conftest.er1 |
---|
| 4447 | cat conftest.err >&5 |
---|
| 4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4449 | (exit $ac_status); } && |
---|
[5588] | 4450 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4451 | || test ! -s conftest.err' |
---|
[4697] | 4452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4453 | (eval $ac_try) 2>&5 |
---|
| 4454 | ac_status=$? |
---|
| 4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4456 | (exit $ac_status); }; } && |
---|
| 4457 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4459 | (eval $ac_try) 2>&5 |
---|
| 4460 | ac_status=$? |
---|
| 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4462 | (exit $ac_status); }; }; then |
---|
| 4463 | ac_cv_lib_mingw32_main=yes |
---|
| 4464 | else |
---|
| 4465 | echo "$as_me: failed program was:" >&5 |
---|
| 4466 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1971] | 4467 | |
---|
[4697] | 4468 | ac_cv_lib_mingw32_main=no |
---|
| 4469 | fi |
---|
| 4470 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4471 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4472 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4473 | fi |
---|
| 4474 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4475 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4476 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4477 | FOUND_mingw32=yes |
---|
| 4478 | fi |
---|
[2925] | 4479 | |
---|
[4697] | 4480 | if test x$FOUND_mingw32 = xyes; then |
---|
| 4481 | LIBS="$LIBS -lmingw32" |
---|
| 4482 | fi |
---|
[2925] | 4483 | |
---|
[5276] | 4484 | #---------------# |
---|
| 4485 | # open-GL (win) # |
---|
| 4486 | #---------------# |
---|
| 4487 | # checking gl header |
---|
[5463] | 4488 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[2925] | 4489 | |
---|
[5463] | 4490 | |
---|
| 4491 | |
---|
| 4492 | |
---|
| 4493 | |
---|
| 4494 | |
---|
| 4495 | |
---|
| 4496 | |
---|
| 4497 | |
---|
| 4498 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4499 | inttypes.h stdint.h unistd.h |
---|
| 4500 | do |
---|
| 4501 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4502 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4506 | else |
---|
| 4507 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4508 | /* confdefs.h. */ |
---|
| 4509 | _ACEOF |
---|
| 4510 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4511 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4512 | /* end confdefs.h. */ |
---|
| 4513 | $ac_includes_default |
---|
| 4514 | |
---|
| 4515 | #include <$ac_header> |
---|
| 4516 | _ACEOF |
---|
| 4517 | rm -f conftest.$ac_objext |
---|
| 4518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4519 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4520 | ac_status=$? |
---|
| 4521 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4522 | rm -f conftest.er1 |
---|
| 4523 | cat conftest.err >&5 |
---|
| 4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4525 | (exit $ac_status); } && |
---|
[5588] | 4526 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4527 | || test ! -s conftest.err' |
---|
[5463] | 4528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4529 | (eval $ac_try) 2>&5 |
---|
| 4530 | ac_status=$? |
---|
| 4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4532 | (exit $ac_status); }; } && |
---|
| 4533 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4535 | (eval $ac_try) 2>&5 |
---|
| 4536 | ac_status=$? |
---|
| 4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4538 | (exit $ac_status); }; }; then |
---|
| 4539 | eval "$as_ac_Header=yes" |
---|
| 4540 | else |
---|
| 4541 | echo "$as_me: failed program was:" >&5 |
---|
| 4542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4543 | |
---|
| 4544 | eval "$as_ac_Header=no" |
---|
| 4545 | fi |
---|
| 4546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4547 | fi |
---|
| 4548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4551 | cat >>confdefs.h <<_ACEOF |
---|
| 4552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4553 | _ACEOF |
---|
| 4554 | |
---|
| 4555 | fi |
---|
| 4556 | |
---|
| 4557 | done |
---|
| 4558 | |
---|
| 4559 | |
---|
| 4560 | |
---|
[5276] | 4561 | for ac_header in GL/gl.h |
---|
[2879] | 4562 | do |
---|
| 4563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4569 | fi |
---|
| 4570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4572 | else |
---|
| 4573 | # Is the header compilable? |
---|
| 4574 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4575 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4576 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4577 | /* confdefs.h. */ |
---|
| 4578 | _ACEOF |
---|
| 4579 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4580 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4581 | /* end confdefs.h. */ |
---|
| 4582 | $ac_includes_default |
---|
| 4583 | #include <$ac_header> |
---|
| 4584 | _ACEOF |
---|
| 4585 | rm -f conftest.$ac_objext |
---|
| 4586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4587 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4588 | ac_status=$? |
---|
| 4589 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4590 | rm -f conftest.er1 |
---|
| 4591 | cat conftest.err >&5 |
---|
| 4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4593 | (exit $ac_status); } && |
---|
[5588] | 4594 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4595 | || test ! -s conftest.err' |
---|
[2879] | 4596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4597 | (eval $ac_try) 2>&5 |
---|
| 4598 | ac_status=$? |
---|
| 4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4600 | (exit $ac_status); }; } && |
---|
| 4601 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4603 | (eval $ac_try) 2>&5 |
---|
| 4604 | ac_status=$? |
---|
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4606 | (exit $ac_status); }; }; then |
---|
| 4607 | ac_header_compiler=yes |
---|
| 4608 | else |
---|
| 4609 | echo "$as_me: failed program was:" >&5 |
---|
| 4610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4611 | |
---|
| 4612 | ac_header_compiler=no |
---|
| 4613 | fi |
---|
| 4614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4616 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4617 | |
---|
| 4618 | # Is the header present? |
---|
| 4619 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4621 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4622 | /* confdefs.h. */ |
---|
| 4623 | _ACEOF |
---|
| 4624 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4625 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4626 | /* end confdefs.h. */ |
---|
| 4627 | #include <$ac_header> |
---|
| 4628 | _ACEOF |
---|
| 4629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4631 | ac_status=$? |
---|
| 4632 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4633 | rm -f conftest.er1 |
---|
| 4634 | cat conftest.err >&5 |
---|
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4636 | (exit $ac_status); } >/dev/null; then |
---|
| 4637 | if test -s conftest.err; then |
---|
| 4638 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4640 | else |
---|
| 4641 | ac_cpp_err= |
---|
| 4642 | fi |
---|
| 4643 | else |
---|
| 4644 | ac_cpp_err=yes |
---|
| 4645 | fi |
---|
| 4646 | if test -z "$ac_cpp_err"; then |
---|
| 4647 | ac_header_preproc=yes |
---|
| 4648 | else |
---|
| 4649 | echo "$as_me: failed program was:" >&5 |
---|
| 4650 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4651 | |
---|
| 4652 | ac_header_preproc=no |
---|
| 4653 | fi |
---|
| 4654 | rm -f conftest.err conftest.$ac_ext |
---|
| 4655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4656 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4657 | |
---|
| 4658 | # So? What about this header? |
---|
| 4659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4660 | yes:no: ) |
---|
| 4661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4662 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4665 | ac_header_preproc=yes |
---|
| 4666 | ;; |
---|
| 4667 | no:yes:* ) |
---|
| 4668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4675 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4677 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4679 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4680 | ( |
---|
| 4681 | cat <<\_ASBOX |
---|
[3240] | 4682 | ## ---------------------------------------------- ## |
---|
| 4683 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4684 | ## ---------------------------------------------- ## |
---|
[2879] | 4685 | _ASBOX |
---|
| 4686 | ) | |
---|
| 4687 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4688 | ;; |
---|
| 4689 | esac |
---|
| 4690 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4694 | else |
---|
| 4695 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4696 | fi |
---|
| 4697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4699 | |
---|
| 4700 | fi |
---|
| 4701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4702 | cat >>confdefs.h <<_ACEOF |
---|
| 4703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4704 | _ACEOF |
---|
| 4705 | |
---|
| 4706 | else |
---|
[5276] | 4707 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4708 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
[2879] | 4709 | { (exit 1); exit 1; }; } |
---|
| 4710 | fi |
---|
| 4711 | |
---|
| 4712 | done |
---|
| 4713 | |
---|
[5276] | 4714 | # checking for Windows openGl library |
---|
| 4715 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4716 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4717 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4719 | else |
---|
| 4720 | ac_check_lib_save_LIBS=$LIBS |
---|
[5276] | 4721 | LIBS="-lopengl32 $LIBS" |
---|
[1959] | 4722 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4723 | /* confdefs.h. */ |
---|
[1956] | 4724 | _ACEOF |
---|
[1959] | 4725 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4726 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4727 | /* end confdefs.h. */ |
---|
[1956] | 4728 | |
---|
[1971] | 4729 | |
---|
[1959] | 4730 | int |
---|
| 4731 | main () |
---|
| 4732 | { |
---|
[1971] | 4733 | main (); |
---|
[1959] | 4734 | ; |
---|
| 4735 | return 0; |
---|
| 4736 | } |
---|
| 4737 | _ACEOF |
---|
| 4738 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4740 | (eval $ac_link) 2>conftest.er1 |
---|
| 4741 | ac_status=$? |
---|
| 4742 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4743 | rm -f conftest.er1 |
---|
| 4744 | cat conftest.err >&5 |
---|
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4746 | (exit $ac_status); } && |
---|
[5588] | 4747 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4748 | || test ! -s conftest.err' |
---|
[1959] | 4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4750 | (eval $ac_try) 2>&5 |
---|
| 4751 | ac_status=$? |
---|
| 4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4753 | (exit $ac_status); }; } && |
---|
| 4754 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4756 | (eval $ac_try) 2>&5 |
---|
| 4757 | ac_status=$? |
---|
| 4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4759 | (exit $ac_status); }; }; then |
---|
[5276] | 4760 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4761 | else |
---|
| 4762 | echo "$as_me: failed program was:" >&5 |
---|
| 4763 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4764 | |
---|
[5276] | 4765 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4766 | fi |
---|
[1959] | 4767 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4768 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4769 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4770 | fi |
---|
[5276] | 4771 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4772 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4773 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4774 | FOUND_GL=yes; LIBS="$LIBS -lopengl32" |
---|
[4697] | 4775 | fi |
---|
| 4776 | |
---|
[5276] | 4777 | if test x$FOUND_GL != xyes ; then |
---|
| 4778 | echo "------------------" |
---|
| 4779 | echo "opengl not found." |
---|
| 4780 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4781 | echo "------------------" |
---|
| 4782 | exit -1 |
---|
[4697] | 4783 | fi |
---|
| 4784 | |
---|
[5276] | 4785 | # cheking for GLU-header |
---|
[4697] | 4786 | |
---|
[5276] | 4787 | for ac_header in GL/glu.h |
---|
[1971] | 4788 | do |
---|
| 4789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4795 | fi |
---|
| 4796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4797 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4798 | else |
---|
| 4799 | # Is the header compilable? |
---|
| 4800 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4801 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4802 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4803 | /* confdefs.h. */ |
---|
| 4804 | _ACEOF |
---|
| 4805 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4806 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4807 | /* end confdefs.h. */ |
---|
| 4808 | $ac_includes_default |
---|
| 4809 | #include <$ac_header> |
---|
| 4810 | _ACEOF |
---|
| 4811 | rm -f conftest.$ac_objext |
---|
| 4812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4813 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4814 | ac_status=$? |
---|
| 4815 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4816 | rm -f conftest.er1 |
---|
| 4817 | cat conftest.err >&5 |
---|
| 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4819 | (exit $ac_status); } && |
---|
[5588] | 4820 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4821 | || test ! -s conftest.err' |
---|
[1971] | 4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4823 | (eval $ac_try) 2>&5 |
---|
| 4824 | ac_status=$? |
---|
| 4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4826 | (exit $ac_status); }; } && |
---|
| 4827 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4829 | (eval $ac_try) 2>&5 |
---|
| 4830 | ac_status=$? |
---|
| 4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4832 | (exit $ac_status); }; }; then |
---|
| 4833 | ac_header_compiler=yes |
---|
| 4834 | else |
---|
| 4835 | echo "$as_me: failed program was:" >&5 |
---|
| 4836 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4837 | |
---|
| 4838 | ac_header_compiler=no |
---|
| 4839 | fi |
---|
| 4840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4841 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4842 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4843 | |
---|
| 4844 | # Is the header present? |
---|
| 4845 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4846 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4847 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4848 | /* confdefs.h. */ |
---|
| 4849 | _ACEOF |
---|
| 4850 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4852 | /* end confdefs.h. */ |
---|
| 4853 | #include <$ac_header> |
---|
| 4854 | _ACEOF |
---|
| 4855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4857 | ac_status=$? |
---|
| 4858 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4859 | rm -f conftest.er1 |
---|
| 4860 | cat conftest.err >&5 |
---|
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4862 | (exit $ac_status); } >/dev/null; then |
---|
| 4863 | if test -s conftest.err; then |
---|
| 4864 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4865 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4866 | else |
---|
| 4867 | ac_cpp_err= |
---|
| 4868 | fi |
---|
| 4869 | else |
---|
| 4870 | ac_cpp_err=yes |
---|
| 4871 | fi |
---|
| 4872 | if test -z "$ac_cpp_err"; then |
---|
| 4873 | ac_header_preproc=yes |
---|
| 4874 | else |
---|
| 4875 | echo "$as_me: failed program was:" >&5 |
---|
| 4876 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4877 | |
---|
| 4878 | ac_header_preproc=no |
---|
| 4879 | fi |
---|
| 4880 | rm -f conftest.err conftest.$ac_ext |
---|
| 4881 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4882 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4883 | |
---|
| 4884 | # So? What about this header? |
---|
| 4885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4886 | yes:no: ) |
---|
| 4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4888 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4890 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4891 | ac_header_preproc=yes |
---|
| 4892 | ;; |
---|
| 4893 | no:yes:* ) |
---|
| 4894 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4895 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4896 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4897 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4898 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4899 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4900 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4901 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4903 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4904 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4905 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4906 | ( |
---|
| 4907 | cat <<\_ASBOX |
---|
[3240] | 4908 | ## ---------------------------------------------- ## |
---|
| 4909 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4910 | ## ---------------------------------------------- ## |
---|
[1971] | 4911 | _ASBOX |
---|
| 4912 | ) | |
---|
| 4913 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4914 | ;; |
---|
| 4915 | esac |
---|
| 4916 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4917 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4920 | else |
---|
| 4921 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4922 | fi |
---|
| 4923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4925 | |
---|
| 4926 | fi |
---|
| 4927 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4928 | cat >>confdefs.h <<_ACEOF |
---|
| 4929 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4930 | _ACEOF |
---|
| 4931 | |
---|
| 4932 | else |
---|
| 4933 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4934 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4935 | { (exit 1); exit 1; }; } |
---|
| 4936 | fi |
---|
| 4937 | |
---|
| 4938 | done |
---|
| 4939 | |
---|
[5276] | 4940 | |
---|
| 4941 | # checking for libGLU |
---|
| 4942 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4943 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4944 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4946 | else |
---|
| 4947 | ac_check_lib_save_LIBS=$LIBS |
---|
[5276] | 4948 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4949 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4950 | /* confdefs.h. */ |
---|
| 4951 | _ACEOF |
---|
| 4952 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4953 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4954 | /* end confdefs.h. */ |
---|
| 4955 | |
---|
[2701] | 4956 | |
---|
[1956] | 4957 | int |
---|
| 4958 | main () |
---|
| 4959 | { |
---|
[2701] | 4960 | main (); |
---|
[1956] | 4961 | ; |
---|
| 4962 | return 0; |
---|
| 4963 | } |
---|
| 4964 | _ACEOF |
---|
| 4965 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4967 | (eval $ac_link) 2>conftest.er1 |
---|
| 4968 | ac_status=$? |
---|
| 4969 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4970 | rm -f conftest.er1 |
---|
| 4971 | cat conftest.err >&5 |
---|
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4973 | (exit $ac_status); } && |
---|
[5588] | 4974 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4975 | || test ! -s conftest.err' |
---|
[1956] | 4976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4977 | (eval $ac_try) 2>&5 |
---|
| 4978 | ac_status=$? |
---|
| 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4980 | (exit $ac_status); }; } && |
---|
| 4981 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4983 | (eval $ac_try) 2>&5 |
---|
| 4984 | ac_status=$? |
---|
| 4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4986 | (exit $ac_status); }; }; then |
---|
[5276] | 4987 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4988 | else |
---|
| 4989 | echo "$as_me: failed program was:" >&5 |
---|
| 4990 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4991 | |
---|
[5276] | 4992 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4993 | fi |
---|
| 4994 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4995 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4996 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4997 | fi |
---|
[5276] | 4998 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4999 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 5000 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 5001 | FOUND_GLU=yes; LIBS="$LIBS -lGLU32" |
---|
[1959] | 5002 | fi |
---|
| 5003 | |
---|
[5276] | 5004 | if test x$FOUND_GLU != xyes ; then |
---|
[4556] | 5005 | echo "------------------" |
---|
[5276] | 5006 | echo "GLU library not found." |
---|
| 5007 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
[4556] | 5008 | echo "------------------" |
---|
| 5009 | exit -1 |
---|
[2701] | 5010 | fi |
---|
| 5011 | |
---|
[5276] | 5012 | # checking glew header |
---|
[4697] | 5013 | |
---|
[5276] | 5014 | for ac_header in GL/glew.h |
---|
[4697] | 5015 | do |
---|
| 5016 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5018 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[1959] | 5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[4697] | 5022 | fi |
---|
| 5023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5024 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[1959] | 5025 | else |
---|
[4697] | 5026 | # Is the header compilable? |
---|
| 5027 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5028 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5029 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5030 | /* confdefs.h. */ |
---|
| 5031 | _ACEOF |
---|
| 5032 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5033 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5034 | /* end confdefs.h. */ |
---|
| 5035 | $ac_includes_default |
---|
| 5036 | #include <$ac_header> |
---|
| 5037 | _ACEOF |
---|
| 5038 | rm -f conftest.$ac_objext |
---|
| 5039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5040 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5041 | ac_status=$? |
---|
| 5042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5043 | rm -f conftest.er1 |
---|
| 5044 | cat conftest.err >&5 |
---|
| 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5046 | (exit $ac_status); } && |
---|
[5588] | 5047 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5048 | || test ! -s conftest.err' |
---|
[4697] | 5049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5050 | (eval $ac_try) 2>&5 |
---|
| 5051 | ac_status=$? |
---|
| 5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5053 | (exit $ac_status); }; } && |
---|
| 5054 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5056 | (eval $ac_try) 2>&5 |
---|
| 5057 | ac_status=$? |
---|
| 5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5059 | (exit $ac_status); }; }; then |
---|
| 5060 | ac_header_compiler=yes |
---|
| 5061 | else |
---|
| 5062 | echo "$as_me: failed program was:" >&5 |
---|
| 5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5064 | |
---|
| 5065 | ac_header_compiler=no |
---|
| 5066 | fi |
---|
| 5067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5068 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5069 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5070 | |
---|
| 5071 | # Is the header present? |
---|
| 5072 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5073 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5074 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5075 | /* confdefs.h. */ |
---|
| 5076 | _ACEOF |
---|
| 5077 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5078 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5079 | /* end confdefs.h. */ |
---|
| 5080 | #include <$ac_header> |
---|
| 5081 | _ACEOF |
---|
| 5082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5084 | ac_status=$? |
---|
| 5085 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5086 | rm -f conftest.er1 |
---|
| 5087 | cat conftest.err >&5 |
---|
| 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5089 | (exit $ac_status); } >/dev/null; then |
---|
| 5090 | if test -s conftest.err; then |
---|
| 5091 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5093 | else |
---|
| 5094 | ac_cpp_err= |
---|
| 5095 | fi |
---|
| 5096 | else |
---|
| 5097 | ac_cpp_err=yes |
---|
| 5098 | fi |
---|
| 5099 | if test -z "$ac_cpp_err"; then |
---|
| 5100 | ac_header_preproc=yes |
---|
| 5101 | else |
---|
| 5102 | echo "$as_me: failed program was:" >&5 |
---|
| 5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5104 | |
---|
| 5105 | ac_header_preproc=no |
---|
| 5106 | fi |
---|
| 5107 | rm -f conftest.err conftest.$ac_ext |
---|
| 5108 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5109 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5110 | |
---|
| 5111 | # So? What about this header? |
---|
| 5112 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5113 | yes:no: ) |
---|
| 5114 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5115 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5117 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5118 | ac_header_preproc=yes |
---|
| 5119 | ;; |
---|
| 5120 | no:yes:* ) |
---|
| 5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5122 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5123 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5124 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5125 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5126 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5127 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5128 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5130 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5131 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5132 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5133 | ( |
---|
| 5134 | cat <<\_ASBOX |
---|
| 5135 | ## ---------------------------------------------- ## |
---|
| 5136 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5137 | ## ---------------------------------------------- ## |
---|
| 5138 | _ASBOX |
---|
| 5139 | ) | |
---|
| 5140 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5141 | ;; |
---|
| 5142 | esac |
---|
| 5143 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5147 | else |
---|
| 5148 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5149 | fi |
---|
| 5150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5152 | |
---|
| 5153 | fi |
---|
| 5154 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5155 | cat >>confdefs.h <<_ACEOF |
---|
| 5156 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5157 | _ACEOF |
---|
| 5158 | |
---|
| 5159 | else |
---|
[5276] | 5160 | { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5 |
---|
| 5161 | echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;} |
---|
[4697] | 5162 | { (exit 1); exit 1; }; } |
---|
| 5163 | fi |
---|
| 5164 | |
---|
| 5165 | done |
---|
| 5166 | |
---|
[5276] | 5167 | # checking for Windows glew library |
---|
| 5168 | echo "$as_me:$LINENO: checking for main in -lglew32" >&5 |
---|
| 5169 | echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6 |
---|
| 5170 | if test "${ac_cv_lib_glew32_main+set}" = set; then |
---|
[4697] | 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5172 | else |
---|
[1959] | 5173 | ac_check_lib_save_LIBS=$LIBS |
---|
[5276] | 5174 | LIBS="-lglew32 $LIBS" |
---|
[1959] | 5175 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5176 | /* confdefs.h. */ |
---|
[1956] | 5177 | _ACEOF |
---|
[1959] | 5178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5180 | /* end confdefs.h. */ |
---|
[1956] | 5181 | |
---|
[1971] | 5182 | |
---|
[1959] | 5183 | int |
---|
| 5184 | main () |
---|
| 5185 | { |
---|
[1971] | 5186 | main (); |
---|
[1959] | 5187 | ; |
---|
| 5188 | return 0; |
---|
| 5189 | } |
---|
| 5190 | _ACEOF |
---|
| 5191 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5193 | (eval $ac_link) 2>conftest.er1 |
---|
| 5194 | ac_status=$? |
---|
| 5195 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5196 | rm -f conftest.er1 |
---|
| 5197 | cat conftest.err >&5 |
---|
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5199 | (exit $ac_status); } && |
---|
[5588] | 5200 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5201 | || test ! -s conftest.err' |
---|
[1959] | 5202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5203 | (eval $ac_try) 2>&5 |
---|
| 5204 | ac_status=$? |
---|
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5206 | (exit $ac_status); }; } && |
---|
| 5207 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5209 | (eval $ac_try) 2>&5 |
---|
| 5210 | ac_status=$? |
---|
| 5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5212 | (exit $ac_status); }; }; then |
---|
[5276] | 5213 | ac_cv_lib_glew32_main=yes |
---|
[1959] | 5214 | else |
---|
| 5215 | echo "$as_me: failed program was:" >&5 |
---|
| 5216 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5217 | |
---|
[5276] | 5218 | ac_cv_lib_glew32_main=no |
---|
[1956] | 5219 | fi |
---|
[1959] | 5220 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5221 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5222 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5223 | fi |
---|
[5276] | 5224 | echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 |
---|
| 5225 | echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 |
---|
| 5226 | if test $ac_cv_lib_glew32_main = yes; then |
---|
| 5227 | FOUND_GLEW=yes; LIBS="$LIBS -lglew32" |
---|
[1959] | 5228 | fi |
---|
[1956] | 5229 | |
---|
[5276] | 5230 | if test x$FOUND_GLEW != xyes ; then |
---|
[4697] | 5231 | echo "------------------" |
---|
[5276] | 5232 | echo "opengl extension wrangler not found." |
---|
| 5233 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
[4697] | 5234 | echo "------------------" |
---|
| 5235 | exit -1 |
---|
[2701] | 5236 | fi |
---|
[1959] | 5237 | |
---|
[5276] | 5238 | #--------# |
---|
| 5239 | # openAL # |
---|
| 5240 | #--------# |
---|
| 5241 | # checking for openAL-headers |
---|
[5271] | 5242 | |
---|
[5276] | 5243 | for ac_header in AL/al.h |
---|
[5271] | 5244 | do |
---|
| 5245 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5247 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5251 | fi |
---|
| 5252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5254 | else |
---|
| 5255 | # Is the header compilable? |
---|
| 5256 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5257 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5258 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5259 | /* confdefs.h. */ |
---|
| 5260 | _ACEOF |
---|
| 5261 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5262 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5263 | /* end confdefs.h. */ |
---|
| 5264 | $ac_includes_default |
---|
| 5265 | #include <$ac_header> |
---|
| 5266 | _ACEOF |
---|
| 5267 | rm -f conftest.$ac_objext |
---|
| 5268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5269 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5270 | ac_status=$? |
---|
| 5271 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5272 | rm -f conftest.er1 |
---|
| 5273 | cat conftest.err >&5 |
---|
| 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5275 | (exit $ac_status); } && |
---|
[5588] | 5276 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5277 | || test ! -s conftest.err' |
---|
[5271] | 5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5279 | (eval $ac_try) 2>&5 |
---|
| 5280 | ac_status=$? |
---|
| 5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5282 | (exit $ac_status); }; } && |
---|
| 5283 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5285 | (eval $ac_try) 2>&5 |
---|
| 5286 | ac_status=$? |
---|
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5288 | (exit $ac_status); }; }; then |
---|
| 5289 | ac_header_compiler=yes |
---|
| 5290 | else |
---|
| 5291 | echo "$as_me: failed program was:" >&5 |
---|
| 5292 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5293 | |
---|
| 5294 | ac_header_compiler=no |
---|
| 5295 | fi |
---|
| 5296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5298 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5299 | |
---|
| 5300 | # Is the header present? |
---|
| 5301 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5303 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5304 | /* confdefs.h. */ |
---|
| 5305 | _ACEOF |
---|
| 5306 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5307 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5308 | /* end confdefs.h. */ |
---|
| 5309 | #include <$ac_header> |
---|
| 5310 | _ACEOF |
---|
| 5311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5313 | ac_status=$? |
---|
| 5314 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5315 | rm -f conftest.er1 |
---|
| 5316 | cat conftest.err >&5 |
---|
| 5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5318 | (exit $ac_status); } >/dev/null; then |
---|
| 5319 | if test -s conftest.err; then |
---|
| 5320 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5322 | else |
---|
| 5323 | ac_cpp_err= |
---|
| 5324 | fi |
---|
| 5325 | else |
---|
| 5326 | ac_cpp_err=yes |
---|
| 5327 | fi |
---|
| 5328 | if test -z "$ac_cpp_err"; then |
---|
| 5329 | ac_header_preproc=yes |
---|
| 5330 | else |
---|
| 5331 | echo "$as_me: failed program was:" >&5 |
---|
| 5332 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5333 | |
---|
| 5334 | ac_header_preproc=no |
---|
| 5335 | fi |
---|
| 5336 | rm -f conftest.err conftest.$ac_ext |
---|
| 5337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5338 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5339 | |
---|
| 5340 | # So? What about this header? |
---|
| 5341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5342 | yes:no: ) |
---|
| 5343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5347 | ac_header_preproc=yes |
---|
| 5348 | ;; |
---|
| 5349 | no:yes:* ) |
---|
| 5350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5362 | ( |
---|
| 5363 | cat <<\_ASBOX |
---|
| 5364 | ## ---------------------------------------------- ## |
---|
| 5365 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5366 | ## ---------------------------------------------- ## |
---|
| 5367 | _ASBOX |
---|
| 5368 | ) | |
---|
| 5369 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5370 | ;; |
---|
| 5371 | esac |
---|
| 5372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5376 | else |
---|
| 5377 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5378 | fi |
---|
| 5379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5381 | |
---|
| 5382 | fi |
---|
| 5383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5384 | cat >>confdefs.h <<_ACEOF |
---|
| 5385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5386 | _ACEOF |
---|
| 5387 | |
---|
| 5388 | else |
---|
[5276] | 5389 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
| 5390 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
[5271] | 5391 | { (exit 1); exit 1; }; } |
---|
| 5392 | fi |
---|
| 5393 | |
---|
| 5394 | done |
---|
| 5395 | |
---|
[5276] | 5396 | # checking for openAL-lib |
---|
| 5397 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
| 5398 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
| 5399 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
[5271] | 5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5401 | else |
---|
| 5402 | ac_check_lib_save_LIBS=$LIBS |
---|
[5276] | 5403 | LIBS="-lOpenAL32 $LIBS" |
---|
[5271] | 5404 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5405 | /* confdefs.h. */ |
---|
| 5406 | _ACEOF |
---|
| 5407 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5409 | /* end confdefs.h. */ |
---|
| 5410 | |
---|
| 5411 | |
---|
| 5412 | int |
---|
| 5413 | main () |
---|
| 5414 | { |
---|
| 5415 | main (); |
---|
| 5416 | ; |
---|
| 5417 | return 0; |
---|
| 5418 | } |
---|
| 5419 | _ACEOF |
---|
| 5420 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5422 | (eval $ac_link) 2>conftest.er1 |
---|
| 5423 | ac_status=$? |
---|
| 5424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5425 | rm -f conftest.er1 |
---|
| 5426 | cat conftest.err >&5 |
---|
| 5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5428 | (exit $ac_status); } && |
---|
[5588] | 5429 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5430 | || test ! -s conftest.err' |
---|
[5271] | 5431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5432 | (eval $ac_try) 2>&5 |
---|
| 5433 | ac_status=$? |
---|
| 5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5435 | (exit $ac_status); }; } && |
---|
| 5436 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5438 | (eval $ac_try) 2>&5 |
---|
| 5439 | ac_status=$? |
---|
| 5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5441 | (exit $ac_status); }; }; then |
---|
[5276] | 5442 | ac_cv_lib_OpenAL32_main=yes |
---|
[5271] | 5443 | else |
---|
| 5444 | echo "$as_me: failed program was:" >&5 |
---|
| 5445 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5446 | |
---|
[5276] | 5447 | ac_cv_lib_OpenAL32_main=no |
---|
[5271] | 5448 | fi |
---|
| 5449 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5450 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5451 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5452 | fi |
---|
[5276] | 5453 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
| 5454 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
| 5455 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
| 5456 | FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32" |
---|
[5271] | 5457 | fi |
---|
| 5458 | |
---|
[5276] | 5459 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
| 5460 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
| 5461 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
| 5462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5463 | else |
---|
| 5464 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5465 | LIBS="-lALut $LIBS" |
---|
| 5466 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5467 | /* confdefs.h. */ |
---|
| 5468 | _ACEOF |
---|
| 5469 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5471 | /* end confdefs.h. */ |
---|
[5271] | 5472 | |
---|
[4697] | 5473 | |
---|
[5276] | 5474 | int |
---|
| 5475 | main () |
---|
| 5476 | { |
---|
| 5477 | main (); |
---|
| 5478 | ; |
---|
| 5479 | return 0; |
---|
| 5480 | } |
---|
| 5481 | _ACEOF |
---|
| 5482 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5484 | (eval $ac_link) 2>conftest.er1 |
---|
| 5485 | ac_status=$? |
---|
| 5486 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5487 | rm -f conftest.er1 |
---|
| 5488 | cat conftest.err >&5 |
---|
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5490 | (exit $ac_status); } && |
---|
[5588] | 5491 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5492 | || test ! -s conftest.err' |
---|
[5276] | 5493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5494 | (eval $ac_try) 2>&5 |
---|
| 5495 | ac_status=$? |
---|
| 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5497 | (exit $ac_status); }; } && |
---|
| 5498 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5500 | (eval $ac_try) 2>&5 |
---|
| 5501 | ac_status=$? |
---|
| 5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5503 | (exit $ac_status); }; }; then |
---|
| 5504 | ac_cv_lib_ALut_main=yes |
---|
| 5505 | else |
---|
| 5506 | echo "$as_me: failed program was:" >&5 |
---|
| 5507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5508 | |
---|
| 5509 | ac_cv_lib_ALut_main=no |
---|
| 5510 | fi |
---|
| 5511 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5512 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5513 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5514 | fi |
---|
| 5515 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
| 5516 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
| 5517 | if test $ac_cv_lib_ALut_main = yes; then |
---|
[5437] | 5518 | FOUND_ALUT=yes; LIBS="-lALut $LIBS" |
---|
[5276] | 5519 | fi |
---|
| 5520 | |
---|
| 5521 | if test x$FOUND_OPENAL != xyes ; then |
---|
| 5522 | echo "------------------" |
---|
| 5523 | echo "openal library not found." |
---|
| 5524 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
| 5525 | echo "------------------" |
---|
| 5526 | exit -1 |
---|
| 5527 | fi |
---|
| 5528 | |
---|
| 5529 | |
---|
| 5530 | #-----------# |
---|
| 5531 | # SDL(win) # |
---|
| 5532 | #-----------# |
---|
| 5533 | # checking for SDL-headers |
---|
| 5534 | |
---|
| 5535 | for ac_header in SDL/SDL.h |
---|
[2989] | 5536 | do |
---|
| 5537 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5543 | fi |
---|
| 5544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5546 | else |
---|
| 5547 | # Is the header compilable? |
---|
| 5548 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5549 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5550 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5551 | /* confdefs.h. */ |
---|
| 5552 | _ACEOF |
---|
| 5553 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5554 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5555 | /* end confdefs.h. */ |
---|
| 5556 | $ac_includes_default |
---|
| 5557 | #include <$ac_header> |
---|
| 5558 | _ACEOF |
---|
| 5559 | rm -f conftest.$ac_objext |
---|
| 5560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5561 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5562 | ac_status=$? |
---|
| 5563 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5564 | rm -f conftest.er1 |
---|
| 5565 | cat conftest.err >&5 |
---|
| 5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5567 | (exit $ac_status); } && |
---|
[5588] | 5568 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5569 | || test ! -s conftest.err' |
---|
[2989] | 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5571 | (eval $ac_try) 2>&5 |
---|
| 5572 | ac_status=$? |
---|
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5574 | (exit $ac_status); }; } && |
---|
| 5575 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5577 | (eval $ac_try) 2>&5 |
---|
| 5578 | ac_status=$? |
---|
| 5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5580 | (exit $ac_status); }; }; then |
---|
| 5581 | ac_header_compiler=yes |
---|
| 5582 | else |
---|
| 5583 | echo "$as_me: failed program was:" >&5 |
---|
| 5584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5585 | |
---|
| 5586 | ac_header_compiler=no |
---|
| 5587 | fi |
---|
| 5588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5589 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5590 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5591 | |
---|
| 5592 | # Is the header present? |
---|
| 5593 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5594 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5595 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5596 | /* confdefs.h. */ |
---|
| 5597 | _ACEOF |
---|
| 5598 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5600 | /* end confdefs.h. */ |
---|
| 5601 | #include <$ac_header> |
---|
| 5602 | _ACEOF |
---|
| 5603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5605 | ac_status=$? |
---|
| 5606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5607 | rm -f conftest.er1 |
---|
| 5608 | cat conftest.err >&5 |
---|
| 5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5610 | (exit $ac_status); } >/dev/null; then |
---|
| 5611 | if test -s conftest.err; then |
---|
| 5612 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5614 | else |
---|
| 5615 | ac_cpp_err= |
---|
| 5616 | fi |
---|
| 5617 | else |
---|
| 5618 | ac_cpp_err=yes |
---|
| 5619 | fi |
---|
| 5620 | if test -z "$ac_cpp_err"; then |
---|
| 5621 | ac_header_preproc=yes |
---|
| 5622 | else |
---|
| 5623 | echo "$as_me: failed program was:" >&5 |
---|
| 5624 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5625 | |
---|
| 5626 | ac_header_preproc=no |
---|
| 5627 | fi |
---|
| 5628 | rm -f conftest.err conftest.$ac_ext |
---|
| 5629 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5630 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5631 | |
---|
| 5632 | # So? What about this header? |
---|
| 5633 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5634 | yes:no: ) |
---|
| 5635 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5636 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5638 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5639 | ac_header_preproc=yes |
---|
[2701] | 5640 | ;; |
---|
[2989] | 5641 | no:yes:* ) |
---|
| 5642 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5643 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5644 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5645 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5646 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5647 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5648 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5649 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5651 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5652 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5653 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5654 | ( |
---|
| 5655 | cat <<\_ASBOX |
---|
[3240] | 5656 | ## ---------------------------------------------- ## |
---|
| 5657 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5658 | ## ---------------------------------------------- ## |
---|
[2989] | 5659 | _ASBOX |
---|
| 5660 | ) | |
---|
| 5661 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5662 | ;; |
---|
| 5663 | esac |
---|
| 5664 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5666 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5668 | else |
---|
| 5669 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5670 | fi |
---|
| 5671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 5673 | |
---|
[2989] | 5674 | fi |
---|
| 5675 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5676 | cat >>confdefs.h <<_ACEOF |
---|
| 5677 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5678 | _ACEOF |
---|
| 5679 | |
---|
| 5680 | else |
---|
[5276] | 5681 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5682 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
[2989] | 5683 | { (exit 1); exit 1; }; } |
---|
| 5684 | fi |
---|
| 5685 | |
---|
| 5686 | done |
---|
| 5687 | |
---|
[5276] | 5688 | |
---|
| 5689 | #checking for libSDL |
---|
| 5690 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 5691 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 5692 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
[2989] | 5693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5694 | else |
---|
| 5695 | ac_check_lib_save_LIBS=$LIBS |
---|
[5276] | 5696 | LIBS="-lsdlmain $LIBS" |
---|
[2989] | 5697 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5698 | /* confdefs.h. */ |
---|
| 5699 | _ACEOF |
---|
| 5700 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5701 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5702 | /* end confdefs.h. */ |
---|
| 5703 | |
---|
| 5704 | |
---|
| 5705 | int |
---|
| 5706 | main () |
---|
| 5707 | { |
---|
| 5708 | main (); |
---|
| 5709 | ; |
---|
| 5710 | return 0; |
---|
| 5711 | } |
---|
| 5712 | _ACEOF |
---|
| 5713 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5715 | (eval $ac_link) 2>conftest.er1 |
---|
| 5716 | ac_status=$? |
---|
| 5717 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5718 | rm -f conftest.er1 |
---|
| 5719 | cat conftest.err >&5 |
---|
| 5720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5721 | (exit $ac_status); } && |
---|
[5588] | 5722 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5723 | || test ! -s conftest.err' |
---|
[2989] | 5724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5725 | (eval $ac_try) 2>&5 |
---|
| 5726 | ac_status=$? |
---|
| 5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5728 | (exit $ac_status); }; } && |
---|
| 5729 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5731 | (eval $ac_try) 2>&5 |
---|
| 5732 | ac_status=$? |
---|
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5734 | (exit $ac_status); }; }; then |
---|
[5276] | 5735 | ac_cv_lib_sdlmain_main=yes |
---|
[2989] | 5736 | else |
---|
| 5737 | echo "$as_me: failed program was:" >&5 |
---|
| 5738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5739 | |
---|
[5276] | 5740 | ac_cv_lib_sdlmain_main=no |
---|
[2989] | 5741 | fi |
---|
| 5742 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5743 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5744 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5745 | fi |
---|
[5276] | 5746 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 5747 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 5748 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 5749 | FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain" |
---|
[2989] | 5750 | fi |
---|
| 5751 | |
---|
[5276] | 5752 | if test x$FOUND_sdlmain != xyes ; then |
---|
| 5753 | echo "------------------" |
---|
| 5754 | echo "SDL library not found." |
---|
| 5755 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5756 | echo "------------------" |
---|
| 5757 | exit 1 |
---|
| 5758 | fi |
---|
| 5759 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 5760 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 5761 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
[2989] | 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5763 | else |
---|
| 5764 | ac_check_lib_save_LIBS=$LIBS |
---|
[5276] | 5765 | LIBS="-lsdl $LIBS" |
---|
[2989] | 5766 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5767 | /* confdefs.h. */ |
---|
| 5768 | _ACEOF |
---|
| 5769 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5770 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5771 | /* end confdefs.h. */ |
---|
| 5772 | |
---|
| 5773 | |
---|
| 5774 | int |
---|
| 5775 | main () |
---|
| 5776 | { |
---|
| 5777 | main (); |
---|
| 5778 | ; |
---|
| 5779 | return 0; |
---|
| 5780 | } |
---|
| 5781 | _ACEOF |
---|
| 5782 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5784 | (eval $ac_link) 2>conftest.er1 |
---|
| 5785 | ac_status=$? |
---|
| 5786 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5787 | rm -f conftest.er1 |
---|
| 5788 | cat conftest.err >&5 |
---|
| 5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5790 | (exit $ac_status); } && |
---|
[5588] | 5791 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5792 | || test ! -s conftest.err' |
---|
[2989] | 5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5794 | (eval $ac_try) 2>&5 |
---|
| 5795 | ac_status=$? |
---|
| 5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5797 | (exit $ac_status); }; } && |
---|
| 5798 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5800 | (eval $ac_try) 2>&5 |
---|
| 5801 | ac_status=$? |
---|
| 5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5803 | (exit $ac_status); }; }; then |
---|
[5276] | 5804 | ac_cv_lib_sdl_main=yes |
---|
[2989] | 5805 | else |
---|
| 5806 | echo "$as_me: failed program was:" >&5 |
---|
| 5807 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5808 | |
---|
[5276] | 5809 | ac_cv_lib_sdl_main=no |
---|
[2989] | 5810 | fi |
---|
| 5811 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5812 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5813 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5814 | fi |
---|
[5276] | 5815 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 5816 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 5817 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 5818 | FOUND_SDL=yes; LIBS="$LIBS -lsdl" |
---|
[2989] | 5819 | fi |
---|
| 5820 | |
---|
[5276] | 5821 | if test x$FOUND_SDL != xyes ; then |
---|
[2989] | 5822 | echo "------------------" |
---|
[5276] | 5823 | echo "SDL library not found." |
---|
| 5824 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
[2989] | 5825 | echo "------------------" |
---|
| 5826 | exit -1 |
---|
[5276] | 5827 | fi |
---|
[4825] | 5828 | |
---|
[5276] | 5829 | ;; |
---|
| 5830 | |
---|
[4825] | 5831 | ######### |
---|
[3424] | 5832 | #-------# |
---|
| 5833 | # LINUX # |
---|
| 5834 | #-------# |
---|
[4825] | 5835 | ######### |
---|
[2980] | 5836 | *-*-linux*) |
---|
[2701] | 5837 | echo "Linux detected" |
---|
[1956] | 5838 | |
---|
[2701] | 5839 | Linux="yes" |
---|
| 5840 | |
---|
[5224] | 5841 | ##CPPFLAGS="-I/usr/include $CPPFLAGS" |
---|
| 5842 | ##LDFLAGS="-L/usr/lib $LDFLAGS" |
---|
[5221] | 5843 | if test x$SHARED_LIB_PATH != xno; then |
---|
[5265] | 5844 | echo "setting new LDFLAGS with $SHARED_LIB_PATH" |
---|
| 5845 | LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" |
---|
[5221] | 5846 | fi |
---|
| 5847 | |
---|
[5277] | 5848 | #--------# |
---|
| 5849 | # openGL # |
---|
| 5850 | #--------# |
---|
[2968] | 5851 | # checking gl header |
---|
[2701] | 5852 | |
---|
[2879] | 5853 | for ac_header in GL/gl.h |
---|
| 5854 | do |
---|
| 5855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5857 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5861 | fi |
---|
| 5862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5864 | else |
---|
| 5865 | # Is the header compilable? |
---|
| 5866 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5868 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5869 | /* confdefs.h. */ |
---|
| 5870 | _ACEOF |
---|
| 5871 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5872 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5873 | /* end confdefs.h. */ |
---|
| 5874 | $ac_includes_default |
---|
| 5875 | #include <$ac_header> |
---|
| 5876 | _ACEOF |
---|
| 5877 | rm -f conftest.$ac_objext |
---|
| 5878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5879 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5880 | ac_status=$? |
---|
| 5881 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5882 | rm -f conftest.er1 |
---|
| 5883 | cat conftest.err >&5 |
---|
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5885 | (exit $ac_status); } && |
---|
[5588] | 5886 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5887 | || test ! -s conftest.err' |
---|
[2879] | 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5889 | (eval $ac_try) 2>&5 |
---|
| 5890 | ac_status=$? |
---|
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5892 | (exit $ac_status); }; } && |
---|
| 5893 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5895 | (eval $ac_try) 2>&5 |
---|
| 5896 | ac_status=$? |
---|
| 5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5898 | (exit $ac_status); }; }; then |
---|
| 5899 | ac_header_compiler=yes |
---|
| 5900 | else |
---|
| 5901 | echo "$as_me: failed program was:" >&5 |
---|
| 5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5903 | |
---|
| 5904 | ac_header_compiler=no |
---|
| 5905 | fi |
---|
| 5906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5907 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5908 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5909 | |
---|
| 5910 | # Is the header present? |
---|
| 5911 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5913 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5914 | /* confdefs.h. */ |
---|
| 5915 | _ACEOF |
---|
| 5916 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5918 | /* end confdefs.h. */ |
---|
| 5919 | #include <$ac_header> |
---|
| 5920 | _ACEOF |
---|
| 5921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5923 | ac_status=$? |
---|
| 5924 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5925 | rm -f conftest.er1 |
---|
| 5926 | cat conftest.err >&5 |
---|
| 5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5928 | (exit $ac_status); } >/dev/null; then |
---|
| 5929 | if test -s conftest.err; then |
---|
| 5930 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5931 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5932 | else |
---|
| 5933 | ac_cpp_err= |
---|
| 5934 | fi |
---|
| 5935 | else |
---|
| 5936 | ac_cpp_err=yes |
---|
| 5937 | fi |
---|
| 5938 | if test -z "$ac_cpp_err"; then |
---|
| 5939 | ac_header_preproc=yes |
---|
| 5940 | else |
---|
| 5941 | echo "$as_me: failed program was:" >&5 |
---|
| 5942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5943 | |
---|
| 5944 | ac_header_preproc=no |
---|
| 5945 | fi |
---|
| 5946 | rm -f conftest.err conftest.$ac_ext |
---|
| 5947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5948 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5949 | |
---|
| 5950 | # So? What about this header? |
---|
| 5951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5952 | yes:no: ) |
---|
| 5953 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5954 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5956 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5957 | ac_header_preproc=yes |
---|
| 5958 | ;; |
---|
| 5959 | no:yes:* ) |
---|
| 5960 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5961 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5962 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5963 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5964 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5965 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5966 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5967 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5971 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5972 | ( |
---|
| 5973 | cat <<\_ASBOX |
---|
[3240] | 5974 | ## ---------------------------------------------- ## |
---|
| 5975 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5976 | ## ---------------------------------------------- ## |
---|
[2879] | 5977 | _ASBOX |
---|
| 5978 | ) | |
---|
| 5979 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5980 | ;; |
---|
| 5981 | esac |
---|
| 5982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5986 | else |
---|
| 5987 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5988 | fi |
---|
| 5989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5991 | |
---|
| 5992 | fi |
---|
| 5993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5994 | cat >>confdefs.h <<_ACEOF |
---|
| 5995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5996 | _ACEOF |
---|
| 5997 | |
---|
| 5998 | else |
---|
| 5999 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6000 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6001 | { (exit 1); exit 1; }; } |
---|
| 6002 | fi |
---|
| 6003 | |
---|
| 6004 | done |
---|
| 6005 | |
---|
| 6006 | |
---|
[2701] | 6007 | # checking for Unix GL |
---|
[5221] | 6008 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 6009 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 6010 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
[1956] | 6011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6012 | else |
---|
| 6013 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 6014 | LIBS="-lGL $LIBS" |
---|
[1956] | 6015 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6016 | /* confdefs.h. */ |
---|
| 6017 | _ACEOF |
---|
| 6018 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6019 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6020 | /* end confdefs.h. */ |
---|
| 6021 | |
---|
[5221] | 6022 | |
---|
[1956] | 6023 | int |
---|
| 6024 | main () |
---|
| 6025 | { |
---|
[5221] | 6026 | main (); |
---|
[1956] | 6027 | ; |
---|
| 6028 | return 0; |
---|
| 6029 | } |
---|
| 6030 | _ACEOF |
---|
| 6031 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6033 | (eval $ac_link) 2>conftest.er1 |
---|
| 6034 | ac_status=$? |
---|
| 6035 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6036 | rm -f conftest.er1 |
---|
| 6037 | cat conftest.err >&5 |
---|
| 6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6039 | (exit $ac_status); } && |
---|
[5588] | 6040 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6041 | || test ! -s conftest.err' |
---|
[1956] | 6042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6043 | (eval $ac_try) 2>&5 |
---|
| 6044 | ac_status=$? |
---|
| 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6046 | (exit $ac_status); }; } && |
---|
| 6047 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6049 | (eval $ac_try) 2>&5 |
---|
| 6050 | ac_status=$? |
---|
| 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6052 | (exit $ac_status); }; }; then |
---|
[5221] | 6053 | ac_cv_lib_GL_main=yes |
---|
[1956] | 6054 | else |
---|
| 6055 | echo "$as_me: failed program was:" >&5 |
---|
| 6056 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6057 | |
---|
[5221] | 6058 | ac_cv_lib_GL_main=no |
---|
[1956] | 6059 | fi |
---|
| 6060 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6061 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6062 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6063 | fi |
---|
[5221] | 6064 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 6065 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 6066 | if test $ac_cv_lib_GL_main = yes; then |
---|
[5280] | 6067 | FOUND_GL=yes; LIBS="$LIBS -lGL" |
---|
[2701] | 6068 | fi |
---|
| 6069 | |
---|
[5276] | 6070 | if test x$FOUND_GL != xyes ; then |
---|
[4556] | 6071 | echo "------------------" |
---|
| 6072 | echo "opengl not found." |
---|
| 6073 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 6074 | echo "------------------" |
---|
| 6075 | exit -1 |
---|
[2701] | 6076 | fi |
---|
| 6077 | |
---|
| 6078 | # cheking for GLU-header |
---|
| 6079 | |
---|
| 6080 | for ac_header in GL/glu.h |
---|
| 6081 | do |
---|
| 6082 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6084 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6088 | fi |
---|
| 6089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6091 | else |
---|
| 6092 | # Is the header compilable? |
---|
| 6093 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6094 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6095 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6096 | /* confdefs.h. */ |
---|
[1956] | 6097 | _ACEOF |
---|
[2701] | 6098 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6100 | /* end confdefs.h. */ |
---|
| 6101 | $ac_includes_default |
---|
| 6102 | #include <$ac_header> |
---|
| 6103 | _ACEOF |
---|
| 6104 | rm -f conftest.$ac_objext |
---|
| 6105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6106 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6107 | ac_status=$? |
---|
| 6108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6109 | rm -f conftest.er1 |
---|
| 6110 | cat conftest.err >&5 |
---|
| 6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6112 | (exit $ac_status); } && |
---|
[5588] | 6113 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6114 | || test ! -s conftest.err' |
---|
[2701] | 6115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6116 | (eval $ac_try) 2>&5 |
---|
| 6117 | ac_status=$? |
---|
| 6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6119 | (exit $ac_status); }; } && |
---|
| 6120 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6122 | (eval $ac_try) 2>&5 |
---|
| 6123 | ac_status=$? |
---|
| 6124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6125 | (exit $ac_status); }; }; then |
---|
| 6126 | ac_header_compiler=yes |
---|
| 6127 | else |
---|
| 6128 | echo "$as_me: failed program was:" >&5 |
---|
| 6129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 6130 | |
---|
[2701] | 6131 | ac_header_compiler=no |
---|
| 6132 | fi |
---|
| 6133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6135 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 6136 | |
---|
[2701] | 6137 | # Is the header present? |
---|
| 6138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6140 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6141 | /* confdefs.h. */ |
---|
| 6142 | _ACEOF |
---|
| 6143 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6144 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6145 | /* end confdefs.h. */ |
---|
| 6146 | #include <$ac_header> |
---|
| 6147 | _ACEOF |
---|
| 6148 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6149 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6150 | ac_status=$? |
---|
| 6151 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6152 | rm -f conftest.er1 |
---|
| 6153 | cat conftest.err >&5 |
---|
| 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6155 | (exit $ac_status); } >/dev/null; then |
---|
| 6156 | if test -s conftest.err; then |
---|
| 6157 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6159 | else |
---|
| 6160 | ac_cpp_err= |
---|
| 6161 | fi |
---|
| 6162 | else |
---|
| 6163 | ac_cpp_err=yes |
---|
[1956] | 6164 | fi |
---|
[2701] | 6165 | if test -z "$ac_cpp_err"; then |
---|
| 6166 | ac_header_preproc=yes |
---|
| 6167 | else |
---|
| 6168 | echo "$as_me: failed program was:" >&5 |
---|
| 6169 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 6170 | |
---|
[2701] | 6171 | ac_header_preproc=no |
---|
| 6172 | fi |
---|
| 6173 | rm -f conftest.err conftest.$ac_ext |
---|
| 6174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6175 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 6176 | |
---|
[2701] | 6177 | # So? What about this header? |
---|
| 6178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6179 | yes:no: ) |
---|
| 6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6184 | ac_header_preproc=yes |
---|
| 6185 | ;; |
---|
| 6186 | no:yes:* ) |
---|
| 6187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6199 | ( |
---|
| 6200 | cat <<\_ASBOX |
---|
[3240] | 6201 | ## ---------------------------------------------- ## |
---|
| 6202 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6203 | ## ---------------------------------------------- ## |
---|
[2701] | 6204 | _ASBOX |
---|
| 6205 | ) | |
---|
| 6206 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6207 | ;; |
---|
| 6208 | esac |
---|
| 6209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6213 | else |
---|
[2701] | 6214 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6215 | fi |
---|
| 6216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6218 | |
---|
| 6219 | fi |
---|
| 6220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6221 | cat >>confdefs.h <<_ACEOF |
---|
| 6222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6223 | _ACEOF |
---|
| 6224 | |
---|
| 6225 | else |
---|
| 6226 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6227 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6228 | { (exit 1); exit 1; }; } |
---|
| 6229 | fi |
---|
| 6230 | |
---|
| 6231 | done |
---|
| 6232 | |
---|
[5277] | 6233 | echo "$as_me:$LINENO: checking for main in -lGLU" >&5 |
---|
| 6234 | echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 |
---|
| 6235 | if test "${ac_cv_lib_GLU_main+set}" = set; then |
---|
| 6236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6237 | else |
---|
| 6238 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6239 | LIBS="-lGLU $LIBS" |
---|
| 6240 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6241 | /* confdefs.h. */ |
---|
| 6242 | _ACEOF |
---|
| 6243 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6244 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6245 | /* end confdefs.h. */ |
---|
[5224] | 6246 | |
---|
[5277] | 6247 | |
---|
| 6248 | int |
---|
| 6249 | main () |
---|
| 6250 | { |
---|
| 6251 | main (); |
---|
| 6252 | ; |
---|
| 6253 | return 0; |
---|
| 6254 | } |
---|
| 6255 | _ACEOF |
---|
| 6256 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6258 | (eval $ac_link) 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); } && |
---|
[5588] | 6265 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6266 | || test ! -s conftest.err' |
---|
[5277] | 6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6268 | (eval $ac_try) 2>&5 |
---|
| 6269 | ac_status=$? |
---|
| 6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6271 | (exit $ac_status); }; } && |
---|
| 6272 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6274 | (eval $ac_try) 2>&5 |
---|
| 6275 | ac_status=$? |
---|
| 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6277 | (exit $ac_status); }; }; then |
---|
| 6278 | ac_cv_lib_GLU_main=yes |
---|
| 6279 | else |
---|
| 6280 | echo "$as_me: failed program was:" >&5 |
---|
| 6281 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6282 | |
---|
| 6283 | ac_cv_lib_GLU_main=no |
---|
| 6284 | fi |
---|
| 6285 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6286 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6287 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6288 | fi |
---|
| 6289 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 |
---|
| 6290 | echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 |
---|
| 6291 | if test $ac_cv_lib_GLU_main = yes; then |
---|
| 6292 | FOUND_GLU=yes; LIBS="$LIBS -lGLU" |
---|
| 6293 | fi |
---|
| 6294 | |
---|
| 6295 | if test x$FOUND_GLU != xyes ; then |
---|
| 6296 | echo "------------------" |
---|
| 6297 | echo "GLU library not found." |
---|
| 6298 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 6299 | echo "------------------" |
---|
| 6300 | exit -1 |
---|
| 6301 | fi |
---|
| 6302 | |
---|
[5265] | 6303 | # checking for GLEW-headers |
---|
| 6304 | |
---|
| 6305 | for ac_header in GL/glew.h |
---|
| 6306 | do |
---|
| 6307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6313 | fi |
---|
| 6314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6316 | else |
---|
| 6317 | # Is the header compilable? |
---|
| 6318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6320 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6321 | /* confdefs.h. */ |
---|
| 6322 | _ACEOF |
---|
| 6323 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6324 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6325 | /* end confdefs.h. */ |
---|
| 6326 | $ac_includes_default |
---|
| 6327 | #include <$ac_header> |
---|
| 6328 | _ACEOF |
---|
| 6329 | rm -f conftest.$ac_objext |
---|
| 6330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6331 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6332 | ac_status=$? |
---|
| 6333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6334 | rm -f conftest.er1 |
---|
| 6335 | cat conftest.err >&5 |
---|
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6337 | (exit $ac_status); } && |
---|
[5588] | 6338 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6339 | || test ! -s conftest.err' |
---|
[5265] | 6340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6341 | (eval $ac_try) 2>&5 |
---|
| 6342 | ac_status=$? |
---|
| 6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6344 | (exit $ac_status); }; } && |
---|
| 6345 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6347 | (eval $ac_try) 2>&5 |
---|
| 6348 | ac_status=$? |
---|
| 6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6350 | (exit $ac_status); }; }; then |
---|
| 6351 | ac_header_compiler=yes |
---|
| 6352 | else |
---|
| 6353 | echo "$as_me: failed program was:" >&5 |
---|
| 6354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6355 | |
---|
| 6356 | ac_header_compiler=no |
---|
| 6357 | fi |
---|
| 6358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6360 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6361 | |
---|
| 6362 | # Is the header present? |
---|
| 6363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6365 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6366 | /* confdefs.h. */ |
---|
| 6367 | _ACEOF |
---|
| 6368 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6370 | /* end confdefs.h. */ |
---|
| 6371 | #include <$ac_header> |
---|
| 6372 | _ACEOF |
---|
| 6373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6375 | ac_status=$? |
---|
| 6376 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6377 | rm -f conftest.er1 |
---|
| 6378 | cat conftest.err >&5 |
---|
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6380 | (exit $ac_status); } >/dev/null; then |
---|
| 6381 | if test -s conftest.err; then |
---|
| 6382 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6384 | else |
---|
| 6385 | ac_cpp_err= |
---|
| 6386 | fi |
---|
| 6387 | else |
---|
| 6388 | ac_cpp_err=yes |
---|
| 6389 | fi |
---|
| 6390 | if test -z "$ac_cpp_err"; then |
---|
| 6391 | ac_header_preproc=yes |
---|
| 6392 | else |
---|
| 6393 | echo "$as_me: failed program was:" >&5 |
---|
| 6394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6395 | |
---|
| 6396 | ac_header_preproc=no |
---|
| 6397 | fi |
---|
| 6398 | rm -f conftest.err conftest.$ac_ext |
---|
| 6399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6400 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6401 | |
---|
| 6402 | # So? What about this header? |
---|
| 6403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6404 | yes:no: ) |
---|
| 6405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6409 | ac_header_preproc=yes |
---|
| 6410 | ;; |
---|
| 6411 | no:yes:* ) |
---|
| 6412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6424 | ( |
---|
| 6425 | cat <<\_ASBOX |
---|
| 6426 | ## ---------------------------------------------- ## |
---|
| 6427 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6428 | ## ---------------------------------------------- ## |
---|
| 6429 | _ASBOX |
---|
| 6430 | ) | |
---|
| 6431 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6432 | ;; |
---|
| 6433 | esac |
---|
| 6434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6438 | else |
---|
| 6439 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6440 | fi |
---|
| 6441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6443 | |
---|
| 6444 | fi |
---|
| 6445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6446 | cat >>confdefs.h <<_ACEOF |
---|
| 6447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6448 | _ACEOF |
---|
| 6449 | |
---|
| 6450 | else |
---|
| 6451 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
| 6452 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
| 6453 | { (exit 1); exit 1; }; } |
---|
| 6454 | fi |
---|
| 6455 | |
---|
| 6456 | done |
---|
| 6457 | |
---|
| 6458 | # checking for GLEW-lib |
---|
| 6459 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
| 6460 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
| 6461 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
| 6462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6463 | else |
---|
| 6464 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6465 | LIBS="-lGLEW $LIBS" |
---|
| 6466 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6467 | /* confdefs.h. */ |
---|
| 6468 | _ACEOF |
---|
| 6469 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6471 | /* end confdefs.h. */ |
---|
| 6472 | |
---|
| 6473 | |
---|
| 6474 | int |
---|
| 6475 | main () |
---|
| 6476 | { |
---|
| 6477 | main (); |
---|
| 6478 | ; |
---|
| 6479 | return 0; |
---|
| 6480 | } |
---|
| 6481 | _ACEOF |
---|
| 6482 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6484 | (eval $ac_link) 2>conftest.er1 |
---|
| 6485 | ac_status=$? |
---|
| 6486 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6487 | rm -f conftest.er1 |
---|
| 6488 | cat conftest.err >&5 |
---|
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6490 | (exit $ac_status); } && |
---|
[5588] | 6491 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6492 | || test ! -s conftest.err' |
---|
[5265] | 6493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6494 | (eval $ac_try) 2>&5 |
---|
| 6495 | ac_status=$? |
---|
| 6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6497 | (exit $ac_status); }; } && |
---|
| 6498 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6500 | (eval $ac_try) 2>&5 |
---|
| 6501 | ac_status=$? |
---|
| 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6503 | (exit $ac_status); }; }; then |
---|
| 6504 | ac_cv_lib_GLEW_main=yes |
---|
| 6505 | else |
---|
| 6506 | echo "$as_me: failed program was:" >&5 |
---|
| 6507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6508 | |
---|
| 6509 | ac_cv_lib_GLEW_main=no |
---|
| 6510 | fi |
---|
| 6511 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6512 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6513 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6514 | fi |
---|
| 6515 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
| 6516 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
| 6517 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
[5277] | 6518 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
[5265] | 6519 | fi |
---|
| 6520 | |
---|
[5277] | 6521 | if test x$FOUND_GLEW != xyes ; then |
---|
[5265] | 6522 | echo "------------------" |
---|
| 6523 | echo "glew not found." |
---|
| 6524 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
| 6525 | echo "------------------" |
---|
| 6526 | exit -1 |
---|
| 6527 | fi |
---|
| 6528 | |
---|
[5224] | 6529 | #--------# |
---|
| 6530 | # openAL # |
---|
| 6531 | #--------# |
---|
| 6532 | # checking for openAL-headers |
---|
| 6533 | |
---|
| 6534 | for ac_header in AL/al.h |
---|
| 6535 | do |
---|
| 6536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2701] | 6541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[5224] | 6542 | fi |
---|
| 6543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6544 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 6545 | else |
---|
[5224] | 6546 | # Is the header compilable? |
---|
| 6547 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6549 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6550 | /* confdefs.h. */ |
---|
| 6551 | _ACEOF |
---|
| 6552 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6554 | /* end confdefs.h. */ |
---|
| 6555 | $ac_includes_default |
---|
| 6556 | #include <$ac_header> |
---|
| 6557 | _ACEOF |
---|
| 6558 | rm -f conftest.$ac_objext |
---|
| 6559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6560 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6561 | ac_status=$? |
---|
| 6562 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6563 | rm -f conftest.er1 |
---|
| 6564 | cat conftest.err >&5 |
---|
| 6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6566 | (exit $ac_status); } && |
---|
[5588] | 6567 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6568 | || test ! -s conftest.err' |
---|
[5224] | 6569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6570 | (eval $ac_try) 2>&5 |
---|
| 6571 | ac_status=$? |
---|
| 6572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6573 | (exit $ac_status); }; } && |
---|
| 6574 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6576 | (eval $ac_try) 2>&5 |
---|
| 6577 | ac_status=$? |
---|
| 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6579 | (exit $ac_status); }; }; then |
---|
| 6580 | ac_header_compiler=yes |
---|
| 6581 | else |
---|
| 6582 | echo "$as_me: failed program was:" >&5 |
---|
| 6583 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6584 | |
---|
| 6585 | ac_header_compiler=no |
---|
| 6586 | fi |
---|
| 6587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6588 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6589 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6590 | |
---|
| 6591 | # Is the header present? |
---|
| 6592 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6593 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6594 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6595 | /* confdefs.h. */ |
---|
| 6596 | _ACEOF |
---|
| 6597 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6598 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6599 | /* end confdefs.h. */ |
---|
| 6600 | #include <$ac_header> |
---|
| 6601 | _ACEOF |
---|
| 6602 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6603 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6604 | ac_status=$? |
---|
| 6605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6606 | rm -f conftest.er1 |
---|
| 6607 | cat conftest.err >&5 |
---|
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6609 | (exit $ac_status); } >/dev/null; then |
---|
| 6610 | if test -s conftest.err; then |
---|
| 6611 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6612 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6613 | else |
---|
| 6614 | ac_cpp_err= |
---|
| 6615 | fi |
---|
| 6616 | else |
---|
| 6617 | ac_cpp_err=yes |
---|
| 6618 | fi |
---|
| 6619 | if test -z "$ac_cpp_err"; then |
---|
| 6620 | ac_header_preproc=yes |
---|
| 6621 | else |
---|
| 6622 | echo "$as_me: failed program was:" >&5 |
---|
| 6623 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6624 | |
---|
| 6625 | ac_header_preproc=no |
---|
| 6626 | fi |
---|
| 6627 | rm -f conftest.err conftest.$ac_ext |
---|
| 6628 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6629 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6630 | |
---|
| 6631 | # So? What about this header? |
---|
| 6632 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6633 | yes:no: ) |
---|
| 6634 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6635 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6637 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6638 | ac_header_preproc=yes |
---|
| 6639 | ;; |
---|
| 6640 | no:yes:* ) |
---|
| 6641 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6642 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6643 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6644 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6645 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6646 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6647 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6648 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6650 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6651 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6652 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6653 | ( |
---|
| 6654 | cat <<\_ASBOX |
---|
| 6655 | ## ---------------------------------------------- ## |
---|
| 6656 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6657 | ## ---------------------------------------------- ## |
---|
| 6658 | _ASBOX |
---|
| 6659 | ) | |
---|
| 6660 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6661 | ;; |
---|
| 6662 | esac |
---|
| 6663 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6667 | else |
---|
| 6668 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6669 | fi |
---|
| 6670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6672 | |
---|
| 6673 | fi |
---|
| 6674 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6675 | cat >>confdefs.h <<_ACEOF |
---|
| 6676 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6677 | _ACEOF |
---|
| 6678 | |
---|
| 6679 | else |
---|
| 6680 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
| 6681 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
| 6682 | { (exit 1); exit 1; }; } |
---|
| 6683 | fi |
---|
| 6684 | |
---|
| 6685 | done |
---|
| 6686 | |
---|
| 6687 | # checking for openAL-lib |
---|
| 6688 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
| 6689 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
| 6690 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6692 | else |
---|
[2190] | 6693 | ac_check_lib_save_LIBS=$LIBS |
---|
[5224] | 6694 | LIBS="-lopenal $LIBS" |
---|
[2190] | 6695 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6696 | /* confdefs.h. */ |
---|
| 6697 | _ACEOF |
---|
| 6698 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6699 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6700 | /* end confdefs.h. */ |
---|
| 6701 | |
---|
[5221] | 6702 | |
---|
[2190] | 6703 | int |
---|
| 6704 | main () |
---|
| 6705 | { |
---|
[5221] | 6706 | main (); |
---|
[2190] | 6707 | ; |
---|
| 6708 | return 0; |
---|
| 6709 | } |
---|
| 6710 | _ACEOF |
---|
| 6711 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6713 | (eval $ac_link) 2>conftest.er1 |
---|
| 6714 | ac_status=$? |
---|
| 6715 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6716 | rm -f conftest.er1 |
---|
| 6717 | cat conftest.err >&5 |
---|
| 6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6719 | (exit $ac_status); } && |
---|
[5588] | 6720 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6721 | || test ! -s conftest.err' |
---|
[2190] | 6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6723 | (eval $ac_try) 2>&5 |
---|
| 6724 | ac_status=$? |
---|
| 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6726 | (exit $ac_status); }; } && |
---|
| 6727 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6729 | (eval $ac_try) 2>&5 |
---|
| 6730 | ac_status=$? |
---|
| 6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6732 | (exit $ac_status); }; }; then |
---|
[5224] | 6733 | ac_cv_lib_openal_main=yes |
---|
[2190] | 6734 | else |
---|
| 6735 | echo "$as_me: failed program was:" >&5 |
---|
| 6736 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6737 | |
---|
[5224] | 6738 | ac_cv_lib_openal_main=no |
---|
[2190] | 6739 | fi |
---|
| 6740 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6741 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6742 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6743 | fi |
---|
[5224] | 6744 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
| 6745 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
| 6746 | if test $ac_cv_lib_openal_main = yes; then |
---|
[5277] | 6747 | FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" |
---|
[2190] | 6748 | fi |
---|
| 6749 | |
---|
[5277] | 6750 | if test x$FOUND_OPENAL != xyes ; then |
---|
[5224] | 6751 | echo "------------------" |
---|
| 6752 | echo "openal library not found." |
---|
| 6753 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
| 6754 | echo "------------------" |
---|
| 6755 | exit -1 |
---|
| 6756 | fi |
---|
| 6757 | # checking for alut |
---|
[2995] | 6758 | |
---|
[5224] | 6759 | for ac_header in AL/alut.h |
---|
[2991] | 6760 | do |
---|
| 6761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6767 | fi |
---|
[2991] | 6768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 6770 | else |
---|
[2991] | 6771 | # Is the header compilable? |
---|
| 6772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6774 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 6775 | /* confdefs.h. */ |
---|
| 6776 | _ACEOF |
---|
| 6777 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6778 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6779 | /* end confdefs.h. */ |
---|
[2991] | 6780 | $ac_includes_default |
---|
| 6781 | #include <$ac_header> |
---|
[2190] | 6782 | _ACEOF |
---|
[2991] | 6783 | rm -f conftest.$ac_objext |
---|
| 6784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6785 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 6786 | ac_status=$? |
---|
[2991] | 6787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6788 | rm -f conftest.er1 |
---|
| 6789 | cat conftest.err >&5 |
---|
[2190] | 6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 6791 | (exit $ac_status); } && |
---|
[5588] | 6792 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6793 | || test ! -s conftest.err' |
---|
[2190] | 6794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6795 | (eval $ac_try) 2>&5 |
---|
| 6796 | ac_status=$? |
---|
| 6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 6798 | (exit $ac_status); }; } && |
---|
| 6799 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6801 | (eval $ac_try) 2>&5 |
---|
| 6802 | ac_status=$? |
---|
| 6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 6804 | (exit $ac_status); }; }; then |
---|
[2991] | 6805 | ac_header_compiler=yes |
---|
[2190] | 6806 | else |
---|
[2991] | 6807 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 6808 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6809 | |
---|
[2991] | 6810 | ac_header_compiler=no |
---|
[2190] | 6811 | fi |
---|
[2991] | 6812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6813 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6814 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6815 | |
---|
| 6816 | # Is the header present? |
---|
| 6817 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6819 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6820 | /* confdefs.h. */ |
---|
| 6821 | _ACEOF |
---|
| 6822 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6824 | /* end confdefs.h. */ |
---|
| 6825 | #include <$ac_header> |
---|
| 6826 | _ACEOF |
---|
| 6827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6829 | ac_status=$? |
---|
| 6830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6831 | rm -f conftest.er1 |
---|
| 6832 | cat conftest.err >&5 |
---|
| 6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6834 | (exit $ac_status); } >/dev/null; then |
---|
| 6835 | if test -s conftest.err; then |
---|
| 6836 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6838 | else |
---|
| 6839 | ac_cpp_err= |
---|
| 6840 | fi |
---|
| 6841 | else |
---|
| 6842 | ac_cpp_err=yes |
---|
[2190] | 6843 | fi |
---|
[2991] | 6844 | if test -z "$ac_cpp_err"; then |
---|
| 6845 | ac_header_preproc=yes |
---|
| 6846 | else |
---|
| 6847 | echo "$as_me: failed program was:" >&5 |
---|
| 6848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6849 | |
---|
| 6850 | ac_header_preproc=no |
---|
| 6851 | fi |
---|
| 6852 | rm -f conftest.err conftest.$ac_ext |
---|
| 6853 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6854 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6855 | |
---|
| 6856 | # So? What about this header? |
---|
| 6857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6858 | yes:no: ) |
---|
| 6859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6863 | ac_header_preproc=yes |
---|
| 6864 | ;; |
---|
| 6865 | no:yes:* ) |
---|
| 6866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6878 | ( |
---|
| 6879 | cat <<\_ASBOX |
---|
[3240] | 6880 | ## ---------------------------------------------- ## |
---|
| 6881 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6882 | ## ---------------------------------------------- ## |
---|
[2991] | 6883 | _ASBOX |
---|
| 6884 | ) | |
---|
| 6885 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6886 | ;; |
---|
| 6887 | esac |
---|
| 6888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6892 | else |
---|
| 6893 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6894 | fi |
---|
| 6895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6897 | |
---|
| 6898 | fi |
---|
| 6899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6900 | cat >>confdefs.h <<_ACEOF |
---|
| 6901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6902 | _ACEOF |
---|
| 6903 | |
---|
| 6904 | else |
---|
[5224] | 6905 | { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 |
---|
| 6906 | echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} |
---|
[4697] | 6907 | { (exit 1); exit 1; }; } |
---|
| 6908 | fi |
---|
[2991] | 6909 | |
---|
[4697] | 6910 | done |
---|
| 6911 | |
---|
[5224] | 6912 | echo "$as_me:$LINENO: checking for main in -lalut" >&5 |
---|
| 6913 | echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 |
---|
| 6914 | if test "${ac_cv_lib_alut_main+set}" = set; then |
---|
[2991] | 6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6916 | else |
---|
[4697] | 6917 | ac_check_lib_save_LIBS=$LIBS |
---|
[5224] | 6918 | LIBS="-lalut $LIBS" |
---|
[2991] | 6919 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 6920 | /* confdefs.h. */ |
---|
| 6921 | _ACEOF |
---|
| 6922 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6923 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6924 | /* end confdefs.h. */ |
---|
[4697] | 6925 | |
---|
| 6926 | |
---|
| 6927 | int |
---|
| 6928 | main () |
---|
| 6929 | { |
---|
| 6930 | main (); |
---|
| 6931 | ; |
---|
| 6932 | return 0; |
---|
| 6933 | } |
---|
[2190] | 6934 | _ACEOF |
---|
[4697] | 6935 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6937 | (eval $ac_link) 2>conftest.er1 |
---|
[2190] | 6938 | ac_status=$? |
---|
| 6939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6940 | rm -f conftest.er1 |
---|
| 6941 | cat conftest.err >&5 |
---|
| 6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6943 | (exit $ac_status); } && |
---|
[5588] | 6944 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6945 | || test ! -s conftest.err' |
---|
[2190] | 6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6947 | (eval $ac_try) 2>&5 |
---|
| 6948 | ac_status=$? |
---|
| 6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6950 | (exit $ac_status); }; } && |
---|
[4697] | 6951 | { ac_try='test -s conftest$ac_exeext' |
---|
[2190] | 6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6953 | (eval $ac_try) 2>&5 |
---|
| 6954 | ac_status=$? |
---|
| 6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6956 | (exit $ac_status); }; }; then |
---|
[5224] | 6957 | ac_cv_lib_alut_main=yes |
---|
[2190] | 6958 | else |
---|
| 6959 | echo "$as_me: failed program was:" >&5 |
---|
| 6960 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6961 | |
---|
[5224] | 6962 | ac_cv_lib_alut_main=no |
---|
[2190] | 6963 | fi |
---|
[4697] | 6964 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6965 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6966 | LIBS=$ac_check_lib_save_LIBS |
---|
[2991] | 6967 | fi |
---|
[5224] | 6968 | echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 |
---|
| 6969 | echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 |
---|
| 6970 | if test $ac_cv_lib_alut_main = yes; then |
---|
[5277] | 6971 | FOUND_ALUT=yes; LIBS="-lalut $LIBS" |
---|
[2991] | 6972 | fi |
---|
| 6973 | |
---|
[5277] | 6974 | |
---|
[5276] | 6975 | #-----# |
---|
| 6976 | # SDL # |
---|
| 6977 | #-----# |
---|
[4697] | 6978 | # checking for SDL |
---|
| 6979 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
| 6980 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
| 6981 | SDL_VERSION=`sdl-config --version` |
---|
| 6982 | echo $SDL_VERSION |
---|
[3140] | 6983 | |
---|
[5224] | 6984 | CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" |
---|
[4664] | 6985 | |
---|
[4697] | 6986 | for ac_header in SDL.h |
---|
[2995] | 6987 | do |
---|
| 6988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6994 | fi |
---|
| 6995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6997 | else |
---|
| 6998 | # Is the header compilable? |
---|
| 6999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7001 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7002 | /* confdefs.h. */ |
---|
| 7003 | _ACEOF |
---|
| 7004 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7005 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7006 | /* end confdefs.h. */ |
---|
| 7007 | $ac_includes_default |
---|
| 7008 | #include <$ac_header> |
---|
| 7009 | _ACEOF |
---|
| 7010 | rm -f conftest.$ac_objext |
---|
| 7011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7012 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7013 | ac_status=$? |
---|
| 7014 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7015 | rm -f conftest.er1 |
---|
| 7016 | cat conftest.err >&5 |
---|
| 7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7018 | (exit $ac_status); } && |
---|
[5588] | 7019 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7020 | || test ! -s conftest.err' |
---|
[2995] | 7021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7022 | (eval $ac_try) 2>&5 |
---|
| 7023 | ac_status=$? |
---|
| 7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7025 | (exit $ac_status); }; } && |
---|
| 7026 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7028 | (eval $ac_try) 2>&5 |
---|
| 7029 | ac_status=$? |
---|
| 7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7031 | (exit $ac_status); }; }; then |
---|
| 7032 | ac_header_compiler=yes |
---|
| 7033 | else |
---|
| 7034 | echo "$as_me: failed program was:" >&5 |
---|
| 7035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7036 | |
---|
| 7037 | ac_header_compiler=no |
---|
| 7038 | fi |
---|
| 7039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7040 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7041 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7042 | |
---|
| 7043 | # Is the header present? |
---|
| 7044 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7045 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7046 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7047 | /* confdefs.h. */ |
---|
| 7048 | _ACEOF |
---|
| 7049 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7051 | /* end confdefs.h. */ |
---|
| 7052 | #include <$ac_header> |
---|
| 7053 | _ACEOF |
---|
| 7054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7056 | ac_status=$? |
---|
| 7057 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7058 | rm -f conftest.er1 |
---|
| 7059 | cat conftest.err >&5 |
---|
| 7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7061 | (exit $ac_status); } >/dev/null; then |
---|
| 7062 | if test -s conftest.err; then |
---|
| 7063 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7065 | else |
---|
| 7066 | ac_cpp_err= |
---|
| 7067 | fi |
---|
| 7068 | else |
---|
| 7069 | ac_cpp_err=yes |
---|
| 7070 | fi |
---|
| 7071 | if test -z "$ac_cpp_err"; then |
---|
| 7072 | ac_header_preproc=yes |
---|
| 7073 | else |
---|
| 7074 | echo "$as_me: failed program was:" >&5 |
---|
| 7075 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7076 | |
---|
| 7077 | ac_header_preproc=no |
---|
| 7078 | fi |
---|
| 7079 | rm -f conftest.err conftest.$ac_ext |
---|
| 7080 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7081 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7082 | |
---|
| 7083 | # So? What about this header? |
---|
| 7084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7085 | yes:no: ) |
---|
| 7086 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7087 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7089 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7090 | ac_header_preproc=yes |
---|
| 7091 | ;; |
---|
| 7092 | no:yes:* ) |
---|
| 7093 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7094 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7095 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7096 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7097 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7098 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7099 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7100 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7102 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7103 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7104 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7105 | ( |
---|
| 7106 | cat <<\_ASBOX |
---|
[3240] | 7107 | ## ---------------------------------------------- ## |
---|
| 7108 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7109 | ## ---------------------------------------------- ## |
---|
[2995] | 7110 | _ASBOX |
---|
| 7111 | ) | |
---|
| 7112 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7113 | ;; |
---|
| 7114 | esac |
---|
| 7115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7119 | else |
---|
| 7120 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7121 | fi |
---|
| 7122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7124 | |
---|
| 7125 | fi |
---|
| 7126 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7127 | cat >>confdefs.h <<_ACEOF |
---|
| 7128 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7129 | _ACEOF |
---|
| 7130 | |
---|
| 7131 | else |
---|
| 7132 | |
---|
[4697] | 7133 | for ac_header in SDL/SDL.h |
---|
[2995] | 7134 | do |
---|
| 7135 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7141 | fi |
---|
| 7142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7143 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7144 | else |
---|
| 7145 | # Is the header compilable? |
---|
| 7146 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7147 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7148 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7149 | /* confdefs.h. */ |
---|
| 7150 | _ACEOF |
---|
| 7151 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7152 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7153 | /* end confdefs.h. */ |
---|
| 7154 | $ac_includes_default |
---|
| 7155 | #include <$ac_header> |
---|
| 7156 | _ACEOF |
---|
| 7157 | rm -f conftest.$ac_objext |
---|
| 7158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7159 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7160 | ac_status=$? |
---|
| 7161 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7162 | rm -f conftest.er1 |
---|
| 7163 | cat conftest.err >&5 |
---|
| 7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7165 | (exit $ac_status); } && |
---|
[5588] | 7166 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7167 | || test ! -s conftest.err' |
---|
[2995] | 7168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7169 | (eval $ac_try) 2>&5 |
---|
| 7170 | ac_status=$? |
---|
| 7171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7172 | (exit $ac_status); }; } && |
---|
| 7173 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7175 | (eval $ac_try) 2>&5 |
---|
| 7176 | ac_status=$? |
---|
| 7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7178 | (exit $ac_status); }; }; then |
---|
| 7179 | ac_header_compiler=yes |
---|
| 7180 | else |
---|
| 7181 | echo "$as_me: failed program was:" >&5 |
---|
| 7182 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7183 | |
---|
| 7184 | ac_header_compiler=no |
---|
| 7185 | fi |
---|
| 7186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7187 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7188 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7189 | |
---|
| 7190 | # Is the header present? |
---|
| 7191 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7192 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 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 | #include <$ac_header> |
---|
| 7200 | _ACEOF |
---|
| 7201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7203 | ac_status=$? |
---|
| 7204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7205 | rm -f conftest.er1 |
---|
| 7206 | cat conftest.err >&5 |
---|
| 7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7208 | (exit $ac_status); } >/dev/null; then |
---|
| 7209 | if test -s conftest.err; then |
---|
| 7210 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7211 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7212 | else |
---|
| 7213 | ac_cpp_err= |
---|
| 7214 | fi |
---|
| 7215 | else |
---|
| 7216 | ac_cpp_err=yes |
---|
| 7217 | fi |
---|
| 7218 | if test -z "$ac_cpp_err"; then |
---|
| 7219 | ac_header_preproc=yes |
---|
| 7220 | else |
---|
| 7221 | echo "$as_me: failed program was:" >&5 |
---|
| 7222 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7223 | |
---|
| 7224 | ac_header_preproc=no |
---|
| 7225 | fi |
---|
| 7226 | rm -f conftest.err conftest.$ac_ext |
---|
| 7227 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7228 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7229 | |
---|
| 7230 | # So? What about this header? |
---|
| 7231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7232 | yes:no: ) |
---|
| 7233 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7234 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7236 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7237 | ac_header_preproc=yes |
---|
| 7238 | ;; |
---|
| 7239 | no:yes:* ) |
---|
| 7240 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7241 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7242 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7243 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7244 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7245 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7246 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7247 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7249 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7250 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7251 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7252 | ( |
---|
| 7253 | cat <<\_ASBOX |
---|
[3240] | 7254 | ## ---------------------------------------------- ## |
---|
| 7255 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7256 | ## ---------------------------------------------- ## |
---|
[2995] | 7257 | _ASBOX |
---|
| 7258 | ) | |
---|
| 7259 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7260 | ;; |
---|
| 7261 | esac |
---|
| 7262 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7266 | else |
---|
| 7267 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7268 | fi |
---|
| 7269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7270 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7271 | |
---|
| 7272 | fi |
---|
| 7273 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7274 | cat >>confdefs.h <<_ACEOF |
---|
| 7275 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7276 | _ACEOF |
---|
| 7277 | |
---|
| 7278 | else |
---|
[4697] | 7279 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
| 7280 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
[2995] | 7281 | { (exit 1); exit 1; }; } |
---|
| 7282 | fi |
---|
| 7283 | |
---|
| 7284 | done |
---|
| 7285 | |
---|
[4697] | 7286 | fi |
---|
[2995] | 7287 | |
---|
[4697] | 7288 | done |
---|
[2995] | 7289 | |
---|
[5224] | 7290 | LIBS="`sdl-config --libs` $LIBS" |
---|
[5221] | 7291 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 7292 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 7293 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7295 | else |
---|
| 7296 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7297 | LIBS="-lSDL $LIBS" |
---|
| 7298 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7299 | /* confdefs.h. */ |
---|
| 7300 | _ACEOF |
---|
| 7301 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7302 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7303 | /* end confdefs.h. */ |
---|
[4662] | 7304 | |
---|
[5221] | 7305 | |
---|
| 7306 | int |
---|
| 7307 | main () |
---|
| 7308 | { |
---|
| 7309 | main (); |
---|
| 7310 | ; |
---|
| 7311 | return 0; |
---|
| 7312 | } |
---|
| 7313 | _ACEOF |
---|
| 7314 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7316 | (eval $ac_link) 2>conftest.er1 |
---|
| 7317 | ac_status=$? |
---|
| 7318 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7319 | rm -f conftest.er1 |
---|
| 7320 | cat conftest.err >&5 |
---|
| 7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7322 | (exit $ac_status); } && |
---|
[5588] | 7323 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7324 | || test ! -s conftest.err' |
---|
[5221] | 7325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7326 | (eval $ac_try) 2>&5 |
---|
| 7327 | ac_status=$? |
---|
| 7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7329 | (exit $ac_status); }; } && |
---|
| 7330 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7332 | (eval $ac_try) 2>&5 |
---|
| 7333 | ac_status=$? |
---|
| 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7335 | (exit $ac_status); }; }; then |
---|
| 7336 | ac_cv_lib_SDL_main=yes |
---|
| 7337 | else |
---|
| 7338 | echo "$as_me: failed program was:" >&5 |
---|
| 7339 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7340 | |
---|
| 7341 | ac_cv_lib_SDL_main=no |
---|
| 7342 | fi |
---|
| 7343 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7344 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7345 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7346 | fi |
---|
| 7347 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 7348 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 7349 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 7350 | FOUND_SDL=yes |
---|
| 7351 | fi |
---|
| 7352 | |
---|
[5276] | 7353 | if test x$FOUND_SDL != xyes ; then |
---|
[5221] | 7354 | echo "------------------" |
---|
| 7355 | echo "SDL library not found." |
---|
| 7356 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 7357 | echo "------------------" |
---|
| 7358 | exit -1 |
---|
| 7359 | fi |
---|
| 7360 | |
---|
[2995] | 7361 | ;; |
---|
| 7362 | |
---|
[4825] | 7363 | ############# |
---|
[4697] | 7364 | #-----------# |
---|
| 7365 | # MAC -OS X # |
---|
| 7366 | #-----------# |
---|
[4825] | 7367 | ############# |
---|
[4697] | 7368 | *darwin*) |
---|
| 7369 | echo "OS X detected" |
---|
[2980] | 7370 | |
---|
[4697] | 7371 | osX="yes" |
---|
[2981] | 7372 | |
---|
[4697] | 7373 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
[5280] | 7374 | LDFLAGS="$LDFLAGS -L/sw/lib" |
---|
[4697] | 7375 | # checking gl header |
---|
[2989] | 7376 | |
---|
[4697] | 7377 | for ac_header in OpenGL/gl.h |
---|
[4504] | 7378 | do |
---|
| 7379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7385 | fi |
---|
| 7386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7388 | else |
---|
| 7389 | # Is the header compilable? |
---|
| 7390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7392 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7393 | /* confdefs.h. */ |
---|
| 7394 | _ACEOF |
---|
| 7395 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7397 | /* end confdefs.h. */ |
---|
| 7398 | $ac_includes_default |
---|
| 7399 | #include <$ac_header> |
---|
| 7400 | _ACEOF |
---|
| 7401 | rm -f conftest.$ac_objext |
---|
| 7402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7403 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7404 | ac_status=$? |
---|
| 7405 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7406 | rm -f conftest.er1 |
---|
| 7407 | cat conftest.err >&5 |
---|
| 7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7409 | (exit $ac_status); } && |
---|
[5588] | 7410 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7411 | || test ! -s conftest.err' |
---|
[4504] | 7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7413 | (eval $ac_try) 2>&5 |
---|
| 7414 | ac_status=$? |
---|
| 7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7416 | (exit $ac_status); }; } && |
---|
| 7417 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7419 | (eval $ac_try) 2>&5 |
---|
| 7420 | ac_status=$? |
---|
| 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7422 | (exit $ac_status); }; }; then |
---|
| 7423 | ac_header_compiler=yes |
---|
| 7424 | else |
---|
| 7425 | echo "$as_me: failed program was:" >&5 |
---|
| 7426 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7427 | |
---|
| 7428 | ac_header_compiler=no |
---|
| 7429 | fi |
---|
| 7430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7432 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7433 | |
---|
| 7434 | # Is the header present? |
---|
| 7435 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7436 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7437 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7438 | /* confdefs.h. */ |
---|
| 7439 | _ACEOF |
---|
| 7440 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7441 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7442 | /* end confdefs.h. */ |
---|
| 7443 | #include <$ac_header> |
---|
| 7444 | _ACEOF |
---|
| 7445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7447 | ac_status=$? |
---|
| 7448 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7449 | rm -f conftest.er1 |
---|
| 7450 | cat conftest.err >&5 |
---|
| 7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7452 | (exit $ac_status); } >/dev/null; then |
---|
| 7453 | if test -s conftest.err; then |
---|
| 7454 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7456 | else |
---|
| 7457 | ac_cpp_err= |
---|
| 7458 | fi |
---|
| 7459 | else |
---|
| 7460 | ac_cpp_err=yes |
---|
| 7461 | fi |
---|
| 7462 | if test -z "$ac_cpp_err"; then |
---|
| 7463 | ac_header_preproc=yes |
---|
| 7464 | else |
---|
| 7465 | echo "$as_me: failed program was:" >&5 |
---|
| 7466 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7467 | |
---|
| 7468 | ac_header_preproc=no |
---|
| 7469 | fi |
---|
| 7470 | rm -f conftest.err conftest.$ac_ext |
---|
| 7471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7472 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7473 | |
---|
| 7474 | # So? What about this header? |
---|
| 7475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7476 | yes:no: ) |
---|
| 7477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7481 | ac_header_preproc=yes |
---|
| 7482 | ;; |
---|
| 7483 | no:yes:* ) |
---|
| 7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7496 | ( |
---|
| 7497 | cat <<\_ASBOX |
---|
| 7498 | ## ---------------------------------------------- ## |
---|
| 7499 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7500 | ## ---------------------------------------------- ## |
---|
| 7501 | _ASBOX |
---|
| 7502 | ) | |
---|
| 7503 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7504 | ;; |
---|
| 7505 | esac |
---|
| 7506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7510 | else |
---|
| 7511 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7512 | fi |
---|
| 7513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7515 | |
---|
| 7516 | fi |
---|
| 7517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7518 | cat >>confdefs.h <<_ACEOF |
---|
| 7519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7520 | _ACEOF |
---|
| 7521 | |
---|
| 7522 | else |
---|
[4697] | 7523 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 7524 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 7525 | { (exit 1); exit 1; }; } |
---|
| 7526 | fi |
---|
[4504] | 7527 | |
---|
[4697] | 7528 | done |
---|
| 7529 | |
---|
| 7530 | # cheking for GLU-header |
---|
| 7531 | |
---|
| 7532 | for ac_header in OpenGL/glu.h |
---|
[4504] | 7533 | do |
---|
| 7534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7536 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7540 | fi |
---|
| 7541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7542 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7543 | else |
---|
| 7544 | # Is the header compilable? |
---|
| 7545 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7546 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7547 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7548 | /* confdefs.h. */ |
---|
| 7549 | _ACEOF |
---|
| 7550 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7551 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7552 | /* end confdefs.h. */ |
---|
| 7553 | $ac_includes_default |
---|
| 7554 | #include <$ac_header> |
---|
| 7555 | _ACEOF |
---|
| 7556 | rm -f conftest.$ac_objext |
---|
| 7557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7558 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7559 | ac_status=$? |
---|
| 7560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7561 | rm -f conftest.er1 |
---|
| 7562 | cat conftest.err >&5 |
---|
| 7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7564 | (exit $ac_status); } && |
---|
[5588] | 7565 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7566 | || test ! -s conftest.err' |
---|
[4504] | 7567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7568 | (eval $ac_try) 2>&5 |
---|
| 7569 | ac_status=$? |
---|
| 7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7571 | (exit $ac_status); }; } && |
---|
| 7572 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7574 | (eval $ac_try) 2>&5 |
---|
| 7575 | ac_status=$? |
---|
| 7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7577 | (exit $ac_status); }; }; then |
---|
| 7578 | ac_header_compiler=yes |
---|
| 7579 | else |
---|
| 7580 | echo "$as_me: failed program was:" >&5 |
---|
| 7581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7582 | |
---|
| 7583 | ac_header_compiler=no |
---|
| 7584 | fi |
---|
| 7585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7586 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7587 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7588 | |
---|
| 7589 | # Is the header present? |
---|
| 7590 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7591 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7592 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7593 | /* confdefs.h. */ |
---|
| 7594 | _ACEOF |
---|
| 7595 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7596 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7597 | /* end confdefs.h. */ |
---|
| 7598 | #include <$ac_header> |
---|
| 7599 | _ACEOF |
---|
| 7600 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7601 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7602 | ac_status=$? |
---|
| 7603 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7604 | rm -f conftest.er1 |
---|
| 7605 | cat conftest.err >&5 |
---|
| 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7607 | (exit $ac_status); } >/dev/null; then |
---|
| 7608 | if test -s conftest.err; then |
---|
| 7609 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7611 | else |
---|
| 7612 | ac_cpp_err= |
---|
| 7613 | fi |
---|
| 7614 | else |
---|
| 7615 | ac_cpp_err=yes |
---|
| 7616 | fi |
---|
| 7617 | if test -z "$ac_cpp_err"; then |
---|
| 7618 | ac_header_preproc=yes |
---|
| 7619 | else |
---|
| 7620 | echo "$as_me: failed program was:" >&5 |
---|
| 7621 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7622 | |
---|
| 7623 | ac_header_preproc=no |
---|
| 7624 | fi |
---|
| 7625 | rm -f conftest.err conftest.$ac_ext |
---|
| 7626 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7627 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7628 | |
---|
| 7629 | # So? What about this header? |
---|
| 7630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7631 | yes:no: ) |
---|
| 7632 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7633 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7635 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7636 | ac_header_preproc=yes |
---|
| 7637 | ;; |
---|
| 7638 | no:yes:* ) |
---|
| 7639 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7640 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7641 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7642 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7643 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7644 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7645 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7646 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7647 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7648 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7649 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7650 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7651 | ( |
---|
| 7652 | cat <<\_ASBOX |
---|
| 7653 | ## ---------------------------------------------- ## |
---|
| 7654 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7655 | ## ---------------------------------------------- ## |
---|
| 7656 | _ASBOX |
---|
| 7657 | ) | |
---|
| 7658 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7659 | ;; |
---|
| 7660 | esac |
---|
| 7661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7665 | else |
---|
| 7666 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7667 | fi |
---|
| 7668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7670 | |
---|
| 7671 | fi |
---|
| 7672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7673 | cat >>confdefs.h <<_ACEOF |
---|
| 7674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7675 | _ACEOF |
---|
| 7676 | |
---|
| 7677 | else |
---|
[4697] | 7678 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 7679 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
[4504] | 7680 | { (exit 1); exit 1; }; } |
---|
| 7681 | fi |
---|
| 7682 | |
---|
| 7683 | done |
---|
| 7684 | |
---|
| 7685 | |
---|
[4697] | 7686 | LIBS="$LIBS -framework OpenGL" |
---|
[4504] | 7687 | |
---|
| 7688 | |
---|
[5280] | 7689 | |
---|
| 7690 | # checking for GLEW-headers |
---|
| 7691 | |
---|
| 7692 | for ac_header in GL/glew.h |
---|
| 7693 | do |
---|
| 7694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7700 | fi |
---|
| 7701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7703 | else |
---|
| 7704 | # Is the header compilable? |
---|
| 7705 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7706 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7707 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7708 | /* confdefs.h. */ |
---|
| 7709 | _ACEOF |
---|
| 7710 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7711 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7712 | /* end confdefs.h. */ |
---|
| 7713 | $ac_includes_default |
---|
| 7714 | #include <$ac_header> |
---|
| 7715 | _ACEOF |
---|
| 7716 | rm -f conftest.$ac_objext |
---|
| 7717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7718 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7719 | ac_status=$? |
---|
| 7720 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7721 | rm -f conftest.er1 |
---|
| 7722 | cat conftest.err >&5 |
---|
| 7723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7724 | (exit $ac_status); } && |
---|
[5588] | 7725 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7726 | || test ! -s conftest.err' |
---|
[5280] | 7727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7728 | (eval $ac_try) 2>&5 |
---|
| 7729 | ac_status=$? |
---|
| 7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7731 | (exit $ac_status); }; } && |
---|
| 7732 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7734 | (eval $ac_try) 2>&5 |
---|
| 7735 | ac_status=$? |
---|
| 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7737 | (exit $ac_status); }; }; then |
---|
| 7738 | ac_header_compiler=yes |
---|
| 7739 | else |
---|
| 7740 | echo "$as_me: failed program was:" >&5 |
---|
| 7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7742 | |
---|
| 7743 | ac_header_compiler=no |
---|
| 7744 | fi |
---|
| 7745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7747 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7748 | |
---|
| 7749 | # Is the header present? |
---|
| 7750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7752 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7753 | /* confdefs.h. */ |
---|
| 7754 | _ACEOF |
---|
| 7755 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7756 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7757 | /* end confdefs.h. */ |
---|
| 7758 | #include <$ac_header> |
---|
| 7759 | _ACEOF |
---|
| 7760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7762 | ac_status=$? |
---|
| 7763 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7764 | rm -f conftest.er1 |
---|
| 7765 | cat conftest.err >&5 |
---|
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7767 | (exit $ac_status); } >/dev/null; then |
---|
| 7768 | if test -s conftest.err; then |
---|
| 7769 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7771 | else |
---|
| 7772 | ac_cpp_err= |
---|
| 7773 | fi |
---|
| 7774 | else |
---|
| 7775 | ac_cpp_err=yes |
---|
| 7776 | fi |
---|
| 7777 | if test -z "$ac_cpp_err"; then |
---|
| 7778 | ac_header_preproc=yes |
---|
| 7779 | else |
---|
| 7780 | echo "$as_me: failed program was:" >&5 |
---|
| 7781 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7782 | |
---|
| 7783 | ac_header_preproc=no |
---|
| 7784 | fi |
---|
| 7785 | rm -f conftest.err conftest.$ac_ext |
---|
| 7786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7787 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7788 | |
---|
| 7789 | # So? What about this header? |
---|
| 7790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7791 | yes:no: ) |
---|
| 7792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7795 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7796 | ac_header_preproc=yes |
---|
| 7797 | ;; |
---|
| 7798 | no:yes:* ) |
---|
| 7799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7810 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7811 | ( |
---|
| 7812 | cat <<\_ASBOX |
---|
| 7813 | ## ---------------------------------------------- ## |
---|
| 7814 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7815 | ## ---------------------------------------------- ## |
---|
| 7816 | _ASBOX |
---|
| 7817 | ) | |
---|
| 7818 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7819 | ;; |
---|
| 7820 | esac |
---|
| 7821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7825 | else |
---|
| 7826 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7827 | fi |
---|
| 7828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7830 | |
---|
| 7831 | fi |
---|
| 7832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7833 | cat >>confdefs.h <<_ACEOF |
---|
| 7834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7835 | _ACEOF |
---|
| 7836 | |
---|
| 7837 | else |
---|
| 7838 | { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 |
---|
| 7839 | echo "$as_me: error: cannot find glew headers" >&2;} |
---|
| 7840 | { (exit 1); exit 1; }; } |
---|
| 7841 | fi |
---|
| 7842 | |
---|
| 7843 | done |
---|
| 7844 | |
---|
| 7845 | # checking for GLEW-lib |
---|
| 7846 | echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 |
---|
| 7847 | echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 |
---|
| 7848 | if test "${ac_cv_lib_GLEW_main+set}" = set; then |
---|
| 7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7850 | else |
---|
| 7851 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7852 | LIBS="-lGLEW $LIBS" |
---|
| 7853 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7854 | /* confdefs.h. */ |
---|
| 7855 | _ACEOF |
---|
| 7856 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7857 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7858 | /* end confdefs.h. */ |
---|
| 7859 | |
---|
| 7860 | |
---|
| 7861 | int |
---|
| 7862 | main () |
---|
| 7863 | { |
---|
| 7864 | main (); |
---|
| 7865 | ; |
---|
| 7866 | return 0; |
---|
| 7867 | } |
---|
| 7868 | _ACEOF |
---|
| 7869 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7871 | (eval $ac_link) 2>conftest.er1 |
---|
| 7872 | ac_status=$? |
---|
| 7873 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7874 | rm -f conftest.er1 |
---|
| 7875 | cat conftest.err >&5 |
---|
| 7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7877 | (exit $ac_status); } && |
---|
[5588] | 7878 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7879 | || test ! -s conftest.err' |
---|
[5280] | 7880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7881 | (eval $ac_try) 2>&5 |
---|
| 7882 | ac_status=$? |
---|
| 7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7884 | (exit $ac_status); }; } && |
---|
| 7885 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7887 | (eval $ac_try) 2>&5 |
---|
| 7888 | ac_status=$? |
---|
| 7889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7890 | (exit $ac_status); }; }; then |
---|
| 7891 | ac_cv_lib_GLEW_main=yes |
---|
| 7892 | else |
---|
| 7893 | echo "$as_me: failed program was:" >&5 |
---|
| 7894 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7895 | |
---|
| 7896 | ac_cv_lib_GLEW_main=no |
---|
| 7897 | fi |
---|
| 7898 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7899 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7900 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7901 | fi |
---|
| 7902 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 |
---|
| 7903 | echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 |
---|
| 7904 | if test $ac_cv_lib_GLEW_main = yes; then |
---|
| 7905 | FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" |
---|
| 7906 | fi |
---|
| 7907 | |
---|
| 7908 | if test x$FOUND_GLEW != xyes ; then |
---|
| 7909 | echo "------------------" |
---|
| 7910 | echo "glew not found." |
---|
| 7911 | echo "please install the glew package which can be found at http://glew.sourceforge.net" |
---|
| 7912 | echo "------------------" |
---|
| 7913 | exit -1 |
---|
| 7914 | fi |
---|
| 7915 | |
---|
| 7916 | |
---|
| 7917 | |
---|
| 7918 | for ac_header in OpenAL/al.h |
---|
| 7919 | do |
---|
| 7920 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7926 | fi |
---|
| 7927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7929 | else |
---|
| 7930 | # Is the header compilable? |
---|
| 7931 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7932 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7933 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7934 | /* confdefs.h. */ |
---|
| 7935 | _ACEOF |
---|
| 7936 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7937 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7938 | /* end confdefs.h. */ |
---|
| 7939 | $ac_includes_default |
---|
| 7940 | #include <$ac_header> |
---|
| 7941 | _ACEOF |
---|
| 7942 | rm -f conftest.$ac_objext |
---|
| 7943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7944 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7945 | ac_status=$? |
---|
| 7946 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7947 | rm -f conftest.er1 |
---|
| 7948 | cat conftest.err >&5 |
---|
| 7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7950 | (exit $ac_status); } && |
---|
[5588] | 7951 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7952 | || test ! -s conftest.err' |
---|
[5280] | 7953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7954 | (eval $ac_try) 2>&5 |
---|
| 7955 | ac_status=$? |
---|
| 7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7957 | (exit $ac_status); }; } && |
---|
| 7958 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7960 | (eval $ac_try) 2>&5 |
---|
| 7961 | ac_status=$? |
---|
| 7962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7963 | (exit $ac_status); }; }; then |
---|
| 7964 | ac_header_compiler=yes |
---|
| 7965 | else |
---|
| 7966 | echo "$as_me: failed program was:" >&5 |
---|
| 7967 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7968 | |
---|
| 7969 | ac_header_compiler=no |
---|
| 7970 | fi |
---|
| 7971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7972 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7973 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7974 | |
---|
| 7975 | # Is the header present? |
---|
| 7976 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7977 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7978 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7979 | /* confdefs.h. */ |
---|
| 7980 | _ACEOF |
---|
| 7981 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7982 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7983 | /* end confdefs.h. */ |
---|
| 7984 | #include <$ac_header> |
---|
| 7985 | _ACEOF |
---|
| 7986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7988 | ac_status=$? |
---|
| 7989 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7990 | rm -f conftest.er1 |
---|
| 7991 | cat conftest.err >&5 |
---|
| 7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7993 | (exit $ac_status); } >/dev/null; then |
---|
| 7994 | if test -s conftest.err; then |
---|
| 7995 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7997 | else |
---|
| 7998 | ac_cpp_err= |
---|
| 7999 | fi |
---|
| 8000 | else |
---|
| 8001 | ac_cpp_err=yes |
---|
| 8002 | fi |
---|
| 8003 | if test -z "$ac_cpp_err"; then |
---|
| 8004 | ac_header_preproc=yes |
---|
| 8005 | else |
---|
| 8006 | echo "$as_me: failed program was:" >&5 |
---|
| 8007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8008 | |
---|
| 8009 | ac_header_preproc=no |
---|
| 8010 | fi |
---|
| 8011 | rm -f conftest.err conftest.$ac_ext |
---|
| 8012 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8013 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8014 | |
---|
| 8015 | # So? What about this header? |
---|
| 8016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8017 | yes:no: ) |
---|
| 8018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8022 | ac_header_preproc=yes |
---|
| 8023 | ;; |
---|
| 8024 | no:yes:* ) |
---|
| 8025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8036 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8037 | ( |
---|
| 8038 | cat <<\_ASBOX |
---|
| 8039 | ## ---------------------------------------------- ## |
---|
| 8040 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8041 | ## ---------------------------------------------- ## |
---|
| 8042 | _ASBOX |
---|
| 8043 | ) | |
---|
| 8044 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8045 | ;; |
---|
| 8046 | esac |
---|
| 8047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8051 | else |
---|
| 8052 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8053 | fi |
---|
| 8054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8056 | |
---|
| 8057 | fi |
---|
| 8058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8059 | cat >>confdefs.h <<_ACEOF |
---|
| 8060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8061 | _ACEOF |
---|
| 8062 | |
---|
| 8063 | else |
---|
| 8064 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 8065 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 8066 | { (exit 1); exit 1; }; } |
---|
| 8067 | fi |
---|
| 8068 | |
---|
| 8069 | done |
---|
| 8070 | |
---|
| 8071 | HAVE_OPENAL=yes |
---|
| 8072 | LIBS="$LIBS -framework OpenAL" |
---|
| 8073 | |
---|
| 8074 | |
---|
[4697] | 8075 | ## SDL-check |
---|
[5296] | 8076 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 8077 | SDL_LIBS=`sdl-config --libs` |
---|
| 8078 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 8079 | LIBS="$LIBS $SDL_LIBS" |
---|
[4504] | 8080 | |
---|
[5280] | 8081 | for ac_header in SDL/SDL.h |
---|
| 8082 | do |
---|
| 8083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8089 | fi |
---|
| 8090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8092 | else |
---|
| 8093 | # Is the header compilable? |
---|
| 8094 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8095 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8096 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8097 | /* confdefs.h. */ |
---|
| 8098 | _ACEOF |
---|
| 8099 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8100 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8101 | /* end confdefs.h. */ |
---|
| 8102 | $ac_includes_default |
---|
| 8103 | #include <$ac_header> |
---|
| 8104 | _ACEOF |
---|
| 8105 | rm -f conftest.$ac_objext |
---|
| 8106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8107 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8108 | ac_status=$? |
---|
| 8109 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8110 | rm -f conftest.er1 |
---|
| 8111 | cat conftest.err >&5 |
---|
| 8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8113 | (exit $ac_status); } && |
---|
[5588] | 8114 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8115 | || test ! -s conftest.err' |
---|
[5280] | 8116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8117 | (eval $ac_try) 2>&5 |
---|
| 8118 | ac_status=$? |
---|
| 8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8120 | (exit $ac_status); }; } && |
---|
| 8121 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8123 | (eval $ac_try) 2>&5 |
---|
| 8124 | ac_status=$? |
---|
| 8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8126 | (exit $ac_status); }; }; then |
---|
| 8127 | ac_header_compiler=yes |
---|
| 8128 | else |
---|
| 8129 | echo "$as_me: failed program was:" >&5 |
---|
| 8130 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[4504] | 8131 | |
---|
[5280] | 8132 | ac_header_compiler=no |
---|
| 8133 | fi |
---|
| 8134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8135 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8136 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8137 | |
---|
| 8138 | # Is the header present? |
---|
| 8139 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8140 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8141 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8142 | /* confdefs.h. */ |
---|
| 8143 | _ACEOF |
---|
| 8144 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8145 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8146 | /* end confdefs.h. */ |
---|
| 8147 | #include <$ac_header> |
---|
| 8148 | _ACEOF |
---|
| 8149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8151 | ac_status=$? |
---|
| 8152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8153 | rm -f conftest.er1 |
---|
| 8154 | cat conftest.err >&5 |
---|
| 8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8156 | (exit $ac_status); } >/dev/null; then |
---|
| 8157 | if test -s conftest.err; then |
---|
| 8158 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8160 | else |
---|
| 8161 | ac_cpp_err= |
---|
| 8162 | fi |
---|
| 8163 | else |
---|
| 8164 | ac_cpp_err=yes |
---|
| 8165 | fi |
---|
| 8166 | if test -z "$ac_cpp_err"; then |
---|
| 8167 | ac_header_preproc=yes |
---|
| 8168 | else |
---|
| 8169 | echo "$as_me: failed program was:" >&5 |
---|
| 8170 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8171 | |
---|
| 8172 | ac_header_preproc=no |
---|
| 8173 | fi |
---|
| 8174 | rm -f conftest.err conftest.$ac_ext |
---|
| 8175 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8176 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8177 | |
---|
| 8178 | # So? What about this header? |
---|
| 8179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8180 | yes:no: ) |
---|
| 8181 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8182 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8184 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8185 | ac_header_preproc=yes |
---|
| 8186 | ;; |
---|
| 8187 | no:yes:* ) |
---|
| 8188 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8189 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8191 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8193 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8194 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8195 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8197 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8198 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8199 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8200 | ( |
---|
| 8201 | cat <<\_ASBOX |
---|
| 8202 | ## ---------------------------------------------- ## |
---|
| 8203 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8204 | ## ---------------------------------------------- ## |
---|
| 8205 | _ASBOX |
---|
| 8206 | ) | |
---|
| 8207 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8208 | ;; |
---|
| 8209 | esac |
---|
| 8210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8214 | else |
---|
| 8215 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8216 | fi |
---|
| 8217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8219 | |
---|
| 8220 | fi |
---|
| 8221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8222 | cat >>confdefs.h <<_ACEOF |
---|
| 8223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8224 | _ACEOF |
---|
| 8225 | |
---|
| 8226 | else |
---|
| 8227 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 8228 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 8229 | { (exit 1); exit 1; }; } |
---|
| 8230 | fi |
---|
| 8231 | |
---|
| 8232 | done |
---|
| 8233 | |
---|
| 8234 | HAVE_SDL=yes |
---|
[5296] | 8235 | # LIBS="$LIBS -framework SDL" |
---|
[5280] | 8236 | |
---|
[4697] | 8237 | # checking for SDL-headers |
---|
| 8238 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 8239 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[4504] | 8240 | |
---|
[4697] | 8241 | ## checking for SDL |
---|
| 8242 | # SDL_VERSION=1.2.7 |
---|
| 8243 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 8244 | # :, |
---|
| 8245 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 8246 | # ) |
---|
[4504] | 8247 | |
---|
| 8248 | |
---|
[4697] | 8249 | ;; |
---|
[4665] | 8250 | |
---|
[4697] | 8251 | *) |
---|
| 8252 | ;; |
---|
| 8253 | esac |
---|
| 8254 | |
---|
| 8255 | |
---|
| 8256 | |
---|
| 8257 | ################################### |
---|
| 8258 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 8259 | ################################### |
---|
| 8260 | |
---|
| 8261 | #---------# |
---|
| 8262 | # SDL_ttf # |
---|
| 8263 | #---------# |
---|
| 8264 | # checking for SDL_ttf-headers |
---|
| 8265 | |
---|
| 8266 | for ac_header in SDL_ttf.h |
---|
[4504] | 8267 | do |
---|
| 8268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8269 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8274 | fi |
---|
| 8275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8276 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8277 | else |
---|
| 8278 | # Is the header compilable? |
---|
| 8279 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8280 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8281 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8282 | /* confdefs.h. */ |
---|
| 8283 | _ACEOF |
---|
| 8284 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8285 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8286 | /* end confdefs.h. */ |
---|
| 8287 | $ac_includes_default |
---|
| 8288 | #include <$ac_header> |
---|
| 8289 | _ACEOF |
---|
| 8290 | rm -f conftest.$ac_objext |
---|
| 8291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8292 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8293 | ac_status=$? |
---|
| 8294 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8295 | rm -f conftest.er1 |
---|
| 8296 | cat conftest.err >&5 |
---|
| 8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8298 | (exit $ac_status); } && |
---|
[5588] | 8299 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8300 | || test ! -s conftest.err' |
---|
[4504] | 8301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8302 | (eval $ac_try) 2>&5 |
---|
| 8303 | ac_status=$? |
---|
| 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8305 | (exit $ac_status); }; } && |
---|
| 8306 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8308 | (eval $ac_try) 2>&5 |
---|
| 8309 | ac_status=$? |
---|
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8311 | (exit $ac_status); }; }; then |
---|
| 8312 | ac_header_compiler=yes |
---|
| 8313 | else |
---|
| 8314 | echo "$as_me: failed program was:" >&5 |
---|
| 8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8316 | |
---|
| 8317 | ac_header_compiler=no |
---|
| 8318 | fi |
---|
| 8319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8320 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8321 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8322 | |
---|
| 8323 | # Is the header present? |
---|
| 8324 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8325 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8326 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8327 | /* confdefs.h. */ |
---|
| 8328 | _ACEOF |
---|
| 8329 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8331 | /* end confdefs.h. */ |
---|
| 8332 | #include <$ac_header> |
---|
| 8333 | _ACEOF |
---|
| 8334 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8336 | ac_status=$? |
---|
| 8337 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8338 | rm -f conftest.er1 |
---|
| 8339 | cat conftest.err >&5 |
---|
| 8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8341 | (exit $ac_status); } >/dev/null; then |
---|
| 8342 | if test -s conftest.err; then |
---|
| 8343 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8344 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8345 | else |
---|
| 8346 | ac_cpp_err= |
---|
| 8347 | fi |
---|
| 8348 | else |
---|
| 8349 | ac_cpp_err=yes |
---|
| 8350 | fi |
---|
| 8351 | if test -z "$ac_cpp_err"; then |
---|
| 8352 | ac_header_preproc=yes |
---|
| 8353 | else |
---|
| 8354 | echo "$as_me: failed program was:" >&5 |
---|
| 8355 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8356 | |
---|
| 8357 | ac_header_preproc=no |
---|
| 8358 | fi |
---|
| 8359 | rm -f conftest.err conftest.$ac_ext |
---|
| 8360 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8361 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8362 | |
---|
| 8363 | # So? What about this header? |
---|
| 8364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8365 | yes:no: ) |
---|
| 8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8367 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8369 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8370 | ac_header_preproc=yes |
---|
| 8371 | ;; |
---|
| 8372 | no:yes:* ) |
---|
| 8373 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8374 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8375 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8376 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8377 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8378 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8379 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8380 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8382 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8383 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8384 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8385 | ( |
---|
| 8386 | cat <<\_ASBOX |
---|
| 8387 | ## ---------------------------------------------- ## |
---|
| 8388 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8389 | ## ---------------------------------------------- ## |
---|
| 8390 | _ASBOX |
---|
| 8391 | ) | |
---|
| 8392 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8393 | ;; |
---|
| 8394 | esac |
---|
| 8395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8399 | else |
---|
| 8400 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8401 | fi |
---|
| 8402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8403 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8404 | |
---|
| 8405 | fi |
---|
| 8406 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8407 | cat >>confdefs.h <<_ACEOF |
---|
| 8408 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8409 | _ACEOF |
---|
| 8410 | |
---|
| 8411 | else |
---|
| 8412 | |
---|
[4697] | 8413 | for ac_header in SDL/SDL_ttf.h |
---|
[4662] | 8414 | do |
---|
| 8415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8421 | fi |
---|
| 8422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8424 | else |
---|
| 8425 | # Is the header compilable? |
---|
| 8426 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8427 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8428 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8429 | /* confdefs.h. */ |
---|
| 8430 | _ACEOF |
---|
| 8431 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8433 | /* end confdefs.h. */ |
---|
| 8434 | $ac_includes_default |
---|
| 8435 | #include <$ac_header> |
---|
| 8436 | _ACEOF |
---|
| 8437 | rm -f conftest.$ac_objext |
---|
| 8438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8439 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8440 | ac_status=$? |
---|
| 8441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8442 | rm -f conftest.er1 |
---|
| 8443 | cat conftest.err >&5 |
---|
| 8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8445 | (exit $ac_status); } && |
---|
[5588] | 8446 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8447 | || test ! -s conftest.err' |
---|
[4662] | 8448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8449 | (eval $ac_try) 2>&5 |
---|
| 8450 | ac_status=$? |
---|
| 8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8452 | (exit $ac_status); }; } && |
---|
| 8453 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8455 | (eval $ac_try) 2>&5 |
---|
| 8456 | ac_status=$? |
---|
| 8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8458 | (exit $ac_status); }; }; then |
---|
| 8459 | ac_header_compiler=yes |
---|
| 8460 | else |
---|
| 8461 | echo "$as_me: failed program was:" >&5 |
---|
| 8462 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8463 | |
---|
| 8464 | ac_header_compiler=no |
---|
| 8465 | fi |
---|
| 8466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8468 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8469 | |
---|
| 8470 | # Is the header present? |
---|
| 8471 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8473 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8474 | /* confdefs.h. */ |
---|
| 8475 | _ACEOF |
---|
| 8476 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8477 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8478 | /* end confdefs.h. */ |
---|
| 8479 | #include <$ac_header> |
---|
| 8480 | _ACEOF |
---|
| 8481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8483 | ac_status=$? |
---|
| 8484 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8485 | rm -f conftest.er1 |
---|
| 8486 | cat conftest.err >&5 |
---|
| 8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8488 | (exit $ac_status); } >/dev/null; then |
---|
| 8489 | if test -s conftest.err; then |
---|
| 8490 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8492 | else |
---|
| 8493 | ac_cpp_err= |
---|
| 8494 | fi |
---|
| 8495 | else |
---|
| 8496 | ac_cpp_err=yes |
---|
| 8497 | fi |
---|
| 8498 | if test -z "$ac_cpp_err"; then |
---|
| 8499 | ac_header_preproc=yes |
---|
| 8500 | else |
---|
| 8501 | echo "$as_me: failed program was:" >&5 |
---|
| 8502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8503 | |
---|
| 8504 | ac_header_preproc=no |
---|
| 8505 | fi |
---|
| 8506 | rm -f conftest.err conftest.$ac_ext |
---|
| 8507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8508 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8509 | |
---|
| 8510 | # So? What about this header? |
---|
| 8511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8512 | yes:no: ) |
---|
| 8513 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8514 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8516 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8517 | ac_header_preproc=yes |
---|
| 8518 | ;; |
---|
| 8519 | no:yes:* ) |
---|
| 8520 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8521 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8522 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8523 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8525 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8527 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8530 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8531 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8532 | ( |
---|
| 8533 | cat <<\_ASBOX |
---|
| 8534 | ## ---------------------------------------------- ## |
---|
| 8535 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8536 | ## ---------------------------------------------- ## |
---|
| 8537 | _ASBOX |
---|
| 8538 | ) | |
---|
| 8539 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8540 | ;; |
---|
| 8541 | esac |
---|
| 8542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8546 | else |
---|
| 8547 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8548 | fi |
---|
| 8549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8551 | |
---|
| 8552 | fi |
---|
| 8553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8554 | cat >>confdefs.h <<_ACEOF |
---|
| 8555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8556 | _ACEOF |
---|
| 8557 | |
---|
| 8558 | else |
---|
[4697] | 8559 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
| 8560 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
[4665] | 8561 | { (exit 1); exit 1; }; } |
---|
| 8562 | fi |
---|
[4662] | 8563 | |
---|
[4665] | 8564 | done |
---|
| 8565 | |
---|
| 8566 | fi |
---|
| 8567 | |
---|
| 8568 | done |
---|
| 8569 | |
---|
[4697] | 8570 | # checking for SDL_ttf-lib |
---|
| 8571 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
| 8572 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
| 8573 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
[4665] | 8574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8575 | else |
---|
| 8576 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 8577 | LIBS="-lSDL_ttf $LIBS" |
---|
[4665] | 8578 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8579 | /* confdefs.h. */ |
---|
| 8580 | _ACEOF |
---|
| 8581 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8582 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8583 | /* end confdefs.h. */ |
---|
| 8584 | |
---|
[4697] | 8585 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8586 | #ifdef __cplusplus |
---|
| 8587 | extern "C" |
---|
| 8588 | #endif |
---|
| 8589 | /* We use char because int might match the return type of a gcc2 |
---|
| 8590 | builtin and then its argument prototype would still apply. */ |
---|
| 8591 | char TTF_OpenFont (); |
---|
[4665] | 8592 | int |
---|
| 8593 | main () |
---|
| 8594 | { |
---|
[4697] | 8595 | TTF_OpenFont (); |
---|
[4665] | 8596 | ; |
---|
| 8597 | return 0; |
---|
| 8598 | } |
---|
| 8599 | _ACEOF |
---|
| 8600 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8602 | (eval $ac_link) 2>conftest.er1 |
---|
| 8603 | ac_status=$? |
---|
| 8604 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8605 | rm -f conftest.er1 |
---|
| 8606 | cat conftest.err >&5 |
---|
| 8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8608 | (exit $ac_status); } && |
---|
[5588] | 8609 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8610 | || test ! -s conftest.err' |
---|
[4665] | 8611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8612 | (eval $ac_try) 2>&5 |
---|
| 8613 | ac_status=$? |
---|
| 8614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8615 | (exit $ac_status); }; } && |
---|
| 8616 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8618 | (eval $ac_try) 2>&5 |
---|
| 8619 | ac_status=$? |
---|
| 8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8621 | (exit $ac_status); }; }; then |
---|
[4697] | 8622 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
[4665] | 8623 | else |
---|
| 8624 | echo "$as_me: failed program was:" >&5 |
---|
| 8625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8626 | |
---|
[4697] | 8627 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
[4665] | 8628 | fi |
---|
| 8629 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8630 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8631 | LIBS=$ac_check_lib_save_LIBS |
---|
| 8632 | fi |
---|
[4697] | 8633 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
| 8634 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
| 8635 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
[5276] | 8636 | FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" |
---|
[4665] | 8637 | fi |
---|
| 8638 | |
---|
[5276] | 8639 | if test x$FOUND_SDL_ttf != xyes ; then |
---|
[4697] | 8640 | echo "------------------" |
---|
| 8641 | echo "SDL_ttf library not found." |
---|
| 8642 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
| 8643 | echo "------------------" |
---|
| 8644 | exit -1 |
---|
| 8645 | fi |
---|
[4665] | 8646 | |
---|
[4697] | 8647 | #-----------# |
---|
| 8648 | # SDL_Image # |
---|
| 8649 | #-----------# |
---|
| 8650 | # checking for SDL_image-headers |
---|
| 8651 | |
---|
| 8652 | for ac_header in SDL_image.h |
---|
[3790] | 8653 | do |
---|
| 8654 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8656 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8660 | fi |
---|
| 8661 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8662 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8663 | else |
---|
| 8664 | # Is the header compilable? |
---|
| 8665 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8666 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8667 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8668 | /* confdefs.h. */ |
---|
| 8669 | _ACEOF |
---|
| 8670 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8671 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8672 | /* end confdefs.h. */ |
---|
| 8673 | $ac_includes_default |
---|
| 8674 | #include <$ac_header> |
---|
| 8675 | _ACEOF |
---|
| 8676 | rm -f conftest.$ac_objext |
---|
| 8677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8678 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8679 | ac_status=$? |
---|
| 8680 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8681 | rm -f conftest.er1 |
---|
| 8682 | cat conftest.err >&5 |
---|
| 8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8684 | (exit $ac_status); } && |
---|
[5588] | 8685 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8686 | || test ! -s conftest.err' |
---|
[3790] | 8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8688 | (eval $ac_try) 2>&5 |
---|
| 8689 | ac_status=$? |
---|
| 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8691 | (exit $ac_status); }; } && |
---|
| 8692 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8694 | (eval $ac_try) 2>&5 |
---|
| 8695 | ac_status=$? |
---|
| 8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8697 | (exit $ac_status); }; }; then |
---|
| 8698 | ac_header_compiler=yes |
---|
| 8699 | else |
---|
| 8700 | echo "$as_me: failed program was:" >&5 |
---|
| 8701 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8702 | |
---|
| 8703 | ac_header_compiler=no |
---|
| 8704 | fi |
---|
| 8705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8706 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8707 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8708 | |
---|
| 8709 | # Is the header present? |
---|
| 8710 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8712 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8713 | /* confdefs.h. */ |
---|
| 8714 | _ACEOF |
---|
| 8715 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8716 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8717 | /* end confdefs.h. */ |
---|
| 8718 | #include <$ac_header> |
---|
| 8719 | _ACEOF |
---|
| 8720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8722 | ac_status=$? |
---|
| 8723 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8724 | rm -f conftest.er1 |
---|
| 8725 | cat conftest.err >&5 |
---|
| 8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8727 | (exit $ac_status); } >/dev/null; then |
---|
| 8728 | if test -s conftest.err; then |
---|
| 8729 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8730 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8731 | else |
---|
| 8732 | ac_cpp_err= |
---|
| 8733 | fi |
---|
| 8734 | else |
---|
| 8735 | ac_cpp_err=yes |
---|
| 8736 | fi |
---|
| 8737 | if test -z "$ac_cpp_err"; then |
---|
| 8738 | ac_header_preproc=yes |
---|
| 8739 | else |
---|
| 8740 | echo "$as_me: failed program was:" >&5 |
---|
| 8741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8742 | |
---|
| 8743 | ac_header_preproc=no |
---|
| 8744 | fi |
---|
| 8745 | rm -f conftest.err conftest.$ac_ext |
---|
| 8746 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8747 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8748 | |
---|
| 8749 | # So? What about this header? |
---|
| 8750 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8751 | yes:no: ) |
---|
| 8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8753 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8755 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8756 | ac_header_preproc=yes |
---|
| 8757 | ;; |
---|
| 8758 | no:yes:* ) |
---|
| 8759 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8760 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8761 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8762 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8763 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8764 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8765 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8766 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8767 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8768 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8769 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8770 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8771 | ( |
---|
| 8772 | cat <<\_ASBOX |
---|
| 8773 | ## ---------------------------------------------- ## |
---|
| 8774 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8775 | ## ---------------------------------------------- ## |
---|
| 8776 | _ASBOX |
---|
| 8777 | ) | |
---|
| 8778 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8779 | ;; |
---|
| 8780 | esac |
---|
| 8781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8785 | else |
---|
| 8786 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8787 | fi |
---|
| 8788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8790 | |
---|
| 8791 | fi |
---|
| 8792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8793 | cat >>confdefs.h <<_ACEOF |
---|
| 8794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8795 | _ACEOF |
---|
| 8796 | |
---|
| 8797 | else |
---|
| 8798 | |
---|
[4697] | 8799 | for ac_header in SDL/SDL_image.h |
---|
[3140] | 8800 | do |
---|
| 8801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8807 | fi |
---|
| 8808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8810 | else |
---|
| 8811 | # Is the header compilable? |
---|
| 8812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8814 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8815 | /* confdefs.h. */ |
---|
| 8816 | _ACEOF |
---|
| 8817 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8819 | /* end confdefs.h. */ |
---|
| 8820 | $ac_includes_default |
---|
| 8821 | #include <$ac_header> |
---|
| 8822 | _ACEOF |
---|
| 8823 | rm -f conftest.$ac_objext |
---|
| 8824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8825 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8826 | ac_status=$? |
---|
| 8827 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8828 | rm -f conftest.er1 |
---|
| 8829 | cat conftest.err >&5 |
---|
| 8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8831 | (exit $ac_status); } && |
---|
[5588] | 8832 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8833 | || test ! -s conftest.err' |
---|
[3140] | 8834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8835 | (eval $ac_try) 2>&5 |
---|
| 8836 | ac_status=$? |
---|
| 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8838 | (exit $ac_status); }; } && |
---|
| 8839 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8841 | (eval $ac_try) 2>&5 |
---|
| 8842 | ac_status=$? |
---|
| 8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8844 | (exit $ac_status); }; }; then |
---|
| 8845 | ac_header_compiler=yes |
---|
| 8846 | else |
---|
| 8847 | echo "$as_me: failed program was:" >&5 |
---|
| 8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 8849 | |
---|
[3140] | 8850 | ac_header_compiler=no |
---|
| 8851 | fi |
---|
| 8852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8854 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 8855 | |
---|
[3140] | 8856 | # Is the header present? |
---|
| 8857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8859 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8860 | /* confdefs.h. */ |
---|
| 8861 | _ACEOF |
---|
| 8862 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8863 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8864 | /* end confdefs.h. */ |
---|
| 8865 | #include <$ac_header> |
---|
| 8866 | _ACEOF |
---|
| 8867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8869 | ac_status=$? |
---|
| 8870 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8871 | rm -f conftest.er1 |
---|
| 8872 | cat conftest.err >&5 |
---|
| 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8874 | (exit $ac_status); } >/dev/null; then |
---|
| 8875 | if test -s conftest.err; then |
---|
| 8876 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8878 | else |
---|
| 8879 | ac_cpp_err= |
---|
| 8880 | fi |
---|
| 8881 | else |
---|
| 8882 | ac_cpp_err=yes |
---|
| 8883 | fi |
---|
| 8884 | if test -z "$ac_cpp_err"; then |
---|
| 8885 | ac_header_preproc=yes |
---|
| 8886 | else |
---|
| 8887 | echo "$as_me: failed program was:" >&5 |
---|
| 8888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8889 | |
---|
| 8890 | ac_header_preproc=no |
---|
| 8891 | fi |
---|
| 8892 | rm -f conftest.err conftest.$ac_ext |
---|
| 8893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8895 | |
---|
| 8896 | # So? What about this header? |
---|
| 8897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8898 | yes:no: ) |
---|
| 8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8903 | ac_header_preproc=yes |
---|
| 8904 | ;; |
---|
| 8905 | no:yes:* ) |
---|
| 8906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8918 | ( |
---|
| 8919 | cat <<\_ASBOX |
---|
[3240] | 8920 | ## ---------------------------------------------- ## |
---|
| 8921 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8922 | ## ---------------------------------------------- ## |
---|
[3140] | 8923 | _ASBOX |
---|
| 8924 | ) | |
---|
| 8925 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8926 | ;; |
---|
| 8927 | esac |
---|
| 8928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8932 | else |
---|
| 8933 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8934 | fi |
---|
| 8935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8937 | |
---|
| 8938 | fi |
---|
| 8939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8940 | cat >>confdefs.h <<_ACEOF |
---|
| 8941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8942 | _ACEOF |
---|
| 8943 | |
---|
| 8944 | else |
---|
[4697] | 8945 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
| 8946 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
[4665] | 8947 | { (exit 1); exit 1; }; } |
---|
| 8948 | fi |
---|
[4662] | 8949 | |
---|
[4665] | 8950 | done |
---|
| 8951 | |
---|
[4697] | 8952 | fi |
---|
| 8953 | |
---|
| 8954 | done |
---|
| 8955 | |
---|
| 8956 | # checking for SDL_image-lib |
---|
| 8957 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 8958 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 8959 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
[4665] | 8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8961 | else |
---|
| 8962 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 8963 | LIBS="-lSDL_image $LIBS" |
---|
[4665] | 8964 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8965 | /* confdefs.h. */ |
---|
| 8966 | _ACEOF |
---|
| 8967 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8968 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8969 | /* end confdefs.h. */ |
---|
| 8970 | |
---|
| 8971 | |
---|
| 8972 | int |
---|
| 8973 | main () |
---|
| 8974 | { |
---|
| 8975 | main (); |
---|
| 8976 | ; |
---|
| 8977 | return 0; |
---|
| 8978 | } |
---|
| 8979 | _ACEOF |
---|
| 8980 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8982 | (eval $ac_link) 2>conftest.er1 |
---|
| 8983 | ac_status=$? |
---|
| 8984 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8985 | rm -f conftest.er1 |
---|
| 8986 | cat conftest.err >&5 |
---|
| 8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8988 | (exit $ac_status); } && |
---|
[5588] | 8989 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8990 | || test ! -s conftest.err' |
---|
[4665] | 8991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8992 | (eval $ac_try) 2>&5 |
---|
| 8993 | ac_status=$? |
---|
| 8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8995 | (exit $ac_status); }; } && |
---|
| 8996 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8998 | (eval $ac_try) 2>&5 |
---|
| 8999 | ac_status=$? |
---|
| 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9001 | (exit $ac_status); }; }; then |
---|
[4697] | 9002 | ac_cv_lib_SDL_image_main=yes |
---|
[4665] | 9003 | else |
---|
| 9004 | echo "$as_me: failed program was:" >&5 |
---|
| 9005 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9006 | |
---|
[4697] | 9007 | ac_cv_lib_SDL_image_main=no |
---|
[4665] | 9008 | fi |
---|
| 9009 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 9010 | conftest$ac_exeext conftest.$ac_ext |
---|
| 9011 | LIBS=$ac_check_lib_save_LIBS |
---|
| 9012 | fi |
---|
[4697] | 9013 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 9014 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 9015 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
[5276] | 9016 | FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image" |
---|
[4665] | 9017 | fi |
---|
| 9018 | |
---|
[5276] | 9019 | if test x$FOUND_SDL_image != xyes ; then |
---|
[4697] | 9020 | echo "------------------" |
---|
| 9021 | echo "SDL_image library not found." |
---|
[5506] | 9022 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
[4697] | 9023 | echo "------------------" |
---|
| 9024 | exit -1 |
---|
| 9025 | fi |
---|
[4665] | 9026 | |
---|
[5506] | 9027 | #---------# |
---|
| 9028 | # SDL_Net # |
---|
| 9029 | #---------# |
---|
| 9030 | # checking for SDL_net-headers |
---|
| 9031 | |
---|
| 9032 | for ac_header in SDL_net.h |
---|
| 9033 | do |
---|
| 9034 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 9035 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9040 | fi |
---|
| 9041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9042 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9043 | else |
---|
| 9044 | # Is the header compilable? |
---|
| 9045 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 9046 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 9047 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9048 | /* confdefs.h. */ |
---|
| 9049 | _ACEOF |
---|
| 9050 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9051 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9052 | /* end confdefs.h. */ |
---|
| 9053 | $ac_includes_default |
---|
| 9054 | #include <$ac_header> |
---|
| 9055 | _ACEOF |
---|
| 9056 | rm -f conftest.$ac_objext |
---|
| 9057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 9058 | (eval $ac_compile) 2>conftest.er1 |
---|
| 9059 | ac_status=$? |
---|
| 9060 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9061 | rm -f conftest.er1 |
---|
| 9062 | cat conftest.err >&5 |
---|
| 9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9064 | (exit $ac_status); } && |
---|
[5588] | 9065 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9066 | || test ! -s conftest.err' |
---|
[5506] | 9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9068 | (eval $ac_try) 2>&5 |
---|
| 9069 | ac_status=$? |
---|
| 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9071 | (exit $ac_status); }; } && |
---|
| 9072 | { ac_try='test -s conftest.$ac_objext' |
---|
| 9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9074 | (eval $ac_try) 2>&5 |
---|
| 9075 | ac_status=$? |
---|
| 9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9077 | (exit $ac_status); }; }; then |
---|
| 9078 | ac_header_compiler=yes |
---|
| 9079 | else |
---|
| 9080 | echo "$as_me: failed program was:" >&5 |
---|
| 9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9082 | |
---|
| 9083 | ac_header_compiler=no |
---|
| 9084 | fi |
---|
| 9085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 9086 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 9087 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 9088 | |
---|
| 9089 | # Is the header present? |
---|
| 9090 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 9091 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 9092 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9093 | /* confdefs.h. */ |
---|
| 9094 | _ACEOF |
---|
| 9095 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9097 | /* end confdefs.h. */ |
---|
| 9098 | #include <$ac_header> |
---|
| 9099 | _ACEOF |
---|
| 9100 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 9101 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 9102 | ac_status=$? |
---|
| 9103 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9104 | rm -f conftest.er1 |
---|
| 9105 | cat conftest.err >&5 |
---|
| 9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9107 | (exit $ac_status); } >/dev/null; then |
---|
| 9108 | if test -s conftest.err; then |
---|
| 9109 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 9110 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 9111 | else |
---|
| 9112 | ac_cpp_err= |
---|
| 9113 | fi |
---|
| 9114 | else |
---|
| 9115 | ac_cpp_err=yes |
---|
| 9116 | fi |
---|
| 9117 | if test -z "$ac_cpp_err"; then |
---|
| 9118 | ac_header_preproc=yes |
---|
| 9119 | else |
---|
| 9120 | echo "$as_me: failed program was:" >&5 |
---|
| 9121 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9122 | |
---|
| 9123 | ac_header_preproc=no |
---|
| 9124 | fi |
---|
| 9125 | rm -f conftest.err conftest.$ac_ext |
---|
| 9126 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 9127 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 9128 | |
---|
| 9129 | # So? What about this header? |
---|
| 9130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 9131 | yes:no: ) |
---|
| 9132 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 9133 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 9134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 9135 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 9136 | ac_header_preproc=yes |
---|
| 9137 | ;; |
---|
| 9138 | no:yes:* ) |
---|
| 9139 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 9140 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 9141 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 9142 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 9143 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 9144 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 9145 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 9146 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 9147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 9148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 9149 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 9150 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 9151 | ( |
---|
| 9152 | cat <<\_ASBOX |
---|
| 9153 | ## ---------------------------------------------- ## |
---|
| 9154 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 9155 | ## ---------------------------------------------- ## |
---|
| 9156 | _ASBOX |
---|
| 9157 | ) | |
---|
| 9158 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 9159 | ;; |
---|
| 9160 | esac |
---|
| 9161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9165 | else |
---|
| 9166 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 9167 | fi |
---|
| 9168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9169 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9170 | |
---|
| 9171 | fi |
---|
| 9172 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 9173 | cat >>confdefs.h <<_ACEOF |
---|
| 9174 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 9175 | _ACEOF |
---|
| 9176 | |
---|
| 9177 | else |
---|
| 9178 | |
---|
| 9179 | for ac_header in SDL/SDL_net.h |
---|
| 9180 | do |
---|
| 9181 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 9182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9183 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9187 | fi |
---|
| 9188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9190 | else |
---|
| 9191 | # Is the header compilable? |
---|
| 9192 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 9193 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 9194 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9195 | /* confdefs.h. */ |
---|
| 9196 | _ACEOF |
---|
| 9197 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9198 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9199 | /* end confdefs.h. */ |
---|
| 9200 | $ac_includes_default |
---|
| 9201 | #include <$ac_header> |
---|
| 9202 | _ACEOF |
---|
| 9203 | rm -f conftest.$ac_objext |
---|
| 9204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 9205 | (eval $ac_compile) 2>conftest.er1 |
---|
| 9206 | ac_status=$? |
---|
| 9207 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9208 | rm -f conftest.er1 |
---|
| 9209 | cat conftest.err >&5 |
---|
| 9210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9211 | (exit $ac_status); } && |
---|
[5588] | 9212 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9213 | || test ! -s conftest.err' |
---|
[5506] | 9214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9215 | (eval $ac_try) 2>&5 |
---|
| 9216 | ac_status=$? |
---|
| 9217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9218 | (exit $ac_status); }; } && |
---|
| 9219 | { ac_try='test -s conftest.$ac_objext' |
---|
| 9220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9221 | (eval $ac_try) 2>&5 |
---|
| 9222 | ac_status=$? |
---|
| 9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9224 | (exit $ac_status); }; }; then |
---|
| 9225 | ac_header_compiler=yes |
---|
| 9226 | else |
---|
| 9227 | echo "$as_me: failed program was:" >&5 |
---|
| 9228 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9229 | |
---|
| 9230 | ac_header_compiler=no |
---|
| 9231 | fi |
---|
| 9232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 9233 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 9234 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 9235 | |
---|
| 9236 | # Is the header present? |
---|
| 9237 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 9238 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 9239 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9240 | /* confdefs.h. */ |
---|
| 9241 | _ACEOF |
---|
| 9242 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9243 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9244 | /* end confdefs.h. */ |
---|
| 9245 | #include <$ac_header> |
---|
| 9246 | _ACEOF |
---|
| 9247 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 9248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 9249 | ac_status=$? |
---|
| 9250 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9251 | rm -f conftest.er1 |
---|
| 9252 | cat conftest.err >&5 |
---|
| 9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9254 | (exit $ac_status); } >/dev/null; then |
---|
| 9255 | if test -s conftest.err; then |
---|
| 9256 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 9257 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 9258 | else |
---|
| 9259 | ac_cpp_err= |
---|
| 9260 | fi |
---|
| 9261 | else |
---|
| 9262 | ac_cpp_err=yes |
---|
| 9263 | fi |
---|
| 9264 | if test -z "$ac_cpp_err"; then |
---|
| 9265 | ac_header_preproc=yes |
---|
| 9266 | else |
---|
| 9267 | echo "$as_me: failed program was:" >&5 |
---|
| 9268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9269 | |
---|
| 9270 | ac_header_preproc=no |
---|
| 9271 | fi |
---|
| 9272 | rm -f conftest.err conftest.$ac_ext |
---|
| 9273 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 9274 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 9275 | |
---|
| 9276 | # So? What about this header? |
---|
| 9277 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 9278 | yes:no: ) |
---|
| 9279 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 9280 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 9282 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 9283 | ac_header_preproc=yes |
---|
| 9284 | ;; |
---|
| 9285 | no:yes:* ) |
---|
| 9286 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 9287 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 9288 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 9289 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 9290 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 9291 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 9292 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 9293 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 9294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 9295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 9296 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 9297 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 9298 | ( |
---|
| 9299 | cat <<\_ASBOX |
---|
| 9300 | ## ---------------------------------------------- ## |
---|
| 9301 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 9302 | ## ---------------------------------------------- ## |
---|
| 9303 | _ASBOX |
---|
| 9304 | ) | |
---|
| 9305 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 9306 | ;; |
---|
| 9307 | esac |
---|
| 9308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9312 | else |
---|
| 9313 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 9314 | fi |
---|
| 9315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9317 | |
---|
| 9318 | fi |
---|
| 9319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 9320 | cat >>confdefs.h <<_ACEOF |
---|
| 9321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 9322 | _ACEOF |
---|
| 9323 | |
---|
| 9324 | else |
---|
| 9325 | { { echo "$as_me:$LINENO: error: SDL_net header not found." >&5 |
---|
| 9326 | echo "$as_me: error: SDL_net header not found." >&2;} |
---|
| 9327 | { (exit 1); exit 1; }; } |
---|
| 9328 | fi |
---|
| 9329 | |
---|
| 9330 | done |
---|
| 9331 | |
---|
| 9332 | fi |
---|
| 9333 | |
---|
| 9334 | done |
---|
| 9335 | |
---|
| 9336 | # checking for SDL_net-lib |
---|
| 9337 | echo "$as_me:$LINENO: checking for main in -lSDL_net" >&5 |
---|
| 9338 | echo $ECHO_N "checking for main in -lSDL_net... $ECHO_C" >&6 |
---|
| 9339 | if test "${ac_cv_lib_SDL_net_main+set}" = set; then |
---|
| 9340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9341 | else |
---|
| 9342 | ac_check_lib_save_LIBS=$LIBS |
---|
| 9343 | LIBS="-lSDL_net $LIBS" |
---|
| 9344 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9345 | /* confdefs.h. */ |
---|
| 9346 | _ACEOF |
---|
| 9347 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9348 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9349 | /* end confdefs.h. */ |
---|
| 9350 | |
---|
| 9351 | |
---|
| 9352 | int |
---|
| 9353 | main () |
---|
| 9354 | { |
---|
| 9355 | main (); |
---|
| 9356 | ; |
---|
| 9357 | return 0; |
---|
| 9358 | } |
---|
| 9359 | _ACEOF |
---|
| 9360 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 9361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 9362 | (eval $ac_link) 2>conftest.er1 |
---|
| 9363 | ac_status=$? |
---|
| 9364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9365 | rm -f conftest.er1 |
---|
| 9366 | cat conftest.err >&5 |
---|
| 9367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9368 | (exit $ac_status); } && |
---|
[5588] | 9369 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9370 | || test ! -s conftest.err' |
---|
[5506] | 9371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9372 | (eval $ac_try) 2>&5 |
---|
| 9373 | ac_status=$? |
---|
| 9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9375 | (exit $ac_status); }; } && |
---|
| 9376 | { ac_try='test -s conftest$ac_exeext' |
---|
| 9377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9378 | (eval $ac_try) 2>&5 |
---|
| 9379 | ac_status=$? |
---|
| 9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9381 | (exit $ac_status); }; }; then |
---|
| 9382 | ac_cv_lib_SDL_net_main=yes |
---|
| 9383 | else |
---|
| 9384 | echo "$as_me: failed program was:" >&5 |
---|
| 9385 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9386 | |
---|
| 9387 | ac_cv_lib_SDL_net_main=no |
---|
| 9388 | fi |
---|
| 9389 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 9390 | conftest$ac_exeext conftest.$ac_ext |
---|
| 9391 | LIBS=$ac_check_lib_save_LIBS |
---|
| 9392 | fi |
---|
| 9393 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_main" >&5 |
---|
| 9394 | echo "${ECHO_T}$ac_cv_lib_SDL_net_main" >&6 |
---|
| 9395 | if test $ac_cv_lib_SDL_net_main = yes; then |
---|
| 9396 | FOUND_SDL_net=yes; LIBS="$LIBS -lSDL_net" |
---|
| 9397 | fi |
---|
| 9398 | |
---|
| 9399 | if test x$FOUND_SDL_net != xyes ; then |
---|
| 9400 | echo "------------------" |
---|
| 9401 | echo "SDL_net library not found." |
---|
| 9402 | echo "please install the SDL_net library, which can be found at http://www.libsdl.org/projects/SDL_net/" |
---|
| 9403 | echo "------------------" |
---|
| 9404 | exit -1 |
---|
| 9405 | fi |
---|
| 9406 | |
---|
| 9407 | |
---|
[4697] | 9408 | #-----# |
---|
| 9409 | # ogg # |
---|
| 9410 | #-----# |
---|
[4825] | 9411 | # checking for ogg-headers |
---|
[4697] | 9412 | |
---|
[4825] | 9413 | for ac_header in ogg/ogg.h |
---|
| 9414 | do |
---|
| 9415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 9416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9421 | fi |
---|
| 9422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9424 | else |
---|
| 9425 | # Is the header compilable? |
---|
| 9426 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 9427 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 9428 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9429 | /* confdefs.h. */ |
---|
| 9430 | _ACEOF |
---|
| 9431 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9433 | /* end confdefs.h. */ |
---|
| 9434 | $ac_includes_default |
---|
| 9435 | #include <$ac_header> |
---|
| 9436 | _ACEOF |
---|
| 9437 | rm -f conftest.$ac_objext |
---|
| 9438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 9439 | (eval $ac_compile) 2>conftest.er1 |
---|
| 9440 | ac_status=$? |
---|
| 9441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9442 | rm -f conftest.er1 |
---|
| 9443 | cat conftest.err >&5 |
---|
| 9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9445 | (exit $ac_status); } && |
---|
[5588] | 9446 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9447 | || test ! -s conftest.err' |
---|
[4825] | 9448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9449 | (eval $ac_try) 2>&5 |
---|
| 9450 | ac_status=$? |
---|
| 9451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9452 | (exit $ac_status); }; } && |
---|
| 9453 | { ac_try='test -s conftest.$ac_objext' |
---|
| 9454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9455 | (eval $ac_try) 2>&5 |
---|
| 9456 | ac_status=$? |
---|
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9458 | (exit $ac_status); }; }; then |
---|
| 9459 | ac_header_compiler=yes |
---|
| 9460 | else |
---|
| 9461 | echo "$as_me: failed program was:" >&5 |
---|
| 9462 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9463 | |
---|
| 9464 | ac_header_compiler=no |
---|
| 9465 | fi |
---|
| 9466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 9467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 9468 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 9469 | |
---|
| 9470 | # Is the header present? |
---|
| 9471 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 9472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 9473 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9474 | /* confdefs.h. */ |
---|
| 9475 | _ACEOF |
---|
| 9476 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9477 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9478 | /* end confdefs.h. */ |
---|
| 9479 | #include <$ac_header> |
---|
| 9480 | _ACEOF |
---|
| 9481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 9482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 9483 | ac_status=$? |
---|
| 9484 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9485 | rm -f conftest.er1 |
---|
| 9486 | cat conftest.err >&5 |
---|
| 9487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9488 | (exit $ac_status); } >/dev/null; then |
---|
| 9489 | if test -s conftest.err; then |
---|
| 9490 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 9491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 9492 | else |
---|
| 9493 | ac_cpp_err= |
---|
| 9494 | fi |
---|
| 9495 | else |
---|
| 9496 | ac_cpp_err=yes |
---|
| 9497 | fi |
---|
| 9498 | if test -z "$ac_cpp_err"; then |
---|
| 9499 | ac_header_preproc=yes |
---|
| 9500 | else |
---|
| 9501 | echo "$as_me: failed program was:" >&5 |
---|
| 9502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9503 | |
---|
| 9504 | ac_header_preproc=no |
---|
| 9505 | fi |
---|
| 9506 | rm -f conftest.err conftest.$ac_ext |
---|
| 9507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 9508 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 9509 | |
---|
| 9510 | # So? What about this header? |
---|
| 9511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 9512 | yes:no: ) |
---|
| 9513 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 9514 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 9515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 9516 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 9517 | ac_header_preproc=yes |
---|
| 9518 | ;; |
---|
| 9519 | no:yes:* ) |
---|
| 9520 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 9521 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 9522 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 9523 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 9524 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 9525 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 9526 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 9527 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 9528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 9529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 9530 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 9531 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 9532 | ( |
---|
| 9533 | cat <<\_ASBOX |
---|
| 9534 | ## ---------------------------------------------- ## |
---|
| 9535 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 9536 | ## ---------------------------------------------- ## |
---|
| 9537 | _ASBOX |
---|
| 9538 | ) | |
---|
| 9539 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 9540 | ;; |
---|
| 9541 | esac |
---|
| 9542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9546 | else |
---|
| 9547 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 9548 | fi |
---|
| 9549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9551 | |
---|
| 9552 | fi |
---|
| 9553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 9554 | cat >>confdefs.h <<_ACEOF |
---|
| 9555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 9556 | _ACEOF |
---|
| 9557 | |
---|
| 9558 | else |
---|
| 9559 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
| 9560 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
| 9561 | { (exit 1); exit 1; }; } |
---|
| 9562 | fi |
---|
| 9563 | |
---|
| 9564 | done |
---|
| 9565 | |
---|
| 9566 | # checking for ogg-lib |
---|
| 9567 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
| 9568 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
| 9569 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
| 9570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9571 | else |
---|
| 9572 | ac_check_lib_save_LIBS=$LIBS |
---|
| 9573 | LIBS="-logg $LIBS" |
---|
| 9574 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9575 | /* confdefs.h. */ |
---|
| 9576 | _ACEOF |
---|
| 9577 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9578 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9579 | /* end confdefs.h. */ |
---|
| 9580 | |
---|
| 9581 | |
---|
| 9582 | int |
---|
| 9583 | main () |
---|
| 9584 | { |
---|
| 9585 | main (); |
---|
| 9586 | ; |
---|
| 9587 | return 0; |
---|
| 9588 | } |
---|
| 9589 | _ACEOF |
---|
| 9590 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 9591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 9592 | (eval $ac_link) 2>conftest.er1 |
---|
| 9593 | ac_status=$? |
---|
| 9594 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9595 | rm -f conftest.er1 |
---|
| 9596 | cat conftest.err >&5 |
---|
| 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9598 | (exit $ac_status); } && |
---|
[5588] | 9599 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9600 | || test ! -s conftest.err' |
---|
[4825] | 9601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9602 | (eval $ac_try) 2>&5 |
---|
| 9603 | ac_status=$? |
---|
| 9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9605 | (exit $ac_status); }; } && |
---|
| 9606 | { ac_try='test -s conftest$ac_exeext' |
---|
| 9607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9608 | (eval $ac_try) 2>&5 |
---|
| 9609 | ac_status=$? |
---|
| 9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9611 | (exit $ac_status); }; }; then |
---|
| 9612 | ac_cv_lib_ogg_main=yes |
---|
| 9613 | else |
---|
| 9614 | echo "$as_me: failed program was:" >&5 |
---|
| 9615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9616 | |
---|
| 9617 | ac_cv_lib_ogg_main=no |
---|
| 9618 | fi |
---|
| 9619 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 9620 | conftest$ac_exeext conftest.$ac_ext |
---|
| 9621 | LIBS=$ac_check_lib_save_LIBS |
---|
| 9622 | fi |
---|
| 9623 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
| 9624 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
| 9625 | if test $ac_cv_lib_ogg_main = yes; then |
---|
[5276] | 9626 | FOUND_ogg=yes; LIBS="$LIBS -logg" |
---|
[4825] | 9627 | fi |
---|
| 9628 | |
---|
[5276] | 9629 | if test x$FOUND_ogg != xyes ; then |
---|
[4825] | 9630 | echo "------------------" |
---|
| 9631 | echo "ogg library not found." |
---|
| 9632 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 9633 | echo "------------------" |
---|
| 9634 | exit -1 |
---|
| 9635 | fi |
---|
| 9636 | |
---|
[4665] | 9637 | #--------# |
---|
| 9638 | # vorbis # |
---|
| 9639 | #--------# |
---|
[4825] | 9640 | # checking for vorbis-lib |
---|
| 9641 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
| 9642 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
| 9643 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
| 9644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9645 | else |
---|
| 9646 | ac_check_lib_save_LIBS=$LIBS |
---|
| 9647 | LIBS="-lvorbis $LIBS" |
---|
| 9648 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9649 | /* confdefs.h. */ |
---|
| 9650 | _ACEOF |
---|
| 9651 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9652 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9653 | /* end confdefs.h. */ |
---|
[4665] | 9654 | |
---|
[4825] | 9655 | |
---|
| 9656 | int |
---|
| 9657 | main () |
---|
| 9658 | { |
---|
| 9659 | main (); |
---|
| 9660 | ; |
---|
| 9661 | return 0; |
---|
| 9662 | } |
---|
| 9663 | _ACEOF |
---|
| 9664 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 9665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 9666 | (eval $ac_link) 2>conftest.er1 |
---|
| 9667 | ac_status=$? |
---|
| 9668 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9669 | rm -f conftest.er1 |
---|
| 9670 | cat conftest.err >&5 |
---|
| 9671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9672 | (exit $ac_status); } && |
---|
[5588] | 9673 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9674 | || test ! -s conftest.err' |
---|
[4825] | 9675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9676 | (eval $ac_try) 2>&5 |
---|
| 9677 | ac_status=$? |
---|
| 9678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9679 | (exit $ac_status); }; } && |
---|
| 9680 | { ac_try='test -s conftest$ac_exeext' |
---|
| 9681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9682 | (eval $ac_try) 2>&5 |
---|
| 9683 | ac_status=$? |
---|
| 9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9685 | (exit $ac_status); }; }; then |
---|
| 9686 | ac_cv_lib_vorbis_main=yes |
---|
| 9687 | else |
---|
| 9688 | echo "$as_me: failed program was:" >&5 |
---|
| 9689 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9690 | |
---|
| 9691 | ac_cv_lib_vorbis_main=no |
---|
| 9692 | fi |
---|
| 9693 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 9694 | conftest$ac_exeext conftest.$ac_ext |
---|
| 9695 | LIBS=$ac_check_lib_save_LIBS |
---|
| 9696 | fi |
---|
| 9697 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
| 9698 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
| 9699 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
[5276] | 9700 | FOUND_vorbis=yes; LIBS="$LIBS -lvorbis" |
---|
[4825] | 9701 | fi |
---|
| 9702 | |
---|
[5276] | 9703 | if test x$FOUND_vorbis != xyes ; then |
---|
[4825] | 9704 | echo "------------------" |
---|
| 9705 | echo "vorbis library not found." |
---|
| 9706 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 9707 | echo "------------------" |
---|
| 9708 | exit -1 |
---|
| 9709 | fi |
---|
| 9710 | |
---|
[4665] | 9711 | #------------# |
---|
| 9712 | # vorbisfile # |
---|
| 9713 | #------------# |
---|
[4825] | 9714 | # checking for vorbis-headers |
---|
[4665] | 9715 | |
---|
[4825] | 9716 | for ac_header in vorbis/vorbisfile.h |
---|
| 9717 | do |
---|
| 9718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 9719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9724 | fi |
---|
| 9725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9727 | else |
---|
| 9728 | # Is the header compilable? |
---|
| 9729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 9730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 9731 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9732 | /* confdefs.h. */ |
---|
| 9733 | _ACEOF |
---|
| 9734 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9736 | /* end confdefs.h. */ |
---|
| 9737 | $ac_includes_default |
---|
| 9738 | #include <$ac_header> |
---|
| 9739 | _ACEOF |
---|
| 9740 | rm -f conftest.$ac_objext |
---|
| 9741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 9742 | (eval $ac_compile) 2>conftest.er1 |
---|
| 9743 | ac_status=$? |
---|
| 9744 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9745 | rm -f conftest.er1 |
---|
| 9746 | cat conftest.err >&5 |
---|
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9748 | (exit $ac_status); } && |
---|
[5588] | 9749 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9750 | || test ! -s conftest.err' |
---|
[4825] | 9751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9752 | (eval $ac_try) 2>&5 |
---|
| 9753 | ac_status=$? |
---|
| 9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9755 | (exit $ac_status); }; } && |
---|
| 9756 | { ac_try='test -s conftest.$ac_objext' |
---|
| 9757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9758 | (eval $ac_try) 2>&5 |
---|
| 9759 | ac_status=$? |
---|
| 9760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9761 | (exit $ac_status); }; }; then |
---|
| 9762 | ac_header_compiler=yes |
---|
| 9763 | else |
---|
| 9764 | echo "$as_me: failed program was:" >&5 |
---|
| 9765 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9766 | |
---|
| 9767 | ac_header_compiler=no |
---|
| 9768 | fi |
---|
| 9769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 9770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 9771 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 9772 | |
---|
| 9773 | # Is the header present? |
---|
| 9774 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 9775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 9776 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9777 | /* confdefs.h. */ |
---|
| 9778 | _ACEOF |
---|
| 9779 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9781 | /* end confdefs.h. */ |
---|
| 9782 | #include <$ac_header> |
---|
| 9783 | _ACEOF |
---|
| 9784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 9785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 9786 | ac_status=$? |
---|
| 9787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9788 | rm -f conftest.er1 |
---|
| 9789 | cat conftest.err >&5 |
---|
| 9790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9791 | (exit $ac_status); } >/dev/null; then |
---|
| 9792 | if test -s conftest.err; then |
---|
| 9793 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 9794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 9795 | else |
---|
| 9796 | ac_cpp_err= |
---|
| 9797 | fi |
---|
| 9798 | else |
---|
| 9799 | ac_cpp_err=yes |
---|
| 9800 | fi |
---|
| 9801 | if test -z "$ac_cpp_err"; then |
---|
| 9802 | ac_header_preproc=yes |
---|
| 9803 | else |
---|
| 9804 | echo "$as_me: failed program was:" >&5 |
---|
| 9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9806 | |
---|
| 9807 | ac_header_preproc=no |
---|
| 9808 | fi |
---|
| 9809 | rm -f conftest.err conftest.$ac_ext |
---|
| 9810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 9811 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 9812 | |
---|
| 9813 | # So? What about this header? |
---|
| 9814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 9815 | yes:no: ) |
---|
| 9816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 9817 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 9818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 9819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 9820 | ac_header_preproc=yes |
---|
| 9821 | ;; |
---|
| 9822 | no:yes:* ) |
---|
| 9823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 9824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 9825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 9826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 9827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 9828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 9829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 9830 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 9831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 9832 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 9833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 9834 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 9835 | ( |
---|
| 9836 | cat <<\_ASBOX |
---|
| 9837 | ## ---------------------------------------------- ## |
---|
| 9838 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 9839 | ## ---------------------------------------------- ## |
---|
| 9840 | _ASBOX |
---|
| 9841 | ) | |
---|
| 9842 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 9843 | ;; |
---|
| 9844 | esac |
---|
| 9845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9849 | else |
---|
| 9850 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 9851 | fi |
---|
| 9852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9854 | |
---|
| 9855 | fi |
---|
| 9856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 9857 | cat >>confdefs.h <<_ACEOF |
---|
| 9858 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 9859 | _ACEOF |
---|
| 9860 | |
---|
| 9861 | else |
---|
| 9862 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
| 9863 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
| 9864 | { (exit 1); exit 1; }; } |
---|
| 9865 | fi |
---|
| 9866 | |
---|
| 9867 | done |
---|
| 9868 | |
---|
| 9869 | # checking for vorbisfile-lib |
---|
| 9870 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
| 9871 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
| 9872 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
| 9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9874 | else |
---|
| 9875 | ac_check_lib_save_LIBS=$LIBS |
---|
| 9876 | LIBS="-lvorbisfile $LIBS" |
---|
| 9877 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9878 | /* confdefs.h. */ |
---|
| 9879 | _ACEOF |
---|
| 9880 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9882 | /* end confdefs.h. */ |
---|
| 9883 | |
---|
| 9884 | |
---|
| 9885 | int |
---|
| 9886 | main () |
---|
| 9887 | { |
---|
| 9888 | main (); |
---|
| 9889 | ; |
---|
| 9890 | return 0; |
---|
| 9891 | } |
---|
| 9892 | _ACEOF |
---|
| 9893 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 9894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 9895 | (eval $ac_link) 2>conftest.er1 |
---|
| 9896 | ac_status=$? |
---|
| 9897 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9898 | rm -f conftest.er1 |
---|
| 9899 | cat conftest.err >&5 |
---|
| 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9901 | (exit $ac_status); } && |
---|
[5588] | 9902 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9903 | || test ! -s conftest.err' |
---|
[4825] | 9904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9905 | (eval $ac_try) 2>&5 |
---|
| 9906 | ac_status=$? |
---|
| 9907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9908 | (exit $ac_status); }; } && |
---|
| 9909 | { ac_try='test -s conftest$ac_exeext' |
---|
| 9910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9911 | (eval $ac_try) 2>&5 |
---|
| 9912 | ac_status=$? |
---|
| 9913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9914 | (exit $ac_status); }; }; then |
---|
| 9915 | ac_cv_lib_vorbisfile_main=yes |
---|
| 9916 | else |
---|
| 9917 | echo "$as_me: failed program was:" >&5 |
---|
| 9918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9919 | |
---|
| 9920 | ac_cv_lib_vorbisfile_main=no |
---|
| 9921 | fi |
---|
| 9922 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 9923 | conftest$ac_exeext conftest.$ac_ext |
---|
| 9924 | LIBS=$ac_check_lib_save_LIBS |
---|
| 9925 | fi |
---|
| 9926 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
| 9927 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
| 9928 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
[5276] | 9929 | FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile" |
---|
[4825] | 9930 | fi |
---|
| 9931 | |
---|
[5276] | 9932 | if test x$FOUND_vorbisfile != xyes ; then |
---|
[4825] | 9933 | echo "------------------" |
---|
| 9934 | echo "vorbisfile library not found." |
---|
| 9935 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 9936 | echo "------------------" |
---|
| 9937 | exit -1 |
---|
| 9938 | fi |
---|
| 9939 | |
---|
[3101] | 9940 | |
---|
[3424] | 9941 | #---------# |
---|
| 9942 | # libcURL # |
---|
| 9943 | #---------# |
---|
| 9944 | if test x$def_curl = xyes; then |
---|
[3423] | 9945 | |
---|
| 9946 | for ac_header in curl/curl.h |
---|
| 9947 | do |
---|
| 9948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 9949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9950 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 9951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 9952 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 9953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 9954 | fi |
---|
| 9955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 9956 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 9957 | else |
---|
| 9958 | # Is the header compilable? |
---|
| 9959 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 9960 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 9961 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 9962 | /* confdefs.h. */ |
---|
| 9963 | _ACEOF |
---|
| 9964 | cat confdefs.h >>conftest.$ac_ext |
---|
| 9965 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 9966 | /* end confdefs.h. */ |
---|
| 9967 | $ac_includes_default |
---|
| 9968 | #include <$ac_header> |
---|
| 9969 | _ACEOF |
---|
| 9970 | rm -f conftest.$ac_objext |
---|
| 9971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 9972 | (eval $ac_compile) 2>conftest.er1 |
---|
| 9973 | ac_status=$? |
---|
| 9974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 9975 | rm -f conftest.er1 |
---|
| 9976 | cat conftest.err >&5 |
---|
| 9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9978 | (exit $ac_status); } && |
---|
[5588] | 9979 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 9980 | || test ! -s conftest.err' |
---|
[3423] | 9981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9982 | (eval $ac_try) 2>&5 |
---|
| 9983 | ac_status=$? |
---|
| 9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9985 | (exit $ac_status); }; } && |
---|
| 9986 | { ac_try='test -s conftest.$ac_objext' |
---|
| 9987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 9988 | (eval $ac_try) 2>&5 |
---|
| 9989 | ac_status=$? |
---|
| 9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 9991 | (exit $ac_status); }; }; then |
---|
| 9992 | ac_header_compiler=yes |
---|
| 9993 | else |
---|
| 9994 | echo "$as_me: failed program was:" >&5 |
---|
| 9995 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 9996 | |
---|
| 9997 | ac_header_compiler=no |
---|
| 9998 | fi |
---|
| 9999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 10000 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 10001 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 10002 | |
---|
| 10003 | # Is the header present? |
---|
| 10004 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 10005 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 10006 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10007 | /* confdefs.h. */ |
---|
| 10008 | _ACEOF |
---|
| 10009 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10010 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10011 | /* end confdefs.h. */ |
---|
| 10012 | #include <$ac_header> |
---|
| 10013 | _ACEOF |
---|
| 10014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 10015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 10016 | ac_status=$? |
---|
| 10017 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10018 | rm -f conftest.er1 |
---|
| 10019 | cat conftest.err >&5 |
---|
| 10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10021 | (exit $ac_status); } >/dev/null; then |
---|
| 10022 | if test -s conftest.err; then |
---|
| 10023 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 10024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 10025 | else |
---|
| 10026 | ac_cpp_err= |
---|
| 10027 | fi |
---|
| 10028 | else |
---|
| 10029 | ac_cpp_err=yes |
---|
| 10030 | fi |
---|
| 10031 | if test -z "$ac_cpp_err"; then |
---|
| 10032 | ac_header_preproc=yes |
---|
| 10033 | else |
---|
| 10034 | echo "$as_me: failed program was:" >&5 |
---|
| 10035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10036 | |
---|
| 10037 | ac_header_preproc=no |
---|
| 10038 | fi |
---|
| 10039 | rm -f conftest.err conftest.$ac_ext |
---|
| 10040 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 10041 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 10042 | |
---|
| 10043 | # So? What about this header? |
---|
| 10044 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 10045 | yes:no: ) |
---|
| 10046 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 10047 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 10048 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 10049 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 10050 | ac_header_preproc=yes |
---|
| 10051 | ;; |
---|
| 10052 | no:yes:* ) |
---|
| 10053 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 10054 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 10055 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 10056 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 10057 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 10058 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 10059 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 10060 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 10061 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 10062 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 10063 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 10064 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 10065 | ( |
---|
| 10066 | cat <<\_ASBOX |
---|
| 10067 | ## ---------------------------------------------- ## |
---|
| 10068 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 10069 | ## ---------------------------------------------- ## |
---|
| 10070 | _ASBOX |
---|
| 10071 | ) | |
---|
| 10072 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 10073 | ;; |
---|
| 10074 | esac |
---|
| 10075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 10076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 10077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10079 | else |
---|
| 10080 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 10081 | fi |
---|
| 10082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 10083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 10084 | |
---|
| 10085 | fi |
---|
| 10086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 10087 | cat >>confdefs.h <<_ACEOF |
---|
| 10088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 10089 | _ACEOF |
---|
[5276] | 10090 | curlHeader=yes |
---|
[3423] | 10091 | else |
---|
[5276] | 10092 | curlHeader=no |
---|
[3423] | 10093 | fi |
---|
| 10094 | |
---|
| 10095 | done |
---|
| 10096 | |
---|
| 10097 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 10098 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 10099 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10101 | else |
---|
| 10102 | ac_check_lib_save_LIBS=$LIBS |
---|
| 10103 | LIBS="-lcurl $LIBS" |
---|
| 10104 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10105 | /* confdefs.h. */ |
---|
| 10106 | _ACEOF |
---|
| 10107 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10108 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10109 | /* end confdefs.h. */ |
---|
| 10110 | |
---|
| 10111 | |
---|
| 10112 | int |
---|
| 10113 | main () |
---|
| 10114 | { |
---|
| 10115 | main (); |
---|
| 10116 | ; |
---|
| 10117 | return 0; |
---|
| 10118 | } |
---|
| 10119 | _ACEOF |
---|
| 10120 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 10121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 10122 | (eval $ac_link) 2>conftest.er1 |
---|
| 10123 | ac_status=$? |
---|
| 10124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10125 | rm -f conftest.er1 |
---|
| 10126 | cat conftest.err >&5 |
---|
| 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10128 | (exit $ac_status); } && |
---|
[5588] | 10129 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10130 | || test ! -s conftest.err' |
---|
[3423] | 10131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10132 | (eval $ac_try) 2>&5 |
---|
| 10133 | ac_status=$? |
---|
| 10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10135 | (exit $ac_status); }; } && |
---|
| 10136 | { ac_try='test -s conftest$ac_exeext' |
---|
| 10137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10138 | (eval $ac_try) 2>&5 |
---|
| 10139 | ac_status=$? |
---|
| 10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10141 | (exit $ac_status); }; }; then |
---|
| 10142 | ac_cv_lib_curl_main=yes |
---|
| 10143 | else |
---|
| 10144 | echo "$as_me: failed program was:" >&5 |
---|
| 10145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10146 | |
---|
| 10147 | ac_cv_lib_curl_main=no |
---|
| 10148 | fi |
---|
| 10149 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 10150 | conftest$ac_exeext conftest.$ac_ext |
---|
| 10151 | LIBS=$ac_check_lib_save_LIBS |
---|
| 10152 | fi |
---|
| 10153 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 10154 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 10155 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 10156 | FOUND_curl=yes |
---|
| 10157 | fi |
---|
| 10158 | |
---|
| 10159 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 10160 | have_curl=yes |
---|
| 10161 | CURL_LIBS=`curl-config --libs` |
---|
| 10162 | CURLCFLAGS=`curl-config --cflags` |
---|
| 10163 | |
---|
| 10164 | cat >>confdefs.h <<_ACEOF |
---|
| 10165 | #define HAVE_CURL 1 |
---|
| 10166 | _ACEOF |
---|
| 10167 | |
---|
| 10168 | else |
---|
| 10169 | have_curl=no |
---|
| 10170 | fi |
---|
| 10171 | |
---|
| 10172 | fi |
---|
| 10173 | |
---|
| 10174 | |
---|
| 10175 | |
---|
| 10176 | |
---|
| 10177 | if test x$have_curl = xyes; then |
---|
| 10178 | HAVE_CURL_TRUE= |
---|
| 10179 | HAVE_CURL_FALSE='#' |
---|
| 10180 | else |
---|
| 10181 | HAVE_CURL_TRUE='#' |
---|
| 10182 | HAVE_CURL_FALSE= |
---|
| 10183 | fi |
---|
| 10184 | |
---|
| 10185 | |
---|
[3863] | 10186 | #--------# |
---|
| 10187 | # efence # |
---|
| 10188 | #--------# |
---|
| 10189 | if test x$def_efence = xyes ; then |
---|
| 10190 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
| 10191 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
| 10192 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
| 10193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10194 | else |
---|
| 10195 | ac_check_lib_save_LIBS=$LIBS |
---|
| 10196 | LIBS="-lefence $LIBS" |
---|
| 10197 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10198 | /* confdefs.h. */ |
---|
| 10199 | _ACEOF |
---|
| 10200 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10202 | /* end confdefs.h. */ |
---|
| 10203 | |
---|
| 10204 | |
---|
| 10205 | int |
---|
| 10206 | main () |
---|
| 10207 | { |
---|
| 10208 | main (); |
---|
| 10209 | ; |
---|
| 10210 | return 0; |
---|
| 10211 | } |
---|
| 10212 | _ACEOF |
---|
| 10213 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 10214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 10215 | (eval $ac_link) 2>conftest.er1 |
---|
| 10216 | ac_status=$? |
---|
| 10217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10218 | rm -f conftest.er1 |
---|
| 10219 | cat conftest.err >&5 |
---|
| 10220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10221 | (exit $ac_status); } && |
---|
[5588] | 10222 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10223 | || test ! -s conftest.err' |
---|
[3863] | 10224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10225 | (eval $ac_try) 2>&5 |
---|
| 10226 | ac_status=$? |
---|
| 10227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10228 | (exit $ac_status); }; } && |
---|
| 10229 | { ac_try='test -s conftest$ac_exeext' |
---|
| 10230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10231 | (eval $ac_try) 2>&5 |
---|
| 10232 | ac_status=$? |
---|
| 10233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10234 | (exit $ac_status); }; }; then |
---|
| 10235 | ac_cv_lib_efence_main=yes |
---|
| 10236 | else |
---|
| 10237 | echo "$as_me: failed program was:" >&5 |
---|
| 10238 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10239 | |
---|
| 10240 | ac_cv_lib_efence_main=no |
---|
| 10241 | fi |
---|
| 10242 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 10243 | conftest$ac_exeext conftest.$ac_ext |
---|
| 10244 | LIBS=$ac_check_lib_save_LIBS |
---|
| 10245 | fi |
---|
| 10246 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
| 10247 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
| 10248 | if test $ac_cv_lib_efence_main = yes; then |
---|
[5276] | 10249 | FOUND_efence=yes; LIBS="$LIBS -lefence" |
---|
[3863] | 10250 | fi |
---|
| 10251 | |
---|
[5276] | 10252 | if test x$FOUND_efence != xyes ; then |
---|
| 10253 | echo "efence was requested, but is not installed!! going on" |
---|
[3863] | 10254 | fi |
---|
| 10255 | |
---|
| 10256 | fi |
---|
| 10257 | |
---|
[5276] | 10258 | #-----# |
---|
| 10259 | # GTK # |
---|
| 10260 | #-----# |
---|
| 10261 | if test x$def_gtk = xyes; then |
---|
| 10262 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 10263 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
| 10264 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
| 10265 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
| 10266 | echo "yes" |
---|
| 10267 | have_gtk2=yes |
---|
| 10268 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
| 10269 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
| 10270 | |
---|
| 10271 | cat >>confdefs.h <<_ACEOF |
---|
| 10272 | #define HAVE_GTK2 1 |
---|
| 10273 | _ACEOF |
---|
| 10274 | |
---|
| 10275 | if test $DEBUG -ge 3; then |
---|
| 10276 | echo "cflags: $GTK2_CFLAGS" |
---|
| 10277 | echo "libs: $GTK2_LIBS" |
---|
| 10278 | fi |
---|
| 10279 | else |
---|
| 10280 | echo "no" |
---|
| 10281 | fi |
---|
| 10282 | |
---|
| 10283 | fi |
---|
| 10284 | |
---|
| 10285 | |
---|
| 10286 | |
---|
| 10287 | |
---|
| 10288 | if test x$have_gtk2 = xyes; then |
---|
| 10289 | HAVE_GTK2_TRUE= |
---|
| 10290 | HAVE_GTK2_FALSE='#' |
---|
| 10291 | else |
---|
| 10292 | HAVE_GTK2_TRUE='#' |
---|
| 10293 | HAVE_GTK2_FALSE= |
---|
| 10294 | fi |
---|
| 10295 | |
---|
| 10296 | |
---|
| 10297 | |
---|
[1956] | 10298 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 10299 | |
---|
| 10300 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 10301 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 10302 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 10303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10304 | else |
---|
| 10305 | ac_check_lib_save_LIBS=$LIBS |
---|
| 10306 | LIBS="-lm $LIBS" |
---|
| 10307 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10308 | /* confdefs.h. */ |
---|
| 10309 | _ACEOF |
---|
| 10310 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10312 | /* end confdefs.h. */ |
---|
| 10313 | |
---|
| 10314 | |
---|
| 10315 | int |
---|
| 10316 | main () |
---|
| 10317 | { |
---|
| 10318 | main (); |
---|
| 10319 | ; |
---|
| 10320 | return 0; |
---|
| 10321 | } |
---|
| 10322 | _ACEOF |
---|
| 10323 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 10324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 10325 | (eval $ac_link) 2>conftest.er1 |
---|
| 10326 | ac_status=$? |
---|
| 10327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10328 | rm -f conftest.er1 |
---|
| 10329 | cat conftest.err >&5 |
---|
| 10330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10331 | (exit $ac_status); } && |
---|
[5588] | 10332 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10333 | || test ! -s conftest.err' |
---|
[1956] | 10334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10335 | (eval $ac_try) 2>&5 |
---|
| 10336 | ac_status=$? |
---|
| 10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10338 | (exit $ac_status); }; } && |
---|
| 10339 | { ac_try='test -s conftest$ac_exeext' |
---|
| 10340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10341 | (eval $ac_try) 2>&5 |
---|
| 10342 | ac_status=$? |
---|
| 10343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10344 | (exit $ac_status); }; }; then |
---|
| 10345 | ac_cv_lib_m_main=yes |
---|
| 10346 | else |
---|
| 10347 | echo "$as_me: failed program was:" >&5 |
---|
| 10348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10349 | |
---|
| 10350 | ac_cv_lib_m_main=no |
---|
| 10351 | fi |
---|
| 10352 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 10353 | conftest$ac_exeext conftest.$ac_ext |
---|
| 10354 | LIBS=$ac_check_lib_save_LIBS |
---|
| 10355 | fi |
---|
| 10356 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 10357 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 10358 | if test $ac_cv_lib_m_main = yes; then |
---|
| 10359 | cat >>confdefs.h <<_ACEOF |
---|
| 10360 | #define HAVE_LIBM 1 |
---|
| 10361 | _ACEOF |
---|
| 10362 | |
---|
| 10363 | LIBS="-lm $LIBS" |
---|
| 10364 | |
---|
| 10365 | fi |
---|
| 10366 | |
---|
| 10367 | |
---|
[2018] | 10368 | |
---|
[1956] | 10369 | # Checks for header files. |
---|
| 10370 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 10371 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 10372 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 10373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10374 | else |
---|
| 10375 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10376 | /* confdefs.h. */ |
---|
| 10377 | _ACEOF |
---|
| 10378 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10379 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10380 | /* end confdefs.h. */ |
---|
| 10381 | #include <stdlib.h> |
---|
| 10382 | #include <stdarg.h> |
---|
| 10383 | #include <string.h> |
---|
| 10384 | #include <float.h> |
---|
| 10385 | |
---|
| 10386 | int |
---|
| 10387 | main () |
---|
| 10388 | { |
---|
| 10389 | |
---|
| 10390 | ; |
---|
| 10391 | return 0; |
---|
| 10392 | } |
---|
| 10393 | _ACEOF |
---|
| 10394 | rm -f conftest.$ac_objext |
---|
| 10395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 10396 | (eval $ac_compile) 2>conftest.er1 |
---|
| 10397 | ac_status=$? |
---|
| 10398 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10399 | rm -f conftest.er1 |
---|
| 10400 | cat conftest.err >&5 |
---|
| 10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10402 | (exit $ac_status); } && |
---|
[5588] | 10403 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10404 | || test ! -s conftest.err' |
---|
[1956] | 10405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10406 | (eval $ac_try) 2>&5 |
---|
| 10407 | ac_status=$? |
---|
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10409 | (exit $ac_status); }; } && |
---|
| 10410 | { ac_try='test -s conftest.$ac_objext' |
---|
| 10411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10412 | (eval $ac_try) 2>&5 |
---|
| 10413 | ac_status=$? |
---|
| 10414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10415 | (exit $ac_status); }; }; then |
---|
| 10416 | ac_cv_header_stdc=yes |
---|
| 10417 | else |
---|
| 10418 | echo "$as_me: failed program was:" >&5 |
---|
| 10419 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10420 | |
---|
| 10421 | ac_cv_header_stdc=no |
---|
| 10422 | fi |
---|
| 10423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 10424 | |
---|
| 10425 | if test $ac_cv_header_stdc = yes; then |
---|
| 10426 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 10427 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10428 | /* confdefs.h. */ |
---|
| 10429 | _ACEOF |
---|
| 10430 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10431 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10432 | /* end confdefs.h. */ |
---|
| 10433 | #include <string.h> |
---|
| 10434 | |
---|
| 10435 | _ACEOF |
---|
| 10436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 10437 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 10438 | : |
---|
| 10439 | else |
---|
| 10440 | ac_cv_header_stdc=no |
---|
| 10441 | fi |
---|
| 10442 | rm -f conftest* |
---|
| 10443 | |
---|
| 10444 | fi |
---|
| 10445 | |
---|
| 10446 | if test $ac_cv_header_stdc = yes; then |
---|
| 10447 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 10448 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10449 | /* confdefs.h. */ |
---|
| 10450 | _ACEOF |
---|
| 10451 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10452 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10453 | /* end confdefs.h. */ |
---|
| 10454 | #include <stdlib.h> |
---|
| 10455 | |
---|
| 10456 | _ACEOF |
---|
| 10457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 10458 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 10459 | : |
---|
| 10460 | else |
---|
| 10461 | ac_cv_header_stdc=no |
---|
| 10462 | fi |
---|
| 10463 | rm -f conftest* |
---|
| 10464 | |
---|
| 10465 | fi |
---|
| 10466 | |
---|
| 10467 | if test $ac_cv_header_stdc = yes; then |
---|
| 10468 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 10469 | if test "$cross_compiling" = yes; then |
---|
| 10470 | : |
---|
| 10471 | else |
---|
| 10472 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10473 | /* confdefs.h. */ |
---|
| 10474 | _ACEOF |
---|
| 10475 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10476 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10477 | /* end confdefs.h. */ |
---|
| 10478 | #include <ctype.h> |
---|
| 10479 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 10480 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 10481 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 10482 | #else |
---|
| 10483 | # define ISLOWER(c) \ |
---|
| 10484 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 10485 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 10486 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 10487 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 10488 | #endif |
---|
| 10489 | |
---|
| 10490 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 10491 | int |
---|
| 10492 | main () |
---|
| 10493 | { |
---|
| 10494 | int i; |
---|
| 10495 | for (i = 0; i < 256; i++) |
---|
| 10496 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 10497 | || toupper (i) != TOUPPER (i)) |
---|
| 10498 | exit(2); |
---|
| 10499 | exit (0); |
---|
| 10500 | } |
---|
| 10501 | _ACEOF |
---|
| 10502 | rm -f conftest$ac_exeext |
---|
| 10503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 10504 | (eval $ac_link) 2>&5 |
---|
| 10505 | ac_status=$? |
---|
| 10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 10508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10509 | (eval $ac_try) 2>&5 |
---|
| 10510 | ac_status=$? |
---|
| 10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10512 | (exit $ac_status); }; }; then |
---|
| 10513 | : |
---|
| 10514 | else |
---|
| 10515 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 10516 | echo "$as_me: failed program was:" >&5 |
---|
| 10517 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10518 | |
---|
| 10519 | ( exit $ac_status ) |
---|
| 10520 | ac_cv_header_stdc=no |
---|
| 10521 | fi |
---|
| 10522 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 10523 | fi |
---|
| 10524 | fi |
---|
| 10525 | fi |
---|
| 10526 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 10527 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 10528 | if test $ac_cv_header_stdc = yes; then |
---|
| 10529 | |
---|
| 10530 | cat >>confdefs.h <<\_ACEOF |
---|
| 10531 | #define STDC_HEADERS 1 |
---|
| 10532 | _ACEOF |
---|
| 10533 | |
---|
| 10534 | fi |
---|
| 10535 | |
---|
| 10536 | |
---|
| 10537 | |
---|
| 10538 | for ac_header in stdlib.h string.h |
---|
| 10539 | do |
---|
| 10540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 10541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 10543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 10544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10546 | fi |
---|
| 10547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 10548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 10549 | else |
---|
| 10550 | # Is the header compilable? |
---|
| 10551 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 10552 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 10553 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10554 | /* confdefs.h. */ |
---|
| 10555 | _ACEOF |
---|
| 10556 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10557 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10558 | /* end confdefs.h. */ |
---|
| 10559 | $ac_includes_default |
---|
| 10560 | #include <$ac_header> |
---|
| 10561 | _ACEOF |
---|
| 10562 | rm -f conftest.$ac_objext |
---|
| 10563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 10564 | (eval $ac_compile) 2>conftest.er1 |
---|
| 10565 | ac_status=$? |
---|
| 10566 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10567 | rm -f conftest.er1 |
---|
| 10568 | cat conftest.err >&5 |
---|
| 10569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10570 | (exit $ac_status); } && |
---|
[5588] | 10571 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10572 | || test ! -s conftest.err' |
---|
[1956] | 10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10574 | (eval $ac_try) 2>&5 |
---|
| 10575 | ac_status=$? |
---|
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10577 | (exit $ac_status); }; } && |
---|
| 10578 | { ac_try='test -s conftest.$ac_objext' |
---|
| 10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10580 | (eval $ac_try) 2>&5 |
---|
| 10581 | ac_status=$? |
---|
| 10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10583 | (exit $ac_status); }; }; then |
---|
| 10584 | ac_header_compiler=yes |
---|
| 10585 | else |
---|
| 10586 | echo "$as_me: failed program was:" >&5 |
---|
| 10587 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10588 | |
---|
| 10589 | ac_header_compiler=no |
---|
| 10590 | fi |
---|
| 10591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 10592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 10593 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 10594 | |
---|
| 10595 | # Is the header present? |
---|
| 10596 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 10597 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 10598 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10599 | /* confdefs.h. */ |
---|
| 10600 | _ACEOF |
---|
| 10601 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10602 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10603 | /* end confdefs.h. */ |
---|
| 10604 | #include <$ac_header> |
---|
| 10605 | _ACEOF |
---|
| 10606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 10607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 10608 | ac_status=$? |
---|
| 10609 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10610 | rm -f conftest.er1 |
---|
| 10611 | cat conftest.err >&5 |
---|
| 10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10613 | (exit $ac_status); } >/dev/null; then |
---|
| 10614 | if test -s conftest.err; then |
---|
| 10615 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 10616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 10617 | else |
---|
| 10618 | ac_cpp_err= |
---|
| 10619 | fi |
---|
| 10620 | else |
---|
| 10621 | ac_cpp_err=yes |
---|
| 10622 | fi |
---|
| 10623 | if test -z "$ac_cpp_err"; then |
---|
| 10624 | ac_header_preproc=yes |
---|
| 10625 | else |
---|
| 10626 | echo "$as_me: failed program was:" >&5 |
---|
| 10627 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10628 | |
---|
| 10629 | ac_header_preproc=no |
---|
| 10630 | fi |
---|
| 10631 | rm -f conftest.err conftest.$ac_ext |
---|
| 10632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 10633 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 10634 | |
---|
| 10635 | # So? What about this header? |
---|
| 10636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 10637 | yes:no: ) |
---|
| 10638 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 10639 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 10640 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 10641 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 10642 | ac_header_preproc=yes |
---|
| 10643 | ;; |
---|
| 10644 | no:yes:* ) |
---|
| 10645 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 10646 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 10647 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 10648 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 10649 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 10650 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 10651 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 10652 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 10654 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 10656 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 10657 | ( |
---|
| 10658 | cat <<\_ASBOX |
---|
[3240] | 10659 | ## ---------------------------------------------- ## |
---|
| 10660 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 10661 | ## ---------------------------------------------- ## |
---|
[1956] | 10662 | _ASBOX |
---|
| 10663 | ) | |
---|
| 10664 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 10665 | ;; |
---|
| 10666 | esac |
---|
| 10667 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 10668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 10669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10671 | else |
---|
| 10672 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 10673 | fi |
---|
| 10674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 10675 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 10676 | |
---|
| 10677 | fi |
---|
| 10678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 10679 | cat >>confdefs.h <<_ACEOF |
---|
| 10680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 10681 | _ACEOF |
---|
| 10682 | |
---|
| 10683 | fi |
---|
| 10684 | |
---|
| 10685 | done |
---|
| 10686 | |
---|
| 10687 | |
---|
| 10688 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 10689 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 10690 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 10691 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 10692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10693 | else |
---|
| 10694 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10695 | /* confdefs.h. */ |
---|
| 10696 | _ACEOF |
---|
| 10697 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10698 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10699 | /* end confdefs.h. */ |
---|
| 10700 | |
---|
| 10701 | #include <stdbool.h> |
---|
| 10702 | #ifndef bool |
---|
| 10703 | # error bool is not defined |
---|
| 10704 | #endif |
---|
| 10705 | #ifndef false |
---|
| 10706 | # error false is not defined |
---|
| 10707 | #endif |
---|
| 10708 | #if false |
---|
| 10709 | # error false is not 0 |
---|
| 10710 | #endif |
---|
| 10711 | #ifndef true |
---|
| 10712 | # error true is not defined |
---|
| 10713 | #endif |
---|
| 10714 | #if true != 1 |
---|
| 10715 | # error true is not 1 |
---|
| 10716 | #endif |
---|
| 10717 | #ifndef __bool_true_false_are_defined |
---|
| 10718 | # error __bool_true_false_are_defined is not defined |
---|
| 10719 | #endif |
---|
| 10720 | |
---|
| 10721 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 10722 | |
---|
| 10723 | char a[true == 1 ? 1 : -1]; |
---|
| 10724 | char b[false == 0 ? 1 : -1]; |
---|
| 10725 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 10726 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 10727 | bool e = &s; |
---|
| 10728 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 10729 | char g[true]; |
---|
| 10730 | char h[sizeof (_Bool)]; |
---|
| 10731 | char i[sizeof s.t]; |
---|
| 10732 | |
---|
| 10733 | int |
---|
| 10734 | main () |
---|
| 10735 | { |
---|
| 10736 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 10737 | ; |
---|
| 10738 | return 0; |
---|
| 10739 | } |
---|
| 10740 | _ACEOF |
---|
| 10741 | rm -f conftest.$ac_objext |
---|
| 10742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 10743 | (eval $ac_compile) 2>conftest.er1 |
---|
| 10744 | ac_status=$? |
---|
| 10745 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10746 | rm -f conftest.er1 |
---|
| 10747 | cat conftest.err >&5 |
---|
| 10748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10749 | (exit $ac_status); } && |
---|
[5588] | 10750 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10751 | || test ! -s conftest.err' |
---|
[1956] | 10752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10753 | (eval $ac_try) 2>&5 |
---|
| 10754 | ac_status=$? |
---|
| 10755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10756 | (exit $ac_status); }; } && |
---|
| 10757 | { ac_try='test -s conftest.$ac_objext' |
---|
| 10758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10759 | (eval $ac_try) 2>&5 |
---|
| 10760 | ac_status=$? |
---|
| 10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10762 | (exit $ac_status); }; }; then |
---|
| 10763 | ac_cv_header_stdbool_h=yes |
---|
| 10764 | else |
---|
| 10765 | echo "$as_me: failed program was:" >&5 |
---|
| 10766 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10767 | |
---|
| 10768 | ac_cv_header_stdbool_h=no |
---|
| 10769 | fi |
---|
| 10770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 10771 | fi |
---|
| 10772 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 10773 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 10774 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 10775 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 10776 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 10777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10778 | else |
---|
| 10779 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10780 | /* confdefs.h. */ |
---|
| 10781 | _ACEOF |
---|
| 10782 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10783 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10784 | /* end confdefs.h. */ |
---|
| 10785 | $ac_includes_default |
---|
| 10786 | int |
---|
| 10787 | main () |
---|
| 10788 | { |
---|
| 10789 | if ((_Bool *) 0) |
---|
| 10790 | return 0; |
---|
| 10791 | if (sizeof (_Bool)) |
---|
| 10792 | return 0; |
---|
| 10793 | ; |
---|
| 10794 | return 0; |
---|
| 10795 | } |
---|
| 10796 | _ACEOF |
---|
| 10797 | rm -f conftest.$ac_objext |
---|
| 10798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 10799 | (eval $ac_compile) 2>conftest.er1 |
---|
| 10800 | ac_status=$? |
---|
| 10801 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10802 | rm -f conftest.er1 |
---|
| 10803 | cat conftest.err >&5 |
---|
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10805 | (exit $ac_status); } && |
---|
[5588] | 10806 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10807 | || test ! -s conftest.err' |
---|
[1956] | 10808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10809 | (eval $ac_try) 2>&5 |
---|
| 10810 | ac_status=$? |
---|
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10812 | (exit $ac_status); }; } && |
---|
| 10813 | { ac_try='test -s conftest.$ac_objext' |
---|
| 10814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10815 | (eval $ac_try) 2>&5 |
---|
| 10816 | ac_status=$? |
---|
| 10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10818 | (exit $ac_status); }; }; then |
---|
| 10819 | ac_cv_type__Bool=yes |
---|
| 10820 | else |
---|
| 10821 | echo "$as_me: failed program was:" >&5 |
---|
| 10822 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10823 | |
---|
| 10824 | ac_cv_type__Bool=no |
---|
| 10825 | fi |
---|
| 10826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 10827 | fi |
---|
| 10828 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 10829 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 10830 | if test $ac_cv_type__Bool = yes; then |
---|
| 10831 | |
---|
| 10832 | cat >>confdefs.h <<_ACEOF |
---|
| 10833 | #define HAVE__BOOL 1 |
---|
| 10834 | _ACEOF |
---|
| 10835 | |
---|
| 10836 | |
---|
| 10837 | fi |
---|
| 10838 | |
---|
| 10839 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 10840 | |
---|
| 10841 | cat >>confdefs.h <<\_ACEOF |
---|
| 10842 | #define HAVE_STDBOOL_H 1 |
---|
| 10843 | _ACEOF |
---|
| 10844 | |
---|
| 10845 | fi |
---|
| 10846 | |
---|
| 10847 | |
---|
| 10848 | # Checks for library functions. |
---|
| 10849 | |
---|
| 10850 | for ac_header in stdlib.h |
---|
| 10851 | do |
---|
| 10852 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 10853 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10854 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 10855 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 10856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10858 | fi |
---|
| 10859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 10860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 10861 | else |
---|
| 10862 | # Is the header compilable? |
---|
| 10863 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 10864 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 10865 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10866 | /* confdefs.h. */ |
---|
| 10867 | _ACEOF |
---|
| 10868 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10869 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10870 | /* end confdefs.h. */ |
---|
| 10871 | $ac_includes_default |
---|
| 10872 | #include <$ac_header> |
---|
| 10873 | _ACEOF |
---|
| 10874 | rm -f conftest.$ac_objext |
---|
| 10875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 10876 | (eval $ac_compile) 2>conftest.er1 |
---|
| 10877 | ac_status=$? |
---|
| 10878 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10879 | rm -f conftest.er1 |
---|
| 10880 | cat conftest.err >&5 |
---|
| 10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10882 | (exit $ac_status); } && |
---|
[5588] | 10883 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 10884 | || test ! -s conftest.err' |
---|
[1956] | 10885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10886 | (eval $ac_try) 2>&5 |
---|
| 10887 | ac_status=$? |
---|
| 10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10889 | (exit $ac_status); }; } && |
---|
| 10890 | { ac_try='test -s conftest.$ac_objext' |
---|
| 10891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 10892 | (eval $ac_try) 2>&5 |
---|
| 10893 | ac_status=$? |
---|
| 10894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10895 | (exit $ac_status); }; }; then |
---|
| 10896 | ac_header_compiler=yes |
---|
| 10897 | else |
---|
| 10898 | echo "$as_me: failed program was:" >&5 |
---|
| 10899 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10900 | |
---|
| 10901 | ac_header_compiler=no |
---|
| 10902 | fi |
---|
| 10903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 10904 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 10905 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 10906 | |
---|
| 10907 | # Is the header present? |
---|
| 10908 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 10909 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 10910 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 10911 | /* confdefs.h. */ |
---|
| 10912 | _ACEOF |
---|
| 10913 | cat confdefs.h >>conftest.$ac_ext |
---|
| 10914 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 10915 | /* end confdefs.h. */ |
---|
| 10916 | #include <$ac_header> |
---|
| 10917 | _ACEOF |
---|
| 10918 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 10919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 10920 | ac_status=$? |
---|
| 10921 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 10922 | rm -f conftest.er1 |
---|
| 10923 | cat conftest.err >&5 |
---|
| 10924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 10925 | (exit $ac_status); } >/dev/null; then |
---|
| 10926 | if test -s conftest.err; then |
---|
| 10927 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 10928 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 10929 | else |
---|
| 10930 | ac_cpp_err= |
---|
| 10931 | fi |
---|
| 10932 | else |
---|
| 10933 | ac_cpp_err=yes |
---|
| 10934 | fi |
---|
| 10935 | if test -z "$ac_cpp_err"; then |
---|
| 10936 | ac_header_preproc=yes |
---|
| 10937 | else |
---|
| 10938 | echo "$as_me: failed program was:" >&5 |
---|
| 10939 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 10940 | |
---|
| 10941 | ac_header_preproc=no |
---|
| 10942 | fi |
---|
| 10943 | rm -f conftest.err conftest.$ac_ext |
---|
| 10944 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 10945 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 10946 | |
---|
| 10947 | # So? What about this header? |
---|
| 10948 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 10949 | yes:no: ) |
---|
| 10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 10951 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 10953 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 10954 | ac_header_preproc=yes |
---|
| 10955 | ;; |
---|
| 10956 | no:yes:* ) |
---|
| 10957 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 10958 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 10959 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 10960 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 10961 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 10962 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 10963 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 10964 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 10965 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 10966 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 10967 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 10968 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 10969 | ( |
---|
| 10970 | cat <<\_ASBOX |
---|
[3240] | 10971 | ## ---------------------------------------------- ## |
---|
| 10972 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 10973 | ## ---------------------------------------------- ## |
---|
[1956] | 10974 | _ASBOX |
---|
| 10975 | ) | |
---|
| 10976 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 10977 | ;; |
---|
| 10978 | esac |
---|
| 10979 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 10980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 10981 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 10982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 10983 | else |
---|
| 10984 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 10985 | fi |
---|
| 10986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 10987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 10988 | |
---|
| 10989 | fi |
---|
| 10990 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 10991 | cat >>confdefs.h <<_ACEOF |
---|
| 10992 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 10993 | _ACEOF |
---|
| 10994 | |
---|
| 10995 | fi |
---|
| 10996 | |
---|
| 10997 | done |
---|
| 10998 | |
---|
| 10999 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 11000 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 11001 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 11002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 11003 | else |
---|
| 11004 | if test "$cross_compiling" = yes; then |
---|
| 11005 | ac_cv_func_malloc_0_nonnull=no |
---|
| 11006 | else |
---|
| 11007 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 11008 | /* confdefs.h. */ |
---|
| 11009 | _ACEOF |
---|
| 11010 | cat confdefs.h >>conftest.$ac_ext |
---|
| 11011 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 11012 | /* end confdefs.h. */ |
---|
| 11013 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 11014 | # include <stdlib.h> |
---|
| 11015 | #else |
---|
| 11016 | char *malloc (); |
---|
| 11017 | #endif |
---|
| 11018 | |
---|
| 11019 | int |
---|
| 11020 | main () |
---|
| 11021 | { |
---|
| 11022 | exit (malloc (0) ? 0 : 1); |
---|
| 11023 | ; |
---|
| 11024 | return 0; |
---|
| 11025 | } |
---|
| 11026 | _ACEOF |
---|
| 11027 | rm -f conftest$ac_exeext |
---|
| 11028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 11029 | (eval $ac_link) 2>&5 |
---|
| 11030 | ac_status=$? |
---|
| 11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 11032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 11033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 11034 | (eval $ac_try) 2>&5 |
---|
| 11035 | ac_status=$? |
---|
| 11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 11037 | (exit $ac_status); }; }; then |
---|
| 11038 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 11039 | else |
---|
| 11040 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 11041 | echo "$as_me: failed program was:" >&5 |
---|
| 11042 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 11043 | |
---|
| 11044 | ( exit $ac_status ) |
---|
| 11045 | ac_cv_func_malloc_0_nonnull=no |
---|
| 11046 | fi |
---|
| 11047 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 11048 | fi |
---|
| 11049 | fi |
---|
| 11050 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 11051 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 11052 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 11053 | |
---|
| 11054 | cat >>confdefs.h <<\_ACEOF |
---|
| 11055 | #define HAVE_MALLOC 1 |
---|
| 11056 | _ACEOF |
---|
| 11057 | |
---|
| 11058 | else |
---|
| 11059 | cat >>confdefs.h <<\_ACEOF |
---|
| 11060 | #define HAVE_MALLOC 0 |
---|
| 11061 | _ACEOF |
---|
| 11062 | |
---|
| 11063 | case $LIBOBJS in |
---|
| 11064 | "malloc.$ac_objext" | \ |
---|
| 11065 | *" malloc.$ac_objext" | \ |
---|
| 11066 | "malloc.$ac_objext "* | \ |
---|
| 11067 | *" malloc.$ac_objext "* ) ;; |
---|
| 11068 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 11069 | esac |
---|
| 11070 | |
---|
| 11071 | |
---|
| 11072 | cat >>confdefs.h <<\_ACEOF |
---|
| 11073 | #define malloc rpl_malloc |
---|
| 11074 | _ACEOF |
---|
| 11075 | |
---|
| 11076 | fi |
---|
| 11077 | |
---|
| 11078 | |
---|
| 11079 | |
---|
| 11080 | |
---|
| 11081 | |
---|
| 11082 | for ac_func in bzero sqrt |
---|
| 11083 | do |
---|
| 11084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 11085 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 11086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 11087 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 11088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 11089 | else |
---|
| 11090 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 11091 | /* confdefs.h. */ |
---|
| 11092 | _ACEOF |
---|
| 11093 | cat confdefs.h >>conftest.$ac_ext |
---|
| 11094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 11095 | /* end confdefs.h. */ |
---|
| 11096 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 11097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 11098 | #define $ac_func innocuous_$ac_func |
---|
| 11099 | |
---|
| 11100 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 11101 | which can conflict with char $ac_func (); below. |
---|
| 11102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 11103 | <limits.h> exists even on freestanding compilers. */ |
---|
| 11104 | |
---|
| 11105 | #ifdef __STDC__ |
---|
| 11106 | # include <limits.h> |
---|
| 11107 | #else |
---|
| 11108 | # include <assert.h> |
---|
| 11109 | #endif |
---|
| 11110 | |
---|
| 11111 | #undef $ac_func |
---|
| 11112 | |
---|
| 11113 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 11114 | #ifdef __cplusplus |
---|
| 11115 | extern "C" |
---|
| 11116 | { |
---|
| 11117 | #endif |
---|
| 11118 | /* We use char because int might match the return type of a gcc2 |
---|
| 11119 | builtin and then its argument prototype would still apply. */ |
---|
| 11120 | char $ac_func (); |
---|
| 11121 | /* The GNU C library defines this for functions which it implements |
---|
| 11122 | to always fail with ENOSYS. Some functions are actually named |
---|
| 11123 | something starting with __ and the normal name is an alias. */ |
---|
| 11124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 11125 | choke me |
---|
| 11126 | #else |
---|
| 11127 | char (*f) () = $ac_func; |
---|
| 11128 | #endif |
---|
| 11129 | #ifdef __cplusplus |
---|
| 11130 | } |
---|
| 11131 | #endif |
---|
| 11132 | |
---|
| 11133 | int |
---|
| 11134 | main () |
---|
| 11135 | { |
---|
| 11136 | return f != $ac_func; |
---|
| 11137 | ; |
---|
| 11138 | return 0; |
---|
| 11139 | } |
---|
| 11140 | _ACEOF |
---|
| 11141 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 11142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 11143 | (eval $ac_link) 2>conftest.er1 |
---|
| 11144 | ac_status=$? |
---|
| 11145 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 11146 | rm -f conftest.er1 |
---|
| 11147 | cat conftest.err >&5 |
---|
| 11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 11149 | (exit $ac_status); } && |
---|
[5588] | 11150 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 11151 | || test ! -s conftest.err' |
---|
[1956] | 11152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 11153 | (eval $ac_try) 2>&5 |
---|
| 11154 | ac_status=$? |
---|
| 11155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 11156 | (exit $ac_status); }; } && |
---|
| 11157 | { ac_try='test -s conftest$ac_exeext' |
---|
| 11158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 11159 | (eval $ac_try) 2>&5 |
---|
| 11160 | ac_status=$? |
---|
| 11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 11162 | (exit $ac_status); }; }; then |
---|
| 11163 | eval "$as_ac_var=yes" |
---|
| 11164 | else |
---|
| 11165 | echo "$as_me: failed program was:" >&5 |
---|
| 11166 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 11167 | |
---|
| 11168 | eval "$as_ac_var=no" |
---|
| 11169 | fi |
---|
| 11170 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 11171 | conftest$ac_exeext conftest.$ac_ext |
---|
| 11172 | fi |
---|
| 11173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 11174 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 11175 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 11176 | cat >>confdefs.h <<_ACEOF |
---|
| 11177 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 11178 | _ACEOF |
---|
| 11179 | |
---|
| 11180 | fi |
---|
| 11181 | done |
---|
| 11182 | |
---|
| 11183 | |
---|
[3424] | 11184 | ###################### |
---|
| 11185 | ## OUTPUT CONFIGURE ## |
---|
| 11186 | ###################### |
---|
[5517] | 11187 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/network/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile src/subprojects/network/Makefile" |
---|
[1956] | 11188 | |
---|
[3377] | 11189 | |
---|
[1956] | 11190 | cat >confcache <<\_ACEOF |
---|
| 11191 | # This file is a shell script that caches the results of configure |
---|
| 11192 | # tests run on this system so they can be shared between configure |
---|
| 11193 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 11194 | # It is not useful on other systems. If it contains results you don't |
---|
| 11195 | # want to keep, you may remove or edit it. |
---|
| 11196 | # |
---|
| 11197 | # config.status only pays attention to the cache file if you give it |
---|
| 11198 | # the --recheck option to rerun configure. |
---|
| 11199 | # |
---|
| 11200 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 11201 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 11202 | # following values. |
---|
| 11203 | |
---|
| 11204 | _ACEOF |
---|
| 11205 | |
---|
| 11206 | # The following way of writing the cache mishandles newlines in values, |
---|
| 11207 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 11208 | # So, don't put newlines in cache variables' values. |
---|
| 11209 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 11210 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 11211 | { |
---|
| 11212 | (set) 2>&1 | |
---|
| 11213 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 11214 | *ac_space=\ *) |
---|
| 11215 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 11216 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 11217 | sed -n \ |
---|
| 11218 | "s/'/'\\\\''/g; |
---|
| 11219 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 11220 | ;; |
---|
| 11221 | *) |
---|
| 11222 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 11223 | sed -n \ |
---|
| 11224 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 11225 | ;; |
---|
| 11226 | esac; |
---|
| 11227 | } | |
---|
| 11228 | sed ' |
---|
| 11229 | t clear |
---|
| 11230 | : clear |
---|
| 11231 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 11232 | t end |
---|
| 11233 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 11234 | : end' >>confcache |
---|
| 11235 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 11236 | if test -w $cache_file; then |
---|
| 11237 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 11238 | cat confcache >$cache_file |
---|
| 11239 | else |
---|
| 11240 | echo "not updating unwritable cache $cache_file" |
---|
| 11241 | fi |
---|
| 11242 | fi |
---|
| 11243 | rm -f confcache |
---|
| 11244 | |
---|
| 11245 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 11246 | # Let make expand exec_prefix. |
---|
| 11247 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 11248 | |
---|
| 11249 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 11250 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 11251 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 11252 | # (actually we leave an empty line to preserve line numbers). |
---|
| 11253 | if test "x$srcdir" = x.; then |
---|
| 11254 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 11255 | s/:*\$(srcdir):*/:/; |
---|
| 11256 | s/:*\${srcdir}:*/:/; |
---|
| 11257 | s/:*@srcdir@:*/:/; |
---|
| 11258 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 11259 | s/:*$//; |
---|
| 11260 | s/^[^=]*=[ ]*$//; |
---|
| 11261 | }' |
---|
| 11262 | fi |
---|
| 11263 | |
---|
| 11264 | DEFS=-DHAVE_CONFIG_H |
---|
| 11265 | |
---|
| 11266 | ac_libobjs= |
---|
| 11267 | ac_ltlibobjs= |
---|
| 11268 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 11269 | # 1. Remove the extension, and $U if already installed. |
---|
| 11270 | ac_i=`echo "$ac_i" | |
---|
| 11271 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 11272 | # 2. Add them. |
---|
| 11273 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 11274 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 11275 | done |
---|
| 11276 | LIBOBJS=$ac_libobjs |
---|
| 11277 | |
---|
| 11278 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 11279 | |
---|
| 11280 | |
---|
| 11281 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 11282 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 11283 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 11284 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 11285 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11286 | { (exit 1); exit 1; }; } |
---|
| 11287 | fi |
---|
| 11288 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 11289 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 11290 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 11291 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 11292 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11293 | { (exit 1); exit 1; }; } |
---|
| 11294 | fi |
---|
| 11295 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 11296 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 11297 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 11298 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 11299 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11300 | { (exit 1); exit 1; }; } |
---|
| 11301 | fi |
---|
[3377] | 11302 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 11303 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 11304 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 11305 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 11306 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11307 | { (exit 1); exit 1; }; } |
---|
| 11308 | fi |
---|
[3558] | 11309 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
| 11310 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 11311 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 11312 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 11313 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11314 | { (exit 1); exit 1; }; } |
---|
| 11315 | fi |
---|
[3219] | 11316 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 11317 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 11318 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 11319 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 11320 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11321 | { (exit 1); exit 1; }; } |
---|
| 11322 | fi |
---|
[5276] | 11323 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 11324 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
[2980] | 11325 | Usually this means the macro was only invoked conditionally." >&5 |
---|
[5276] | 11326 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
[2980] | 11327 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11328 | { (exit 1); exit 1; }; } |
---|
| 11329 | fi |
---|
[5276] | 11330 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 11331 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
[3423] | 11332 | Usually this means the macro was only invoked conditionally." >&5 |
---|
[5276] | 11333 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
[3423] | 11334 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 11335 | { (exit 1); exit 1; }; } |
---|
| 11336 | fi |
---|
[1956] | 11337 | |
---|
| 11338 | : ${CONFIG_STATUS=./config.status} |
---|
| 11339 | ac_clean_files_save=$ac_clean_files |
---|
| 11340 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 11341 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 11342 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 11343 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 11344 | #! $SHELL |
---|
| 11345 | # Generated by $as_me. |
---|
| 11346 | # Run this file to recreate the current configuration. |
---|
| 11347 | # Compiler output produced by configure, useful for debugging |
---|
| 11348 | # configure, is in config.log if it exists. |
---|
| 11349 | |
---|
| 11350 | debug=false |
---|
| 11351 | ac_cs_recheck=false |
---|
| 11352 | ac_cs_silent=false |
---|
| 11353 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 11354 | _ACEOF |
---|
| 11355 | |
---|
| 11356 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 11357 | ## --------------------- ## |
---|
| 11358 | ## M4sh Initialization. ## |
---|
| 11359 | ## --------------------- ## |
---|
| 11360 | |
---|
| 11361 | # Be Bourne compatible |
---|
| 11362 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 11363 | emulate sh |
---|
| 11364 | NULLCMD=: |
---|
| 11365 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 11366 | # is contrary to our usage. Disable this feature. |
---|
| 11367 | alias -g '${1+"$@"}'='"$@"' |
---|
| 11368 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 11369 | set -o posix |
---|
| 11370 | fi |
---|
| 11371 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 11372 | |
---|
| 11373 | # Support unset when possible. |
---|
| 11374 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 11375 | as_unset=unset |
---|
| 11376 | else |
---|
| 11377 | as_unset=false |
---|
| 11378 | fi |
---|
| 11379 | |
---|
| 11380 | |
---|
| 11381 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 11382 | $as_unset ENV MAIL MAILPATH |
---|
| 11383 | PS1='$ ' |
---|
| 11384 | PS2='> ' |
---|
| 11385 | PS4='+ ' |
---|
| 11386 | |
---|
| 11387 | # NLS nuisances. |
---|
| 11388 | for as_var in \ |
---|
| 11389 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 11390 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 11391 | LC_TELEPHONE LC_TIME |
---|
| 11392 | do |
---|
| 11393 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 11394 | eval $as_var=C; export $as_var |
---|
| 11395 | else |
---|
| 11396 | $as_unset $as_var |
---|
| 11397 | fi |
---|
| 11398 | done |
---|
| 11399 | |
---|
| 11400 | # Required to use basename. |
---|
| 11401 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 11402 | as_expr=expr |
---|
| 11403 | else |
---|
| 11404 | as_expr=false |
---|
| 11405 | fi |
---|
| 11406 | |
---|
| 11407 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 11408 | as_basename=basename |
---|
| 11409 | else |
---|
| 11410 | as_basename=false |
---|
| 11411 | fi |
---|
| 11412 | |
---|
| 11413 | |
---|
| 11414 | # Name of the executable. |
---|
| 11415 | as_me=`$as_basename "$0" || |
---|
| 11416 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 11417 | X"$0" : 'X\(//\)$' \| \ |
---|
| 11418 | X"$0" : 'X\(/\)$' \| \ |
---|
| 11419 | . : '\(.\)' 2>/dev/null || |
---|
| 11420 | echo X/"$0" | |
---|
| 11421 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 11422 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 11423 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 11424 | s/.*/./; q'` |
---|
| 11425 | |
---|
| 11426 | |
---|
| 11427 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 11428 | # Avoid depending upon Character Ranges. |
---|
| 11429 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 11430 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 11431 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 11432 | as_cr_digits='0123456789' |
---|
| 11433 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 11434 | |
---|
| 11435 | # The user is always right. |
---|
| 11436 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 11437 | echo "#! /bin/sh" >conf$$.sh |
---|
| 11438 | echo "exit 0" >>conf$$.sh |
---|
| 11439 | chmod +x conf$$.sh |
---|
| 11440 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 11441 | PATH_SEPARATOR=';' |
---|
| 11442 | else |
---|
| 11443 | PATH_SEPARATOR=: |
---|
| 11444 | fi |
---|
| 11445 | rm -f conf$$.sh |
---|
| 11446 | fi |
---|
| 11447 | |
---|
| 11448 | |
---|
| 11449 | as_lineno_1=$LINENO |
---|
| 11450 | as_lineno_2=$LINENO |
---|
| 11451 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 11452 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 11453 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 11454 | # Find who we are. Look in the path if we contain no path at all |
---|
| 11455 | # relative or not. |
---|
| 11456 | case $0 in |
---|
| 11457 | *[\\/]* ) as_myself=$0 ;; |
---|
| 11458 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 11459 | for as_dir in $PATH |
---|
| 11460 | do |
---|
| 11461 | IFS=$as_save_IFS |
---|
| 11462 | test -z "$as_dir" && as_dir=. |
---|
| 11463 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 11464 | done |
---|
| 11465 | |
---|
| 11466 | ;; |
---|
| 11467 | esac |
---|
| 11468 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 11469 | # in which case we are not to be found in the path. |
---|
| 11470 | if test "x$as_myself" = x; then |
---|
| 11471 | as_myself=$0 |
---|
| 11472 | fi |
---|
| 11473 | if test ! -f "$as_myself"; then |
---|
| 11474 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 11475 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 11476 | { (exit 1); exit 1; }; } |
---|
| 11477 | fi |
---|
| 11478 | case $CONFIG_SHELL in |
---|
| 11479 | '') |
---|
| 11480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 11481 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 11482 | do |
---|
| 11483 | IFS=$as_save_IFS |
---|
| 11484 | test -z "$as_dir" && as_dir=. |
---|
| 11485 | for as_base in sh bash ksh sh5; do |
---|
| 11486 | case $as_dir in |
---|
| 11487 | /*) |
---|
| 11488 | if ("$as_dir/$as_base" -c ' |
---|
| 11489 | as_lineno_1=$LINENO |
---|
| 11490 | as_lineno_2=$LINENO |
---|
| 11491 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 11492 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 11493 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 11494 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 11495 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 11496 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 11497 | export CONFIG_SHELL |
---|
| 11498 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 11499 | fi;; |
---|
| 11500 | esac |
---|
| 11501 | done |
---|
| 11502 | done |
---|
| 11503 | ;; |
---|
| 11504 | esac |
---|
| 11505 | |
---|
| 11506 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 11507 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 11508 | # line-number line before each line; the second 'sed' does the real |
---|
| 11509 | # work. The second script uses 'N' to pair each line-number line |
---|
| 11510 | # with the numbered line, and appends trailing '-' during |
---|
| 11511 | # substitution so that $LINENO is not a special case at line end. |
---|
| 11512 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 11513 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 11514 | sed '=' <$as_myself | |
---|
| 11515 | sed ' |
---|
| 11516 | N |
---|
| 11517 | s,$,-, |
---|
| 11518 | : loop |
---|
| 11519 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 11520 | t loop |
---|
| 11521 | s,-$,, |
---|
| 11522 | s,^['$as_cr_digits']*\n,, |
---|
| 11523 | ' >$as_me.lineno && |
---|
| 11524 | chmod +x $as_me.lineno || |
---|
| 11525 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 11526 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 11527 | { (exit 1); exit 1; }; } |
---|
| 11528 | |
---|
| 11529 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 11530 | # (the dirname of $[0] is not the place where we might find the |
---|
| 11531 | # original and so on. Autoconf is especially sensible to this). |
---|
| 11532 | . ./$as_me.lineno |
---|
| 11533 | # Exit status is that of the last command. |
---|
| 11534 | exit |
---|
| 11535 | } |
---|
| 11536 | |
---|
| 11537 | |
---|
| 11538 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 11539 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 11540 | ' ECHO_T=' ' ;; |
---|
| 11541 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 11542 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 11543 | esac |
---|
| 11544 | |
---|
| 11545 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 11546 | as_expr=expr |
---|
| 11547 | else |
---|
| 11548 | as_expr=false |
---|
| 11549 | fi |
---|
| 11550 | |
---|
| 11551 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 11552 | echo >conf$$.file |
---|
| 11553 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 11554 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 11555 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 11556 | if test -f conf$$.exe; then |
---|
| 11557 | # Don't use ln at all; we don't have any links |
---|
| 11558 | as_ln_s='cp -p' |
---|
| 11559 | else |
---|
| 11560 | as_ln_s='ln -s' |
---|
| 11561 | fi |
---|
| 11562 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 11563 | as_ln_s=ln |
---|
| 11564 | else |
---|
| 11565 | as_ln_s='cp -p' |
---|
| 11566 | fi |
---|
| 11567 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 11568 | |
---|
| 11569 | if mkdir -p . 2>/dev/null; then |
---|
| 11570 | as_mkdir_p=: |
---|
| 11571 | else |
---|
| 11572 | test -d ./-p && rmdir ./-p |
---|
| 11573 | as_mkdir_p=false |
---|
| 11574 | fi |
---|
| 11575 | |
---|
| 11576 | as_executable_p="test -f" |
---|
| 11577 | |
---|
| 11578 | # Sed expression to map a string onto a valid CPP name. |
---|
| 11579 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 11580 | |
---|
| 11581 | # Sed expression to map a string onto a valid variable name. |
---|
| 11582 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 11583 | |
---|
| 11584 | |
---|
| 11585 | # IFS |
---|
| 11586 | # We need space, tab and new line, in precisely that order. |
---|
| 11587 | as_nl=' |
---|
| 11588 | ' |
---|
| 11589 | IFS=" $as_nl" |
---|
| 11590 | |
---|
| 11591 | # CDPATH. |
---|
| 11592 | $as_unset CDPATH |
---|
| 11593 | |
---|
| 11594 | exec 6>&1 |
---|
| 11595 | |
---|
| 11596 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 11597 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 11598 | # values after options handling. Logging --version etc. is OK. |
---|
| 11599 | exec 5>>config.log |
---|
| 11600 | { |
---|
| 11601 | echo |
---|
| 11602 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 11603 | ## Running $as_me. ## |
---|
| 11604 | _ASBOX |
---|
| 11605 | } >&5 |
---|
| 11606 | cat >&5 <<_CSEOF |
---|
| 11607 | |
---|
[5502] | 11608 | This file was extended by orxonox $as_me 0.3.2_alpha, which was |
---|
[1956] | 11609 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 11610 | |
---|
| 11611 | CONFIG_FILES = $CONFIG_FILES |
---|
| 11612 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 11613 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 11614 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 11615 | $ $0 $@ |
---|
| 11616 | |
---|
| 11617 | _CSEOF |
---|
| 11618 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 11619 | echo >&5 |
---|
| 11620 | _ACEOF |
---|
| 11621 | |
---|
| 11622 | # Files that config.status was made for. |
---|
| 11623 | if test -n "$ac_config_files"; then |
---|
| 11624 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 11625 | fi |
---|
| 11626 | |
---|
| 11627 | if test -n "$ac_config_headers"; then |
---|
| 11628 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 11629 | fi |
---|
| 11630 | |
---|
| 11631 | if test -n "$ac_config_links"; then |
---|
| 11632 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 11633 | fi |
---|
| 11634 | |
---|
| 11635 | if test -n "$ac_config_commands"; then |
---|
| 11636 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 11637 | fi |
---|
| 11638 | |
---|
| 11639 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 11640 | |
---|
| 11641 | ac_cs_usage="\ |
---|
| 11642 | \`$as_me' instantiates files from templates according to the |
---|
| 11643 | current configuration. |
---|
| 11644 | |
---|
| 11645 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 11646 | |
---|
| 11647 | -h, --help print this help, then exit |
---|
| 11648 | -V, --version print version number, then exit |
---|
| 11649 | -q, --quiet do not print progress messages |
---|
| 11650 | -d, --debug don't remove temporary files |
---|
| 11651 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 11652 | --file=FILE[:TEMPLATE] |
---|
| 11653 | instantiate the configuration file FILE |
---|
| 11654 | --header=FILE[:TEMPLATE] |
---|
| 11655 | instantiate the configuration header FILE |
---|
| 11656 | |
---|
| 11657 | Configuration files: |
---|
| 11658 | $config_files |
---|
| 11659 | |
---|
| 11660 | Configuration headers: |
---|
| 11661 | $config_headers |
---|
| 11662 | |
---|
| 11663 | Configuration commands: |
---|
| 11664 | $config_commands |
---|
| 11665 | |
---|
| 11666 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 11667 | _ACEOF |
---|
| 11668 | |
---|
| 11669 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 11670 | ac_cs_version="\\ |
---|
[5502] | 11671 | orxonox config.status 0.3.2_alpha |
---|
[1956] | 11672 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 11673 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 11674 | |
---|
| 11675 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 11676 | This config.status script is free software; the Free Software Foundation |
---|
| 11677 | gives unlimited permission to copy, distribute and modify it." |
---|
| 11678 | srcdir=$srcdir |
---|
| 11679 | INSTALL="$INSTALL" |
---|
| 11680 | _ACEOF |
---|
| 11681 | |
---|
| 11682 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 11683 | # If no file are specified by the user, then we need to provide default |
---|
| 11684 | # value. By we need to know if files were specified by the user. |
---|
| 11685 | ac_need_defaults=: |
---|
| 11686 | while test $# != 0 |
---|
| 11687 | do |
---|
| 11688 | case $1 in |
---|
| 11689 | --*=*) |
---|
| 11690 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 11691 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 11692 | ac_shift=: |
---|
| 11693 | ;; |
---|
| 11694 | -*) |
---|
| 11695 | ac_option=$1 |
---|
| 11696 | ac_optarg=$2 |
---|
| 11697 | ac_shift=shift |
---|
| 11698 | ;; |
---|
| 11699 | *) # This is not an option, so the user has probably given explicit |
---|
| 11700 | # arguments. |
---|
| 11701 | ac_option=$1 |
---|
| 11702 | ac_need_defaults=false;; |
---|
| 11703 | esac |
---|
| 11704 | |
---|
| 11705 | case $ac_option in |
---|
| 11706 | # Handling of the options. |
---|
| 11707 | _ACEOF |
---|
| 11708 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 11709 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 11710 | ac_cs_recheck=: ;; |
---|
| 11711 | --version | --vers* | -V ) |
---|
| 11712 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 11713 | --he | --h) |
---|
| 11714 | # Conflict between --help and --header |
---|
| 11715 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 11716 | Try \`$0 --help' for more information." >&5 |
---|
| 11717 | echo "$as_me: error: ambiguous option: $1 |
---|
| 11718 | Try \`$0 --help' for more information." >&2;} |
---|
| 11719 | { (exit 1); exit 1; }; };; |
---|
| 11720 | --help | --hel | -h ) |
---|
| 11721 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 11722 | --debug | --d* | -d ) |
---|
| 11723 | debug=: ;; |
---|
| 11724 | --file | --fil | --fi | --f ) |
---|
| 11725 | $ac_shift |
---|
| 11726 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 11727 | ac_need_defaults=false;; |
---|
| 11728 | --header | --heade | --head | --hea ) |
---|
| 11729 | $ac_shift |
---|
| 11730 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 11731 | ac_need_defaults=false;; |
---|
| 11732 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 11733 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 11734 | ac_cs_silent=: ;; |
---|
| 11735 | |
---|
| 11736 | # This is an error. |
---|
| 11737 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 11738 | Try \`$0 --help' for more information." >&5 |
---|
| 11739 | echo "$as_me: error: unrecognized option: $1 |
---|
| 11740 | Try \`$0 --help' for more information." >&2;} |
---|
| 11741 | { (exit 1); exit 1; }; } ;; |
---|
| 11742 | |
---|
| 11743 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 11744 | |
---|
| 11745 | esac |
---|
| 11746 | shift |
---|
| 11747 | done |
---|
| 11748 | |
---|
| 11749 | ac_configure_extra_args= |
---|
| 11750 | |
---|
| 11751 | if $ac_cs_silent; then |
---|
| 11752 | exec 6>/dev/null |
---|
| 11753 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 11754 | fi |
---|
| 11755 | |
---|
| 11756 | _ACEOF |
---|
| 11757 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 11758 | if \$ac_cs_recheck; then |
---|
| 11759 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 11760 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 11761 | fi |
---|
| 11762 | |
---|
| 11763 | _ACEOF |
---|
| 11764 | |
---|
| 11765 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 11766 | # |
---|
| 11767 | # INIT-COMMANDS section. |
---|
| 11768 | # |
---|
| 11769 | |
---|
| 11770 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 11771 | |
---|
| 11772 | _ACEOF |
---|
| 11773 | |
---|
| 11774 | |
---|
| 11775 | |
---|
| 11776 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 11777 | for ac_config_target in $ac_config_targets |
---|
| 11778 | do |
---|
| 11779 | case "$ac_config_target" in |
---|
| 11780 | # Handling of arguments. |
---|
| 11781 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 11782 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3493] | 11783 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 11784 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
[3489] | 11785 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
[4789] | 11786 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
[4506] | 11787 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
[4484] | 11788 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
[4338] | 11789 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
[4416] | 11790 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
[4527] | 11791 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
[5517] | 11792 | "src/lib/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/network/Makefile" ;; |
---|
[5160] | 11793 | "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;; |
---|
[3493] | 11794 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
[5315] | 11795 | "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;; |
---|
| 11796 | "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;; |
---|
[4265] | 11797 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
[5350] | 11798 | "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; |
---|
[3549] | 11799 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
| 11800 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
[4263] | 11801 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
[4338] | 11802 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
[4531] | 11803 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
[5506] | 11804 | "src/subprojects/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/network/Makefile" ;; |
---|
[1956] | 11805 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 11806 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 11807 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 11808 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 11809 | { (exit 1); exit 1; }; };; |
---|
| 11810 | esac |
---|
| 11811 | done |
---|
| 11812 | |
---|
| 11813 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 11814 | # then the envvar interface is used. Set only those that are not. |
---|
| 11815 | # We use the long form for the default assignment because of an extremely |
---|
| 11816 | # bizarre bug on SunOS 4.1.3. |
---|
| 11817 | if $ac_need_defaults; then |
---|
| 11818 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 11819 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 11820 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 11821 | fi |
---|
| 11822 | |
---|
| 11823 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 11824 | # simply because there is no reason to put it here, and in addition, |
---|
| 11825 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 11826 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 11827 | $debug || |
---|
| 11828 | { |
---|
| 11829 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 11830 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 11831 | } |
---|
| 11832 | |
---|
| 11833 | # Create a (secure) tmp directory for tmp files. |
---|
| 11834 | |
---|
| 11835 | { |
---|
| 11836 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 11837 | test -n "$tmp" && test -d "$tmp" |
---|
| 11838 | } || |
---|
| 11839 | { |
---|
| 11840 | tmp=./confstat$$-$RANDOM |
---|
| 11841 | (umask 077 && mkdir $tmp) |
---|
| 11842 | } || |
---|
| 11843 | { |
---|
| 11844 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 11845 | { (exit 1); exit 1; } |
---|
| 11846 | } |
---|
| 11847 | |
---|
| 11848 | _ACEOF |
---|
| 11849 | |
---|
| 11850 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 11851 | |
---|
| 11852 | # |
---|
| 11853 | # CONFIG_FILES section. |
---|
| 11854 | # |
---|
| 11855 | |
---|
| 11856 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 11857 | # This happens for instance when ./config.status config.h |
---|
| 11858 | if test -n "\$CONFIG_FILES"; then |
---|
| 11859 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 11860 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 11861 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 11862 | s,@SHELL@,$SHELL,;t t |
---|
| 11863 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 11864 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 11865 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 11866 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 11867 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 11868 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 11869 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 11870 | s,@prefix@,$prefix,;t t |
---|
| 11871 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 11872 | s,@bindir@,$bindir,;t t |
---|
| 11873 | s,@sbindir@,$sbindir,;t t |
---|
| 11874 | s,@libexecdir@,$libexecdir,;t t |
---|
| 11875 | s,@datadir@,$datadir,;t t |
---|
| 11876 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 11877 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 11878 | s,@localstatedir@,$localstatedir,;t t |
---|
| 11879 | s,@libdir@,$libdir,;t t |
---|
| 11880 | s,@includedir@,$includedir,;t t |
---|
| 11881 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 11882 | s,@infodir@,$infodir,;t t |
---|
| 11883 | s,@mandir@,$mandir,;t t |
---|
| 11884 | s,@build_alias@,$build_alias,;t t |
---|
| 11885 | s,@host_alias@,$host_alias,;t t |
---|
| 11886 | s,@target_alias@,$target_alias,;t t |
---|
| 11887 | s,@DEFS@,$DEFS,;t t |
---|
| 11888 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 11889 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 11890 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 11891 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 11892 | s,@build@,$build,;t t |
---|
| 11893 | s,@build_cpu@,$build_cpu,;t t |
---|
| 11894 | s,@build_vendor@,$build_vendor,;t t |
---|
| 11895 | s,@build_os@,$build_os,;t t |
---|
| 11896 | s,@host@,$host,;t t |
---|
| 11897 | s,@host_cpu@,$host_cpu,;t t |
---|
| 11898 | s,@host_vendor@,$host_vendor,;t t |
---|
| 11899 | s,@host_os@,$host_os,;t t |
---|
| 11900 | s,@target@,$target,;t t |
---|
| 11901 | s,@target_cpu@,$target_cpu,;t t |
---|
| 11902 | s,@target_vendor@,$target_vendor,;t t |
---|
| 11903 | s,@target_os@,$target_os,;t t |
---|
[1956] | 11904 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 11905 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 11906 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 11907 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 11908 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 11909 | s,@VERSION@,$VERSION,;t t |
---|
| 11910 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 11911 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 11912 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 11913 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 11914 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 11915 | s,@install_sh@,$install_sh,;t t |
---|
| 11916 | s,@STRIP@,$STRIP,;t t |
---|
| 11917 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 11918 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 11919 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 11920 | s,@AWK@,$AWK,;t t |
---|
| 11921 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 11922 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
[5475] | 11923 | s,@AMTAR@,$AMTAR,;t t |
---|
| 11924 | s,@am__tar@,$am__tar,;t t |
---|
| 11925 | s,@am__untar@,$am__untar,;t t |
---|
[1956] | 11926 | s,@CXX@,$CXX,;t t |
---|
| 11927 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 11928 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 11929 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 11930 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 11931 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 11932 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 11933 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 11934 | s,@am__include@,$am__include,;t t |
---|
| 11935 | s,@am__quote@,$am__quote,;t t |
---|
| 11936 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 11937 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 11938 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 11939 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 11940 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 11941 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
[5463] | 11942 | s,@RANLIB@,$RANLIB,;t t |
---|
| 11943 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
[1956] | 11944 | s,@CC@,$CC,;t t |
---|
| 11945 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 11946 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 11947 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 11948 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 11949 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
[5463] | 11950 | s,@CPP@,$CPP,;t t |
---|
[5450] | 11951 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 11952 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 11953 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 11954 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3558] | 11955 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
| 11956 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
[3219] | 11957 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 11958 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 11959 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[3789] | 11960 | s,@GPROF@,$GPROF,;t t |
---|
[4130] | 11961 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
[2989] | 11962 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[5276] | 11963 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 11964 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 11965 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 11966 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[3099] | 11967 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 11968 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 11969 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 11970 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[1956] | 11971 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 11972 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 11973 | CEOF |
---|
| 11974 | |
---|
| 11975 | _ACEOF |
---|
| 11976 | |
---|
| 11977 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 11978 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 11979 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 11980 | ac_max_sed_lines=48 |
---|
| 11981 | ac_sed_frag=1 # Number of current file. |
---|
| 11982 | ac_beg=1 # First line for current file. |
---|
| 11983 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 11984 | ac_more_lines=: |
---|
| 11985 | ac_sed_cmds= |
---|
| 11986 | while $ac_more_lines; do |
---|
| 11987 | if test $ac_beg -gt 1; then |
---|
| 11988 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 11989 | else |
---|
| 11990 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 11991 | fi |
---|
| 11992 | if test ! -s $tmp/subs.frag; then |
---|
| 11993 | ac_more_lines=false |
---|
| 11994 | else |
---|
| 11995 | # The purpose of the label and of the branching condition is to |
---|
| 11996 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 11997 | # is no need to browse any of the substitutions). |
---|
| 11998 | # These are the two extra sed commands mentioned above. |
---|
| 11999 | (echo ':t |
---|
| 12000 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 12001 | if test -z "$ac_sed_cmds"; then |
---|
| 12002 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 12003 | else |
---|
| 12004 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 12005 | fi |
---|
| 12006 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 12007 | ac_beg=$ac_end |
---|
| 12008 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 12009 | fi |
---|
| 12010 | done |
---|
| 12011 | if test -z "$ac_sed_cmds"; then |
---|
| 12012 | ac_sed_cmds=cat |
---|
| 12013 | fi |
---|
| 12014 | fi # test -n "$CONFIG_FILES" |
---|
| 12015 | |
---|
| 12016 | _ACEOF |
---|
| 12017 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 12018 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 12019 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 12020 | case $ac_file in |
---|
| 12021 | - | *:- | *:-:* ) # input from stdin |
---|
| 12022 | cat >$tmp/stdin |
---|
| 12023 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 12024 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 12025 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 12026 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 12027 | * ) ac_file_in=$ac_file.in ;; |
---|
| 12028 | esac |
---|
| 12029 | |
---|
| 12030 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 12031 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 12032 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12033 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 12034 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 12035 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 12036 | . : '\(.\)' 2>/dev/null || |
---|
| 12037 | echo X"$ac_file" | |
---|
| 12038 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12039 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12040 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12041 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12042 | s/.*/./; q'` |
---|
| 12043 | { if $as_mkdir_p; then |
---|
| 12044 | mkdir -p "$ac_dir" |
---|
| 12045 | else |
---|
| 12046 | as_dir="$ac_dir" |
---|
| 12047 | as_dirs= |
---|
| 12048 | while test ! -d "$as_dir"; do |
---|
| 12049 | as_dirs="$as_dir $as_dirs" |
---|
| 12050 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 12051 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12052 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 12053 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 12054 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 12055 | . : '\(.\)' 2>/dev/null || |
---|
| 12056 | echo X"$as_dir" | |
---|
| 12057 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12058 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12059 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12060 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12061 | s/.*/./; q'` |
---|
| 12062 | done |
---|
| 12063 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 12064 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 12065 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 12066 | { (exit 1); exit 1; }; }; } |
---|
| 12067 | |
---|
| 12068 | ac_builddir=. |
---|
| 12069 | |
---|
| 12070 | if test "$ac_dir" != .; then |
---|
| 12071 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 12072 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 12073 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 12074 | else |
---|
| 12075 | ac_dir_suffix= ac_top_builddir= |
---|
| 12076 | fi |
---|
| 12077 | |
---|
| 12078 | case $srcdir in |
---|
| 12079 | .) # No --srcdir option. We are building in place. |
---|
| 12080 | ac_srcdir=. |
---|
| 12081 | if test -z "$ac_top_builddir"; then |
---|
| 12082 | ac_top_srcdir=. |
---|
| 12083 | else |
---|
| 12084 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 12085 | fi ;; |
---|
| 12086 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 12087 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 12088 | ac_top_srcdir=$srcdir ;; |
---|
| 12089 | *) # Relative path. |
---|
| 12090 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 12091 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 12092 | esac |
---|
| 12093 | |
---|
| 12094 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 12095 | # the directories may not exist. |
---|
| 12096 | case `pwd` in |
---|
| 12097 | .) ac_abs_builddir="$ac_dir";; |
---|
| 12098 | *) |
---|
| 12099 | case "$ac_dir" in |
---|
| 12100 | .) ac_abs_builddir=`pwd`;; |
---|
| 12101 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 12102 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 12103 | esac;; |
---|
| 12104 | esac |
---|
| 12105 | case $ac_abs_builddir in |
---|
| 12106 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 12107 | *) |
---|
| 12108 | case ${ac_top_builddir}. in |
---|
| 12109 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 12110 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 12111 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 12112 | esac;; |
---|
| 12113 | esac |
---|
| 12114 | case $ac_abs_builddir in |
---|
| 12115 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 12116 | *) |
---|
| 12117 | case $ac_srcdir in |
---|
| 12118 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 12119 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 12120 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 12121 | esac;; |
---|
| 12122 | esac |
---|
| 12123 | case $ac_abs_builddir in |
---|
| 12124 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 12125 | *) |
---|
| 12126 | case $ac_top_srcdir in |
---|
| 12127 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 12128 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 12129 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 12130 | esac;; |
---|
| 12131 | esac |
---|
| 12132 | |
---|
| 12133 | |
---|
| 12134 | case $INSTALL in |
---|
| 12135 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 12136 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 12137 | esac |
---|
| 12138 | |
---|
[5588] | 12139 | if test x"$ac_file" != x-; then |
---|
| 12140 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 12141 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 12142 | rm -f "$ac_file" |
---|
| 12143 | fi |
---|
[1956] | 12144 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 12145 | # use $as_me), people would be surprised to read: |
---|
| 12146 | # /* config.h. Generated by config.status. */ |
---|
| 12147 | if test x"$ac_file" = x-; then |
---|
| 12148 | configure_input= |
---|
| 12149 | else |
---|
| 12150 | configure_input="$ac_file. " |
---|
| 12151 | fi |
---|
| 12152 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 12153 | sed 's,.*/,,'` by configure." |
---|
| 12154 | |
---|
| 12155 | # First look for the input files in the build tree, otherwise in the |
---|
| 12156 | # src tree. |
---|
| 12157 | ac_file_inputs=`IFS=: |
---|
| 12158 | for f in $ac_file_in; do |
---|
| 12159 | case $f in |
---|
| 12160 | -) echo $tmp/stdin ;; |
---|
| 12161 | [\\/$]*) |
---|
| 12162 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 12163 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 12164 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 12165 | { (exit 1); exit 1; }; } |
---|
| 12166 | echo "$f";; |
---|
| 12167 | *) # Relative |
---|
| 12168 | if test -f "$f"; then |
---|
| 12169 | # Build tree |
---|
| 12170 | echo "$f" |
---|
| 12171 | elif test -f "$srcdir/$f"; then |
---|
| 12172 | # Source tree |
---|
| 12173 | echo "$srcdir/$f" |
---|
| 12174 | else |
---|
| 12175 | # /dev/null tree |
---|
| 12176 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 12177 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 12178 | { (exit 1); exit 1; }; } |
---|
| 12179 | fi;; |
---|
| 12180 | esac |
---|
| 12181 | done` || { (exit 1); exit 1; } |
---|
| 12182 | _ACEOF |
---|
| 12183 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 12184 | sed "$ac_vpsub |
---|
| 12185 | $extrasub |
---|
| 12186 | _ACEOF |
---|
| 12187 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 12188 | :t |
---|
| 12189 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 12190 | s,@configure_input@,$configure_input,;t t |
---|
| 12191 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 12192 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 12193 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 12194 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 12195 | s,@builddir@,$ac_builddir,;t t |
---|
| 12196 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 12197 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 12198 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 12199 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 12200 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 12201 | rm -f $tmp/stdin |
---|
| 12202 | if test x"$ac_file" != x-; then |
---|
| 12203 | mv $tmp/out $ac_file |
---|
| 12204 | else |
---|
| 12205 | cat $tmp/out |
---|
| 12206 | rm -f $tmp/out |
---|
| 12207 | fi |
---|
| 12208 | |
---|
| 12209 | done |
---|
| 12210 | _ACEOF |
---|
| 12211 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 12212 | |
---|
| 12213 | # |
---|
| 12214 | # CONFIG_HEADER section. |
---|
| 12215 | # |
---|
| 12216 | |
---|
| 12217 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 12218 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 12219 | # |
---|
| 12220 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 12221 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 12222 | ac_dB='[ ].*$,\1#\2' |
---|
| 12223 | ac_dC=' ' |
---|
| 12224 | ac_dD=',;t' |
---|
| 12225 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 12226 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 12227 | ac_uB='$,\1#\2define\3' |
---|
| 12228 | ac_uC=' ' |
---|
| 12229 | ac_uD=',;t' |
---|
| 12230 | |
---|
| 12231 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 12232 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 12233 | case $ac_file in |
---|
| 12234 | - | *:- | *:-:* ) # input from stdin |
---|
| 12235 | cat >$tmp/stdin |
---|
| 12236 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 12237 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 12238 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 12239 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 12240 | * ) ac_file_in=$ac_file.in ;; |
---|
| 12241 | esac |
---|
| 12242 | |
---|
| 12243 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 12244 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 12245 | |
---|
| 12246 | # First look for the input files in the build tree, otherwise in the |
---|
| 12247 | # src tree. |
---|
| 12248 | ac_file_inputs=`IFS=: |
---|
| 12249 | for f in $ac_file_in; do |
---|
| 12250 | case $f in |
---|
| 12251 | -) echo $tmp/stdin ;; |
---|
| 12252 | [\\/$]*) |
---|
| 12253 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 12254 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 12255 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 12256 | { (exit 1); exit 1; }; } |
---|
| 12257 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 12258 | echo "$f";; |
---|
| 12259 | *) # Relative |
---|
| 12260 | if test -f "$f"; then |
---|
| 12261 | # Build tree |
---|
| 12262 | echo "$f" |
---|
| 12263 | elif test -f "$srcdir/$f"; then |
---|
| 12264 | # Source tree |
---|
| 12265 | echo "$srcdir/$f" |
---|
| 12266 | else |
---|
| 12267 | # /dev/null tree |
---|
| 12268 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 12269 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 12270 | { (exit 1); exit 1; }; } |
---|
| 12271 | fi;; |
---|
| 12272 | esac |
---|
| 12273 | done` || { (exit 1); exit 1; } |
---|
| 12274 | # Remove the trailing spaces. |
---|
| 12275 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 12276 | |
---|
| 12277 | _ACEOF |
---|
| 12278 | |
---|
| 12279 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 12280 | # `conftest.undefs', that substitutes the proper values into |
---|
| 12281 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 12282 | # templates, and the second `#undef' templates. |
---|
| 12283 | # And first: Protect against being on the right side of a sed subst in |
---|
| 12284 | # config.status. Protect against being in an unquoted here document |
---|
| 12285 | # in config.status. |
---|
| 12286 | rm -f conftest.defines conftest.undefs |
---|
| 12287 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 12288 | # Putting comments in sed scripts is not portable. |
---|
| 12289 | # |
---|
| 12290 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 12291 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 12292 | # See the Autoconf documentation for `clear'. |
---|
| 12293 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 12294 | s/[\\&,]/\\&/g |
---|
| 12295 | s,[\\$`],\\&,g |
---|
| 12296 | t clear |
---|
| 12297 | : clear |
---|
| 12298 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 12299 | t end |
---|
| 12300 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 12301 | : end |
---|
| 12302 | _ACEOF |
---|
| 12303 | # If some macros were called several times there might be several times |
---|
| 12304 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 12305 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 12306 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 12307 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 12308 | rm -f confdef2sed.sed |
---|
| 12309 | |
---|
| 12310 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 12311 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 12312 | # on some systems where configure will not decide to define it. |
---|
| 12313 | cat >>conftest.undefs <<\_ACEOF |
---|
| 12314 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 12315 | _ACEOF |
---|
| 12316 | |
---|
| 12317 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 12318 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 12319 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 12320 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 12321 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 12322 | echo ' :' >>$CONFIG_STATUS |
---|
| 12323 | rm -f conftest.tail |
---|
| 12324 | while grep . conftest.defines >/dev/null |
---|
| 12325 | do |
---|
| 12326 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 12327 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 12328 | # Speed up: don't consider the non `#define' lines. |
---|
| 12329 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 12330 | # Work around the forget-to-reset-the-flag bug. |
---|
| 12331 | echo 't clr' >>$CONFIG_STATUS |
---|
| 12332 | echo ': clr' >>$CONFIG_STATUS |
---|
| 12333 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 12334 | echo 'CEOF |
---|
| 12335 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 12336 | rm -f $tmp/in |
---|
| 12337 | mv $tmp/out $tmp/in |
---|
| 12338 | ' >>$CONFIG_STATUS |
---|
| 12339 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 12340 | rm -f conftest.defines |
---|
| 12341 | mv conftest.tail conftest.defines |
---|
| 12342 | done |
---|
| 12343 | rm -f conftest.defines |
---|
| 12344 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 12345 | echo >>$CONFIG_STATUS |
---|
| 12346 | |
---|
| 12347 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 12348 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 12349 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 12350 | rm -f conftest.tail |
---|
| 12351 | while grep . conftest.undefs >/dev/null |
---|
| 12352 | do |
---|
| 12353 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 12354 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 12355 | # Speed up: don't consider the non `#undef' |
---|
| 12356 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 12357 | # Work around the forget-to-reset-the-flag bug. |
---|
| 12358 | echo 't clr' >>$CONFIG_STATUS |
---|
| 12359 | echo ': clr' >>$CONFIG_STATUS |
---|
| 12360 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 12361 | echo 'CEOF |
---|
| 12362 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 12363 | rm -f $tmp/in |
---|
| 12364 | mv $tmp/out $tmp/in |
---|
| 12365 | ' >>$CONFIG_STATUS |
---|
| 12366 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 12367 | rm -f conftest.undefs |
---|
| 12368 | mv conftest.tail conftest.undefs |
---|
| 12369 | done |
---|
| 12370 | rm -f conftest.undefs |
---|
| 12371 | |
---|
| 12372 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 12373 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 12374 | # use $as_me), people would be surprised to read: |
---|
| 12375 | # /* config.h. Generated by config.status. */ |
---|
| 12376 | if test x"$ac_file" = x-; then |
---|
| 12377 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 12378 | else |
---|
| 12379 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 12380 | fi |
---|
| 12381 | cat $tmp/in >>$tmp/config.h |
---|
| 12382 | rm -f $tmp/in |
---|
| 12383 | if test x"$ac_file" != x-; then |
---|
| 12384 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 12385 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 12386 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 12387 | else |
---|
| 12388 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 12389 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12390 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 12391 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 12392 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 12393 | . : '\(.\)' 2>/dev/null || |
---|
| 12394 | echo X"$ac_file" | |
---|
| 12395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12396 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12397 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12398 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12399 | s/.*/./; q'` |
---|
| 12400 | { if $as_mkdir_p; then |
---|
| 12401 | mkdir -p "$ac_dir" |
---|
| 12402 | else |
---|
| 12403 | as_dir="$ac_dir" |
---|
| 12404 | as_dirs= |
---|
| 12405 | while test ! -d "$as_dir"; do |
---|
| 12406 | as_dirs="$as_dir $as_dirs" |
---|
| 12407 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 12408 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12409 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 12410 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 12411 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 12412 | . : '\(.\)' 2>/dev/null || |
---|
| 12413 | echo X"$as_dir" | |
---|
| 12414 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12415 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12416 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12417 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12418 | s/.*/./; q'` |
---|
| 12419 | done |
---|
| 12420 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 12421 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 12422 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 12423 | { (exit 1); exit 1; }; }; } |
---|
| 12424 | |
---|
| 12425 | rm -f $ac_file |
---|
| 12426 | mv $tmp/config.h $ac_file |
---|
| 12427 | fi |
---|
| 12428 | else |
---|
| 12429 | cat $tmp/config.h |
---|
| 12430 | rm -f $tmp/config.h |
---|
| 12431 | fi |
---|
| 12432 | # Compute $ac_file's index in $config_headers. |
---|
| 12433 | _am_stamp_count=1 |
---|
| 12434 | for _am_header in $config_headers :; do |
---|
| 12435 | case $_am_header in |
---|
| 12436 | $ac_file | $ac_file:* ) |
---|
| 12437 | break ;; |
---|
| 12438 | * ) |
---|
| 12439 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 12440 | esac |
---|
| 12441 | done |
---|
| 12442 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 12443 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12444 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 12445 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 12446 | X$ac_file : 'X\(/\)' \| \ |
---|
| 12447 | . : '\(.\)' 2>/dev/null || |
---|
| 12448 | echo X$ac_file | |
---|
| 12449 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12450 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12451 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12452 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12453 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 12454 | done |
---|
| 12455 | _ACEOF |
---|
| 12456 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 12457 | |
---|
| 12458 | # |
---|
| 12459 | # CONFIG_COMMANDS section. |
---|
| 12460 | # |
---|
| 12461 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 12462 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 12463 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 12464 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 12465 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12466 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 12467 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 12468 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 12469 | . : '\(.\)' 2>/dev/null || |
---|
| 12470 | echo X"$ac_dest" | |
---|
| 12471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12472 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12473 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12474 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12475 | s/.*/./; q'` |
---|
| 12476 | { if $as_mkdir_p; then |
---|
| 12477 | mkdir -p "$ac_dir" |
---|
| 12478 | else |
---|
| 12479 | as_dir="$ac_dir" |
---|
| 12480 | as_dirs= |
---|
| 12481 | while test ! -d "$as_dir"; do |
---|
| 12482 | as_dirs="$as_dir $as_dirs" |
---|
| 12483 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 12484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12485 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 12486 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 12487 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 12488 | . : '\(.\)' 2>/dev/null || |
---|
| 12489 | echo X"$as_dir" | |
---|
| 12490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12491 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12492 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12493 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12494 | s/.*/./; q'` |
---|
| 12495 | done |
---|
| 12496 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 12497 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 12498 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 12499 | { (exit 1); exit 1; }; }; } |
---|
| 12500 | |
---|
| 12501 | ac_builddir=. |
---|
| 12502 | |
---|
| 12503 | if test "$ac_dir" != .; then |
---|
| 12504 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 12505 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 12506 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 12507 | else |
---|
| 12508 | ac_dir_suffix= ac_top_builddir= |
---|
| 12509 | fi |
---|
| 12510 | |
---|
| 12511 | case $srcdir in |
---|
| 12512 | .) # No --srcdir option. We are building in place. |
---|
| 12513 | ac_srcdir=. |
---|
| 12514 | if test -z "$ac_top_builddir"; then |
---|
| 12515 | ac_top_srcdir=. |
---|
| 12516 | else |
---|
| 12517 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 12518 | fi ;; |
---|
| 12519 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 12520 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 12521 | ac_top_srcdir=$srcdir ;; |
---|
| 12522 | *) # Relative path. |
---|
| 12523 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 12524 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 12525 | esac |
---|
| 12526 | |
---|
| 12527 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 12528 | # the directories may not exist. |
---|
| 12529 | case `pwd` in |
---|
| 12530 | .) ac_abs_builddir="$ac_dir";; |
---|
| 12531 | *) |
---|
| 12532 | case "$ac_dir" in |
---|
| 12533 | .) ac_abs_builddir=`pwd`;; |
---|
| 12534 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 12535 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 12536 | esac;; |
---|
| 12537 | esac |
---|
| 12538 | case $ac_abs_builddir in |
---|
| 12539 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 12540 | *) |
---|
| 12541 | case ${ac_top_builddir}. in |
---|
| 12542 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 12543 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 12544 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 12545 | esac;; |
---|
| 12546 | esac |
---|
| 12547 | case $ac_abs_builddir in |
---|
| 12548 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 12549 | *) |
---|
| 12550 | case $ac_srcdir in |
---|
| 12551 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 12552 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 12553 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 12554 | esac;; |
---|
| 12555 | esac |
---|
| 12556 | case $ac_abs_builddir in |
---|
| 12557 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 12558 | *) |
---|
| 12559 | case $ac_top_srcdir in |
---|
| 12560 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 12561 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 12562 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 12563 | esac;; |
---|
| 12564 | esac |
---|
| 12565 | |
---|
| 12566 | |
---|
| 12567 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 12568 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 12569 | case $ac_dest in |
---|
| 12570 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 12571 | # Strip MF so we end up with the name of the file. |
---|
| 12572 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 12573 | # Check whether this is an Automake generated Makefile or not. |
---|
| 12574 | # We used to match only the files named `Makefile.in', but |
---|
| 12575 | # some people rename them; so instead we look at the file content. |
---|
| 12576 | # Grep'ing the first line is not enough: some people post-process |
---|
| 12577 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 12578 | # So let's grep whole file. |
---|
| 12579 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 12580 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 12581 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12582 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 12583 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 12584 | X"$mf" : 'X\(/\)' \| \ |
---|
| 12585 | . : '\(.\)' 2>/dev/null || |
---|
| 12586 | echo X"$mf" | |
---|
| 12587 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12588 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12589 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12590 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12591 | s/.*/./; q'` |
---|
| 12592 | else |
---|
| 12593 | continue |
---|
| 12594 | fi |
---|
[5475] | 12595 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
| 12596 | # from the Makefile without running `make'. |
---|
[4826] | 12597 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 12598 | test -z "$DEPDIR" && continue |
---|
[5475] | 12599 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
| 12600 | test -z "am__include" && continue |
---|
| 12601 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
[1956] | 12602 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[4826] | 12603 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[5475] | 12604 | # Find all dependency output files, they are included files with |
---|
| 12605 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
| 12606 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
| 12607 | # expansion. |
---|
| 12608 | for file in `sed -n " |
---|
| 12609 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
[1956] | 12610 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 12611 | # Make sure the directory exists. |
---|
| 12612 | test -f "$dirpart/$file" && continue |
---|
| 12613 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 12614 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12615 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 12616 | X"$file" : 'X\(//\)$' \| \ |
---|
| 12617 | X"$file" : 'X\(/\)' \| \ |
---|
| 12618 | . : '\(.\)' 2>/dev/null || |
---|
| 12619 | echo X"$file" | |
---|
| 12620 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12621 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12622 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12623 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12624 | s/.*/./; q'` |
---|
| 12625 | { if $as_mkdir_p; then |
---|
| 12626 | mkdir -p $dirpart/$fdir |
---|
| 12627 | else |
---|
| 12628 | as_dir=$dirpart/$fdir |
---|
| 12629 | as_dirs= |
---|
| 12630 | while test ! -d "$as_dir"; do |
---|
| 12631 | as_dirs="$as_dir $as_dirs" |
---|
| 12632 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 12633 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 12634 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 12635 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 12636 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 12637 | . : '\(.\)' 2>/dev/null || |
---|
| 12638 | echo X"$as_dir" | |
---|
| 12639 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 12640 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 12641 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 12642 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 12643 | s/.*/./; q'` |
---|
| 12644 | done |
---|
| 12645 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 12646 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 12647 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 12648 | { (exit 1); exit 1; }; }; } |
---|
| 12649 | |
---|
| 12650 | # echo "creating $dirpart/$file" |
---|
| 12651 | echo '# dummy' > "$dirpart/$file" |
---|
| 12652 | done |
---|
| 12653 | done |
---|
| 12654 | ;; |
---|
| 12655 | esac |
---|
| 12656 | done |
---|
| 12657 | _ACEOF |
---|
| 12658 | |
---|
| 12659 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 12660 | |
---|
| 12661 | { (exit 0); exit 0; } |
---|
| 12662 | _ACEOF |
---|
| 12663 | chmod +x $CONFIG_STATUS |
---|
| 12664 | ac_clean_files=$ac_clean_files_save |
---|
| 12665 | |
---|
| 12666 | |
---|
| 12667 | # configure is writing to config.log, and then calls config.status. |
---|
| 12668 | # config.status does its own redirection, appending to config.log. |
---|
| 12669 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 12670 | # by configure, so config.status won't be able to write to it; its |
---|
| 12671 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 12672 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 12673 | # appended to by config.status. When coming back to configure, we |
---|
| 12674 | # need to make the FD available again. |
---|
| 12675 | if test "$no_create" != yes; then |
---|
| 12676 | ac_cs_success=: |
---|
| 12677 | ac_config_status_args= |
---|
| 12678 | test "$silent" = yes && |
---|
| 12679 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 12680 | exec 5>/dev/null |
---|
| 12681 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 12682 | exec 5>>config.log |
---|
| 12683 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 12684 | # would make configure fail if this is the last instruction. |
---|
| 12685 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 12686 | fi |
---|
| 12687 | |
---|