[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[4759] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.3.0-pre-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' |
---|
[4759] | 272 | PACKAGE_VERSION='0.3.0-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.3.0-pre-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 | |
---|
[4130] | 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_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 |
---|
[4759] | 791 | \`configure' configures orxonox 0.3.0-pre-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 |
---|
[4759] | 858 | short | recursive ) echo "Configuration of orxonox 0.3.0-pre-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. |
---|
[3592] | 869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
| 870 | differently on the many modules of orxonox. |
---|
[3424] | 871 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[3788] | 872 | --enable-profile builds orxonox with profiling support |
---|
[3863] | 873 | --enable-efence builds orxonox with efence support |
---|
[3558] | 874 | --enable-documentation also builds the sDocumentation while make from |
---|
| 875 | srcdir |
---|
[1956] | 876 | |
---|
[3173] | 877 | Optional Packages: |
---|
| 878 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 879 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 880 | --without-gtk Prevents GTK from being loaded |
---|
[3423] | 881 | --without-curl Prevents libcURL from being loaded |
---|
[3173] | 882 | |
---|
[1956] | 883 | Some influential environment variables: |
---|
| 884 | CXX C++ compiler command |
---|
| 885 | CXXFLAGS C++ compiler flags |
---|
| 886 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 887 | nonstandard directory <lib dir> |
---|
| 888 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 889 | headers in a nonstandard directory <include dir> |
---|
| 890 | CC C compiler command |
---|
| 891 | CFLAGS C compiler flags |
---|
| 892 | CPP C preprocessor |
---|
| 893 | |
---|
| 894 | Use these variables to override the choices made by `configure' or to help |
---|
| 895 | it to find libraries and programs with nonstandard names/locations. |
---|
| 896 | |
---|
[3240] | 897 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 898 | _ACEOF |
---|
| 899 | fi |
---|
| 900 | |
---|
| 901 | if test "$ac_init_help" = "recursive"; then |
---|
| 902 | # If there are subdirs, report their specific --help. |
---|
| 903 | ac_popdir=`pwd` |
---|
| 904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 905 | test -d $ac_dir || continue |
---|
| 906 | ac_builddir=. |
---|
| 907 | |
---|
| 908 | if test "$ac_dir" != .; then |
---|
| 909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 910 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 912 | else |
---|
| 913 | ac_dir_suffix= ac_top_builddir= |
---|
| 914 | fi |
---|
| 915 | |
---|
| 916 | case $srcdir in |
---|
| 917 | .) # No --srcdir option. We are building in place. |
---|
| 918 | ac_srcdir=. |
---|
| 919 | if test -z "$ac_top_builddir"; then |
---|
| 920 | ac_top_srcdir=. |
---|
| 921 | else |
---|
| 922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 923 | fi ;; |
---|
| 924 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 925 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 926 | ac_top_srcdir=$srcdir ;; |
---|
| 927 | *) # Relative path. |
---|
| 928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 930 | esac |
---|
| 931 | |
---|
| 932 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 933 | # the directories may not exist. |
---|
| 934 | case `pwd` in |
---|
| 935 | .) ac_abs_builddir="$ac_dir";; |
---|
| 936 | *) |
---|
| 937 | case "$ac_dir" in |
---|
| 938 | .) ac_abs_builddir=`pwd`;; |
---|
| 939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 941 | esac;; |
---|
| 942 | esac |
---|
| 943 | case $ac_abs_builddir in |
---|
| 944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 945 | *) |
---|
| 946 | case ${ac_top_builddir}. in |
---|
| 947 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 950 | esac;; |
---|
| 951 | esac |
---|
| 952 | case $ac_abs_builddir in |
---|
| 953 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 954 | *) |
---|
| 955 | case $ac_srcdir in |
---|
| 956 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 959 | esac;; |
---|
| 960 | esac |
---|
| 961 | case $ac_abs_builddir in |
---|
| 962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 963 | *) |
---|
| 964 | case $ac_top_srcdir in |
---|
| 965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 968 | esac;; |
---|
| 969 | esac |
---|
| 970 | |
---|
| 971 | cd $ac_dir |
---|
| 972 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 973 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 974 | echo |
---|
| 975 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 976 | elif test -f $ac_srcdir/configure; then |
---|
| 977 | echo |
---|
| 978 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 979 | elif test -f $ac_srcdir/configure.ac || |
---|
| 980 | test -f $ac_srcdir/configure.in; then |
---|
| 981 | echo |
---|
| 982 | $ac_configure --help |
---|
| 983 | else |
---|
| 984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 985 | fi |
---|
| 986 | cd $ac_popdir |
---|
| 987 | done |
---|
| 988 | fi |
---|
| 989 | |
---|
| 990 | test -n "$ac_init_help" && exit 0 |
---|
| 991 | if $ac_init_version; then |
---|
| 992 | cat <<\_ACEOF |
---|
[4759] | 993 | orxonox configure 0.3.0-pre-alpha |
---|
[1956] | 994 | generated by GNU Autoconf 2.59 |
---|
| 995 | |
---|
| 996 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 997 | This configure script is free software; the Free Software Foundation |
---|
| 998 | gives unlimited permission to copy, distribute and modify it. |
---|
| 999 | _ACEOF |
---|
| 1000 | exit 0 |
---|
| 1001 | fi |
---|
| 1002 | exec 5>config.log |
---|
| 1003 | cat >&5 <<_ACEOF |
---|
| 1004 | This file contains any messages produced by compilers while |
---|
| 1005 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1006 | |
---|
[4759] | 1007 | It was created by orxonox $as_me 0.3.0-pre-alpha, which was |
---|
[1956] | 1008 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1009 | |
---|
| 1010 | $ $0 $@ |
---|
| 1011 | |
---|
| 1012 | _ACEOF |
---|
| 1013 | { |
---|
| 1014 | cat <<_ASUNAME |
---|
| 1015 | ## --------- ## |
---|
| 1016 | ## Platform. ## |
---|
| 1017 | ## --------- ## |
---|
| 1018 | |
---|
| 1019 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1020 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1021 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1022 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1023 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1024 | |
---|
| 1025 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1026 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1027 | |
---|
| 1028 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1029 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1030 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1031 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1032 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1033 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1034 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1035 | |
---|
| 1036 | _ASUNAME |
---|
| 1037 | |
---|
| 1038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1039 | for as_dir in $PATH |
---|
| 1040 | do |
---|
| 1041 | IFS=$as_save_IFS |
---|
| 1042 | test -z "$as_dir" && as_dir=. |
---|
| 1043 | echo "PATH: $as_dir" |
---|
| 1044 | done |
---|
| 1045 | |
---|
| 1046 | } >&5 |
---|
| 1047 | |
---|
| 1048 | cat >&5 <<_ACEOF |
---|
| 1049 | |
---|
| 1050 | |
---|
| 1051 | ## ----------- ## |
---|
| 1052 | ## Core tests. ## |
---|
| 1053 | ## ----------- ## |
---|
| 1054 | |
---|
| 1055 | _ACEOF |
---|
| 1056 | |
---|
| 1057 | |
---|
| 1058 | # Keep a trace of the command line. |
---|
| 1059 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1060 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1061 | # Also quote any args containing shell meta-characters. |
---|
| 1062 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1063 | ac_configure_args= |
---|
| 1064 | ac_configure_args0= |
---|
| 1065 | ac_configure_args1= |
---|
| 1066 | ac_sep= |
---|
| 1067 | ac_must_keep_next=false |
---|
| 1068 | for ac_pass in 1 2 |
---|
| 1069 | do |
---|
| 1070 | for ac_arg |
---|
| 1071 | do |
---|
| 1072 | case $ac_arg in |
---|
| 1073 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1074 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1075 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1076 | continue ;; |
---|
| 1077 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1078 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1079 | esac |
---|
| 1080 | case $ac_pass in |
---|
| 1081 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1082 | 2) |
---|
| 1083 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1084 | if test $ac_must_keep_next = true; then |
---|
| 1085 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1086 | else |
---|
| 1087 | case $ac_arg in |
---|
| 1088 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1089 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1090 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1091 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1092 | case "$ac_configure_args0 " in |
---|
| 1093 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1094 | esac |
---|
| 1095 | ;; |
---|
| 1096 | -* ) ac_must_keep_next=true ;; |
---|
| 1097 | esac |
---|
| 1098 | fi |
---|
| 1099 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1100 | # Get rid of the leading space. |
---|
| 1101 | ac_sep=" " |
---|
| 1102 | ;; |
---|
| 1103 | esac |
---|
| 1104 | done |
---|
| 1105 | done |
---|
| 1106 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1107 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1108 | |
---|
| 1109 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1110 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1111 | # would cause problems or look ugly. |
---|
| 1112 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1113 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1114 | trap 'exit_status=$? |
---|
| 1115 | # Save into config.log some information that might help in debugging. |
---|
| 1116 | { |
---|
| 1117 | echo |
---|
| 1118 | |
---|
| 1119 | cat <<\_ASBOX |
---|
| 1120 | ## ---------------- ## |
---|
| 1121 | ## Cache variables. ## |
---|
| 1122 | ## ---------------- ## |
---|
| 1123 | _ASBOX |
---|
| 1124 | echo |
---|
| 1125 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1126 | { |
---|
| 1127 | (set) 2>&1 | |
---|
| 1128 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1129 | *ac_space=\ *) |
---|
| 1130 | sed -n \ |
---|
| 1131 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1132 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1133 | ;; |
---|
| 1134 | *) |
---|
| 1135 | sed -n \ |
---|
| 1136 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1137 | ;; |
---|
| 1138 | esac; |
---|
| 1139 | } |
---|
| 1140 | echo |
---|
| 1141 | |
---|
| 1142 | cat <<\_ASBOX |
---|
| 1143 | ## ----------------- ## |
---|
| 1144 | ## Output variables. ## |
---|
| 1145 | ## ----------------- ## |
---|
| 1146 | _ASBOX |
---|
| 1147 | echo |
---|
| 1148 | for ac_var in $ac_subst_vars |
---|
| 1149 | do |
---|
| 1150 | eval ac_val=$`echo $ac_var` |
---|
| 1151 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1152 | done | sort |
---|
| 1153 | echo |
---|
| 1154 | |
---|
| 1155 | if test -n "$ac_subst_files"; then |
---|
| 1156 | cat <<\_ASBOX |
---|
| 1157 | ## ------------- ## |
---|
| 1158 | ## Output files. ## |
---|
| 1159 | ## ------------- ## |
---|
| 1160 | _ASBOX |
---|
| 1161 | echo |
---|
| 1162 | for ac_var in $ac_subst_files |
---|
| 1163 | do |
---|
| 1164 | eval ac_val=$`echo $ac_var` |
---|
| 1165 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1166 | done | sort |
---|
| 1167 | echo |
---|
| 1168 | fi |
---|
| 1169 | |
---|
| 1170 | if test -s confdefs.h; then |
---|
| 1171 | cat <<\_ASBOX |
---|
| 1172 | ## ----------- ## |
---|
| 1173 | ## confdefs.h. ## |
---|
| 1174 | ## ----------- ## |
---|
| 1175 | _ASBOX |
---|
| 1176 | echo |
---|
| 1177 | sed "/^$/d" confdefs.h | sort |
---|
| 1178 | echo |
---|
| 1179 | fi |
---|
| 1180 | test "$ac_signal" != 0 && |
---|
| 1181 | echo "$as_me: caught signal $ac_signal" |
---|
| 1182 | echo "$as_me: exit $exit_status" |
---|
| 1183 | } >&5 |
---|
| 1184 | rm -f core *.core && |
---|
| 1185 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1186 | exit $exit_status |
---|
| 1187 | ' 0 |
---|
| 1188 | for ac_signal in 1 2 13 15; do |
---|
| 1189 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1190 | done |
---|
| 1191 | ac_signal=0 |
---|
| 1192 | |
---|
| 1193 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1194 | rm -rf conftest* confdefs.h |
---|
| 1195 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1196 | echo >confdefs.h |
---|
| 1197 | |
---|
| 1198 | # Predefined preprocessor variables. |
---|
| 1199 | |
---|
| 1200 | cat >>confdefs.h <<_ACEOF |
---|
| 1201 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1202 | _ACEOF |
---|
| 1203 | |
---|
| 1204 | |
---|
| 1205 | cat >>confdefs.h <<_ACEOF |
---|
| 1206 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1207 | _ACEOF |
---|
| 1208 | |
---|
| 1209 | |
---|
| 1210 | cat >>confdefs.h <<_ACEOF |
---|
| 1211 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1212 | _ACEOF |
---|
| 1213 | |
---|
| 1214 | |
---|
| 1215 | cat >>confdefs.h <<_ACEOF |
---|
| 1216 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1217 | _ACEOF |
---|
| 1218 | |
---|
| 1219 | |
---|
| 1220 | cat >>confdefs.h <<_ACEOF |
---|
| 1221 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1222 | _ACEOF |
---|
| 1223 | |
---|
| 1224 | |
---|
| 1225 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1226 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1227 | if test -z "$CONFIG_SITE"; then |
---|
| 1228 | if test "x$prefix" != xNONE; then |
---|
| 1229 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1230 | else |
---|
| 1231 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1232 | fi |
---|
| 1233 | fi |
---|
| 1234 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1235 | if test -r "$ac_site_file"; then |
---|
| 1236 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1237 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1238 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1239 | . "$ac_site_file" |
---|
| 1240 | fi |
---|
| 1241 | done |
---|
| 1242 | |
---|
| 1243 | if test -r "$cache_file"; then |
---|
| 1244 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1245 | # files actually), so we avoid doing that. |
---|
| 1246 | if test -f "$cache_file"; then |
---|
| 1247 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1248 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1249 | case $cache_file in |
---|
| 1250 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1251 | *) . ./$cache_file;; |
---|
| 1252 | esac |
---|
| 1253 | fi |
---|
| 1254 | else |
---|
| 1255 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1256 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1257 | >$cache_file |
---|
| 1258 | fi |
---|
| 1259 | |
---|
| 1260 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1261 | # value. |
---|
| 1262 | ac_cache_corrupted=false |
---|
| 1263 | for ac_var in `(set) 2>&1 | |
---|
| 1264 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1265 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1266 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1267 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1268 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1269 | case $ac_old_set,$ac_new_set in |
---|
| 1270 | set,) |
---|
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1272 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1273 | ac_cache_corrupted=: ;; |
---|
| 1274 | ,set) |
---|
| 1275 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1276 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1277 | ac_cache_corrupted=: ;; |
---|
| 1278 | ,);; |
---|
| 1279 | *) |
---|
| 1280 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1281 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1282 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1283 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1284 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1285 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1286 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1287 | ac_cache_corrupted=: |
---|
| 1288 | fi;; |
---|
| 1289 | esac |
---|
| 1290 | # Pass precious variables to config.status. |
---|
| 1291 | if test "$ac_new_set" = set; then |
---|
| 1292 | case $ac_new_val in |
---|
| 1293 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1294 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1295 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1296 | esac |
---|
| 1297 | case " $ac_configure_args " in |
---|
| 1298 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1299 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1300 | esac |
---|
| 1301 | fi |
---|
| 1302 | done |
---|
| 1303 | if $ac_cache_corrupted; then |
---|
| 1304 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1305 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1306 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1307 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1308 | { (exit 1); exit 1; }; } |
---|
| 1309 | fi |
---|
| 1310 | |
---|
| 1311 | ac_ext=c |
---|
| 1312 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | |
---|
| 1341 | |
---|
| 1342 | |
---|
[2980] | 1343 | |
---|
[3424] | 1344 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1345 | ac_aux_dir= |
---|
| 1346 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1347 | if test -f $ac_dir/install-sh; then |
---|
| 1348 | ac_aux_dir=$ac_dir |
---|
| 1349 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1350 | break |
---|
| 1351 | elif test -f $ac_dir/install.sh; then |
---|
| 1352 | ac_aux_dir=$ac_dir |
---|
| 1353 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1354 | break |
---|
| 1355 | elif test -f $ac_dir/shtool; then |
---|
| 1356 | ac_aux_dir=$ac_dir |
---|
| 1357 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1358 | break |
---|
| 1359 | fi |
---|
| 1360 | done |
---|
| 1361 | if test -z "$ac_aux_dir"; then |
---|
| 1362 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1363 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1364 | { (exit 1); exit 1; }; } |
---|
| 1365 | fi |
---|
| 1366 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1367 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1368 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1369 | |
---|
[2980] | 1370 | # Make sure we can run config.sub. |
---|
| 1371 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1372 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1373 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1374 | { (exit 1); exit 1; }; } |
---|
| 1375 | |
---|
| 1376 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1377 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1378 | if test "${ac_cv_build+set}" = set; then |
---|
| 1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1380 | else |
---|
| 1381 | ac_cv_build_alias=$build_alias |
---|
| 1382 | test -z "$ac_cv_build_alias" && |
---|
| 1383 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1384 | test -z "$ac_cv_build_alias" && |
---|
| 1385 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1386 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1387 | { (exit 1); exit 1; }; } |
---|
| 1388 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1389 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1390 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1391 | { (exit 1); exit 1; }; } |
---|
| 1392 | |
---|
| 1393 | fi |
---|
| 1394 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1395 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1396 | build=$ac_cv_build |
---|
| 1397 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1398 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1399 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1400 | |
---|
| 1401 | |
---|
| 1402 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1403 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1404 | if test "${ac_cv_host+set}" = set; then |
---|
| 1405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1406 | else |
---|
| 1407 | ac_cv_host_alias=$host_alias |
---|
| 1408 | test -z "$ac_cv_host_alias" && |
---|
| 1409 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1410 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1411 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1412 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1413 | { (exit 1); exit 1; }; } |
---|
| 1414 | |
---|
| 1415 | fi |
---|
| 1416 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1417 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1418 | host=$ac_cv_host |
---|
| 1419 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1420 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1421 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1422 | |
---|
| 1423 | |
---|
| 1424 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1425 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1426 | if test "${ac_cv_target+set}" = set; then |
---|
| 1427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1428 | else |
---|
| 1429 | ac_cv_target_alias=$target_alias |
---|
| 1430 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1431 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1432 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1433 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1434 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1435 | { (exit 1); exit 1; }; } |
---|
| 1436 | |
---|
| 1437 | fi |
---|
| 1438 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1439 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1440 | target=$ac_cv_target |
---|
| 1441 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1442 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1443 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1444 | |
---|
| 1445 | |
---|
| 1446 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1447 | # will get canonicalized. |
---|
| 1448 | test -n "$target_alias" && |
---|
| 1449 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1450 | NONENONEs,x,x, && |
---|
| 1451 | program_prefix=${target_alias}- |
---|
| 1452 | |
---|
| 1453 | am__api_version="1.8" |
---|
[1956] | 1454 | # Find a good install program. We prefer a C program (faster), |
---|
| 1455 | # so one script is as good as another. But avoid the broken or |
---|
| 1456 | # incompatible versions: |
---|
| 1457 | # SysV /etc/install, /usr/sbin/install |
---|
| 1458 | # SunOS /usr/etc/install |
---|
| 1459 | # IRIX /sbin/install |
---|
| 1460 | # AIX /bin/install |
---|
| 1461 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1462 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1463 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1464 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1465 | # OS/2's system install, which has a completely different semantic |
---|
| 1466 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1467 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1468 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1469 | if test -z "$INSTALL"; then |
---|
| 1470 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1472 | else |
---|
| 1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1474 | for as_dir in $PATH |
---|
| 1475 | do |
---|
| 1476 | IFS=$as_save_IFS |
---|
| 1477 | test -z "$as_dir" && as_dir=. |
---|
| 1478 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1479 | case $as_dir/ in |
---|
| 1480 | ./ | .// | /cC/* | \ |
---|
| 1481 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1482 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1483 | /usr/ucb/* ) ;; |
---|
| 1484 | *) |
---|
| 1485 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1486 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1487 | # by default. |
---|
| 1488 | for ac_prog in ginstall scoinst install; do |
---|
| 1489 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1490 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1491 | if test $ac_prog = install && |
---|
| 1492 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1493 | # AIX install. It has an incompatible calling convention. |
---|
| 1494 | : |
---|
| 1495 | elif test $ac_prog = install && |
---|
| 1496 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1497 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1498 | : |
---|
| 1499 | else |
---|
| 1500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1501 | break 3 |
---|
| 1502 | fi |
---|
[1853] | 1503 | fi |
---|
[1956] | 1504 | done |
---|
| 1505 | done |
---|
| 1506 | ;; |
---|
| 1507 | esac |
---|
| 1508 | done |
---|
| 1509 | |
---|
| 1510 | |
---|
[1853] | 1511 | fi |
---|
[1956] | 1512 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1513 | INSTALL=$ac_cv_path_install |
---|
| 1514 | else |
---|
| 1515 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1516 | # path for INSTALL within a source directory, because that will |
---|
| 1517 | # break other packages using the cache if that directory is |
---|
| 1518 | # removed, or if the path is relative. |
---|
| 1519 | INSTALL=$ac_install_sh |
---|
| 1520 | fi |
---|
| 1521 | fi |
---|
| 1522 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1523 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1524 | |
---|
| 1525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1526 | # It thinks the first close brace ends the variable substitution. |
---|
| 1527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1528 | |
---|
| 1529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1530 | |
---|
| 1531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1532 | |
---|
| 1533 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1534 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1535 | # Just in case |
---|
| 1536 | sleep 1 |
---|
| 1537 | echo timestamp > conftest.file |
---|
| 1538 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1539 | # arguments. Must try -L first in case configure is actually a |
---|
| 1540 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1541 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1542 | # directory). |
---|
| 1543 | if ( |
---|
| 1544 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1545 | if test "$*" = "X"; then |
---|
| 1546 | # -L didn't work. |
---|
| 1547 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1548 | fi |
---|
| 1549 | rm -f conftest.file |
---|
| 1550 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1551 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1552 | |
---|
| 1553 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1554 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1555 | # broken ls alias from the environment. This has actually |
---|
| 1556 | # happened. Such a system could not be considered "sane". |
---|
| 1557 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1558 | alias in your environment" >&5 |
---|
| 1559 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1560 | alias in your environment" >&2;} |
---|
| 1561 | { (exit 1); exit 1; }; } |
---|
| 1562 | fi |
---|
| 1563 | |
---|
| 1564 | test "$2" = conftest.file |
---|
| 1565 | ) |
---|
| 1566 | then |
---|
| 1567 | # Ok. |
---|
| 1568 | : |
---|
[1853] | 1569 | else |
---|
[1956] | 1570 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1571 | Check your system clock" >&5 |
---|
| 1572 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1573 | Check your system clock" >&2;} |
---|
| 1574 | { (exit 1); exit 1; }; } |
---|
[1853] | 1575 | fi |
---|
[1956] | 1576 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1577 | echo "${ECHO_T}yes" >&6 |
---|
| 1578 | test "$program_prefix" != NONE && |
---|
| 1579 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1580 | # Use a double $ so make ignores it. |
---|
| 1581 | test "$program_suffix" != NONE && |
---|
| 1582 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1583 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1584 | # By default was `s,x,x', remove it if useless. |
---|
| 1585 | cat <<\_ACEOF >conftest.sed |
---|
| 1586 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1587 | _ACEOF |
---|
| 1588 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1589 | rm conftest.sed |
---|
[1853] | 1590 | |
---|
[1956] | 1591 | # expand $ac_aux_dir to an absolute path |
---|
| 1592 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1593 | |
---|
| 1594 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1595 | # Use eval to expand $SHELL |
---|
| 1596 | if eval "$MISSING --run true"; then |
---|
| 1597 | am_missing_run="$MISSING --run " |
---|
| 1598 | else |
---|
| 1599 | am_missing_run= |
---|
| 1600 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1601 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1602 | fi |
---|
| 1603 | |
---|
[4698] | 1604 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1605 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1606 | # argument. Indeed, we sometimes output rules like |
---|
| 1607 | # $(mkdir_p) $(somedir) |
---|
| 1608 | # where $(somedir) is conditionally defined. |
---|
| 1609 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1610 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1611 | mkdir_p='mkdir -p -- .' |
---|
| 1612 | else |
---|
| 1613 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1614 | # recognize any option. It will interpret all options as |
---|
| 1615 | # directories to create, and then abort because `.' already |
---|
| 1616 | # exists. |
---|
[4698] | 1617 | for d in ./-p ./--version; |
---|
[2706] | 1618 | do |
---|
| 1619 | test -d $d && rmdir $d |
---|
| 1620 | done |
---|
| 1621 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1622 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1623 | mkdir_p='$(mkinstalldirs)' |
---|
| 1624 | else |
---|
| 1625 | mkdir_p='$(install_sh) -d' |
---|
| 1626 | fi |
---|
| 1627 | fi |
---|
| 1628 | |
---|
[1956] | 1629 | for ac_prog in gawk mawk nawk awk |
---|
| 1630 | do |
---|
| 1631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1632 | set dummy $ac_prog; ac_word=$2 |
---|
| 1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1635 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1637 | else |
---|
| 1638 | if test -n "$AWK"; then |
---|
| 1639 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1640 | else |
---|
| 1641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1642 | for as_dir in $PATH |
---|
| 1643 | do |
---|
| 1644 | IFS=$as_save_IFS |
---|
| 1645 | test -z "$as_dir" && as_dir=. |
---|
| 1646 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1648 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1650 | break 2 |
---|
| 1651 | fi |
---|
| 1652 | done |
---|
| 1653 | done |
---|
| 1654 | |
---|
| 1655 | fi |
---|
| 1656 | fi |
---|
| 1657 | AWK=$ac_cv_prog_AWK |
---|
| 1658 | if test -n "$AWK"; then |
---|
| 1659 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1660 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1661 | else |
---|
| 1662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1663 | echo "${ECHO_T}no" >&6 |
---|
| 1664 | fi |
---|
| 1665 | |
---|
| 1666 | test -n "$AWK" && break |
---|
| 1667 | done |
---|
| 1668 | |
---|
| 1669 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1670 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1671 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1672 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1674 | else |
---|
| 1675 | cat >conftest.make <<\_ACEOF |
---|
| 1676 | all: |
---|
| 1677 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1678 | _ACEOF |
---|
| 1679 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1680 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1681 | if test -n "$ac_maketemp"; then |
---|
| 1682 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1683 | else |
---|
| 1684 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1685 | fi |
---|
| 1686 | rm -f conftest.make |
---|
| 1687 | fi |
---|
| 1688 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1689 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1690 | echo "${ECHO_T}yes" >&6 |
---|
| 1691 | SET_MAKE= |
---|
| 1692 | else |
---|
| 1693 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1694 | echo "${ECHO_T}no" >&6 |
---|
| 1695 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1696 | fi |
---|
| 1697 | |
---|
| 1698 | rm -rf .tst 2>/dev/null |
---|
| 1699 | mkdir .tst 2>/dev/null |
---|
| 1700 | if test -d .tst; then |
---|
| 1701 | am__leading_dot=. |
---|
| 1702 | else |
---|
| 1703 | am__leading_dot=_ |
---|
| 1704 | fi |
---|
| 1705 | rmdir .tst 2>/dev/null |
---|
| 1706 | |
---|
[2706] | 1707 | # test to see if srcdir already configured |
---|
[1956] | 1708 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1709 | test -f $srcdir/config.status; then |
---|
| 1710 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1711 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1712 | { (exit 1); exit 1; }; } |
---|
| 1713 | fi |
---|
| 1714 | |
---|
| 1715 | # test whether we have cygpath |
---|
| 1716 | if test -z "$CYGPATH_W"; then |
---|
| 1717 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1718 | CYGPATH_W='cygpath -w' |
---|
| 1719 | else |
---|
| 1720 | CYGPATH_W=echo |
---|
| 1721 | fi |
---|
| 1722 | fi |
---|
| 1723 | |
---|
| 1724 | |
---|
| 1725 | # Define the identity of the package. |
---|
| 1726 | PACKAGE='orxonox' |
---|
[4759] | 1727 | VERSION='0.3.0-pre-alpha' |
---|
[1956] | 1728 | |
---|
| 1729 | |
---|
| 1730 | cat >>confdefs.h <<_ACEOF |
---|
| 1731 | #define PACKAGE "$PACKAGE" |
---|
| 1732 | _ACEOF |
---|
| 1733 | |
---|
| 1734 | |
---|
| 1735 | cat >>confdefs.h <<_ACEOF |
---|
| 1736 | #define VERSION "$VERSION" |
---|
| 1737 | _ACEOF |
---|
| 1738 | |
---|
| 1739 | # Some tools Automake needs. |
---|
| 1740 | |
---|
| 1741 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1742 | |
---|
| 1743 | |
---|
| 1744 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1748 | |
---|
| 1749 | |
---|
| 1750 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1751 | |
---|
| 1752 | |
---|
| 1753 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1754 | |
---|
| 1755 | |
---|
| 1756 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1757 | |
---|
| 1758 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1759 | |
---|
| 1760 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1761 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1762 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1763 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1764 | if test "$cross_compiling" != no; then |
---|
| 1765 | if test -n "$ac_tool_prefix"; then |
---|
| 1766 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1767 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1770 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1772 | else |
---|
| 1773 | if test -n "$STRIP"; then |
---|
| 1774 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1775 | else |
---|
| 1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1777 | for as_dir in $PATH |
---|
| 1778 | do |
---|
| 1779 | IFS=$as_save_IFS |
---|
| 1780 | test -z "$as_dir" && as_dir=. |
---|
| 1781 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1783 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1785 | break 2 |
---|
| 1786 | fi |
---|
| 1787 | done |
---|
| 1788 | done |
---|
| 1789 | |
---|
| 1790 | fi |
---|
| 1791 | fi |
---|
| 1792 | STRIP=$ac_cv_prog_STRIP |
---|
| 1793 | if test -n "$STRIP"; then |
---|
| 1794 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1795 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1796 | else |
---|
| 1797 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1798 | echo "${ECHO_T}no" >&6 |
---|
| 1799 | fi |
---|
| 1800 | |
---|
| 1801 | fi |
---|
| 1802 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1803 | ac_ct_STRIP=$STRIP |
---|
| 1804 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1805 | set dummy strip; ac_word=$2 |
---|
| 1806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1808 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1810 | else |
---|
| 1811 | if test -n "$ac_ct_STRIP"; then |
---|
| 1812 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1813 | else |
---|
| 1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1815 | for as_dir in $PATH |
---|
| 1816 | do |
---|
| 1817 | IFS=$as_save_IFS |
---|
| 1818 | test -z "$as_dir" && as_dir=. |
---|
| 1819 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1821 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1823 | break 2 |
---|
| 1824 | fi |
---|
| 1825 | done |
---|
| 1826 | done |
---|
| 1827 | |
---|
| 1828 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1829 | fi |
---|
| 1830 | fi |
---|
| 1831 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1832 | if test -n "$ac_ct_STRIP"; then |
---|
| 1833 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1834 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1835 | else |
---|
| 1836 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1837 | echo "${ECHO_T}no" >&6 |
---|
| 1838 | fi |
---|
| 1839 | |
---|
| 1840 | STRIP=$ac_ct_STRIP |
---|
| 1841 | else |
---|
| 1842 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1843 | fi |
---|
| 1844 | |
---|
| 1845 | fi |
---|
| 1846 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1847 | |
---|
| 1848 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1849 | # some platforms. |
---|
| 1850 | |
---|
| 1851 | |
---|
| 1852 | |
---|
| 1853 | |
---|
[2627] | 1854 | |
---|
[1959] | 1855 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1856 | |
---|
| 1857 | |
---|
[3424] | 1858 | ######################### |
---|
| 1859 | ## Checks for programs ## |
---|
| 1860 | ######################### |
---|
[1956] | 1861 | ac_ext=cc |
---|
| 1862 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1866 | if test -n "$ac_tool_prefix"; then |
---|
| 1867 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1868 | do |
---|
| 1869 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1870 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1873 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1875 | else |
---|
| 1876 | if test -n "$CXX"; then |
---|
| 1877 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1878 | else |
---|
| 1879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1880 | for as_dir in $PATH |
---|
| 1881 | do |
---|
| 1882 | IFS=$as_save_IFS |
---|
| 1883 | test -z "$as_dir" && as_dir=. |
---|
| 1884 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1886 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1888 | break 2 |
---|
| 1889 | fi |
---|
| 1890 | done |
---|
| 1891 | done |
---|
| 1892 | |
---|
| 1893 | fi |
---|
| 1894 | fi |
---|
| 1895 | CXX=$ac_cv_prog_CXX |
---|
| 1896 | if test -n "$CXX"; then |
---|
| 1897 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1898 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1899 | else |
---|
| 1900 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1901 | echo "${ECHO_T}no" >&6 |
---|
| 1902 | fi |
---|
| 1903 | |
---|
| 1904 | test -n "$CXX" && break |
---|
| 1905 | done |
---|
| 1906 | fi |
---|
| 1907 | if test -z "$CXX"; then |
---|
| 1908 | ac_ct_CXX=$CXX |
---|
| 1909 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1910 | do |
---|
| 1911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1912 | set dummy $ac_prog; ac_word=$2 |
---|
| 1913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1915 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1917 | else |
---|
| 1918 | if test -n "$ac_ct_CXX"; then |
---|
| 1919 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1920 | else |
---|
| 1921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1922 | for as_dir in $PATH |
---|
| 1923 | do |
---|
| 1924 | IFS=$as_save_IFS |
---|
| 1925 | test -z "$as_dir" && as_dir=. |
---|
| 1926 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1928 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1930 | break 2 |
---|
| 1931 | fi |
---|
| 1932 | done |
---|
| 1933 | done |
---|
| 1934 | |
---|
| 1935 | fi |
---|
| 1936 | fi |
---|
| 1937 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1938 | if test -n "$ac_ct_CXX"; then |
---|
| 1939 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1940 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1941 | else |
---|
| 1942 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1943 | echo "${ECHO_T}no" >&6 |
---|
| 1944 | fi |
---|
| 1945 | |
---|
| 1946 | test -n "$ac_ct_CXX" && break |
---|
| 1947 | done |
---|
| 1948 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1949 | |
---|
| 1950 | CXX=$ac_ct_CXX |
---|
| 1951 | fi |
---|
| 1952 | |
---|
| 1953 | |
---|
| 1954 | # Provide some information about the compiler. |
---|
| 1955 | echo "$as_me:$LINENO:" \ |
---|
| 1956 | "checking for C++ compiler version" >&5 |
---|
| 1957 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1958 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1959 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1960 | ac_status=$? |
---|
| 1961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1962 | (exit $ac_status); } |
---|
| 1963 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1964 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1965 | ac_status=$? |
---|
| 1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1967 | (exit $ac_status); } |
---|
| 1968 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1969 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1970 | ac_status=$? |
---|
| 1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1972 | (exit $ac_status); } |
---|
| 1973 | |
---|
| 1974 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1975 | /* confdefs.h. */ |
---|
| 1976 | _ACEOF |
---|
| 1977 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1978 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1979 | /* end confdefs.h. */ |
---|
| 1980 | |
---|
| 1981 | int |
---|
| 1982 | main () |
---|
| 1983 | { |
---|
| 1984 | |
---|
| 1985 | ; |
---|
| 1986 | return 0; |
---|
| 1987 | } |
---|
| 1988 | _ACEOF |
---|
| 1989 | ac_clean_files_save=$ac_clean_files |
---|
| 1990 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1991 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1992 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1993 | # of exeext. |
---|
| 1994 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1995 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1996 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1997 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1998 | (eval $ac_link_default) 2>&5 |
---|
| 1999 | ac_status=$? |
---|
| 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2001 | (exit $ac_status); }; then |
---|
| 2002 | # Find the output, starting from the most likely. This scheme is |
---|
| 2003 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2004 | # resort. |
---|
| 2005 | |
---|
| 2006 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2007 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2008 | ac_cv_exeext= |
---|
| 2009 | # b.out is created by i960 compilers. |
---|
| 2010 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2011 | do |
---|
| 2012 | test -f "$ac_file" || continue |
---|
| 2013 | case $ac_file in |
---|
| 2014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2015 | ;; |
---|
| 2016 | conftest.$ac_ext ) |
---|
| 2017 | # This is the source file. |
---|
| 2018 | ;; |
---|
| 2019 | [ab].out ) |
---|
| 2020 | # We found the default executable, but exeext='' is most |
---|
| 2021 | # certainly right. |
---|
| 2022 | break;; |
---|
| 2023 | *.* ) |
---|
| 2024 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2025 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2026 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2027 | # maintain Libtool? --akim. |
---|
| 2028 | export ac_cv_exeext |
---|
| 2029 | break;; |
---|
| 2030 | * ) |
---|
| 2031 | break;; |
---|
| 2032 | esac |
---|
| 2033 | done |
---|
| 2034 | else |
---|
| 2035 | echo "$as_me: failed program was:" >&5 |
---|
| 2036 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2037 | |
---|
| 2038 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2039 | See \`config.log' for more details." >&5 |
---|
| 2040 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2041 | See \`config.log' for more details." >&2;} |
---|
| 2042 | { (exit 77); exit 77; }; } |
---|
| 2043 | fi |
---|
| 2044 | |
---|
| 2045 | ac_exeext=$ac_cv_exeext |
---|
| 2046 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2047 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2048 | |
---|
| 2049 | # Check the compiler produces executables we can run. If not, either |
---|
| 2050 | # the compiler is broken, or we cross compile. |
---|
| 2051 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2052 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2053 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2054 | # If not cross compiling, check that we can run a simple program. |
---|
| 2055 | if test "$cross_compiling" != yes; then |
---|
| 2056 | if { ac_try='./$ac_file' |
---|
| 2057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2058 | (eval $ac_try) 2>&5 |
---|
| 2059 | ac_status=$? |
---|
| 2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2061 | (exit $ac_status); }; }; then |
---|
| 2062 | cross_compiling=no |
---|
| 2063 | else |
---|
| 2064 | if test "$cross_compiling" = maybe; then |
---|
| 2065 | cross_compiling=yes |
---|
| 2066 | else |
---|
| 2067 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2068 | If you meant to cross compile, use \`--host'. |
---|
| 2069 | See \`config.log' for more details." >&5 |
---|
| 2070 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2071 | If you meant to cross compile, use \`--host'. |
---|
| 2072 | See \`config.log' for more details." >&2;} |
---|
| 2073 | { (exit 1); exit 1; }; } |
---|
| 2074 | fi |
---|
| 2075 | fi |
---|
| 2076 | fi |
---|
| 2077 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2078 | echo "${ECHO_T}yes" >&6 |
---|
| 2079 | |
---|
| 2080 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2081 | ac_clean_files=$ac_clean_files_save |
---|
| 2082 | # Check the compiler produces executables we can run. If not, either |
---|
| 2083 | # the compiler is broken, or we cross compile. |
---|
| 2084 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2085 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2086 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2087 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2088 | |
---|
| 2089 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2090 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2092 | (eval $ac_link) 2>&5 |
---|
| 2093 | ac_status=$? |
---|
| 2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2095 | (exit $ac_status); }; then |
---|
| 2096 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2097 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2098 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2099 | # `rm'. |
---|
| 2100 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2101 | test -f "$ac_file" || continue |
---|
| 2102 | case $ac_file in |
---|
| 2103 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2104 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2105 | export ac_cv_exeext |
---|
| 2106 | break;; |
---|
| 2107 | * ) break;; |
---|
| 2108 | esac |
---|
| 2109 | done |
---|
| 2110 | else |
---|
| 2111 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2112 | See \`config.log' for more details." >&5 |
---|
| 2113 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2114 | See \`config.log' for more details." >&2;} |
---|
| 2115 | { (exit 1); exit 1; }; } |
---|
| 2116 | fi |
---|
| 2117 | |
---|
| 2118 | rm -f conftest$ac_cv_exeext |
---|
| 2119 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2120 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2121 | |
---|
| 2122 | rm -f conftest.$ac_ext |
---|
| 2123 | EXEEXT=$ac_cv_exeext |
---|
| 2124 | ac_exeext=$EXEEXT |
---|
| 2125 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2126 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2127 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2129 | else |
---|
| 2130 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2131 | /* confdefs.h. */ |
---|
| 2132 | _ACEOF |
---|
| 2133 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2134 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2135 | /* end confdefs.h. */ |
---|
| 2136 | |
---|
| 2137 | int |
---|
| 2138 | main () |
---|
| 2139 | { |
---|
| 2140 | |
---|
| 2141 | ; |
---|
| 2142 | return 0; |
---|
| 2143 | } |
---|
| 2144 | _ACEOF |
---|
| 2145 | rm -f conftest.o conftest.obj |
---|
| 2146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2147 | (eval $ac_compile) 2>&5 |
---|
| 2148 | ac_status=$? |
---|
| 2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2150 | (exit $ac_status); }; then |
---|
| 2151 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2152 | case $ac_file in |
---|
| 2153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2154 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2155 | break;; |
---|
| 2156 | esac |
---|
| 2157 | done |
---|
| 2158 | else |
---|
| 2159 | echo "$as_me: failed program was:" >&5 |
---|
| 2160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2161 | |
---|
| 2162 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2163 | See \`config.log' for more details." >&5 |
---|
| 2164 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2165 | See \`config.log' for more details." >&2;} |
---|
| 2166 | { (exit 1); exit 1; }; } |
---|
| 2167 | fi |
---|
| 2168 | |
---|
| 2169 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2170 | fi |
---|
| 2171 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2172 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2173 | OBJEXT=$ac_cv_objext |
---|
| 2174 | ac_objext=$OBJEXT |
---|
| 2175 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2176 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2177 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2179 | else |
---|
| 2180 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2181 | /* confdefs.h. */ |
---|
| 2182 | _ACEOF |
---|
| 2183 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2184 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2185 | /* end confdefs.h. */ |
---|
| 2186 | |
---|
| 2187 | int |
---|
| 2188 | main () |
---|
| 2189 | { |
---|
| 2190 | #ifndef __GNUC__ |
---|
| 2191 | choke me |
---|
| 2192 | #endif |
---|
| 2193 | |
---|
| 2194 | ; |
---|
| 2195 | return 0; |
---|
| 2196 | } |
---|
| 2197 | _ACEOF |
---|
| 2198 | rm -f conftest.$ac_objext |
---|
| 2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2200 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2201 | ac_status=$? |
---|
| 2202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2203 | rm -f conftest.er1 |
---|
| 2204 | cat conftest.err >&5 |
---|
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2206 | (exit $ac_status); } && |
---|
| 2207 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2208 | || test ! -s conftest.err' |
---|
| 2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2210 | (eval $ac_try) 2>&5 |
---|
| 2211 | ac_status=$? |
---|
| 2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2213 | (exit $ac_status); }; } && |
---|
| 2214 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2216 | (eval $ac_try) 2>&5 |
---|
| 2217 | ac_status=$? |
---|
| 2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2219 | (exit $ac_status); }; }; then |
---|
| 2220 | ac_compiler_gnu=yes |
---|
| 2221 | else |
---|
| 2222 | echo "$as_me: failed program was:" >&5 |
---|
| 2223 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2224 | |
---|
| 2225 | ac_compiler_gnu=no |
---|
| 2226 | fi |
---|
| 2227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2228 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2229 | |
---|
| 2230 | fi |
---|
| 2231 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2232 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2233 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2234 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2235 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2236 | CXXFLAGS="-g" |
---|
| 2237 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2238 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2239 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2241 | else |
---|
| 2242 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2243 | /* confdefs.h. */ |
---|
| 2244 | _ACEOF |
---|
| 2245 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2247 | /* end confdefs.h. */ |
---|
| 2248 | |
---|
| 2249 | int |
---|
| 2250 | main () |
---|
| 2251 | { |
---|
| 2252 | |
---|
| 2253 | ; |
---|
| 2254 | return 0; |
---|
| 2255 | } |
---|
| 2256 | _ACEOF |
---|
| 2257 | rm -f conftest.$ac_objext |
---|
| 2258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2259 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2260 | ac_status=$? |
---|
| 2261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2262 | rm -f conftest.er1 |
---|
| 2263 | cat conftest.err >&5 |
---|
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2265 | (exit $ac_status); } && |
---|
| 2266 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2267 | || test ! -s conftest.err' |
---|
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2269 | (eval $ac_try) 2>&5 |
---|
| 2270 | ac_status=$? |
---|
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2272 | (exit $ac_status); }; } && |
---|
| 2273 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2275 | (eval $ac_try) 2>&5 |
---|
| 2276 | ac_status=$? |
---|
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2278 | (exit $ac_status); }; }; then |
---|
| 2279 | ac_cv_prog_cxx_g=yes |
---|
| 2280 | else |
---|
| 2281 | echo "$as_me: failed program was:" >&5 |
---|
| 2282 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2283 | |
---|
| 2284 | ac_cv_prog_cxx_g=no |
---|
| 2285 | fi |
---|
| 2286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2287 | fi |
---|
| 2288 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2289 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2290 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2291 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2292 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2293 | if test "$GXX" = yes; then |
---|
| 2294 | CXXFLAGS="-g -O2" |
---|
| 2295 | else |
---|
| 2296 | CXXFLAGS="-g" |
---|
| 2297 | fi |
---|
| 2298 | else |
---|
| 2299 | if test "$GXX" = yes; then |
---|
| 2300 | CXXFLAGS="-O2" |
---|
| 2301 | else |
---|
| 2302 | CXXFLAGS= |
---|
| 2303 | fi |
---|
| 2304 | fi |
---|
| 2305 | for ac_declaration in \ |
---|
| 2306 | '' \ |
---|
| 2307 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2308 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2309 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2310 | 'extern "C" void exit (int);' \ |
---|
| 2311 | 'void exit (int);' |
---|
| 2312 | do |
---|
| 2313 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2314 | /* confdefs.h. */ |
---|
| 2315 | _ACEOF |
---|
| 2316 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2318 | /* end confdefs.h. */ |
---|
| 2319 | $ac_declaration |
---|
| 2320 | #include <stdlib.h> |
---|
| 2321 | int |
---|
| 2322 | main () |
---|
| 2323 | { |
---|
| 2324 | exit (42); |
---|
| 2325 | ; |
---|
| 2326 | return 0; |
---|
| 2327 | } |
---|
| 2328 | _ACEOF |
---|
| 2329 | rm -f conftest.$ac_objext |
---|
| 2330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2331 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2332 | ac_status=$? |
---|
| 2333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2334 | rm -f conftest.er1 |
---|
| 2335 | cat conftest.err >&5 |
---|
| 2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2337 | (exit $ac_status); } && |
---|
| 2338 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2339 | || test ! -s conftest.err' |
---|
| 2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2341 | (eval $ac_try) 2>&5 |
---|
| 2342 | ac_status=$? |
---|
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2344 | (exit $ac_status); }; } && |
---|
| 2345 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2347 | (eval $ac_try) 2>&5 |
---|
| 2348 | ac_status=$? |
---|
| 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2350 | (exit $ac_status); }; }; then |
---|
| 2351 | : |
---|
| 2352 | else |
---|
| 2353 | echo "$as_me: failed program was:" >&5 |
---|
| 2354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2355 | |
---|
| 2356 | continue |
---|
| 2357 | fi |
---|
| 2358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2359 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2360 | /* confdefs.h. */ |
---|
| 2361 | _ACEOF |
---|
| 2362 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2363 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2364 | /* end confdefs.h. */ |
---|
| 2365 | $ac_declaration |
---|
| 2366 | int |
---|
| 2367 | main () |
---|
| 2368 | { |
---|
| 2369 | exit (42); |
---|
| 2370 | ; |
---|
| 2371 | return 0; |
---|
| 2372 | } |
---|
| 2373 | _ACEOF |
---|
| 2374 | rm -f conftest.$ac_objext |
---|
| 2375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2376 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2377 | ac_status=$? |
---|
| 2378 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2379 | rm -f conftest.er1 |
---|
| 2380 | cat conftest.err >&5 |
---|
| 2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2382 | (exit $ac_status); } && |
---|
| 2383 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2384 | || test ! -s conftest.err' |
---|
| 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2386 | (eval $ac_try) 2>&5 |
---|
| 2387 | ac_status=$? |
---|
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2389 | (exit $ac_status); }; } && |
---|
| 2390 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2392 | (eval $ac_try) 2>&5 |
---|
| 2393 | ac_status=$? |
---|
| 2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2395 | (exit $ac_status); }; }; then |
---|
| 2396 | break |
---|
| 2397 | else |
---|
| 2398 | echo "$as_me: failed program was:" >&5 |
---|
| 2399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2400 | |
---|
| 2401 | fi |
---|
| 2402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2403 | done |
---|
| 2404 | rm -f conftest* |
---|
| 2405 | if test -n "$ac_declaration"; then |
---|
| 2406 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2407 | echo $ac_declaration >>confdefs.h |
---|
| 2408 | echo '#endif' >>confdefs.h |
---|
| 2409 | fi |
---|
| 2410 | |
---|
| 2411 | ac_ext=c |
---|
| 2412 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2416 | DEPDIR="${am__leading_dot}deps" |
---|
| 2417 | |
---|
| 2418 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2419 | |
---|
| 2420 | |
---|
| 2421 | am_make=${MAKE-make} |
---|
| 2422 | cat > confinc << 'END' |
---|
| 2423 | am__doit: |
---|
| 2424 | @echo done |
---|
| 2425 | .PHONY: am__doit |
---|
| 2426 | END |
---|
| 2427 | # If we don't find an include directive, just comment out the code. |
---|
| 2428 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2429 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2430 | am__include="#" |
---|
| 2431 | am__quote= |
---|
| 2432 | _am_result=none |
---|
| 2433 | # First try GNU make style include. |
---|
| 2434 | echo "include confinc" > confmf |
---|
| 2435 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2436 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2437 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2438 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2439 | # case it prints its new name instead of `make'. |
---|
| 2440 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2441 | am__include=include |
---|
| 2442 | am__quote= |
---|
| 2443 | _am_result=GNU |
---|
| 2444 | fi |
---|
| 2445 | # Now try BSD make style include. |
---|
| 2446 | if test "$am__include" = "#"; then |
---|
| 2447 | echo '.include "confinc"' > confmf |
---|
| 2448 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2449 | am__include=.include |
---|
| 2450 | am__quote="\"" |
---|
| 2451 | _am_result=BSD |
---|
| 2452 | fi |
---|
| 2453 | fi |
---|
| 2454 | |
---|
| 2455 | |
---|
| 2456 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2457 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2458 | rm -f confinc confmf |
---|
| 2459 | |
---|
| 2460 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2461 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2462 | enableval="$enable_dependency_tracking" |
---|
| 2463 | |
---|
| 2464 | fi; |
---|
| 2465 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2466 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2467 | AMDEPBACKSLASH='\' |
---|
| 2468 | fi |
---|
| 2469 | |
---|
| 2470 | |
---|
| 2471 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2472 | AMDEP_TRUE= |
---|
| 2473 | AMDEP_FALSE='#' |
---|
| 2474 | else |
---|
| 2475 | AMDEP_TRUE='#' |
---|
| 2476 | AMDEP_FALSE= |
---|
| 2477 | fi |
---|
| 2478 | |
---|
| 2479 | |
---|
| 2480 | |
---|
| 2481 | |
---|
| 2482 | depcc="$CXX" am_compiler_list= |
---|
| 2483 | |
---|
| 2484 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2485 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2486 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2488 | else |
---|
| 2489 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2490 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2491 | # making bogus files that we don't know about and never remove. For |
---|
| 2492 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2493 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2494 | # in D'. |
---|
| 2495 | mkdir conftest.dir |
---|
| 2496 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2497 | # using a relative directory. |
---|
| 2498 | cp "$am_depcomp" conftest.dir |
---|
| 2499 | cd conftest.dir |
---|
| 2500 | # We will build objects and dependencies in a subdirectory because |
---|
| 2501 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2502 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2503 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2504 | # the current directory while Tru64 will put them in the object |
---|
| 2505 | # directory. |
---|
| 2506 | mkdir sub |
---|
| 2507 | |
---|
| 2508 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2509 | if test "$am_compiler_list" = ""; then |
---|
| 2510 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2511 | fi |
---|
| 2512 | for depmode in $am_compiler_list; do |
---|
| 2513 | # Setup a source with many dependencies, because some compilers |
---|
| 2514 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2515 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2516 | # |
---|
| 2517 | # We need to recreate these files for each test, as the compiler may |
---|
| 2518 | # overwrite some of them when testing with obscure command lines. |
---|
| 2519 | # This happens at least with the AIX C compiler. |
---|
| 2520 | : > sub/conftest.c |
---|
| 2521 | for i in 1 2 3 4 5 6; do |
---|
| 2522 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[4698] | 2523 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2524 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2525 | touch sub/conftst$i.h |
---|
[1956] | 2526 | done |
---|
| 2527 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2528 | |
---|
| 2529 | case $depmode in |
---|
| 2530 | nosideeffect) |
---|
| 2531 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2532 | # only be used when explicitly requested |
---|
| 2533 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2534 | continue |
---|
| 2535 | else |
---|
| 2536 | break |
---|
| 2537 | fi |
---|
| 2538 | ;; |
---|
| 2539 | none) break ;; |
---|
| 2540 | esac |
---|
| 2541 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2542 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2543 | # handle `-M -o', and we need to detect this. |
---|
| 2544 | if depmode=$depmode \ |
---|
| 2545 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2546 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2547 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2548 | >/dev/null 2>conftest.err && |
---|
| 2549 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2550 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2551 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2552 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[4698] | 2553 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2554 | # that says an option was ignored or not supported. |
---|
| 2555 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2556 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2557 | # The diagnosis changed in icc 8.0: |
---|
| 2558 | # icc: Command line remark: option '-MP' not supported |
---|
| 2559 | if (grep 'ignoring option' conftest.err || |
---|
| 2560 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2561 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2562 | break |
---|
| 2563 | fi |
---|
| 2564 | fi |
---|
| 2565 | done |
---|
| 2566 | |
---|
| 2567 | cd .. |
---|
| 2568 | rm -rf conftest.dir |
---|
| 2569 | else |
---|
| 2570 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2571 | fi |
---|
| 2572 | |
---|
| 2573 | fi |
---|
| 2574 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2575 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2576 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2577 | |
---|
| 2578 | |
---|
| 2579 | |
---|
| 2580 | if |
---|
| 2581 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2582 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2583 | am__fastdepCXX_TRUE= |
---|
| 2584 | am__fastdepCXX_FALSE='#' |
---|
| 2585 | else |
---|
| 2586 | am__fastdepCXX_TRUE='#' |
---|
| 2587 | am__fastdepCXX_FALSE= |
---|
| 2588 | fi |
---|
| 2589 | |
---|
| 2590 | |
---|
[4054] | 2591 | if test -n "$ac_tool_prefix"; then |
---|
| 2592 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2593 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 2594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2596 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2598 | else |
---|
| 2599 | if test -n "$RANLIB"; then |
---|
| 2600 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2601 | else |
---|
| 2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2603 | for as_dir in $PATH |
---|
| 2604 | do |
---|
| 2605 | IFS=$as_save_IFS |
---|
| 2606 | test -z "$as_dir" && as_dir=. |
---|
| 2607 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2609 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2611 | break 2 |
---|
| 2612 | fi |
---|
| 2613 | done |
---|
| 2614 | done |
---|
| 2615 | |
---|
| 2616 | fi |
---|
| 2617 | fi |
---|
| 2618 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2619 | if test -n "$RANLIB"; then |
---|
| 2620 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2621 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 2622 | else |
---|
| 2623 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2624 | echo "${ECHO_T}no" >&6 |
---|
| 2625 | fi |
---|
| 2626 | |
---|
| 2627 | fi |
---|
| 2628 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2629 | ac_ct_RANLIB=$RANLIB |
---|
| 2630 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2631 | set dummy ranlib; ac_word=$2 |
---|
| 2632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2634 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2636 | else |
---|
| 2637 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2638 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2639 | else |
---|
| 2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2641 | for as_dir in $PATH |
---|
| 2642 | do |
---|
| 2643 | IFS=$as_save_IFS |
---|
| 2644 | test -z "$as_dir" && as_dir=. |
---|
| 2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2647 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2649 | break 2 |
---|
| 2650 | fi |
---|
| 2651 | done |
---|
| 2652 | done |
---|
| 2653 | |
---|
| 2654 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 2655 | fi |
---|
| 2656 | fi |
---|
| 2657 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2658 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2659 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 2660 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 2661 | else |
---|
| 2662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2663 | echo "${ECHO_T}no" >&6 |
---|
| 2664 | fi |
---|
| 2665 | |
---|
| 2666 | RANLIB=$ac_ct_RANLIB |
---|
| 2667 | else |
---|
| 2668 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2669 | fi |
---|
| 2670 | |
---|
[1956] | 2671 | ac_ext=c |
---|
| 2672 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2676 | if test -n "$ac_tool_prefix"; then |
---|
| 2677 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2678 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2681 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2683 | else |
---|
| 2684 | if test -n "$CC"; then |
---|
| 2685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2686 | else |
---|
| 2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2688 | for as_dir in $PATH |
---|
| 2689 | do |
---|
| 2690 | IFS=$as_save_IFS |
---|
| 2691 | test -z "$as_dir" && as_dir=. |
---|
| 2692 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2694 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2696 | break 2 |
---|
| 2697 | fi |
---|
| 2698 | done |
---|
| 2699 | done |
---|
| 2700 | |
---|
| 2701 | fi |
---|
| 2702 | fi |
---|
| 2703 | CC=$ac_cv_prog_CC |
---|
| 2704 | if test -n "$CC"; then |
---|
| 2705 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2706 | echo "${ECHO_T}$CC" >&6 |
---|
| 2707 | else |
---|
| 2708 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2709 | echo "${ECHO_T}no" >&6 |
---|
| 2710 | fi |
---|
| 2711 | |
---|
| 2712 | fi |
---|
| 2713 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2714 | ac_ct_CC=$CC |
---|
| 2715 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2716 | set dummy gcc; ac_word=$2 |
---|
| 2717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2721 | else |
---|
| 2722 | if test -n "$ac_ct_CC"; then |
---|
| 2723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2724 | else |
---|
| 2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2726 | for as_dir in $PATH |
---|
| 2727 | do |
---|
| 2728 | IFS=$as_save_IFS |
---|
| 2729 | test -z "$as_dir" && as_dir=. |
---|
| 2730 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2732 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2734 | break 2 |
---|
| 2735 | fi |
---|
| 2736 | done |
---|
| 2737 | done |
---|
| 2738 | |
---|
| 2739 | fi |
---|
| 2740 | fi |
---|
| 2741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2742 | if test -n "$ac_ct_CC"; then |
---|
| 2743 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2744 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2745 | else |
---|
| 2746 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2747 | echo "${ECHO_T}no" >&6 |
---|
| 2748 | fi |
---|
| 2749 | |
---|
| 2750 | CC=$ac_ct_CC |
---|
| 2751 | else |
---|
| 2752 | CC="$ac_cv_prog_CC" |
---|
| 2753 | fi |
---|
| 2754 | |
---|
| 2755 | if test -z "$CC"; then |
---|
| 2756 | if test -n "$ac_tool_prefix"; then |
---|
| 2757 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2758 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2761 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2763 | else |
---|
| 2764 | if test -n "$CC"; then |
---|
| 2765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2766 | else |
---|
| 2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2768 | for as_dir in $PATH |
---|
| 2769 | do |
---|
| 2770 | IFS=$as_save_IFS |
---|
| 2771 | test -z "$as_dir" && as_dir=. |
---|
| 2772 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2774 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2776 | break 2 |
---|
| 2777 | fi |
---|
| 2778 | done |
---|
| 2779 | done |
---|
| 2780 | |
---|
| 2781 | fi |
---|
| 2782 | fi |
---|
| 2783 | CC=$ac_cv_prog_CC |
---|
| 2784 | if test -n "$CC"; then |
---|
| 2785 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2786 | echo "${ECHO_T}$CC" >&6 |
---|
| 2787 | else |
---|
| 2788 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2789 | echo "${ECHO_T}no" >&6 |
---|
| 2790 | fi |
---|
| 2791 | |
---|
| 2792 | fi |
---|
| 2793 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2794 | ac_ct_CC=$CC |
---|
| 2795 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2796 | set dummy cc; ac_word=$2 |
---|
| 2797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2799 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2801 | else |
---|
| 2802 | if test -n "$ac_ct_CC"; then |
---|
| 2803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2804 | else |
---|
| 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2806 | for as_dir in $PATH |
---|
| 2807 | do |
---|
| 2808 | IFS=$as_save_IFS |
---|
| 2809 | test -z "$as_dir" && as_dir=. |
---|
| 2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2812 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2814 | break 2 |
---|
| 2815 | fi |
---|
| 2816 | done |
---|
| 2817 | done |
---|
| 2818 | |
---|
| 2819 | fi |
---|
| 2820 | fi |
---|
| 2821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2822 | if test -n "$ac_ct_CC"; then |
---|
| 2823 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2824 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2825 | else |
---|
| 2826 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2827 | echo "${ECHO_T}no" >&6 |
---|
| 2828 | fi |
---|
| 2829 | |
---|
| 2830 | CC=$ac_ct_CC |
---|
| 2831 | else |
---|
| 2832 | CC="$ac_cv_prog_CC" |
---|
| 2833 | fi |
---|
| 2834 | |
---|
| 2835 | fi |
---|
| 2836 | if test -z "$CC"; then |
---|
| 2837 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2838 | set dummy cc; ac_word=$2 |
---|
| 2839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2841 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2843 | else |
---|
| 2844 | if test -n "$CC"; then |
---|
| 2845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2846 | else |
---|
| 2847 | ac_prog_rejected=no |
---|
| 2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2849 | for as_dir in $PATH |
---|
| 2850 | do |
---|
| 2851 | IFS=$as_save_IFS |
---|
| 2852 | test -z "$as_dir" && as_dir=. |
---|
| 2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2856 | ac_prog_rejected=yes |
---|
| 2857 | continue |
---|
| 2858 | fi |
---|
| 2859 | ac_cv_prog_CC="cc" |
---|
| 2860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2861 | break 2 |
---|
| 2862 | fi |
---|
| 2863 | done |
---|
| 2864 | done |
---|
| 2865 | |
---|
| 2866 | if test $ac_prog_rejected = yes; then |
---|
| 2867 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2868 | set dummy $ac_cv_prog_CC |
---|
| 2869 | shift |
---|
| 2870 | if test $# != 0; then |
---|
| 2871 | # We chose a different compiler from the bogus one. |
---|
| 2872 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2873 | # first if we set CC to just the basename; use the full file name. |
---|
| 2874 | shift |
---|
| 2875 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2876 | fi |
---|
| 2877 | fi |
---|
| 2878 | fi |
---|
| 2879 | fi |
---|
| 2880 | CC=$ac_cv_prog_CC |
---|
| 2881 | if test -n "$CC"; then |
---|
| 2882 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2883 | echo "${ECHO_T}$CC" >&6 |
---|
| 2884 | else |
---|
| 2885 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2886 | echo "${ECHO_T}no" >&6 |
---|
| 2887 | fi |
---|
| 2888 | |
---|
| 2889 | fi |
---|
| 2890 | if test -z "$CC"; then |
---|
| 2891 | if test -n "$ac_tool_prefix"; then |
---|
| 2892 | for ac_prog in cl |
---|
| 2893 | do |
---|
| 2894 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2895 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2898 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2900 | else |
---|
| 2901 | if test -n "$CC"; then |
---|
| 2902 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2903 | else |
---|
| 2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2905 | for as_dir in $PATH |
---|
| 2906 | do |
---|
| 2907 | IFS=$as_save_IFS |
---|
| 2908 | test -z "$as_dir" && as_dir=. |
---|
| 2909 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2911 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2913 | break 2 |
---|
| 2914 | fi |
---|
| 2915 | done |
---|
| 2916 | done |
---|
| 2917 | |
---|
| 2918 | fi |
---|
| 2919 | fi |
---|
| 2920 | CC=$ac_cv_prog_CC |
---|
| 2921 | if test -n "$CC"; then |
---|
| 2922 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2923 | echo "${ECHO_T}$CC" >&6 |
---|
| 2924 | else |
---|
| 2925 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2926 | echo "${ECHO_T}no" >&6 |
---|
| 2927 | fi |
---|
| 2928 | |
---|
| 2929 | test -n "$CC" && break |
---|
| 2930 | done |
---|
| 2931 | fi |
---|
| 2932 | if test -z "$CC"; then |
---|
| 2933 | ac_ct_CC=$CC |
---|
| 2934 | for ac_prog in cl |
---|
| 2935 | do |
---|
| 2936 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2937 | set dummy $ac_prog; ac_word=$2 |
---|
| 2938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2940 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2942 | else |
---|
| 2943 | if test -n "$ac_ct_CC"; then |
---|
| 2944 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2945 | else |
---|
| 2946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2947 | for as_dir in $PATH |
---|
| 2948 | do |
---|
| 2949 | IFS=$as_save_IFS |
---|
| 2950 | test -z "$as_dir" && as_dir=. |
---|
| 2951 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2953 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2955 | break 2 |
---|
| 2956 | fi |
---|
| 2957 | done |
---|
| 2958 | done |
---|
| 2959 | |
---|
| 2960 | fi |
---|
| 2961 | fi |
---|
| 2962 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2963 | if test -n "$ac_ct_CC"; then |
---|
| 2964 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2965 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2966 | else |
---|
| 2967 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2968 | echo "${ECHO_T}no" >&6 |
---|
| 2969 | fi |
---|
| 2970 | |
---|
| 2971 | test -n "$ac_ct_CC" && break |
---|
| 2972 | done |
---|
| 2973 | |
---|
| 2974 | CC=$ac_ct_CC |
---|
| 2975 | fi |
---|
| 2976 | |
---|
| 2977 | fi |
---|
| 2978 | |
---|
| 2979 | |
---|
| 2980 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2981 | See \`config.log' for more details." >&5 |
---|
| 2982 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2983 | See \`config.log' for more details." >&2;} |
---|
| 2984 | { (exit 1); exit 1; }; } |
---|
| 2985 | |
---|
| 2986 | # Provide some information about the compiler. |
---|
| 2987 | echo "$as_me:$LINENO:" \ |
---|
| 2988 | "checking for C compiler version" >&5 |
---|
| 2989 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2990 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2991 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2992 | ac_status=$? |
---|
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2994 | (exit $ac_status); } |
---|
| 2995 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2996 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2997 | ac_status=$? |
---|
| 2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2999 | (exit $ac_status); } |
---|
| 3000 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 3001 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 3002 | ac_status=$? |
---|
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3004 | (exit $ac_status); } |
---|
| 3005 | |
---|
| 3006 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 3007 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 3008 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3010 | else |
---|
| 3011 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3012 | /* confdefs.h. */ |
---|
| 3013 | _ACEOF |
---|
| 3014 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3016 | /* end confdefs.h. */ |
---|
| 3017 | |
---|
| 3018 | int |
---|
| 3019 | main () |
---|
| 3020 | { |
---|
| 3021 | #ifndef __GNUC__ |
---|
| 3022 | choke me |
---|
| 3023 | #endif |
---|
| 3024 | |
---|
| 3025 | ; |
---|
| 3026 | return 0; |
---|
| 3027 | } |
---|
| 3028 | _ACEOF |
---|
| 3029 | rm -f conftest.$ac_objext |
---|
| 3030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3031 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3032 | ac_status=$? |
---|
| 3033 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3034 | rm -f conftest.er1 |
---|
| 3035 | cat conftest.err >&5 |
---|
| 3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3037 | (exit $ac_status); } && |
---|
| 3038 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3039 | || test ! -s conftest.err' |
---|
| 3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3041 | (eval $ac_try) 2>&5 |
---|
| 3042 | ac_status=$? |
---|
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3044 | (exit $ac_status); }; } && |
---|
| 3045 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3047 | (eval $ac_try) 2>&5 |
---|
| 3048 | ac_status=$? |
---|
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3050 | (exit $ac_status); }; }; then |
---|
| 3051 | ac_compiler_gnu=yes |
---|
| 3052 | else |
---|
| 3053 | echo "$as_me: failed program was:" >&5 |
---|
| 3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3055 | |
---|
| 3056 | ac_compiler_gnu=no |
---|
| 3057 | fi |
---|
| 3058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3059 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3060 | |
---|
| 3061 | fi |
---|
| 3062 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3063 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 3064 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 3065 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3066 | ac_save_CFLAGS=$CFLAGS |
---|
| 3067 | CFLAGS="-g" |
---|
| 3068 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 3069 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 3070 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3072 | else |
---|
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3074 | /* confdefs.h. */ |
---|
| 3075 | _ACEOF |
---|
| 3076 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3078 | /* end confdefs.h. */ |
---|
| 3079 | |
---|
| 3080 | int |
---|
| 3081 | main () |
---|
| 3082 | { |
---|
| 3083 | |
---|
| 3084 | ; |
---|
| 3085 | return 0; |
---|
| 3086 | } |
---|
| 3087 | _ACEOF |
---|
| 3088 | rm -f conftest.$ac_objext |
---|
| 3089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3090 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3091 | ac_status=$? |
---|
| 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3093 | rm -f conftest.er1 |
---|
| 3094 | cat conftest.err >&5 |
---|
| 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3096 | (exit $ac_status); } && |
---|
| 3097 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3098 | || test ! -s conftest.err' |
---|
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3100 | (eval $ac_try) 2>&5 |
---|
| 3101 | ac_status=$? |
---|
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3103 | (exit $ac_status); }; } && |
---|
| 3104 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3106 | (eval $ac_try) 2>&5 |
---|
| 3107 | ac_status=$? |
---|
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3109 | (exit $ac_status); }; }; then |
---|
| 3110 | ac_cv_prog_cc_g=yes |
---|
| 3111 | else |
---|
| 3112 | echo "$as_me: failed program was:" >&5 |
---|
| 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3114 | |
---|
| 3115 | ac_cv_prog_cc_g=no |
---|
| 3116 | fi |
---|
| 3117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3118 | fi |
---|
| 3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3120 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3121 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3122 | CFLAGS=$ac_save_CFLAGS |
---|
| 3123 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3124 | if test "$GCC" = yes; then |
---|
| 3125 | CFLAGS="-g -O2" |
---|
| 3126 | else |
---|
| 3127 | CFLAGS="-g" |
---|
| 3128 | fi |
---|
| 3129 | else |
---|
| 3130 | if test "$GCC" = yes; then |
---|
| 3131 | CFLAGS="-O2" |
---|
| 3132 | else |
---|
| 3133 | CFLAGS= |
---|
| 3134 | fi |
---|
| 3135 | fi |
---|
| 3136 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3137 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3138 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3140 | else |
---|
| 3141 | ac_cv_prog_cc_stdc=no |
---|
| 3142 | ac_save_CC=$CC |
---|
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3144 | /* confdefs.h. */ |
---|
| 3145 | _ACEOF |
---|
| 3146 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3147 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3148 | /* end confdefs.h. */ |
---|
| 3149 | #include <stdarg.h> |
---|
| 3150 | #include <stdio.h> |
---|
| 3151 | #include <sys/types.h> |
---|
| 3152 | #include <sys/stat.h> |
---|
| 3153 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3154 | struct buf { int x; }; |
---|
| 3155 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3156 | static char *e (p, i) |
---|
| 3157 | char **p; |
---|
| 3158 | int i; |
---|
| 3159 | { |
---|
| 3160 | return p[i]; |
---|
| 3161 | } |
---|
| 3162 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3163 | { |
---|
| 3164 | char *s; |
---|
| 3165 | va_list v; |
---|
| 3166 | va_start (v,p); |
---|
| 3167 | s = g (p, va_arg (v,int)); |
---|
| 3168 | va_end (v); |
---|
| 3169 | return s; |
---|
| 3170 | } |
---|
| 3171 | |
---|
| 3172 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3173 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3174 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3175 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3176 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3177 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3178 | that's true only with -std1. */ |
---|
| 3179 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3180 | |
---|
| 3181 | int test (int i, double x); |
---|
| 3182 | struct s1 {int (*f) (int a);}; |
---|
| 3183 | struct s2 {int (*f) (double a);}; |
---|
| 3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3185 | int argc; |
---|
| 3186 | char **argv; |
---|
| 3187 | int |
---|
| 3188 | main () |
---|
| 3189 | { |
---|
| 3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3191 | ; |
---|
| 3192 | return 0; |
---|
| 3193 | } |
---|
| 3194 | _ACEOF |
---|
| 3195 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3196 | # breaks some systems' header files. |
---|
| 3197 | # AIX -qlanglvl=ansi |
---|
| 3198 | # Ultrix and OSF/1 -std1 |
---|
| 3199 | # HP-UX 10.20 and later -Ae |
---|
| 3200 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3201 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3202 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3203 | do |
---|
| 3204 | CC="$ac_save_CC $ac_arg" |
---|
| 3205 | rm -f conftest.$ac_objext |
---|
| 3206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3207 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3208 | ac_status=$? |
---|
| 3209 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3210 | rm -f conftest.er1 |
---|
| 3211 | cat conftest.err >&5 |
---|
| 3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3213 | (exit $ac_status); } && |
---|
| 3214 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3215 | || test ! -s conftest.err' |
---|
| 3216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3217 | (eval $ac_try) 2>&5 |
---|
| 3218 | ac_status=$? |
---|
| 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3220 | (exit $ac_status); }; } && |
---|
| 3221 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3223 | (eval $ac_try) 2>&5 |
---|
| 3224 | ac_status=$? |
---|
| 3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3226 | (exit $ac_status); }; }; then |
---|
| 3227 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3228 | break |
---|
| 3229 | else |
---|
| 3230 | echo "$as_me: failed program was:" >&5 |
---|
| 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3232 | |
---|
| 3233 | fi |
---|
| 3234 | rm -f conftest.err conftest.$ac_objext |
---|
| 3235 | done |
---|
| 3236 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3237 | CC=$ac_save_CC |
---|
| 3238 | |
---|
| 3239 | fi |
---|
| 3240 | |
---|
| 3241 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3242 | x|xno) |
---|
| 3243 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3244 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3245 | *) |
---|
| 3246 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3247 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3248 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3249 | esac |
---|
| 3250 | |
---|
| 3251 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3252 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3253 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3254 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3255 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3256 | #ifndef __cplusplus |
---|
| 3257 | choke me |
---|
| 3258 | #endif |
---|
| 3259 | _ACEOF |
---|
| 3260 | rm -f conftest.$ac_objext |
---|
| 3261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3262 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3263 | ac_status=$? |
---|
| 3264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3265 | rm -f conftest.er1 |
---|
| 3266 | cat conftest.err >&5 |
---|
| 3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3268 | (exit $ac_status); } && |
---|
| 3269 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3270 | || test ! -s conftest.err' |
---|
| 3271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3272 | (eval $ac_try) 2>&5 |
---|
| 3273 | ac_status=$? |
---|
| 3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3275 | (exit $ac_status); }; } && |
---|
| 3276 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3278 | (eval $ac_try) 2>&5 |
---|
| 3279 | ac_status=$? |
---|
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3281 | (exit $ac_status); }; }; then |
---|
| 3282 | for ac_declaration in \ |
---|
| 3283 | '' \ |
---|
| 3284 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3285 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3286 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3287 | 'extern "C" void exit (int);' \ |
---|
| 3288 | 'void exit (int);' |
---|
| 3289 | do |
---|
| 3290 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3291 | /* confdefs.h. */ |
---|
| 3292 | _ACEOF |
---|
| 3293 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3295 | /* end confdefs.h. */ |
---|
| 3296 | $ac_declaration |
---|
| 3297 | #include <stdlib.h> |
---|
| 3298 | int |
---|
| 3299 | main () |
---|
| 3300 | { |
---|
| 3301 | exit (42); |
---|
| 3302 | ; |
---|
| 3303 | return 0; |
---|
| 3304 | } |
---|
| 3305 | _ACEOF |
---|
| 3306 | rm -f conftest.$ac_objext |
---|
| 3307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3308 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3309 | ac_status=$? |
---|
| 3310 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3311 | rm -f conftest.er1 |
---|
| 3312 | cat conftest.err >&5 |
---|
| 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3314 | (exit $ac_status); } && |
---|
| 3315 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3316 | || test ! -s conftest.err' |
---|
| 3317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3318 | (eval $ac_try) 2>&5 |
---|
| 3319 | ac_status=$? |
---|
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3321 | (exit $ac_status); }; } && |
---|
| 3322 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3324 | (eval $ac_try) 2>&5 |
---|
| 3325 | ac_status=$? |
---|
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3327 | (exit $ac_status); }; }; then |
---|
| 3328 | : |
---|
| 3329 | else |
---|
| 3330 | echo "$as_me: failed program was:" >&5 |
---|
| 3331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3332 | |
---|
| 3333 | continue |
---|
| 3334 | fi |
---|
| 3335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3336 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3337 | /* confdefs.h. */ |
---|
| 3338 | _ACEOF |
---|
| 3339 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3340 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3341 | /* end confdefs.h. */ |
---|
| 3342 | $ac_declaration |
---|
| 3343 | int |
---|
| 3344 | main () |
---|
| 3345 | { |
---|
| 3346 | exit (42); |
---|
| 3347 | ; |
---|
| 3348 | return 0; |
---|
| 3349 | } |
---|
| 3350 | _ACEOF |
---|
| 3351 | rm -f conftest.$ac_objext |
---|
| 3352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3353 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3354 | ac_status=$? |
---|
| 3355 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3356 | rm -f conftest.er1 |
---|
| 3357 | cat conftest.err >&5 |
---|
| 3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3359 | (exit $ac_status); } && |
---|
| 3360 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3361 | || test ! -s conftest.err' |
---|
| 3362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3363 | (eval $ac_try) 2>&5 |
---|
| 3364 | ac_status=$? |
---|
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3366 | (exit $ac_status); }; } && |
---|
| 3367 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3369 | (eval $ac_try) 2>&5 |
---|
| 3370 | ac_status=$? |
---|
| 3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3372 | (exit $ac_status); }; }; then |
---|
| 3373 | break |
---|
| 3374 | else |
---|
| 3375 | echo "$as_me: failed program was:" >&5 |
---|
| 3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3377 | |
---|
| 3378 | fi |
---|
| 3379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3380 | done |
---|
| 3381 | rm -f conftest* |
---|
| 3382 | if test -n "$ac_declaration"; then |
---|
| 3383 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3384 | echo $ac_declaration >>confdefs.h |
---|
| 3385 | echo '#endif' >>confdefs.h |
---|
| 3386 | fi |
---|
| 3387 | |
---|
| 3388 | else |
---|
| 3389 | echo "$as_me: failed program was:" >&5 |
---|
| 3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3391 | |
---|
| 3392 | fi |
---|
| 3393 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3394 | ac_ext=c |
---|
| 3395 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3399 | |
---|
| 3400 | depcc="$CC" am_compiler_list= |
---|
| 3401 | |
---|
| 3402 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3403 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3404 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3406 | else |
---|
| 3407 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3408 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3409 | # making bogus files that we don't know about and never remove. For |
---|
| 3410 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3411 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3412 | # in D'. |
---|
| 3413 | mkdir conftest.dir |
---|
| 3414 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3415 | # using a relative directory. |
---|
| 3416 | cp "$am_depcomp" conftest.dir |
---|
| 3417 | cd conftest.dir |
---|
| 3418 | # We will build objects and dependencies in a subdirectory because |
---|
| 3419 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3420 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3421 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3422 | # the current directory while Tru64 will put them in the object |
---|
| 3423 | # directory. |
---|
| 3424 | mkdir sub |
---|
| 3425 | |
---|
| 3426 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3427 | if test "$am_compiler_list" = ""; then |
---|
| 3428 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3429 | fi |
---|
| 3430 | for depmode in $am_compiler_list; do |
---|
| 3431 | # Setup a source with many dependencies, because some compilers |
---|
| 3432 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3433 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3434 | # |
---|
| 3435 | # We need to recreate these files for each test, as the compiler may |
---|
| 3436 | # overwrite some of them when testing with obscure command lines. |
---|
| 3437 | # This happens at least with the AIX C compiler. |
---|
| 3438 | : > sub/conftest.c |
---|
| 3439 | for i in 1 2 3 4 5 6; do |
---|
| 3440 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[4698] | 3441 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3442 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3443 | touch sub/conftst$i.h |
---|
[1956] | 3444 | done |
---|
| 3445 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3446 | |
---|
| 3447 | case $depmode in |
---|
| 3448 | nosideeffect) |
---|
| 3449 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3450 | # only be used when explicitly requested |
---|
| 3451 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3452 | continue |
---|
| 3453 | else |
---|
| 3454 | break |
---|
| 3455 | fi |
---|
| 3456 | ;; |
---|
| 3457 | none) break ;; |
---|
| 3458 | esac |
---|
| 3459 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3460 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3461 | # handle `-M -o', and we need to detect this. |
---|
| 3462 | if depmode=$depmode \ |
---|
| 3463 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3464 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3465 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3466 | >/dev/null 2>conftest.err && |
---|
| 3467 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3468 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3469 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3470 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[4698] | 3471 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3472 | # that says an option was ignored or not supported. |
---|
| 3473 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3474 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3475 | # The diagnosis changed in icc 8.0: |
---|
| 3476 | # icc: Command line remark: option '-MP' not supported |
---|
| 3477 | if (grep 'ignoring option' conftest.err || |
---|
| 3478 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3479 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3480 | break |
---|
| 3481 | fi |
---|
| 3482 | fi |
---|
| 3483 | done |
---|
| 3484 | |
---|
| 3485 | cd .. |
---|
| 3486 | rm -rf conftest.dir |
---|
| 3487 | else |
---|
| 3488 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3489 | fi |
---|
| 3490 | |
---|
| 3491 | fi |
---|
| 3492 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3493 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3494 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3495 | |
---|
| 3496 | |
---|
| 3497 | |
---|
| 3498 | if |
---|
| 3499 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3500 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3501 | am__fastdepCC_TRUE= |
---|
| 3502 | am__fastdepCC_FALSE='#' |
---|
| 3503 | else |
---|
| 3504 | am__fastdepCC_TRUE='#' |
---|
| 3505 | am__fastdepCC_FALSE= |
---|
| 3506 | fi |
---|
| 3507 | |
---|
| 3508 | |
---|
| 3509 | |
---|
[1971] | 3510 | ac_ext=c |
---|
| 3511 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3515 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3516 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3517 | # On Suns, sometimes $CPP names a directory. |
---|
| 3518 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3519 | CPP= |
---|
| 3520 | fi |
---|
| 3521 | if test -z "$CPP"; then |
---|
| 3522 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3524 | else |
---|
[1971] | 3525 | # Double quotes because CPP needs to be expanded |
---|
| 3526 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3527 | do |
---|
| 3528 | ac_preproc_ok=false |
---|
| 3529 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3530 | do |
---|
| 3531 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3532 | # with a fresh cross-compiler works. |
---|
| 3533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3534 | # <limits.h> exists even on freestanding compilers. |
---|
| 3535 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3536 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3537 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3538 | /* confdefs.h. */ |
---|
| 3539 | _ACEOF |
---|
| 3540 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3541 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3542 | /* end confdefs.h. */ |
---|
| 3543 | #ifdef __STDC__ |
---|
| 3544 | # include <limits.h> |
---|
| 3545 | #else |
---|
| 3546 | # include <assert.h> |
---|
| 3547 | #endif |
---|
| 3548 | Syntax error |
---|
| 3549 | _ACEOF |
---|
| 3550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3552 | ac_status=$? |
---|
| 3553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3554 | rm -f conftest.er1 |
---|
| 3555 | cat conftest.err >&5 |
---|
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3557 | (exit $ac_status); } >/dev/null; then |
---|
| 3558 | if test -s conftest.err; then |
---|
| 3559 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3561 | else |
---|
| 3562 | ac_cpp_err= |
---|
| 3563 | fi |
---|
| 3564 | else |
---|
| 3565 | ac_cpp_err=yes |
---|
| 3566 | fi |
---|
| 3567 | if test -z "$ac_cpp_err"; then |
---|
| 3568 | : |
---|
| 3569 | else |
---|
| 3570 | echo "$as_me: failed program was:" >&5 |
---|
| 3571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3572 | |
---|
| 3573 | # Broken: fails on valid input. |
---|
| 3574 | continue |
---|
| 3575 | fi |
---|
| 3576 | rm -f conftest.err conftest.$ac_ext |
---|
| 3577 | |
---|
| 3578 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3579 | # can be detected and how. |
---|
| 3580 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3581 | /* confdefs.h. */ |
---|
| 3582 | _ACEOF |
---|
| 3583 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3585 | /* end confdefs.h. */ |
---|
| 3586 | #include <ac_nonexistent.h> |
---|
| 3587 | _ACEOF |
---|
| 3588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3590 | ac_status=$? |
---|
| 3591 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3592 | rm -f conftest.er1 |
---|
| 3593 | cat conftest.err >&5 |
---|
| 3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3595 | (exit $ac_status); } >/dev/null; then |
---|
| 3596 | if test -s conftest.err; then |
---|
| 3597 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3599 | else |
---|
| 3600 | ac_cpp_err= |
---|
| 3601 | fi |
---|
| 3602 | else |
---|
| 3603 | ac_cpp_err=yes |
---|
| 3604 | fi |
---|
| 3605 | if test -z "$ac_cpp_err"; then |
---|
| 3606 | # Broken: success on invalid input. |
---|
| 3607 | continue |
---|
| 3608 | else |
---|
| 3609 | echo "$as_me: failed program was:" >&5 |
---|
| 3610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3611 | |
---|
| 3612 | # Passes both tests. |
---|
| 3613 | ac_preproc_ok=: |
---|
| 3614 | break |
---|
| 3615 | fi |
---|
| 3616 | rm -f conftest.err conftest.$ac_ext |
---|
| 3617 | |
---|
| 3618 | done |
---|
| 3619 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3620 | rm -f conftest.err conftest.$ac_ext |
---|
| 3621 | if $ac_preproc_ok; then |
---|
| 3622 | break |
---|
| 3623 | fi |
---|
| 3624 | |
---|
| 3625 | done |
---|
| 3626 | ac_cv_prog_CPP=$CPP |
---|
| 3627 | |
---|
| 3628 | fi |
---|
| 3629 | CPP=$ac_cv_prog_CPP |
---|
| 3630 | else |
---|
| 3631 | ac_cv_prog_CPP=$CPP |
---|
| 3632 | fi |
---|
| 3633 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3634 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3635 | ac_preproc_ok=false |
---|
| 3636 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3637 | do |
---|
| 3638 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3639 | # with a fresh cross-compiler works. |
---|
| 3640 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3641 | # <limits.h> exists even on freestanding compilers. |
---|
| 3642 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3643 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3644 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3645 | /* confdefs.h. */ |
---|
| 3646 | _ACEOF |
---|
| 3647 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3648 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3649 | /* end confdefs.h. */ |
---|
| 3650 | #ifdef __STDC__ |
---|
| 3651 | # include <limits.h> |
---|
| 3652 | #else |
---|
| 3653 | # include <assert.h> |
---|
| 3654 | #endif |
---|
| 3655 | Syntax error |
---|
| 3656 | _ACEOF |
---|
| 3657 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3658 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3659 | ac_status=$? |
---|
| 3660 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3661 | rm -f conftest.er1 |
---|
| 3662 | cat conftest.err >&5 |
---|
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3664 | (exit $ac_status); } >/dev/null; then |
---|
| 3665 | if test -s conftest.err; then |
---|
| 3666 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3667 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3668 | else |
---|
| 3669 | ac_cpp_err= |
---|
| 3670 | fi |
---|
| 3671 | else |
---|
| 3672 | ac_cpp_err=yes |
---|
| 3673 | fi |
---|
| 3674 | if test -z "$ac_cpp_err"; then |
---|
| 3675 | : |
---|
| 3676 | else |
---|
| 3677 | echo "$as_me: failed program was:" >&5 |
---|
| 3678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3679 | |
---|
| 3680 | # Broken: fails on valid input. |
---|
| 3681 | continue |
---|
| 3682 | fi |
---|
| 3683 | rm -f conftest.err conftest.$ac_ext |
---|
| 3684 | |
---|
| 3685 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3686 | # can be detected and how. |
---|
| 3687 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3688 | /* confdefs.h. */ |
---|
| 3689 | _ACEOF |
---|
| 3690 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3691 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3692 | /* end confdefs.h. */ |
---|
| 3693 | #include <ac_nonexistent.h> |
---|
| 3694 | _ACEOF |
---|
| 3695 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3697 | ac_status=$? |
---|
| 3698 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3699 | rm -f conftest.er1 |
---|
| 3700 | cat conftest.err >&5 |
---|
| 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3702 | (exit $ac_status); } >/dev/null; then |
---|
| 3703 | if test -s conftest.err; then |
---|
| 3704 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3705 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3706 | else |
---|
| 3707 | ac_cpp_err= |
---|
| 3708 | fi |
---|
| 3709 | else |
---|
| 3710 | ac_cpp_err=yes |
---|
| 3711 | fi |
---|
| 3712 | if test -z "$ac_cpp_err"; then |
---|
| 3713 | # Broken: success on invalid input. |
---|
| 3714 | continue |
---|
| 3715 | else |
---|
| 3716 | echo "$as_me: failed program was:" >&5 |
---|
| 3717 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3718 | |
---|
| 3719 | # Passes both tests. |
---|
| 3720 | ac_preproc_ok=: |
---|
| 3721 | break |
---|
| 3722 | fi |
---|
| 3723 | rm -f conftest.err conftest.$ac_ext |
---|
| 3724 | |
---|
| 3725 | done |
---|
| 3726 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3727 | rm -f conftest.err conftest.$ac_ext |
---|
| 3728 | if $ac_preproc_ok; then |
---|
| 3729 | : |
---|
| 3730 | else |
---|
| 3731 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3732 | See \`config.log' for more details." >&5 |
---|
| 3733 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3734 | See \`config.log' for more details." >&2;} |
---|
| 3735 | { (exit 1); exit 1; }; } |
---|
| 3736 | fi |
---|
| 3737 | |
---|
| 3738 | ac_ext=c |
---|
| 3739 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3743 | |
---|
| 3744 | |
---|
| 3745 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3746 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3747 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3749 | else |
---|
| 3750 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3751 | then ac_cv_prog_egrep='grep -E' |
---|
| 3752 | else ac_cv_prog_egrep='egrep' |
---|
| 3753 | fi |
---|
| 3754 | fi |
---|
| 3755 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3756 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3757 | EGREP=$ac_cv_prog_egrep |
---|
| 3758 | |
---|
| 3759 | |
---|
| 3760 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3761 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3762 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3764 | else |
---|
| 3765 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3766 | /* confdefs.h. */ |
---|
| 3767 | _ACEOF |
---|
| 3768 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3770 | /* end confdefs.h. */ |
---|
| 3771 | #include <stdlib.h> |
---|
| 3772 | #include <stdarg.h> |
---|
| 3773 | #include <string.h> |
---|
| 3774 | #include <float.h> |
---|
| 3775 | |
---|
| 3776 | int |
---|
| 3777 | main () |
---|
| 3778 | { |
---|
| 3779 | |
---|
| 3780 | ; |
---|
| 3781 | return 0; |
---|
| 3782 | } |
---|
| 3783 | _ACEOF |
---|
| 3784 | rm -f conftest.$ac_objext |
---|
| 3785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3786 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3787 | ac_status=$? |
---|
| 3788 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3789 | rm -f conftest.er1 |
---|
| 3790 | cat conftest.err >&5 |
---|
| 3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3792 | (exit $ac_status); } && |
---|
| 3793 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3794 | || test ! -s conftest.err' |
---|
| 3795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3796 | (eval $ac_try) 2>&5 |
---|
| 3797 | ac_status=$? |
---|
| 3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3799 | (exit $ac_status); }; } && |
---|
| 3800 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3802 | (eval $ac_try) 2>&5 |
---|
| 3803 | ac_status=$? |
---|
| 3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3805 | (exit $ac_status); }; }; then |
---|
| 3806 | ac_cv_header_stdc=yes |
---|
| 3807 | else |
---|
| 3808 | echo "$as_me: failed program was:" >&5 |
---|
| 3809 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3810 | |
---|
| 3811 | ac_cv_header_stdc=no |
---|
| 3812 | fi |
---|
| 3813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3814 | |
---|
| 3815 | if test $ac_cv_header_stdc = yes; then |
---|
| 3816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3817 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3818 | /* confdefs.h. */ |
---|
| 3819 | _ACEOF |
---|
| 3820 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3821 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3822 | /* end confdefs.h. */ |
---|
| 3823 | #include <string.h> |
---|
| 3824 | |
---|
| 3825 | _ACEOF |
---|
| 3826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3827 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3828 | : |
---|
| 3829 | else |
---|
| 3830 | ac_cv_header_stdc=no |
---|
| 3831 | fi |
---|
| 3832 | rm -f conftest* |
---|
| 3833 | |
---|
| 3834 | fi |
---|
| 3835 | |
---|
| 3836 | if test $ac_cv_header_stdc = yes; then |
---|
| 3837 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3838 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3839 | /* confdefs.h. */ |
---|
| 3840 | _ACEOF |
---|
| 3841 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3843 | /* end confdefs.h. */ |
---|
| 3844 | #include <stdlib.h> |
---|
| 3845 | |
---|
| 3846 | _ACEOF |
---|
| 3847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3848 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3849 | : |
---|
| 3850 | else |
---|
| 3851 | ac_cv_header_stdc=no |
---|
| 3852 | fi |
---|
| 3853 | rm -f conftest* |
---|
| 3854 | |
---|
| 3855 | fi |
---|
| 3856 | |
---|
| 3857 | if test $ac_cv_header_stdc = yes; then |
---|
| 3858 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3859 | if test "$cross_compiling" = yes; then |
---|
| 3860 | : |
---|
| 3861 | else |
---|
| 3862 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3863 | /* confdefs.h. */ |
---|
| 3864 | _ACEOF |
---|
| 3865 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3867 | /* end confdefs.h. */ |
---|
| 3868 | #include <ctype.h> |
---|
| 3869 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3870 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3871 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3872 | #else |
---|
| 3873 | # define ISLOWER(c) \ |
---|
| 3874 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3875 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3876 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3877 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3878 | #endif |
---|
| 3879 | |
---|
| 3880 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3881 | int |
---|
| 3882 | main () |
---|
| 3883 | { |
---|
| 3884 | int i; |
---|
| 3885 | for (i = 0; i < 256; i++) |
---|
| 3886 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3887 | || toupper (i) != TOUPPER (i)) |
---|
| 3888 | exit(2); |
---|
| 3889 | exit (0); |
---|
| 3890 | } |
---|
| 3891 | _ACEOF |
---|
| 3892 | rm -f conftest$ac_exeext |
---|
| 3893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3894 | (eval $ac_link) 2>&5 |
---|
| 3895 | ac_status=$? |
---|
| 3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3899 | (eval $ac_try) 2>&5 |
---|
| 3900 | ac_status=$? |
---|
| 3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3902 | (exit $ac_status); }; }; then |
---|
| 3903 | : |
---|
| 3904 | else |
---|
| 3905 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3906 | echo "$as_me: failed program was:" >&5 |
---|
| 3907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3908 | |
---|
| 3909 | ( exit $ac_status ) |
---|
| 3910 | ac_cv_header_stdc=no |
---|
| 3911 | fi |
---|
| 3912 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3913 | fi |
---|
| 3914 | fi |
---|
| 3915 | fi |
---|
| 3916 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3917 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3918 | if test $ac_cv_header_stdc = yes; then |
---|
| 3919 | |
---|
| 3920 | cat >>confdefs.h <<\_ACEOF |
---|
| 3921 | #define STDC_HEADERS 1 |
---|
| 3922 | _ACEOF |
---|
| 3923 | |
---|
| 3924 | fi |
---|
| 3925 | |
---|
| 3926 | |
---|
[3424] | 3927 | ################################## |
---|
| 3928 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3929 | ################################## |
---|
| 3930 | |
---|
| 3931 | #-----------------# |
---|
| 3932 | # DEBUG-statement # |
---|
| 3933 | #-----------------# |
---|
[3173] | 3934 | DEBUG=no |
---|
| 3935 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3936 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3937 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3938 | if test "${enable_debug+set}" = set; then |
---|
| 3939 | enableval="$enable_debug" |
---|
[3205] | 3940 | DEBUG=$enableval |
---|
[3173] | 3941 | fi; |
---|
| 3942 | |
---|
[3424] | 3943 | if test x$DEBUG = xno; then |
---|
[4556] | 3944 | echo "no" |
---|
| 3945 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
| 3946 | DEBUG=4 |
---|
[3424] | 3947 | elif test x$DEBUG = xyes; then |
---|
[4556] | 3948 | echo "yes" |
---|
| 3949 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3950 | DEBUG=4 |
---|
[3205] | 3951 | else |
---|
[4556] | 3952 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3953 | fi |
---|
| 3954 | |
---|
[3173] | 3955 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3956 | #define DEBUG $DEBUG |
---|
[3173] | 3957 | _ACEOF |
---|
| 3958 | |
---|
| 3959 | |
---|
| 3960 | |
---|
| 3961 | |
---|
[3592] | 3962 | #---------------# |
---|
| 3963 | # Modular Debug # |
---|
| 3964 | #---------------# |
---|
| 3965 | MODULAR_DEBUG=yes |
---|
| 3966 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
| 3967 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
| 3968 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
| 3969 | if test "${enable_modular_debug+set}" = set; then |
---|
| 3970 | enableval="$enable_modular_debug" |
---|
| 3971 | MODULAR_DEBUG=$enableval |
---|
| 3972 | fi; |
---|
| 3973 | |
---|
| 3974 | if test x$MODULAR_DEBUG = xno; then |
---|
[4556] | 3975 | echo "no" |
---|
[3592] | 3976 | elif test x$MODULAR_DEBUG = xyes; then |
---|
[4556] | 3977 | echo "yes" |
---|
[3592] | 3978 | |
---|
| 3979 | cat >>confdefs.h <<_ACEOF |
---|
| 3980 | #define MODULAR_DEBUG 1 |
---|
| 3981 | _ACEOF |
---|
| 3982 | |
---|
| 3983 | fi |
---|
| 3984 | |
---|
[3424] | 3985 | #--------------# |
---|
| 3986 | # GTK-disabled # |
---|
| 3987 | #--------------# |
---|
[3100] | 3988 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3989 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3990 | |
---|
| 3991 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3992 | if test "${with_gtk+set}" = set; then |
---|
| 3993 | withval="$with_gtk" |
---|
[3100] | 3994 | def_gtk=no |
---|
[3205] | 3995 | else |
---|
| 3996 | def_gtk=yes |
---|
[3100] | 3997 | fi; |
---|
[3424] | 3998 | if test x$def_gtk = xyes; then |
---|
[3100] | 3999 | echo "yes" |
---|
| 4000 | fi |
---|
[3424] | 4001 | if test x$def_gtk = xno; then |
---|
[3100] | 4002 | echo "no" |
---|
| 4003 | fi |
---|
[3423] | 4004 | |
---|
[3424] | 4005 | #------------------# |
---|
| 4006 | # libCurl-disabled # |
---|
| 4007 | #------------------# |
---|
[3423] | 4008 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 4009 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 4010 | |
---|
| 4011 | # Check whether --with-curl or --without-curl was given. |
---|
| 4012 | if test "${with_curl+set}" = set; then |
---|
| 4013 | withval="$with_curl" |
---|
| 4014 | def_curl=no |
---|
| 4015 | else |
---|
| 4016 | def_curl=yes |
---|
| 4017 | fi; |
---|
[3424] | 4018 | if test x$def_curl = xyes; then |
---|
[3423] | 4019 | echo "yes" |
---|
| 4020 | fi |
---|
[3424] | 4021 | if test x$def_curl = xno; then |
---|
[3423] | 4022 | echo "no" |
---|
| 4023 | fi |
---|
| 4024 | |
---|
[3424] | 4025 | #-------------------# |
---|
| 4026 | # SubProject-enable # |
---|
| 4027 | #-------------------# |
---|
| 4028 | def_sub_projects=no |
---|
[3377] | 4029 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 4030 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 4031 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 4032 | if test "${enable_sub_projects+set}" = set; then |
---|
| 4033 | enableval="$enable_sub_projects" |
---|
| 4034 | def_sub_projects=yes |
---|
| 4035 | fi; |
---|
[3424] | 4036 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 4037 | echo "yes" |
---|
| 4038 | fi |
---|
[3424] | 4039 | if test x$def_sub_projects = xno; then |
---|
[3377] | 4040 | echo "no" |
---|
| 4041 | fi |
---|
| 4042 | |
---|
| 4043 | |
---|
| 4044 | if test x$def_sub_projects = xyes; then |
---|
| 4045 | SUB_PROJECTS_TRUE= |
---|
| 4046 | SUB_PROJECTS_FALSE='#' |
---|
| 4047 | else |
---|
| 4048 | SUB_PROJECTS_TRUE='#' |
---|
| 4049 | SUB_PROJECTS_FALSE= |
---|
| 4050 | fi |
---|
| 4051 | |
---|
| 4052 | |
---|
[3788] | 4053 | #-------------------# |
---|
| 4054 | # Profiling Enabled # |
---|
| 4055 | #-------------------# |
---|
| 4056 | def_profiling=no |
---|
| 4057 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
| 4058 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
| 4059 | # Check whether --enable-profile or --disable-profile was given. |
---|
| 4060 | if test "${enable_profile+set}" = set; then |
---|
| 4061 | enableval="$enable_profile" |
---|
| 4062 | def_profiling=yes |
---|
| 4063 | fi; |
---|
| 4064 | if test x$def_profiling = xyes; then |
---|
| 4065 | echo "yes" |
---|
| 4066 | CXXFLAGS="$CXXFLAGS -pg" |
---|
| 4067 | fi |
---|
| 4068 | if test x$def_profiling = xno; then |
---|
| 4069 | echo "no" |
---|
| 4070 | fi |
---|
| 4071 | |
---|
[3863] | 4072 | #----------------# |
---|
| 4073 | # efence Enabled # |
---|
| 4074 | #----------------# |
---|
| 4075 | def_efence=no |
---|
| 4076 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
| 4077 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
| 4078 | # Check whether --enable-efence or --disable-efence was given. |
---|
| 4079 | if test "${enable_efence+set}" = set; then |
---|
| 4080 | enableval="$enable_efence" |
---|
| 4081 | def_efence=yes |
---|
| 4082 | fi; |
---|
| 4083 | if test x$def_efence = xyes; then |
---|
| 4084 | echo "yes" |
---|
| 4085 | fi |
---|
| 4086 | if test x$def_efence = xno; then |
---|
| 4087 | echo "no" |
---|
| 4088 | fi |
---|
| 4089 | |
---|
[3558] | 4090 | #----------------------# |
---|
| 4091 | # Documentation-enable # |
---|
| 4092 | #----------------------# |
---|
| 4093 | def_documentation=no |
---|
| 4094 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
| 4095 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
| 4096 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
| 4097 | if test "${enable_documentation+set}" = set; then |
---|
| 4098 | enableval="$enable_documentation" |
---|
| 4099 | def_documentation=yes |
---|
| 4100 | fi; |
---|
| 4101 | if test x$def_documentation = xyes; then |
---|
| 4102 | echo "yes" |
---|
| 4103 | fi |
---|
| 4104 | if test x$def_documentation = xno; then |
---|
| 4105 | echo "no" |
---|
| 4106 | fi |
---|
| 4107 | |
---|
| 4108 | |
---|
| 4109 | if test x$def_documentation = xyes; then |
---|
| 4110 | DOCUMENTATION_TRUE= |
---|
| 4111 | DOCUMENTATION_FALSE='#' |
---|
| 4112 | else |
---|
| 4113 | DOCUMENTATION_TRUE='#' |
---|
| 4114 | DOCUMENTATION_FALSE= |
---|
| 4115 | fi |
---|
| 4116 | |
---|
[3424] | 4117 | ####################### |
---|
| 4118 | ## PROGRAMM CHECKING ## |
---|
| 4119 | ## 3. party Programs ## |
---|
| 4120 | ####################### |
---|
| 4121 | |
---|
| 4122 | #----------------------# |
---|
| 4123 | # checking for Doxygen # |
---|
| 4124 | #----------------------# |
---|
[3219] | 4125 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4126 | set dummy doxygen; ac_word=$2 |
---|
| 4127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4129 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4131 | else |
---|
| 4132 | case $DOXYGEN in |
---|
| 4133 | [\\/]* | ?:[\\/]*) |
---|
| 4134 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4135 | ;; |
---|
| 4136 | *) |
---|
| 4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4138 | for as_dir in $PATH |
---|
| 4139 | do |
---|
| 4140 | IFS=$as_save_IFS |
---|
| 4141 | test -z "$as_dir" && as_dir=. |
---|
| 4142 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4144 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4146 | break 2 |
---|
| 4147 | fi |
---|
| 4148 | done |
---|
| 4149 | done |
---|
| 4150 | |
---|
| 4151 | ;; |
---|
| 4152 | esac |
---|
| 4153 | fi |
---|
| 4154 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4155 | |
---|
| 4156 | if test -n "$DOXYGEN"; then |
---|
| 4157 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4158 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4159 | else |
---|
| 4160 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4161 | echo "${ECHO_T}no" >&6 |
---|
| 4162 | fi |
---|
| 4163 | |
---|
| 4164 | |
---|
| 4165 | |
---|
| 4166 | if test $DOXYGEN; then |
---|
| 4167 | DOXYGEN_TRUE= |
---|
| 4168 | DOXYGEN_FALSE='#' |
---|
| 4169 | else |
---|
| 4170 | DOXYGEN_TRUE='#' |
---|
| 4171 | DOXYGEN_FALSE= |
---|
| 4172 | fi |
---|
| 4173 | |
---|
| 4174 | |
---|
[3789] | 4175 | #--------------------# |
---|
| 4176 | # checking for gprof # |
---|
| 4177 | #--------------------# |
---|
| 4178 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
| 4179 | set dummy gprof; ac_word=$2 |
---|
| 4180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4182 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
| 4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4184 | else |
---|
| 4185 | case $GPROF in |
---|
| 4186 | [\\/]* | ?:[\\/]*) |
---|
| 4187 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
| 4188 | ;; |
---|
| 4189 | *) |
---|
| 4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4191 | for as_dir in $PATH |
---|
| 4192 | do |
---|
| 4193 | IFS=$as_save_IFS |
---|
| 4194 | test -z "$as_dir" && as_dir=. |
---|
| 4195 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4197 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4199 | break 2 |
---|
| 4200 | fi |
---|
| 4201 | done |
---|
| 4202 | done |
---|
| 4203 | |
---|
| 4204 | ;; |
---|
| 4205 | esac |
---|
| 4206 | fi |
---|
| 4207 | GPROF=$ac_cv_path_GPROF |
---|
| 4208 | |
---|
| 4209 | if test -n "$GPROF"; then |
---|
| 4210 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
| 4211 | echo "${ECHO_T}$GPROF" >&6 |
---|
| 4212 | else |
---|
| 4213 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4214 | echo "${ECHO_T}no" >&6 |
---|
| 4215 | fi |
---|
| 4216 | |
---|
| 4217 | |
---|
[4130] | 4218 | #-------------------------# |
---|
| 4219 | # checking for pkg-config # |
---|
| 4220 | #-------------------------# |
---|
| 4221 | if test x$def_gtk = xyes; then |
---|
| 4222 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
| 4223 | set dummy pkg-config; ac_word=$2 |
---|
| 4224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4226 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
| 4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4228 | else |
---|
| 4229 | case $PKG_CONFIG in |
---|
| 4230 | [\\/]* | ?:[\\/]*) |
---|
| 4231 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
| 4232 | ;; |
---|
| 4233 | *) |
---|
| 4234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4235 | for as_dir in $PATH |
---|
| 4236 | do |
---|
| 4237 | IFS=$as_save_IFS |
---|
| 4238 | test -z "$as_dir" && as_dir=. |
---|
| 4239 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4241 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4243 | break 2 |
---|
| 4244 | fi |
---|
| 4245 | done |
---|
| 4246 | done |
---|
| 4247 | |
---|
| 4248 | ;; |
---|
| 4249 | esac |
---|
| 4250 | fi |
---|
| 4251 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
| 4252 | |
---|
| 4253 | if test -n "$PKG_CONFIG"; then |
---|
| 4254 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
| 4255 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
| 4256 | else |
---|
| 4257 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4258 | echo "${ECHO_T}no" >&6 |
---|
| 4259 | fi |
---|
| 4260 | |
---|
| 4261 | fi |
---|
| 4262 | |
---|
| 4263 | |
---|
[3424] | 4264 | ######################### |
---|
| 4265 | ## CHECKING FOR SYSTEM ## |
---|
| 4266 | ######################### |
---|
| 4267 | ## here the system is checked, and openGL is included |
---|
| 4268 | ## also checking for SDL on differen Systems |
---|
[1971] | 4269 | |
---|
[2925] | 4270 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4271 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4272 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4273 | case "$target" in |
---|
[3424] | 4274 | #---------# |
---|
| 4275 | # WINDOWS # |
---|
| 4276 | #---------# |
---|
[2980] | 4277 | *-*-mingw32*) |
---|
[2925] | 4278 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4279 | |
---|
[4662] | 4280 | CPPFLAGS="-I/usr/include -I/mingw/include" |
---|
[3790] | 4281 | |
---|
[2925] | 4282 | mingw="yes" |
---|
| 4283 | MSBITFIELDS="-mms-bitfields" |
---|
| 4284 | MWINDOWS="-mwindows" |
---|
[1971] | 4285 | |
---|
| 4286 | |
---|
| 4287 | |
---|
[4697] | 4288 | # checking for mingw32 |
---|
| 4289 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4290 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4291 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
| 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4293 | else |
---|
| 4294 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4295 | LIBS="-lmingw32 $LIBS" |
---|
| 4296 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4297 | /* confdefs.h. */ |
---|
| 4298 | _ACEOF |
---|
| 4299 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4300 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4301 | /* end confdefs.h. */ |
---|
[1971] | 4302 | |
---|
| 4303 | |
---|
[4697] | 4304 | int |
---|
| 4305 | main () |
---|
| 4306 | { |
---|
| 4307 | main (); |
---|
| 4308 | ; |
---|
| 4309 | return 0; |
---|
| 4310 | } |
---|
| 4311 | _ACEOF |
---|
| 4312 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4314 | (eval $ac_link) 2>conftest.er1 |
---|
| 4315 | ac_status=$? |
---|
| 4316 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4317 | rm -f conftest.er1 |
---|
| 4318 | cat conftest.err >&5 |
---|
| 4319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4320 | (exit $ac_status); } && |
---|
| 4321 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4322 | || test ! -s conftest.err' |
---|
| 4323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4324 | (eval $ac_try) 2>&5 |
---|
| 4325 | ac_status=$? |
---|
| 4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4327 | (exit $ac_status); }; } && |
---|
| 4328 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4330 | (eval $ac_try) 2>&5 |
---|
| 4331 | ac_status=$? |
---|
| 4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4333 | (exit $ac_status); }; }; then |
---|
| 4334 | ac_cv_lib_mingw32_main=yes |
---|
| 4335 | else |
---|
| 4336 | echo "$as_me: failed program was:" >&5 |
---|
| 4337 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1971] | 4338 | |
---|
[4697] | 4339 | ac_cv_lib_mingw32_main=no |
---|
| 4340 | fi |
---|
| 4341 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4342 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4343 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4344 | fi |
---|
| 4345 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4346 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4347 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4348 | FOUND_mingw32=yes |
---|
| 4349 | fi |
---|
[2925] | 4350 | |
---|
[4697] | 4351 | if test x$FOUND_mingw32 = xyes; then |
---|
| 4352 | LIBS="$LIBS -lmingw32" |
---|
| 4353 | fi |
---|
[2925] | 4354 | |
---|
[4697] | 4355 | #-----------# |
---|
| 4356 | # SDL (win) # |
---|
| 4357 | #-----------# |
---|
| 4358 | # checking for SDL-headers |
---|
| 4359 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[2925] | 4360 | |
---|
| 4361 | |
---|
| 4362 | |
---|
[4697] | 4363 | |
---|
| 4364 | |
---|
| 4365 | |
---|
| 4366 | |
---|
| 4367 | |
---|
| 4368 | |
---|
[1971] | 4369 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4370 | inttypes.h stdint.h unistd.h |
---|
| 4371 | do |
---|
| 4372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4377 | else |
---|
| 4378 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4379 | /* confdefs.h. */ |
---|
| 4380 | _ACEOF |
---|
| 4381 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4382 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4383 | /* end confdefs.h. */ |
---|
| 4384 | $ac_includes_default |
---|
| 4385 | |
---|
| 4386 | #include <$ac_header> |
---|
| 4387 | _ACEOF |
---|
| 4388 | rm -f conftest.$ac_objext |
---|
| 4389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4390 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4391 | ac_status=$? |
---|
| 4392 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4393 | rm -f conftest.er1 |
---|
| 4394 | cat conftest.err >&5 |
---|
| 4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4396 | (exit $ac_status); } && |
---|
| 4397 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4398 | || test ! -s conftest.err' |
---|
| 4399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4400 | (eval $ac_try) 2>&5 |
---|
| 4401 | ac_status=$? |
---|
| 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4403 | (exit $ac_status); }; } && |
---|
| 4404 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4406 | (eval $ac_try) 2>&5 |
---|
| 4407 | ac_status=$? |
---|
| 4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4409 | (exit $ac_status); }; }; then |
---|
| 4410 | eval "$as_ac_Header=yes" |
---|
| 4411 | else |
---|
| 4412 | echo "$as_me: failed program was:" >&5 |
---|
| 4413 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4414 | |
---|
| 4415 | eval "$as_ac_Header=no" |
---|
| 4416 | fi |
---|
| 4417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4418 | fi |
---|
| 4419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4422 | cat >>confdefs.h <<_ACEOF |
---|
| 4423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4424 | _ACEOF |
---|
| 4425 | |
---|
| 4426 | fi |
---|
| 4427 | |
---|
| 4428 | done |
---|
| 4429 | |
---|
| 4430 | |
---|
| 4431 | |
---|
[4697] | 4432 | for ac_header in SDL/SDL.h |
---|
[2879] | 4433 | do |
---|
| 4434 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4440 | fi |
---|
| 4441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4443 | else |
---|
| 4444 | # Is the header compilable? |
---|
| 4445 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4446 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4447 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4448 | /* confdefs.h. */ |
---|
| 4449 | _ACEOF |
---|
| 4450 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4451 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4452 | /* end confdefs.h. */ |
---|
| 4453 | $ac_includes_default |
---|
| 4454 | #include <$ac_header> |
---|
| 4455 | _ACEOF |
---|
| 4456 | rm -f conftest.$ac_objext |
---|
| 4457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4458 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4459 | ac_status=$? |
---|
| 4460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4461 | rm -f conftest.er1 |
---|
| 4462 | cat conftest.err >&5 |
---|
| 4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4464 | (exit $ac_status); } && |
---|
| 4465 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4466 | || test ! -s conftest.err' |
---|
| 4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4468 | (eval $ac_try) 2>&5 |
---|
| 4469 | ac_status=$? |
---|
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4471 | (exit $ac_status); }; } && |
---|
| 4472 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4474 | (eval $ac_try) 2>&5 |
---|
| 4475 | ac_status=$? |
---|
| 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4477 | (exit $ac_status); }; }; then |
---|
| 4478 | ac_header_compiler=yes |
---|
| 4479 | else |
---|
| 4480 | echo "$as_me: failed program was:" >&5 |
---|
| 4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4482 | |
---|
| 4483 | ac_header_compiler=no |
---|
| 4484 | fi |
---|
| 4485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4486 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4487 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4488 | |
---|
| 4489 | # Is the header present? |
---|
| 4490 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4491 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4492 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4493 | /* confdefs.h. */ |
---|
| 4494 | _ACEOF |
---|
| 4495 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4496 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4497 | /* end confdefs.h. */ |
---|
| 4498 | #include <$ac_header> |
---|
| 4499 | _ACEOF |
---|
| 4500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4502 | ac_status=$? |
---|
| 4503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4504 | rm -f conftest.er1 |
---|
| 4505 | cat conftest.err >&5 |
---|
| 4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4507 | (exit $ac_status); } >/dev/null; then |
---|
| 4508 | if test -s conftest.err; then |
---|
| 4509 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4511 | else |
---|
| 4512 | ac_cpp_err= |
---|
| 4513 | fi |
---|
| 4514 | else |
---|
| 4515 | ac_cpp_err=yes |
---|
| 4516 | fi |
---|
| 4517 | if test -z "$ac_cpp_err"; then |
---|
| 4518 | ac_header_preproc=yes |
---|
| 4519 | else |
---|
| 4520 | echo "$as_me: failed program was:" >&5 |
---|
| 4521 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4522 | |
---|
| 4523 | ac_header_preproc=no |
---|
| 4524 | fi |
---|
| 4525 | rm -f conftest.err conftest.$ac_ext |
---|
| 4526 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4527 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4528 | |
---|
| 4529 | # So? What about this header? |
---|
| 4530 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4531 | yes:no: ) |
---|
| 4532 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4533 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4534 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4535 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4536 | ac_header_preproc=yes |
---|
| 4537 | ;; |
---|
| 4538 | no:yes:* ) |
---|
| 4539 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4540 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4541 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4542 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4543 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4544 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4545 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4546 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4547 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4548 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4549 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4550 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4551 | ( |
---|
| 4552 | cat <<\_ASBOX |
---|
[3240] | 4553 | ## ---------------------------------------------- ## |
---|
| 4554 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4555 | ## ---------------------------------------------- ## |
---|
[2879] | 4556 | _ASBOX |
---|
| 4557 | ) | |
---|
| 4558 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4559 | ;; |
---|
| 4560 | esac |
---|
| 4561 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4562 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4563 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4565 | else |
---|
| 4566 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4567 | fi |
---|
| 4568 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4569 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4570 | |
---|
| 4571 | fi |
---|
| 4572 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4573 | cat >>confdefs.h <<_ACEOF |
---|
| 4574 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4575 | _ACEOF |
---|
| 4576 | |
---|
| 4577 | else |
---|
[4697] | 4578 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4579 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
[2879] | 4580 | { (exit 1); exit 1; }; } |
---|
| 4581 | fi |
---|
| 4582 | |
---|
| 4583 | done |
---|
| 4584 | |
---|
[4697] | 4585 | |
---|
| 4586 | #checking for libSDL |
---|
| 4587 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4588 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4589 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
[1959] | 4590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4591 | else |
---|
| 4592 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 4593 | LIBS="-lsdlmain $LIBS" |
---|
[1959] | 4594 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4595 | /* confdefs.h. */ |
---|
[1956] | 4596 | _ACEOF |
---|
[1959] | 4597 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4598 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4599 | /* end confdefs.h. */ |
---|
[1956] | 4600 | |
---|
[1971] | 4601 | |
---|
[1959] | 4602 | int |
---|
| 4603 | main () |
---|
| 4604 | { |
---|
[1971] | 4605 | main (); |
---|
[1959] | 4606 | ; |
---|
| 4607 | return 0; |
---|
| 4608 | } |
---|
| 4609 | _ACEOF |
---|
| 4610 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4612 | (eval $ac_link) 2>conftest.er1 |
---|
| 4613 | ac_status=$? |
---|
| 4614 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4615 | rm -f conftest.er1 |
---|
| 4616 | cat conftest.err >&5 |
---|
| 4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4618 | (exit $ac_status); } && |
---|
| 4619 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4620 | || test ! -s conftest.err' |
---|
| 4621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4622 | (eval $ac_try) 2>&5 |
---|
| 4623 | ac_status=$? |
---|
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4625 | (exit $ac_status); }; } && |
---|
| 4626 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4628 | (eval $ac_try) 2>&5 |
---|
| 4629 | ac_status=$? |
---|
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4631 | (exit $ac_status); }; }; then |
---|
[4697] | 4632 | ac_cv_lib_sdlmain_main=yes |
---|
[1959] | 4633 | else |
---|
| 4634 | echo "$as_me: failed program was:" >&5 |
---|
| 4635 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4636 | |
---|
[4697] | 4637 | ac_cv_lib_sdlmain_main=no |
---|
[1956] | 4638 | fi |
---|
[1959] | 4639 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4640 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4641 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4642 | fi |
---|
[4697] | 4643 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4644 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4645 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4646 | FOUND_sdlmain=yes |
---|
| 4647 | fi |
---|
| 4648 | |
---|
| 4649 | if test x$FOUND_sdlmain = xyes ; then |
---|
| 4650 | LIBS="$LIBS -lsdlmain" |
---|
| 4651 | else |
---|
| 4652 | echo "------------------" |
---|
| 4653 | echo "SDL library not found." |
---|
| 4654 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4655 | echo "------------------" |
---|
| 4656 | exit 1 |
---|
| 4657 | fi |
---|
| 4658 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4659 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4660 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[1971] | 4662 | else |
---|
[4697] | 4663 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4664 | LIBS="-lsdl $LIBS" |
---|
| 4665 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4666 | /* confdefs.h. */ |
---|
| 4667 | _ACEOF |
---|
| 4668 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4670 | /* end confdefs.h. */ |
---|
| 4671 | |
---|
| 4672 | |
---|
| 4673 | int |
---|
| 4674 | main () |
---|
| 4675 | { |
---|
| 4676 | main (); |
---|
| 4677 | ; |
---|
| 4678 | return 0; |
---|
| 4679 | } |
---|
| 4680 | _ACEOF |
---|
| 4681 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4683 | (eval $ac_link) 2>conftest.er1 |
---|
| 4684 | ac_status=$? |
---|
| 4685 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4686 | rm -f conftest.er1 |
---|
| 4687 | cat conftest.err >&5 |
---|
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4689 | (exit $ac_status); } && |
---|
| 4690 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4691 | || test ! -s conftest.err' |
---|
| 4692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4693 | (eval $ac_try) 2>&5 |
---|
| 4694 | ac_status=$? |
---|
| 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4696 | (exit $ac_status); }; } && |
---|
| 4697 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4699 | (eval $ac_try) 2>&5 |
---|
| 4700 | ac_status=$? |
---|
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4702 | (exit $ac_status); }; }; then |
---|
| 4703 | ac_cv_lib_sdl_main=yes |
---|
| 4704 | else |
---|
| 4705 | echo "$as_me: failed program was:" >&5 |
---|
| 4706 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4707 | |
---|
| 4708 | ac_cv_lib_sdl_main=no |
---|
[1959] | 4709 | fi |
---|
[4697] | 4710 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4711 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4712 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4713 | fi |
---|
| 4714 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4715 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4716 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4717 | FOUND_sdl=yes |
---|
| 4718 | fi |
---|
[1956] | 4719 | |
---|
[4697] | 4720 | if test x$FOUND_sdl = xyes ; then |
---|
| 4721 | LIBS="$LIBS -lsdl" |
---|
[1971] | 4722 | else |
---|
[4697] | 4723 | echo "------------------" |
---|
| 4724 | echo "SDL library not found." |
---|
| 4725 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4726 | echo "------------------" |
---|
| 4727 | exit -1 |
---|
[1959] | 4728 | fi |
---|
| 4729 | |
---|
[4697] | 4730 | #---------------# |
---|
| 4731 | # open-GL (win) # |
---|
| 4732 | #---------------# |
---|
| 4733 | # checking gl header |
---|
[1971] | 4734 | |
---|
[4697] | 4735 | for ac_header in GL/gl.h |
---|
[1971] | 4736 | do |
---|
| 4737 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4739 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4743 | fi |
---|
| 4744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4746 | else |
---|
| 4747 | # Is the header compilable? |
---|
| 4748 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4749 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4750 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4751 | /* confdefs.h. */ |
---|
| 4752 | _ACEOF |
---|
| 4753 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4754 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4755 | /* end confdefs.h. */ |
---|
| 4756 | $ac_includes_default |
---|
| 4757 | #include <$ac_header> |
---|
| 4758 | _ACEOF |
---|
| 4759 | rm -f conftest.$ac_objext |
---|
| 4760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4761 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4762 | ac_status=$? |
---|
| 4763 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4764 | rm -f conftest.er1 |
---|
| 4765 | cat conftest.err >&5 |
---|
| 4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4767 | (exit $ac_status); } && |
---|
| 4768 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4769 | || test ! -s conftest.err' |
---|
| 4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4771 | (eval $ac_try) 2>&5 |
---|
| 4772 | ac_status=$? |
---|
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4774 | (exit $ac_status); }; } && |
---|
| 4775 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4777 | (eval $ac_try) 2>&5 |
---|
| 4778 | ac_status=$? |
---|
| 4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4780 | (exit $ac_status); }; }; then |
---|
| 4781 | ac_header_compiler=yes |
---|
| 4782 | else |
---|
| 4783 | echo "$as_me: failed program was:" >&5 |
---|
| 4784 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4785 | |
---|
| 4786 | ac_header_compiler=no |
---|
| 4787 | fi |
---|
| 4788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4789 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4790 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4791 | |
---|
| 4792 | # Is the header present? |
---|
| 4793 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4794 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4795 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4796 | /* confdefs.h. */ |
---|
| 4797 | _ACEOF |
---|
| 4798 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4799 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4800 | /* end confdefs.h. */ |
---|
| 4801 | #include <$ac_header> |
---|
| 4802 | _ACEOF |
---|
| 4803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4805 | ac_status=$? |
---|
| 4806 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4807 | rm -f conftest.er1 |
---|
| 4808 | cat conftest.err >&5 |
---|
| 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4810 | (exit $ac_status); } >/dev/null; then |
---|
| 4811 | if test -s conftest.err; then |
---|
| 4812 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4814 | else |
---|
| 4815 | ac_cpp_err= |
---|
| 4816 | fi |
---|
| 4817 | else |
---|
| 4818 | ac_cpp_err=yes |
---|
| 4819 | fi |
---|
| 4820 | if test -z "$ac_cpp_err"; then |
---|
| 4821 | ac_header_preproc=yes |
---|
| 4822 | else |
---|
| 4823 | echo "$as_me: failed program was:" >&5 |
---|
| 4824 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4825 | |
---|
| 4826 | ac_header_preproc=no |
---|
| 4827 | fi |
---|
| 4828 | rm -f conftest.err conftest.$ac_ext |
---|
| 4829 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4830 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4831 | |
---|
| 4832 | # So? What about this header? |
---|
| 4833 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4834 | yes:no: ) |
---|
| 4835 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4836 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4837 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4838 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4839 | ac_header_preproc=yes |
---|
| 4840 | ;; |
---|
| 4841 | no:yes:* ) |
---|
| 4842 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4843 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4844 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4845 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4846 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4847 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4848 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4849 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4850 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4851 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4852 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4853 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4854 | ( |
---|
| 4855 | cat <<\_ASBOX |
---|
[3240] | 4856 | ## ---------------------------------------------- ## |
---|
| 4857 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4858 | ## ---------------------------------------------- ## |
---|
[1971] | 4859 | _ASBOX |
---|
| 4860 | ) | |
---|
| 4861 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4862 | ;; |
---|
| 4863 | esac |
---|
| 4864 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4865 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4868 | else |
---|
| 4869 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4870 | fi |
---|
| 4871 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4872 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4873 | |
---|
| 4874 | fi |
---|
| 4875 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4876 | cat >>confdefs.h <<_ACEOF |
---|
| 4877 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4878 | _ACEOF |
---|
| 4879 | |
---|
| 4880 | else |
---|
| 4881 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4882 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4883 | { (exit 1); exit 1; }; } |
---|
| 4884 | fi |
---|
| 4885 | |
---|
| 4886 | done |
---|
| 4887 | |
---|
[4697] | 4888 | # checking for Windows openGl library |
---|
| 4889 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4890 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4891 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1956] | 4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4893 | else |
---|
| 4894 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 4895 | LIBS="-lopengl32 $LIBS" |
---|
[1956] | 4896 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4897 | /* confdefs.h. */ |
---|
| 4898 | _ACEOF |
---|
| 4899 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4900 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4901 | /* end confdefs.h. */ |
---|
| 4902 | |
---|
[2701] | 4903 | |
---|
[1956] | 4904 | int |
---|
| 4905 | main () |
---|
| 4906 | { |
---|
[2701] | 4907 | main (); |
---|
[1956] | 4908 | ; |
---|
| 4909 | return 0; |
---|
| 4910 | } |
---|
| 4911 | _ACEOF |
---|
| 4912 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4914 | (eval $ac_link) 2>conftest.er1 |
---|
| 4915 | ac_status=$? |
---|
| 4916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4917 | rm -f conftest.er1 |
---|
| 4918 | cat conftest.err >&5 |
---|
| 4919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4920 | (exit $ac_status); } && |
---|
| 4921 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4922 | || test ! -s conftest.err' |
---|
| 4923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4924 | (eval $ac_try) 2>&5 |
---|
| 4925 | ac_status=$? |
---|
| 4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4927 | (exit $ac_status); }; } && |
---|
| 4928 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4930 | (eval $ac_try) 2>&5 |
---|
| 4931 | ac_status=$? |
---|
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4933 | (exit $ac_status); }; }; then |
---|
[4697] | 4934 | ac_cv_lib_opengl32_main=yes |
---|
[1956] | 4935 | else |
---|
| 4936 | echo "$as_me: failed program was:" >&5 |
---|
| 4937 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4938 | |
---|
[4697] | 4939 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4940 | fi |
---|
| 4941 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4942 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4943 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4944 | fi |
---|
[4697] | 4945 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4946 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4947 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4948 | FOUND_opengl32=yes |
---|
| 4949 | else |
---|
| 4950 | "gl/gl.h" |
---|
[1959] | 4951 | fi |
---|
| 4952 | |
---|
[4697] | 4953 | if test x$FOUND_opengl32 = xyes ; then |
---|
| 4954 | LIBS="$LIBS -lopengl32" |
---|
[2701] | 4955 | else |
---|
[4556] | 4956 | echo "------------------" |
---|
[4697] | 4957 | echo "opengl not found." |
---|
| 4958 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
[4556] | 4959 | echo "------------------" |
---|
| 4960 | exit -1 |
---|
[2701] | 4961 | fi |
---|
| 4962 | |
---|
[4697] | 4963 | # cheking for GLU-header |
---|
| 4964 | |
---|
| 4965 | for ac_header in GL/glu.h |
---|
| 4966 | do |
---|
| 4967 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[1959] | 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[4697] | 4973 | fi |
---|
| 4974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4975 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[1959] | 4976 | else |
---|
[4697] | 4977 | # Is the header compilable? |
---|
| 4978 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4979 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4980 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4981 | /* confdefs.h. */ |
---|
| 4982 | _ACEOF |
---|
| 4983 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4985 | /* end confdefs.h. */ |
---|
| 4986 | $ac_includes_default |
---|
| 4987 | #include <$ac_header> |
---|
| 4988 | _ACEOF |
---|
| 4989 | rm -f conftest.$ac_objext |
---|
| 4990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4991 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4992 | ac_status=$? |
---|
| 4993 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4994 | rm -f conftest.er1 |
---|
| 4995 | cat conftest.err >&5 |
---|
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4997 | (exit $ac_status); } && |
---|
| 4998 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4999 | || test ! -s conftest.err' |
---|
| 5000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5001 | (eval $ac_try) 2>&5 |
---|
| 5002 | ac_status=$? |
---|
| 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5004 | (exit $ac_status); }; } && |
---|
| 5005 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5007 | (eval $ac_try) 2>&5 |
---|
| 5008 | ac_status=$? |
---|
| 5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5010 | (exit $ac_status); }; }; then |
---|
| 5011 | ac_header_compiler=yes |
---|
| 5012 | else |
---|
| 5013 | echo "$as_me: failed program was:" >&5 |
---|
| 5014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5015 | |
---|
| 5016 | ac_header_compiler=no |
---|
| 5017 | fi |
---|
| 5018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5020 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5021 | |
---|
| 5022 | # Is the header present? |
---|
| 5023 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5025 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5026 | /* confdefs.h. */ |
---|
| 5027 | _ACEOF |
---|
| 5028 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5029 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5030 | /* end confdefs.h. */ |
---|
| 5031 | #include <$ac_header> |
---|
| 5032 | _ACEOF |
---|
| 5033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5035 | ac_status=$? |
---|
| 5036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5037 | rm -f conftest.er1 |
---|
| 5038 | cat conftest.err >&5 |
---|
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5040 | (exit $ac_status); } >/dev/null; then |
---|
| 5041 | if test -s conftest.err; then |
---|
| 5042 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5044 | else |
---|
| 5045 | ac_cpp_err= |
---|
| 5046 | fi |
---|
| 5047 | else |
---|
| 5048 | ac_cpp_err=yes |
---|
| 5049 | fi |
---|
| 5050 | if test -z "$ac_cpp_err"; then |
---|
| 5051 | ac_header_preproc=yes |
---|
| 5052 | else |
---|
| 5053 | echo "$as_me: failed program was:" >&5 |
---|
| 5054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5055 | |
---|
| 5056 | ac_header_preproc=no |
---|
| 5057 | fi |
---|
| 5058 | rm -f conftest.err conftest.$ac_ext |
---|
| 5059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5060 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5061 | |
---|
| 5062 | # So? What about this header? |
---|
| 5063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5064 | yes:no: ) |
---|
| 5065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5068 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5069 | ac_header_preproc=yes |
---|
| 5070 | ;; |
---|
| 5071 | no:yes:* ) |
---|
| 5072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5076 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5077 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5078 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5079 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5081 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5082 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5083 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5084 | ( |
---|
| 5085 | cat <<\_ASBOX |
---|
| 5086 | ## ---------------------------------------------- ## |
---|
| 5087 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5088 | ## ---------------------------------------------- ## |
---|
| 5089 | _ASBOX |
---|
| 5090 | ) | |
---|
| 5091 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5092 | ;; |
---|
| 5093 | esac |
---|
| 5094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5098 | else |
---|
| 5099 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5100 | fi |
---|
| 5101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5102 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5103 | |
---|
| 5104 | fi |
---|
| 5105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5106 | cat >>confdefs.h <<_ACEOF |
---|
| 5107 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5108 | _ACEOF |
---|
| 5109 | |
---|
| 5110 | else |
---|
| 5111 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5112 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5113 | { (exit 1); exit 1; }; } |
---|
| 5114 | fi |
---|
| 5115 | |
---|
| 5116 | done |
---|
| 5117 | |
---|
| 5118 | |
---|
| 5119 | # checking for libGLU |
---|
| 5120 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 5121 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 5122 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
| 5123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5124 | else |
---|
[1959] | 5125 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 5126 | LIBS="-lglu32 $LIBS" |
---|
[1959] | 5127 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5128 | /* confdefs.h. */ |
---|
[1956] | 5129 | _ACEOF |
---|
[1959] | 5130 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5132 | /* end confdefs.h. */ |
---|
[1956] | 5133 | |
---|
[1971] | 5134 | |
---|
[1959] | 5135 | int |
---|
| 5136 | main () |
---|
| 5137 | { |
---|
[1971] | 5138 | main (); |
---|
[1959] | 5139 | ; |
---|
| 5140 | return 0; |
---|
| 5141 | } |
---|
| 5142 | _ACEOF |
---|
| 5143 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5145 | (eval $ac_link) 2>conftest.er1 |
---|
| 5146 | ac_status=$? |
---|
| 5147 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5148 | rm -f conftest.er1 |
---|
| 5149 | cat conftest.err >&5 |
---|
| 5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5151 | (exit $ac_status); } && |
---|
| 5152 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5153 | || test ! -s conftest.err' |
---|
| 5154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5155 | (eval $ac_try) 2>&5 |
---|
| 5156 | ac_status=$? |
---|
| 5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5158 | (exit $ac_status); }; } && |
---|
| 5159 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5161 | (eval $ac_try) 2>&5 |
---|
| 5162 | ac_status=$? |
---|
| 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5164 | (exit $ac_status); }; }; then |
---|
[4697] | 5165 | ac_cv_lib_glu32_main=yes |
---|
[1959] | 5166 | else |
---|
| 5167 | echo "$as_me: failed program was:" >&5 |
---|
| 5168 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5169 | |
---|
[4697] | 5170 | ac_cv_lib_glu32_main=no |
---|
[1956] | 5171 | fi |
---|
[1959] | 5172 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5173 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5174 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5175 | fi |
---|
[4697] | 5176 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 5177 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 5178 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 5179 | FOUND_glu32=yes |
---|
[1959] | 5180 | fi |
---|
[1956] | 5181 | |
---|
[4697] | 5182 | if test x$FOUND_glu32 = xyes ; then |
---|
| 5183 | LIBS="$LIBS -lGLU32" |
---|
| 5184 | else |
---|
| 5185 | echo "------------------" |
---|
| 5186 | echo "GLU library not found." |
---|
| 5187 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5188 | echo "------------------" |
---|
| 5189 | exit -1 |
---|
[2701] | 5190 | fi |
---|
[1959] | 5191 | |
---|
[4697] | 5192 | #--------# |
---|
| 5193 | # openAL # |
---|
| 5194 | #--------# |
---|
| 5195 | # checking for openAL-headers |
---|
| 5196 | |
---|
| 5197 | for ac_header in AL/al.h |
---|
[2989] | 5198 | do |
---|
| 5199 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5201 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5202 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5205 | fi |
---|
| 5206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5207 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5208 | else |
---|
| 5209 | # Is the header compilable? |
---|
| 5210 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5211 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5212 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5213 | /* confdefs.h. */ |
---|
| 5214 | _ACEOF |
---|
| 5215 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5216 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5217 | /* end confdefs.h. */ |
---|
| 5218 | $ac_includes_default |
---|
| 5219 | #include <$ac_header> |
---|
| 5220 | _ACEOF |
---|
| 5221 | rm -f conftest.$ac_objext |
---|
| 5222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5223 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5224 | ac_status=$? |
---|
| 5225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5226 | rm -f conftest.er1 |
---|
| 5227 | cat conftest.err >&5 |
---|
| 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5229 | (exit $ac_status); } && |
---|
| 5230 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5231 | || test ! -s conftest.err' |
---|
| 5232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5233 | (eval $ac_try) 2>&5 |
---|
| 5234 | ac_status=$? |
---|
| 5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5236 | (exit $ac_status); }; } && |
---|
| 5237 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5239 | (eval $ac_try) 2>&5 |
---|
| 5240 | ac_status=$? |
---|
| 5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5242 | (exit $ac_status); }; }; then |
---|
| 5243 | ac_header_compiler=yes |
---|
| 5244 | else |
---|
| 5245 | echo "$as_me: failed program was:" >&5 |
---|
| 5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5247 | |
---|
| 5248 | ac_header_compiler=no |
---|
| 5249 | fi |
---|
| 5250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5251 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5252 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5253 | |
---|
| 5254 | # Is the header present? |
---|
| 5255 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5256 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5257 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5258 | /* confdefs.h. */ |
---|
| 5259 | _ACEOF |
---|
| 5260 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5261 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5262 | /* end confdefs.h. */ |
---|
| 5263 | #include <$ac_header> |
---|
| 5264 | _ACEOF |
---|
| 5265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5267 | ac_status=$? |
---|
| 5268 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5269 | rm -f conftest.er1 |
---|
| 5270 | cat conftest.err >&5 |
---|
| 5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5272 | (exit $ac_status); } >/dev/null; then |
---|
| 5273 | if test -s conftest.err; then |
---|
| 5274 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5275 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5276 | else |
---|
| 5277 | ac_cpp_err= |
---|
| 5278 | fi |
---|
| 5279 | else |
---|
| 5280 | ac_cpp_err=yes |
---|
| 5281 | fi |
---|
| 5282 | if test -z "$ac_cpp_err"; then |
---|
| 5283 | ac_header_preproc=yes |
---|
| 5284 | else |
---|
| 5285 | echo "$as_me: failed program was:" >&5 |
---|
| 5286 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5287 | |
---|
| 5288 | ac_header_preproc=no |
---|
| 5289 | fi |
---|
| 5290 | rm -f conftest.err conftest.$ac_ext |
---|
| 5291 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5292 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5293 | |
---|
| 5294 | # So? What about this header? |
---|
| 5295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5296 | yes:no: ) |
---|
| 5297 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5298 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5300 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5301 | ac_header_preproc=yes |
---|
[2701] | 5302 | ;; |
---|
[2989] | 5303 | no:yes:* ) |
---|
| 5304 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5306 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5308 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5309 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5310 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5311 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5313 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5314 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5315 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5316 | ( |
---|
| 5317 | cat <<\_ASBOX |
---|
[3240] | 5318 | ## ---------------------------------------------- ## |
---|
| 5319 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5320 | ## ---------------------------------------------- ## |
---|
[2989] | 5321 | _ASBOX |
---|
| 5322 | ) | |
---|
| 5323 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5324 | ;; |
---|
| 5325 | esac |
---|
| 5326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5330 | else |
---|
| 5331 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5332 | fi |
---|
| 5333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 5335 | |
---|
[2989] | 5336 | fi |
---|
| 5337 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5338 | cat >>confdefs.h <<_ACEOF |
---|
| 5339 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5340 | _ACEOF |
---|
| 5341 | |
---|
| 5342 | else |
---|
[4697] | 5343 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
| 5344 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
[2989] | 5345 | { (exit 1); exit 1; }; } |
---|
| 5346 | fi |
---|
| 5347 | |
---|
| 5348 | done |
---|
| 5349 | |
---|
[4697] | 5350 | # checking for openAL-lib |
---|
| 5351 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
| 5352 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
| 5353 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
[2989] | 5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5355 | else |
---|
| 5356 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 5357 | LIBS="-lOpenAL32 $LIBS" |
---|
[2989] | 5358 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5359 | /* confdefs.h. */ |
---|
| 5360 | _ACEOF |
---|
| 5361 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5363 | /* end confdefs.h. */ |
---|
| 5364 | |
---|
| 5365 | |
---|
| 5366 | int |
---|
| 5367 | main () |
---|
| 5368 | { |
---|
| 5369 | main (); |
---|
| 5370 | ; |
---|
| 5371 | return 0; |
---|
| 5372 | } |
---|
| 5373 | _ACEOF |
---|
| 5374 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5376 | (eval $ac_link) 2>conftest.er1 |
---|
| 5377 | ac_status=$? |
---|
| 5378 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5379 | rm -f conftest.er1 |
---|
| 5380 | cat conftest.err >&5 |
---|
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5382 | (exit $ac_status); } && |
---|
| 5383 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5384 | || test ! -s conftest.err' |
---|
| 5385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5386 | (eval $ac_try) 2>&5 |
---|
| 5387 | ac_status=$? |
---|
| 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5389 | (exit $ac_status); }; } && |
---|
| 5390 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5392 | (eval $ac_try) 2>&5 |
---|
| 5393 | ac_status=$? |
---|
| 5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5395 | (exit $ac_status); }; }; then |
---|
[4697] | 5396 | ac_cv_lib_OpenAL32_main=yes |
---|
[2989] | 5397 | else |
---|
| 5398 | echo "$as_me: failed program was:" >&5 |
---|
| 5399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5400 | |
---|
[4697] | 5401 | ac_cv_lib_OpenAL32_main=no |
---|
[2989] | 5402 | fi |
---|
| 5403 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5404 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5405 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5406 | fi |
---|
[4697] | 5407 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
| 5408 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
| 5409 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
| 5410 | FOUND_openal=yes |
---|
[2989] | 5411 | fi |
---|
| 5412 | |
---|
[4697] | 5413 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
| 5414 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
| 5415 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
[2989] | 5416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5417 | else |
---|
| 5418 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 5419 | LIBS="-lALut $LIBS" |
---|
[2989] | 5420 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5421 | /* confdefs.h. */ |
---|
| 5422 | _ACEOF |
---|
| 5423 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5424 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5425 | /* end confdefs.h. */ |
---|
| 5426 | |
---|
| 5427 | |
---|
| 5428 | int |
---|
| 5429 | main () |
---|
| 5430 | { |
---|
| 5431 | main (); |
---|
| 5432 | ; |
---|
| 5433 | return 0; |
---|
| 5434 | } |
---|
| 5435 | _ACEOF |
---|
| 5436 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5438 | (eval $ac_link) 2>conftest.er1 |
---|
| 5439 | ac_status=$? |
---|
| 5440 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5441 | rm -f conftest.er1 |
---|
| 5442 | cat conftest.err >&5 |
---|
| 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5444 | (exit $ac_status); } && |
---|
| 5445 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5446 | || test ! -s conftest.err' |
---|
| 5447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5448 | (eval $ac_try) 2>&5 |
---|
| 5449 | ac_status=$? |
---|
| 5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5451 | (exit $ac_status); }; } && |
---|
| 5452 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5454 | (eval $ac_try) 2>&5 |
---|
| 5455 | ac_status=$? |
---|
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5457 | (exit $ac_status); }; }; then |
---|
[4697] | 5458 | ac_cv_lib_ALut_main=yes |
---|
[2989] | 5459 | else |
---|
| 5460 | echo "$as_me: failed program was:" >&5 |
---|
| 5461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5462 | |
---|
[4697] | 5463 | ac_cv_lib_ALut_main=no |
---|
[2989] | 5464 | fi |
---|
| 5465 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5466 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5467 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5468 | fi |
---|
[4697] | 5469 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
| 5470 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
| 5471 | if test $ac_cv_lib_ALut_main = yes; then |
---|
| 5472 | FOUND_ALut=yes |
---|
[2989] | 5473 | fi |
---|
| 5474 | |
---|
[4697] | 5475 | if test x$FOUND_openal = xyes ; then |
---|
| 5476 | if test x$FOUND_ALut = xyes ; then |
---|
| 5477 | LIBS="$LIBS -lALut -lOpenAL32" |
---|
| 5478 | else |
---|
[2989] | 5479 | echo "------------------" |
---|
[4697] | 5480 | echo "openal library not found." |
---|
| 5481 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
[2989] | 5482 | echo "------------------" |
---|
| 5483 | exit -1 |
---|
[4697] | 5484 | fi |
---|
| 5485 | fi |
---|
[2989] | 5486 | ;; |
---|
[3424] | 5487 | #-------# |
---|
| 5488 | # LINUX # |
---|
| 5489 | #-------# |
---|
[2980] | 5490 | *-*-linux*) |
---|
[2701] | 5491 | echo "Linux detected" |
---|
[1956] | 5492 | |
---|
[2701] | 5493 | Linux="yes" |
---|
| 5494 | |
---|
[4662] | 5495 | CPPFLAGS="-I/usr/X11R6/include -I/usr/include" |
---|
[3385] | 5496 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 5497 | # checking gl header |
---|
[2701] | 5498 | |
---|
[2879] | 5499 | for ac_header in GL/gl.h |
---|
| 5500 | do |
---|
| 5501 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5502 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5503 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5505 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5507 | fi |
---|
| 5508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5509 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5510 | else |
---|
| 5511 | # Is the header compilable? |
---|
| 5512 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5513 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5514 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5515 | /* confdefs.h. */ |
---|
| 5516 | _ACEOF |
---|
| 5517 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5518 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5519 | /* end confdefs.h. */ |
---|
| 5520 | $ac_includes_default |
---|
| 5521 | #include <$ac_header> |
---|
| 5522 | _ACEOF |
---|
| 5523 | rm -f conftest.$ac_objext |
---|
| 5524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5525 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5526 | ac_status=$? |
---|
| 5527 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5528 | rm -f conftest.er1 |
---|
| 5529 | cat conftest.err >&5 |
---|
| 5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5531 | (exit $ac_status); } && |
---|
| 5532 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5533 | || test ! -s conftest.err' |
---|
| 5534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5535 | (eval $ac_try) 2>&5 |
---|
| 5536 | ac_status=$? |
---|
| 5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5538 | (exit $ac_status); }; } && |
---|
| 5539 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5541 | (eval $ac_try) 2>&5 |
---|
| 5542 | ac_status=$? |
---|
| 5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5544 | (exit $ac_status); }; }; then |
---|
| 5545 | ac_header_compiler=yes |
---|
| 5546 | else |
---|
| 5547 | echo "$as_me: failed program was:" >&5 |
---|
| 5548 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5549 | |
---|
| 5550 | ac_header_compiler=no |
---|
| 5551 | fi |
---|
| 5552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5553 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5554 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5555 | |
---|
| 5556 | # Is the header present? |
---|
| 5557 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5558 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5559 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5560 | /* confdefs.h. */ |
---|
| 5561 | _ACEOF |
---|
| 5562 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5563 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5564 | /* end confdefs.h. */ |
---|
| 5565 | #include <$ac_header> |
---|
| 5566 | _ACEOF |
---|
| 5567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5569 | ac_status=$? |
---|
| 5570 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5571 | rm -f conftest.er1 |
---|
| 5572 | cat conftest.err >&5 |
---|
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5574 | (exit $ac_status); } >/dev/null; then |
---|
| 5575 | if test -s conftest.err; then |
---|
| 5576 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5577 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5578 | else |
---|
| 5579 | ac_cpp_err= |
---|
| 5580 | fi |
---|
| 5581 | else |
---|
| 5582 | ac_cpp_err=yes |
---|
| 5583 | fi |
---|
| 5584 | if test -z "$ac_cpp_err"; then |
---|
| 5585 | ac_header_preproc=yes |
---|
| 5586 | else |
---|
| 5587 | echo "$as_me: failed program was:" >&5 |
---|
| 5588 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5589 | |
---|
| 5590 | ac_header_preproc=no |
---|
| 5591 | fi |
---|
| 5592 | rm -f conftest.err conftest.$ac_ext |
---|
| 5593 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5594 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5595 | |
---|
| 5596 | # So? What about this header? |
---|
| 5597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5598 | yes:no: ) |
---|
| 5599 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5600 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5601 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5602 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5603 | ac_header_preproc=yes |
---|
| 5604 | ;; |
---|
| 5605 | no:yes:* ) |
---|
| 5606 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5607 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5609 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5610 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5611 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5612 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5613 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5615 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5616 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5617 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5618 | ( |
---|
| 5619 | cat <<\_ASBOX |
---|
[3240] | 5620 | ## ---------------------------------------------- ## |
---|
| 5621 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5622 | ## ---------------------------------------------- ## |
---|
[2879] | 5623 | _ASBOX |
---|
| 5624 | ) | |
---|
| 5625 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5626 | ;; |
---|
| 5627 | esac |
---|
| 5628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5632 | else |
---|
| 5633 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5634 | fi |
---|
| 5635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5636 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5637 | |
---|
| 5638 | fi |
---|
| 5639 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5640 | cat >>confdefs.h <<_ACEOF |
---|
| 5641 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5642 | _ACEOF |
---|
| 5643 | |
---|
| 5644 | else |
---|
| 5645 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5646 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5647 | { (exit 1); exit 1; }; } |
---|
| 5648 | fi |
---|
| 5649 | |
---|
| 5650 | done |
---|
| 5651 | |
---|
| 5652 | |
---|
[2701] | 5653 | # checking for Unix GL |
---|
[3385] | 5654 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5655 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5656 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5658 | else |
---|
| 5659 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5660 | LIBS="-lGL $LIBS" |
---|
[1956] | 5661 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5662 | /* confdefs.h. */ |
---|
| 5663 | _ACEOF |
---|
| 5664 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5665 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5666 | /* end confdefs.h. */ |
---|
| 5667 | |
---|
[3385] | 5668 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5669 | #ifdef __cplusplus |
---|
| 5670 | extern "C" |
---|
| 5671 | #endif |
---|
| 5672 | /* We use char because int might match the return type of a gcc2 |
---|
| 5673 | builtin and then its argument prototype would still apply. */ |
---|
| 5674 | char glLoadIdentity (); |
---|
[1956] | 5675 | int |
---|
| 5676 | main () |
---|
| 5677 | { |
---|
[3385] | 5678 | glLoadIdentity (); |
---|
[1956] | 5679 | ; |
---|
| 5680 | return 0; |
---|
| 5681 | } |
---|
| 5682 | _ACEOF |
---|
| 5683 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5685 | (eval $ac_link) 2>conftest.er1 |
---|
| 5686 | ac_status=$? |
---|
| 5687 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5688 | rm -f conftest.er1 |
---|
| 5689 | cat conftest.err >&5 |
---|
| 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5691 | (exit $ac_status); } && |
---|
| 5692 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5693 | || test ! -s conftest.err' |
---|
| 5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5695 | (eval $ac_try) 2>&5 |
---|
| 5696 | ac_status=$? |
---|
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5698 | (exit $ac_status); }; } && |
---|
| 5699 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5701 | (eval $ac_try) 2>&5 |
---|
| 5702 | ac_status=$? |
---|
| 5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5704 | (exit $ac_status); }; }; then |
---|
[3385] | 5705 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5706 | else |
---|
| 5707 | echo "$as_me: failed program was:" >&5 |
---|
| 5708 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5709 | |
---|
[3385] | 5710 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5711 | fi |
---|
| 5712 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5713 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5714 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5715 | fi |
---|
[3385] | 5716 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5717 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5718 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5719 | FOUND_GL=yes |
---|
| 5720 | fi |
---|
| 5721 | |
---|
[3424] | 5722 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5723 | LIBS="$LIBS -lGL" |
---|
| 5724 | else |
---|
[4556] | 5725 | echo "------------------" |
---|
| 5726 | echo "opengl not found." |
---|
| 5727 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5728 | echo "------------------" |
---|
| 5729 | exit -1 |
---|
[2701] | 5730 | fi |
---|
| 5731 | |
---|
| 5732 | # cheking for GLU-header |
---|
| 5733 | |
---|
| 5734 | for ac_header in GL/glu.h |
---|
| 5735 | do |
---|
| 5736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5738 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5742 | fi |
---|
| 5743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5745 | else |
---|
| 5746 | # Is the header compilable? |
---|
| 5747 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5748 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5749 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5750 | /* confdefs.h. */ |
---|
[1956] | 5751 | _ACEOF |
---|
[2701] | 5752 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5753 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5754 | /* end confdefs.h. */ |
---|
| 5755 | $ac_includes_default |
---|
| 5756 | #include <$ac_header> |
---|
| 5757 | _ACEOF |
---|
| 5758 | rm -f conftest.$ac_objext |
---|
| 5759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5760 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5761 | ac_status=$? |
---|
| 5762 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5763 | rm -f conftest.er1 |
---|
| 5764 | cat conftest.err >&5 |
---|
| 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5766 | (exit $ac_status); } && |
---|
| 5767 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5768 | || test ! -s conftest.err' |
---|
| 5769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5770 | (eval $ac_try) 2>&5 |
---|
| 5771 | ac_status=$? |
---|
| 5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5773 | (exit $ac_status); }; } && |
---|
| 5774 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5776 | (eval $ac_try) 2>&5 |
---|
| 5777 | ac_status=$? |
---|
| 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5779 | (exit $ac_status); }; }; then |
---|
| 5780 | ac_header_compiler=yes |
---|
| 5781 | else |
---|
| 5782 | echo "$as_me: failed program was:" >&5 |
---|
| 5783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5784 | |
---|
[2701] | 5785 | ac_header_compiler=no |
---|
| 5786 | fi |
---|
| 5787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5788 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5789 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5790 | |
---|
[2701] | 5791 | # Is the header present? |
---|
| 5792 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5793 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5794 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5795 | /* confdefs.h. */ |
---|
| 5796 | _ACEOF |
---|
| 5797 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5798 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5799 | /* end confdefs.h. */ |
---|
| 5800 | #include <$ac_header> |
---|
| 5801 | _ACEOF |
---|
| 5802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5804 | ac_status=$? |
---|
| 5805 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5806 | rm -f conftest.er1 |
---|
| 5807 | cat conftest.err >&5 |
---|
| 5808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5809 | (exit $ac_status); } >/dev/null; then |
---|
| 5810 | if test -s conftest.err; then |
---|
| 5811 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5812 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5813 | else |
---|
| 5814 | ac_cpp_err= |
---|
| 5815 | fi |
---|
| 5816 | else |
---|
| 5817 | ac_cpp_err=yes |
---|
[1956] | 5818 | fi |
---|
[2701] | 5819 | if test -z "$ac_cpp_err"; then |
---|
| 5820 | ac_header_preproc=yes |
---|
| 5821 | else |
---|
| 5822 | echo "$as_me: failed program was:" >&5 |
---|
| 5823 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5824 | |
---|
[2701] | 5825 | ac_header_preproc=no |
---|
| 5826 | fi |
---|
| 5827 | rm -f conftest.err conftest.$ac_ext |
---|
| 5828 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5829 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5830 | |
---|
[2701] | 5831 | # So? What about this header? |
---|
| 5832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5833 | yes:no: ) |
---|
| 5834 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5835 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5836 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5837 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5838 | ac_header_preproc=yes |
---|
| 5839 | ;; |
---|
| 5840 | no:yes:* ) |
---|
| 5841 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5842 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5843 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5844 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5845 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5846 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5847 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5848 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5850 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5851 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5852 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5853 | ( |
---|
| 5854 | cat <<\_ASBOX |
---|
[3240] | 5855 | ## ---------------------------------------------- ## |
---|
| 5856 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5857 | ## ---------------------------------------------- ## |
---|
[2701] | 5858 | _ASBOX |
---|
| 5859 | ) | |
---|
| 5860 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5861 | ;; |
---|
| 5862 | esac |
---|
| 5863 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5867 | else |
---|
[2701] | 5868 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5869 | fi |
---|
| 5870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5871 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5872 | |
---|
| 5873 | fi |
---|
| 5874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5875 | cat >>confdefs.h <<_ACEOF |
---|
| 5876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5877 | _ACEOF |
---|
| 5878 | |
---|
| 5879 | else |
---|
| 5880 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5881 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5882 | { (exit 1); exit 1; }; } |
---|
| 5883 | fi |
---|
| 5884 | |
---|
| 5885 | done |
---|
| 5886 | |
---|
| 5887 | |
---|
| 5888 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5889 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5890 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5892 | else |
---|
[2190] | 5893 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5894 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5895 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5896 | /* confdefs.h. */ |
---|
| 5897 | _ACEOF |
---|
| 5898 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5899 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5900 | /* end confdefs.h. */ |
---|
| 5901 | |
---|
[2701] | 5902 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5903 | #ifdef __cplusplus |
---|
| 5904 | extern "C" |
---|
| 5905 | #endif |
---|
| 5906 | /* We use char because int might match the return type of a gcc2 |
---|
| 5907 | builtin and then its argument prototype would still apply. */ |
---|
| 5908 | char gluProject (); |
---|
[2190] | 5909 | int |
---|
| 5910 | main () |
---|
| 5911 | { |
---|
[2701] | 5912 | gluProject (); |
---|
[2190] | 5913 | ; |
---|
| 5914 | return 0; |
---|
| 5915 | } |
---|
| 5916 | _ACEOF |
---|
| 5917 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5919 | (eval $ac_link) 2>conftest.er1 |
---|
| 5920 | ac_status=$? |
---|
| 5921 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5922 | rm -f conftest.er1 |
---|
| 5923 | cat conftest.err >&5 |
---|
| 5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5925 | (exit $ac_status); } && |
---|
| 5926 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5927 | || test ! -s conftest.err' |
---|
| 5928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5929 | (eval $ac_try) 2>&5 |
---|
| 5930 | ac_status=$? |
---|
| 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5932 | (exit $ac_status); }; } && |
---|
| 5933 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5935 | (eval $ac_try) 2>&5 |
---|
| 5936 | ac_status=$? |
---|
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5938 | (exit $ac_status); }; }; then |
---|
[2701] | 5939 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5940 | else |
---|
| 5941 | echo "$as_me: failed program was:" >&5 |
---|
| 5942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5943 | |
---|
[2701] | 5944 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5945 | fi |
---|
| 5946 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5947 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5948 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5949 | fi |
---|
[2701] | 5950 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5951 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5952 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5953 | FOUND_GLU=yes |
---|
[2190] | 5954 | fi |
---|
| 5955 | |
---|
[3424] | 5956 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5957 | LIBS="$LIBS -lGLU" |
---|
| 5958 | else |
---|
[4556] | 5959 | echo "------------------" |
---|
| 5960 | echo "GLU library not found." |
---|
| 5961 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5962 | echo "------------------" |
---|
| 5963 | exit -1 |
---|
[2701] | 5964 | fi |
---|
[2995] | 5965 | |
---|
[4697] | 5966 | #--------# |
---|
| 5967 | # openAL # |
---|
| 5968 | #--------# |
---|
| 5969 | # checking for openAL-headers |
---|
[2190] | 5970 | |
---|
[4697] | 5971 | for ac_header in AL/al.h |
---|
[2991] | 5972 | do |
---|
| 5973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5979 | fi |
---|
[2991] | 5980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5982 | else |
---|
[2991] | 5983 | # Is the header compilable? |
---|
| 5984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5986 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5987 | /* confdefs.h. */ |
---|
| 5988 | _ACEOF |
---|
| 5989 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5991 | /* end confdefs.h. */ |
---|
[2991] | 5992 | $ac_includes_default |
---|
| 5993 | #include <$ac_header> |
---|
[2190] | 5994 | _ACEOF |
---|
[2991] | 5995 | rm -f conftest.$ac_objext |
---|
| 5996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5997 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5998 | ac_status=$? |
---|
[2991] | 5999 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6000 | rm -f conftest.er1 |
---|
| 6001 | cat conftest.err >&5 |
---|
[2190] | 6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 6003 | (exit $ac_status); } && |
---|
| 6004 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6005 | || test ! -s conftest.err' |
---|
[2190] | 6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6007 | (eval $ac_try) 2>&5 |
---|
| 6008 | ac_status=$? |
---|
| 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 6010 | (exit $ac_status); }; } && |
---|
| 6011 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6013 | (eval $ac_try) 2>&5 |
---|
| 6014 | ac_status=$? |
---|
| 6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 6016 | (exit $ac_status); }; }; then |
---|
[2991] | 6017 | ac_header_compiler=yes |
---|
[2190] | 6018 | else |
---|
[2991] | 6019 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 6020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6021 | |
---|
[2991] | 6022 | ac_header_compiler=no |
---|
[2190] | 6023 | fi |
---|
[2991] | 6024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6026 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6027 | |
---|
| 6028 | # Is the header present? |
---|
| 6029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6031 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6032 | /* confdefs.h. */ |
---|
| 6033 | _ACEOF |
---|
| 6034 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6035 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6036 | /* end confdefs.h. */ |
---|
| 6037 | #include <$ac_header> |
---|
| 6038 | _ACEOF |
---|
| 6039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6041 | ac_status=$? |
---|
| 6042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6043 | rm -f conftest.er1 |
---|
| 6044 | cat conftest.err >&5 |
---|
| 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6046 | (exit $ac_status); } >/dev/null; then |
---|
| 6047 | if test -s conftest.err; then |
---|
| 6048 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6050 | else |
---|
| 6051 | ac_cpp_err= |
---|
| 6052 | fi |
---|
| 6053 | else |
---|
| 6054 | ac_cpp_err=yes |
---|
[2190] | 6055 | fi |
---|
[2991] | 6056 | if test -z "$ac_cpp_err"; then |
---|
| 6057 | ac_header_preproc=yes |
---|
| 6058 | else |
---|
| 6059 | echo "$as_me: failed program was:" >&5 |
---|
| 6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6061 | |
---|
| 6062 | ac_header_preproc=no |
---|
| 6063 | fi |
---|
| 6064 | rm -f conftest.err conftest.$ac_ext |
---|
| 6065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6066 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6067 | |
---|
| 6068 | # So? What about this header? |
---|
| 6069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6070 | yes:no: ) |
---|
| 6071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6075 | ac_header_preproc=yes |
---|
| 6076 | ;; |
---|
| 6077 | no:yes:* ) |
---|
| 6078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6090 | ( |
---|
| 6091 | cat <<\_ASBOX |
---|
[3240] | 6092 | ## ---------------------------------------------- ## |
---|
| 6093 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6094 | ## ---------------------------------------------- ## |
---|
[2991] | 6095 | _ASBOX |
---|
| 6096 | ) | |
---|
| 6097 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6098 | ;; |
---|
| 6099 | esac |
---|
| 6100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6104 | else |
---|
| 6105 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6106 | fi |
---|
| 6107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6109 | |
---|
| 6110 | fi |
---|
| 6111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6112 | cat >>confdefs.h <<_ACEOF |
---|
| 6113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6114 | _ACEOF |
---|
| 6115 | |
---|
| 6116 | else |
---|
[4697] | 6117 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
| 6118 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
| 6119 | { (exit 1); exit 1; }; } |
---|
| 6120 | fi |
---|
[2991] | 6121 | |
---|
[4697] | 6122 | done |
---|
| 6123 | |
---|
| 6124 | # checking for openAL-lib |
---|
| 6125 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
| 6126 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
| 6127 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
[2991] | 6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6129 | else |
---|
[4697] | 6130 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6131 | LIBS="-lopenal $LIBS" |
---|
[2991] | 6132 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 6133 | /* confdefs.h. */ |
---|
| 6134 | _ACEOF |
---|
| 6135 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6137 | /* end confdefs.h. */ |
---|
[4697] | 6138 | |
---|
| 6139 | |
---|
| 6140 | int |
---|
| 6141 | main () |
---|
| 6142 | { |
---|
| 6143 | main (); |
---|
| 6144 | ; |
---|
| 6145 | return 0; |
---|
| 6146 | } |
---|
[2190] | 6147 | _ACEOF |
---|
[4697] | 6148 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6150 | (eval $ac_link) 2>conftest.er1 |
---|
[2190] | 6151 | ac_status=$? |
---|
| 6152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6153 | rm -f conftest.er1 |
---|
| 6154 | cat conftest.err >&5 |
---|
| 6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6156 | (exit $ac_status); } && |
---|
| 6157 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6158 | || test ! -s conftest.err' |
---|
| 6159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6160 | (eval $ac_try) 2>&5 |
---|
| 6161 | ac_status=$? |
---|
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6163 | (exit $ac_status); }; } && |
---|
[4697] | 6164 | { ac_try='test -s conftest$ac_exeext' |
---|
[2190] | 6165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6166 | (eval $ac_try) 2>&5 |
---|
| 6167 | ac_status=$? |
---|
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6169 | (exit $ac_status); }; }; then |
---|
[4697] | 6170 | ac_cv_lib_openal_main=yes |
---|
[2190] | 6171 | else |
---|
| 6172 | echo "$as_me: failed program was:" >&5 |
---|
| 6173 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6174 | |
---|
[4697] | 6175 | ac_cv_lib_openal_main=no |
---|
[2190] | 6176 | fi |
---|
[4697] | 6177 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6178 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6179 | LIBS=$ac_check_lib_save_LIBS |
---|
[2991] | 6180 | fi |
---|
[4697] | 6181 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
| 6182 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
| 6183 | if test $ac_cv_lib_openal_main = yes; then |
---|
| 6184 | FOUND_openal=yes |
---|
[2991] | 6185 | fi |
---|
| 6186 | |
---|
[4697] | 6187 | if test x$FOUND_openal = xyes ; then |
---|
| 6188 | LIBS="$LIBS -lopenal" |
---|
| 6189 | else |
---|
| 6190 | echo "------------------" |
---|
| 6191 | echo "openal library not found." |
---|
| 6192 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
| 6193 | echo "------------------" |
---|
| 6194 | exit -1 |
---|
| 6195 | fi |
---|
[2701] | 6196 | |
---|
[4697] | 6197 | # checking for SDL |
---|
| 6198 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
| 6199 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
| 6200 | SDL_VERSION=`sdl-config --version` |
---|
| 6201 | echo $SDL_VERSION |
---|
[3140] | 6202 | |
---|
[4697] | 6203 | CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" |
---|
[4664] | 6204 | |
---|
[4697] | 6205 | for ac_header in SDL.h |
---|
[2995] | 6206 | do |
---|
| 6207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 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 |
---|
| 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6213 | fi |
---|
| 6214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6216 | else |
---|
| 6217 | # Is the header compilable? |
---|
| 6218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6220 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6221 | /* confdefs.h. */ |
---|
| 6222 | _ACEOF |
---|
| 6223 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6225 | /* end confdefs.h. */ |
---|
| 6226 | $ac_includes_default |
---|
| 6227 | #include <$ac_header> |
---|
| 6228 | _ACEOF |
---|
| 6229 | rm -f conftest.$ac_objext |
---|
| 6230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6231 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6232 | ac_status=$? |
---|
| 6233 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6234 | rm -f conftest.er1 |
---|
| 6235 | cat conftest.err >&5 |
---|
| 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6237 | (exit $ac_status); } && |
---|
| 6238 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6239 | || test ! -s conftest.err' |
---|
| 6240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6241 | (eval $ac_try) 2>&5 |
---|
| 6242 | ac_status=$? |
---|
| 6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6244 | (exit $ac_status); }; } && |
---|
| 6245 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6247 | (eval $ac_try) 2>&5 |
---|
| 6248 | ac_status=$? |
---|
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6250 | (exit $ac_status); }; }; then |
---|
| 6251 | ac_header_compiler=yes |
---|
| 6252 | else |
---|
| 6253 | echo "$as_me: failed program was:" >&5 |
---|
| 6254 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6255 | |
---|
| 6256 | ac_header_compiler=no |
---|
| 6257 | fi |
---|
| 6258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6259 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6260 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6261 | |
---|
| 6262 | # Is the header present? |
---|
| 6263 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6264 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6265 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6266 | /* confdefs.h. */ |
---|
| 6267 | _ACEOF |
---|
| 6268 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6269 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6270 | /* end confdefs.h. */ |
---|
| 6271 | #include <$ac_header> |
---|
| 6272 | _ACEOF |
---|
| 6273 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6274 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6275 | ac_status=$? |
---|
| 6276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6277 | rm -f conftest.er1 |
---|
| 6278 | cat conftest.err >&5 |
---|
| 6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6280 | (exit $ac_status); } >/dev/null; then |
---|
| 6281 | if test -s conftest.err; then |
---|
| 6282 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6283 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6284 | else |
---|
| 6285 | ac_cpp_err= |
---|
| 6286 | fi |
---|
| 6287 | else |
---|
| 6288 | ac_cpp_err=yes |
---|
| 6289 | fi |
---|
| 6290 | if test -z "$ac_cpp_err"; then |
---|
| 6291 | ac_header_preproc=yes |
---|
| 6292 | else |
---|
| 6293 | echo "$as_me: failed program was:" >&5 |
---|
| 6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6295 | |
---|
| 6296 | ac_header_preproc=no |
---|
| 6297 | fi |
---|
| 6298 | rm -f conftest.err conftest.$ac_ext |
---|
| 6299 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6300 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6301 | |
---|
| 6302 | # So? What about this header? |
---|
| 6303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6304 | yes:no: ) |
---|
| 6305 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6306 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6307 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6308 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6309 | ac_header_preproc=yes |
---|
| 6310 | ;; |
---|
| 6311 | no:yes:* ) |
---|
| 6312 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6313 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6314 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6315 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6316 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6317 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6318 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6319 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6322 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6323 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6324 | ( |
---|
| 6325 | cat <<\_ASBOX |
---|
[3240] | 6326 | ## ---------------------------------------------- ## |
---|
| 6327 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6328 | ## ---------------------------------------------- ## |
---|
[2995] | 6329 | _ASBOX |
---|
| 6330 | ) | |
---|
| 6331 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6332 | ;; |
---|
| 6333 | esac |
---|
| 6334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6338 | else |
---|
| 6339 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6340 | fi |
---|
| 6341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6342 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6343 | |
---|
| 6344 | fi |
---|
| 6345 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6346 | cat >>confdefs.h <<_ACEOF |
---|
| 6347 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6348 | _ACEOF |
---|
| 6349 | |
---|
| 6350 | else |
---|
| 6351 | |
---|
[4697] | 6352 | for ac_header in SDL/SDL.h |
---|
[2995] | 6353 | do |
---|
| 6354 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6360 | fi |
---|
| 6361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6363 | else |
---|
| 6364 | # Is the header compilable? |
---|
| 6365 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6366 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6367 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6368 | /* confdefs.h. */ |
---|
| 6369 | _ACEOF |
---|
| 6370 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6371 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6372 | /* end confdefs.h. */ |
---|
| 6373 | $ac_includes_default |
---|
| 6374 | #include <$ac_header> |
---|
| 6375 | _ACEOF |
---|
| 6376 | rm -f conftest.$ac_objext |
---|
| 6377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6378 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6379 | ac_status=$? |
---|
| 6380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6381 | rm -f conftest.er1 |
---|
| 6382 | cat conftest.err >&5 |
---|
| 6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6384 | (exit $ac_status); } && |
---|
| 6385 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6386 | || test ! -s conftest.err' |
---|
| 6387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6388 | (eval $ac_try) 2>&5 |
---|
| 6389 | ac_status=$? |
---|
| 6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6391 | (exit $ac_status); }; } && |
---|
| 6392 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6394 | (eval $ac_try) 2>&5 |
---|
| 6395 | ac_status=$? |
---|
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6397 | (exit $ac_status); }; }; then |
---|
| 6398 | ac_header_compiler=yes |
---|
| 6399 | else |
---|
| 6400 | echo "$as_me: failed program was:" >&5 |
---|
| 6401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6402 | |
---|
| 6403 | ac_header_compiler=no |
---|
| 6404 | fi |
---|
| 6405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6406 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6407 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6408 | |
---|
| 6409 | # Is the header present? |
---|
| 6410 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6411 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6412 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6413 | /* confdefs.h. */ |
---|
| 6414 | _ACEOF |
---|
| 6415 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6417 | /* end confdefs.h. */ |
---|
| 6418 | #include <$ac_header> |
---|
| 6419 | _ACEOF |
---|
| 6420 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6421 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6422 | ac_status=$? |
---|
| 6423 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6424 | rm -f conftest.er1 |
---|
| 6425 | cat conftest.err >&5 |
---|
| 6426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6427 | (exit $ac_status); } >/dev/null; then |
---|
| 6428 | if test -s conftest.err; then |
---|
| 6429 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6430 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6431 | else |
---|
| 6432 | ac_cpp_err= |
---|
| 6433 | fi |
---|
| 6434 | else |
---|
| 6435 | ac_cpp_err=yes |
---|
| 6436 | fi |
---|
| 6437 | if test -z "$ac_cpp_err"; then |
---|
| 6438 | ac_header_preproc=yes |
---|
| 6439 | else |
---|
| 6440 | echo "$as_me: failed program was:" >&5 |
---|
| 6441 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6442 | |
---|
| 6443 | ac_header_preproc=no |
---|
| 6444 | fi |
---|
| 6445 | rm -f conftest.err conftest.$ac_ext |
---|
| 6446 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6447 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6448 | |
---|
| 6449 | # So? What about this header? |
---|
| 6450 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6451 | yes:no: ) |
---|
| 6452 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6453 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6455 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6456 | ac_header_preproc=yes |
---|
| 6457 | ;; |
---|
| 6458 | no:yes:* ) |
---|
| 6459 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6460 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6461 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6462 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6463 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6464 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6465 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6466 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6467 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6468 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6469 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6470 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6471 | ( |
---|
| 6472 | cat <<\_ASBOX |
---|
[3240] | 6473 | ## ---------------------------------------------- ## |
---|
| 6474 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6475 | ## ---------------------------------------------- ## |
---|
[2995] | 6476 | _ASBOX |
---|
| 6477 | ) | |
---|
| 6478 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6479 | ;; |
---|
| 6480 | esac |
---|
| 6481 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6483 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6485 | else |
---|
| 6486 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6487 | fi |
---|
| 6488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6490 | |
---|
| 6491 | fi |
---|
| 6492 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6493 | cat >>confdefs.h <<_ACEOF |
---|
| 6494 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6495 | _ACEOF |
---|
| 6496 | |
---|
| 6497 | else |
---|
[4697] | 6498 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
| 6499 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
[2995] | 6500 | { (exit 1); exit 1; }; } |
---|
| 6501 | fi |
---|
| 6502 | |
---|
| 6503 | done |
---|
| 6504 | |
---|
[4697] | 6505 | fi |
---|
[2995] | 6506 | |
---|
[4697] | 6507 | done |
---|
[2995] | 6508 | |
---|
[4662] | 6509 | |
---|
[4697] | 6510 | LIBS="`sdl-config --libs` $LIBS" |
---|
[2995] | 6511 | ;; |
---|
| 6512 | |
---|
[4697] | 6513 | #-----------# |
---|
| 6514 | # MAC -OS X # |
---|
| 6515 | #-----------# |
---|
| 6516 | *darwin*) |
---|
| 6517 | echo "OS X detected" |
---|
[2980] | 6518 | |
---|
[4697] | 6519 | osX="yes" |
---|
[2981] | 6520 | |
---|
[4697] | 6521 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
| 6522 | # checking gl header |
---|
[2989] | 6523 | |
---|
[4697] | 6524 | for ac_header in OpenGL/gl.h |
---|
[4504] | 6525 | do |
---|
| 6526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6532 | fi |
---|
| 6533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6535 | else |
---|
| 6536 | # Is the header compilable? |
---|
| 6537 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6540 | /* confdefs.h. */ |
---|
| 6541 | _ACEOF |
---|
| 6542 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6544 | /* end confdefs.h. */ |
---|
| 6545 | $ac_includes_default |
---|
| 6546 | #include <$ac_header> |
---|
| 6547 | _ACEOF |
---|
| 6548 | rm -f conftest.$ac_objext |
---|
| 6549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6550 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6551 | ac_status=$? |
---|
| 6552 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6553 | rm -f conftest.er1 |
---|
| 6554 | cat conftest.err >&5 |
---|
| 6555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6556 | (exit $ac_status); } && |
---|
| 6557 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6558 | || test ! -s conftest.err' |
---|
| 6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6560 | (eval $ac_try) 2>&5 |
---|
| 6561 | ac_status=$? |
---|
| 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6563 | (exit $ac_status); }; } && |
---|
| 6564 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6566 | (eval $ac_try) 2>&5 |
---|
| 6567 | ac_status=$? |
---|
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6569 | (exit $ac_status); }; }; then |
---|
| 6570 | ac_header_compiler=yes |
---|
| 6571 | else |
---|
| 6572 | echo "$as_me: failed program was:" >&5 |
---|
| 6573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6574 | |
---|
| 6575 | ac_header_compiler=no |
---|
| 6576 | fi |
---|
| 6577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6578 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6579 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6580 | |
---|
| 6581 | # Is the header present? |
---|
| 6582 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6583 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6584 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6585 | /* confdefs.h. */ |
---|
| 6586 | _ACEOF |
---|
| 6587 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6588 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6589 | /* end confdefs.h. */ |
---|
| 6590 | #include <$ac_header> |
---|
| 6591 | _ACEOF |
---|
| 6592 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6593 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6594 | ac_status=$? |
---|
| 6595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6596 | rm -f conftest.er1 |
---|
| 6597 | cat conftest.err >&5 |
---|
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6599 | (exit $ac_status); } >/dev/null; then |
---|
| 6600 | if test -s conftest.err; then |
---|
| 6601 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6603 | else |
---|
| 6604 | ac_cpp_err= |
---|
| 6605 | fi |
---|
| 6606 | else |
---|
| 6607 | ac_cpp_err=yes |
---|
| 6608 | fi |
---|
| 6609 | if test -z "$ac_cpp_err"; then |
---|
| 6610 | ac_header_preproc=yes |
---|
| 6611 | else |
---|
| 6612 | echo "$as_me: failed program was:" >&5 |
---|
| 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6614 | |
---|
| 6615 | ac_header_preproc=no |
---|
| 6616 | fi |
---|
| 6617 | rm -f conftest.err conftest.$ac_ext |
---|
| 6618 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6619 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6620 | |
---|
| 6621 | # So? What about this header? |
---|
| 6622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6623 | yes:no: ) |
---|
| 6624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6628 | ac_header_preproc=yes |
---|
| 6629 | ;; |
---|
| 6630 | no:yes:* ) |
---|
| 6631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6642 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6643 | ( |
---|
| 6644 | cat <<\_ASBOX |
---|
| 6645 | ## ---------------------------------------------- ## |
---|
| 6646 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6647 | ## ---------------------------------------------- ## |
---|
| 6648 | _ASBOX |
---|
| 6649 | ) | |
---|
| 6650 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6651 | ;; |
---|
| 6652 | esac |
---|
| 6653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6657 | else |
---|
| 6658 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6659 | fi |
---|
| 6660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6662 | |
---|
| 6663 | fi |
---|
| 6664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6665 | cat >>confdefs.h <<_ACEOF |
---|
| 6666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6667 | _ACEOF |
---|
| 6668 | |
---|
| 6669 | else |
---|
[4697] | 6670 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6671 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6672 | { (exit 1); exit 1; }; } |
---|
| 6673 | fi |
---|
[4504] | 6674 | |
---|
[4697] | 6675 | done |
---|
| 6676 | |
---|
| 6677 | # cheking for GLU-header |
---|
| 6678 | |
---|
| 6679 | for ac_header in OpenGL/glu.h |
---|
[4504] | 6680 | do |
---|
| 6681 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6687 | fi |
---|
| 6688 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6689 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6690 | else |
---|
| 6691 | # Is the header compilable? |
---|
| 6692 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6693 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6694 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6695 | /* confdefs.h. */ |
---|
| 6696 | _ACEOF |
---|
| 6697 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6698 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6699 | /* end confdefs.h. */ |
---|
| 6700 | $ac_includes_default |
---|
| 6701 | #include <$ac_header> |
---|
| 6702 | _ACEOF |
---|
| 6703 | rm -f conftest.$ac_objext |
---|
| 6704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6705 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6706 | ac_status=$? |
---|
| 6707 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6708 | rm -f conftest.er1 |
---|
| 6709 | cat conftest.err >&5 |
---|
| 6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6711 | (exit $ac_status); } && |
---|
| 6712 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6713 | || test ! -s conftest.err' |
---|
| 6714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6715 | (eval $ac_try) 2>&5 |
---|
| 6716 | ac_status=$? |
---|
| 6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6718 | (exit $ac_status); }; } && |
---|
| 6719 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6721 | (eval $ac_try) 2>&5 |
---|
| 6722 | ac_status=$? |
---|
| 6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6724 | (exit $ac_status); }; }; then |
---|
| 6725 | ac_header_compiler=yes |
---|
| 6726 | else |
---|
| 6727 | echo "$as_me: failed program was:" >&5 |
---|
| 6728 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6729 | |
---|
| 6730 | ac_header_compiler=no |
---|
| 6731 | fi |
---|
| 6732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6733 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6734 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6735 | |
---|
| 6736 | # Is the header present? |
---|
| 6737 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6738 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6739 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6740 | /* confdefs.h. */ |
---|
| 6741 | _ACEOF |
---|
| 6742 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6743 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6744 | /* end confdefs.h. */ |
---|
| 6745 | #include <$ac_header> |
---|
| 6746 | _ACEOF |
---|
| 6747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6749 | ac_status=$? |
---|
| 6750 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6751 | rm -f conftest.er1 |
---|
| 6752 | cat conftest.err >&5 |
---|
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6754 | (exit $ac_status); } >/dev/null; then |
---|
| 6755 | if test -s conftest.err; then |
---|
| 6756 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6757 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6758 | else |
---|
| 6759 | ac_cpp_err= |
---|
| 6760 | fi |
---|
| 6761 | else |
---|
| 6762 | ac_cpp_err=yes |
---|
| 6763 | fi |
---|
| 6764 | if test -z "$ac_cpp_err"; then |
---|
| 6765 | ac_header_preproc=yes |
---|
| 6766 | else |
---|
| 6767 | echo "$as_me: failed program was:" >&5 |
---|
| 6768 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6769 | |
---|
| 6770 | ac_header_preproc=no |
---|
| 6771 | fi |
---|
| 6772 | rm -f conftest.err conftest.$ac_ext |
---|
| 6773 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6774 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6775 | |
---|
| 6776 | # So? What about this header? |
---|
| 6777 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6778 | yes:no: ) |
---|
| 6779 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6780 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6782 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6783 | ac_header_preproc=yes |
---|
| 6784 | ;; |
---|
| 6785 | no:yes:* ) |
---|
| 6786 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6787 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6788 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6789 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6790 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6791 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6792 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6793 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6796 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6797 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6798 | ( |
---|
| 6799 | cat <<\_ASBOX |
---|
| 6800 | ## ---------------------------------------------- ## |
---|
| 6801 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6802 | ## ---------------------------------------------- ## |
---|
| 6803 | _ASBOX |
---|
| 6804 | ) | |
---|
| 6805 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6806 | ;; |
---|
| 6807 | esac |
---|
| 6808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6812 | else |
---|
| 6813 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6814 | fi |
---|
| 6815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6817 | |
---|
| 6818 | fi |
---|
| 6819 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6820 | cat >>confdefs.h <<_ACEOF |
---|
| 6821 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6822 | _ACEOF |
---|
| 6823 | |
---|
| 6824 | else |
---|
[4697] | 6825 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6826 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
[4504] | 6827 | { (exit 1); exit 1; }; } |
---|
| 6828 | fi |
---|
| 6829 | |
---|
| 6830 | done |
---|
| 6831 | |
---|
| 6832 | |
---|
[4697] | 6833 | LIBS="$LIBS -framework OpenGL" |
---|
[4504] | 6834 | |
---|
| 6835 | |
---|
[4697] | 6836 | ## SDL-check |
---|
| 6837 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6838 | SDL_LIBS=`sdl-config --libs` |
---|
| 6839 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6840 | LIBS="$LIBS $SDL_LIBS" |
---|
[4504] | 6841 | |
---|
| 6842 | |
---|
[4697] | 6843 | # checking for SDL-headers |
---|
| 6844 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6845 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[4504] | 6846 | |
---|
[4697] | 6847 | ## checking for SDL |
---|
| 6848 | # SDL_VERSION=1.2.7 |
---|
| 6849 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6850 | # :, |
---|
| 6851 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6852 | # ) |
---|
[4504] | 6853 | |
---|
| 6854 | |
---|
[4697] | 6855 | ;; |
---|
[4665] | 6856 | |
---|
[4697] | 6857 | *) |
---|
| 6858 | ;; |
---|
| 6859 | esac |
---|
| 6860 | |
---|
| 6861 | |
---|
| 6862 | |
---|
| 6863 | ################################### |
---|
| 6864 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6865 | ################################### |
---|
| 6866 | |
---|
| 6867 | #---------# |
---|
| 6868 | # SDL_ttf # |
---|
| 6869 | #---------# |
---|
| 6870 | # checking for SDL_ttf-headers |
---|
| 6871 | |
---|
| 6872 | for ac_header in SDL_ttf.h |
---|
[4504] | 6873 | do |
---|
| 6874 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6876 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6877 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6880 | fi |
---|
| 6881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6883 | else |
---|
| 6884 | # Is the header compilable? |
---|
| 6885 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6886 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6887 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6888 | /* confdefs.h. */ |
---|
| 6889 | _ACEOF |
---|
| 6890 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6891 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6892 | /* end confdefs.h. */ |
---|
| 6893 | $ac_includes_default |
---|
| 6894 | #include <$ac_header> |
---|
| 6895 | _ACEOF |
---|
| 6896 | rm -f conftest.$ac_objext |
---|
| 6897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6898 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6899 | ac_status=$? |
---|
| 6900 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6901 | rm -f conftest.er1 |
---|
| 6902 | cat conftest.err >&5 |
---|
| 6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6904 | (exit $ac_status); } && |
---|
| 6905 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6906 | || test ! -s conftest.err' |
---|
| 6907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6908 | (eval $ac_try) 2>&5 |
---|
| 6909 | ac_status=$? |
---|
| 6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6911 | (exit $ac_status); }; } && |
---|
| 6912 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6914 | (eval $ac_try) 2>&5 |
---|
| 6915 | ac_status=$? |
---|
| 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6917 | (exit $ac_status); }; }; then |
---|
| 6918 | ac_header_compiler=yes |
---|
| 6919 | else |
---|
| 6920 | echo "$as_me: failed program was:" >&5 |
---|
| 6921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6922 | |
---|
| 6923 | ac_header_compiler=no |
---|
| 6924 | fi |
---|
| 6925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6927 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6928 | |
---|
| 6929 | # Is the header present? |
---|
| 6930 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6931 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6932 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6933 | /* confdefs.h. */ |
---|
| 6934 | _ACEOF |
---|
| 6935 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6936 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6937 | /* end confdefs.h. */ |
---|
| 6938 | #include <$ac_header> |
---|
| 6939 | _ACEOF |
---|
| 6940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6942 | ac_status=$? |
---|
| 6943 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6944 | rm -f conftest.er1 |
---|
| 6945 | cat conftest.err >&5 |
---|
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6947 | (exit $ac_status); } >/dev/null; then |
---|
| 6948 | if test -s conftest.err; then |
---|
| 6949 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6951 | else |
---|
| 6952 | ac_cpp_err= |
---|
| 6953 | fi |
---|
| 6954 | else |
---|
| 6955 | ac_cpp_err=yes |
---|
| 6956 | fi |
---|
| 6957 | if test -z "$ac_cpp_err"; then |
---|
| 6958 | ac_header_preproc=yes |
---|
| 6959 | else |
---|
| 6960 | echo "$as_me: failed program was:" >&5 |
---|
| 6961 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6962 | |
---|
| 6963 | ac_header_preproc=no |
---|
| 6964 | fi |
---|
| 6965 | rm -f conftest.err conftest.$ac_ext |
---|
| 6966 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6967 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6968 | |
---|
| 6969 | # So? What about this header? |
---|
| 6970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6971 | yes:no: ) |
---|
| 6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6976 | ac_header_preproc=yes |
---|
| 6977 | ;; |
---|
| 6978 | no:yes:* ) |
---|
| 6979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6991 | ( |
---|
| 6992 | cat <<\_ASBOX |
---|
| 6993 | ## ---------------------------------------------- ## |
---|
| 6994 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6995 | ## ---------------------------------------------- ## |
---|
| 6996 | _ASBOX |
---|
| 6997 | ) | |
---|
| 6998 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6999 | ;; |
---|
| 7000 | esac |
---|
| 7001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7005 | else |
---|
| 7006 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7007 | fi |
---|
| 7008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7010 | |
---|
| 7011 | fi |
---|
| 7012 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7013 | cat >>confdefs.h <<_ACEOF |
---|
| 7014 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7015 | _ACEOF |
---|
| 7016 | |
---|
| 7017 | else |
---|
| 7018 | |
---|
[4697] | 7019 | for ac_header in SDL/SDL_ttf.h |
---|
[4662] | 7020 | do |
---|
| 7021 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7027 | fi |
---|
| 7028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7030 | else |
---|
| 7031 | # Is the header compilable? |
---|
| 7032 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7033 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7034 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7035 | /* confdefs.h. */ |
---|
| 7036 | _ACEOF |
---|
| 7037 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7038 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7039 | /* end confdefs.h. */ |
---|
| 7040 | $ac_includes_default |
---|
| 7041 | #include <$ac_header> |
---|
| 7042 | _ACEOF |
---|
| 7043 | rm -f conftest.$ac_objext |
---|
| 7044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7045 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7046 | ac_status=$? |
---|
| 7047 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7048 | rm -f conftest.er1 |
---|
| 7049 | cat conftest.err >&5 |
---|
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7051 | (exit $ac_status); } && |
---|
| 7052 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7053 | || test ! -s conftest.err' |
---|
| 7054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7055 | (eval $ac_try) 2>&5 |
---|
| 7056 | ac_status=$? |
---|
| 7057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7058 | (exit $ac_status); }; } && |
---|
| 7059 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7061 | (eval $ac_try) 2>&5 |
---|
| 7062 | ac_status=$? |
---|
| 7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7064 | (exit $ac_status); }; }; then |
---|
| 7065 | ac_header_compiler=yes |
---|
| 7066 | else |
---|
| 7067 | echo "$as_me: failed program was:" >&5 |
---|
| 7068 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7069 | |
---|
| 7070 | ac_header_compiler=no |
---|
| 7071 | fi |
---|
| 7072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7073 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7074 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7075 | |
---|
| 7076 | # Is the header present? |
---|
| 7077 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7078 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7079 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7080 | /* confdefs.h. */ |
---|
| 7081 | _ACEOF |
---|
| 7082 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7083 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7084 | /* end confdefs.h. */ |
---|
| 7085 | #include <$ac_header> |
---|
| 7086 | _ACEOF |
---|
| 7087 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7088 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7089 | ac_status=$? |
---|
| 7090 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7091 | rm -f conftest.er1 |
---|
| 7092 | cat conftest.err >&5 |
---|
| 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7094 | (exit $ac_status); } >/dev/null; then |
---|
| 7095 | if test -s conftest.err; then |
---|
| 7096 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7097 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7098 | else |
---|
| 7099 | ac_cpp_err= |
---|
| 7100 | fi |
---|
| 7101 | else |
---|
| 7102 | ac_cpp_err=yes |
---|
| 7103 | fi |
---|
| 7104 | if test -z "$ac_cpp_err"; then |
---|
| 7105 | ac_header_preproc=yes |
---|
| 7106 | else |
---|
| 7107 | echo "$as_me: failed program was:" >&5 |
---|
| 7108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7109 | |
---|
| 7110 | ac_header_preproc=no |
---|
| 7111 | fi |
---|
| 7112 | rm -f conftest.err conftest.$ac_ext |
---|
| 7113 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7114 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7115 | |
---|
| 7116 | # So? What about this header? |
---|
| 7117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7118 | yes:no: ) |
---|
| 7119 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7120 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7122 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7123 | ac_header_preproc=yes |
---|
| 7124 | ;; |
---|
| 7125 | no:yes:* ) |
---|
| 7126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7130 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7131 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7132 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7133 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7136 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7137 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7138 | ( |
---|
| 7139 | cat <<\_ASBOX |
---|
| 7140 | ## ---------------------------------------------- ## |
---|
| 7141 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7142 | ## ---------------------------------------------- ## |
---|
| 7143 | _ASBOX |
---|
| 7144 | ) | |
---|
| 7145 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7146 | ;; |
---|
| 7147 | esac |
---|
| 7148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7152 | else |
---|
| 7153 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7154 | fi |
---|
| 7155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7157 | |
---|
| 7158 | fi |
---|
| 7159 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7160 | cat >>confdefs.h <<_ACEOF |
---|
| 7161 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7162 | _ACEOF |
---|
| 7163 | |
---|
| 7164 | else |
---|
[4697] | 7165 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
| 7166 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
[4665] | 7167 | { (exit 1); exit 1; }; } |
---|
| 7168 | fi |
---|
[4662] | 7169 | |
---|
[4665] | 7170 | done |
---|
| 7171 | |
---|
| 7172 | fi |
---|
| 7173 | |
---|
| 7174 | done |
---|
| 7175 | |
---|
[4697] | 7176 | # checking for SDL_ttf-lib |
---|
| 7177 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
| 7178 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
| 7179 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
[4665] | 7180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7181 | else |
---|
| 7182 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 7183 | LIBS="-lSDL_ttf $LIBS" |
---|
[4665] | 7184 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7185 | /* confdefs.h. */ |
---|
| 7186 | _ACEOF |
---|
| 7187 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7188 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7189 | /* end confdefs.h. */ |
---|
| 7190 | |
---|
[4697] | 7191 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 7192 | #ifdef __cplusplus |
---|
| 7193 | extern "C" |
---|
| 7194 | #endif |
---|
| 7195 | /* We use char because int might match the return type of a gcc2 |
---|
| 7196 | builtin and then its argument prototype would still apply. */ |
---|
| 7197 | char TTF_OpenFont (); |
---|
[4665] | 7198 | int |
---|
| 7199 | main () |
---|
| 7200 | { |
---|
[4697] | 7201 | TTF_OpenFont (); |
---|
[4665] | 7202 | ; |
---|
| 7203 | return 0; |
---|
| 7204 | } |
---|
| 7205 | _ACEOF |
---|
| 7206 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7208 | (eval $ac_link) 2>conftest.er1 |
---|
| 7209 | ac_status=$? |
---|
| 7210 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7211 | rm -f conftest.er1 |
---|
| 7212 | cat conftest.err >&5 |
---|
| 7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7214 | (exit $ac_status); } && |
---|
| 7215 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7216 | || test ! -s conftest.err' |
---|
| 7217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7218 | (eval $ac_try) 2>&5 |
---|
| 7219 | ac_status=$? |
---|
| 7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7221 | (exit $ac_status); }; } && |
---|
| 7222 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7224 | (eval $ac_try) 2>&5 |
---|
| 7225 | ac_status=$? |
---|
| 7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7227 | (exit $ac_status); }; }; then |
---|
[4697] | 7228 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
[4665] | 7229 | else |
---|
| 7230 | echo "$as_me: failed program was:" >&5 |
---|
| 7231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7232 | |
---|
[4697] | 7233 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
[4665] | 7234 | fi |
---|
| 7235 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7236 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7237 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7238 | fi |
---|
[4697] | 7239 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
| 7240 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
| 7241 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
| 7242 | FOUND_SDL_ttf=yes |
---|
[4665] | 7243 | fi |
---|
| 7244 | |
---|
[4697] | 7245 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
| 7246 | LIBS="$LIBS -lSDL_ttf" |
---|
| 7247 | else |
---|
| 7248 | echo "------------------" |
---|
| 7249 | echo "SDL_ttf library not found." |
---|
| 7250 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
| 7251 | echo "------------------" |
---|
| 7252 | exit -1 |
---|
| 7253 | fi |
---|
[4665] | 7254 | |
---|
| 7255 | |
---|
[4697] | 7256 | #-----------# |
---|
| 7257 | # SDL_Image # |
---|
| 7258 | #-----------# |
---|
| 7259 | # checking for SDL_image-headers |
---|
| 7260 | |
---|
| 7261 | for ac_header in SDL_image.h |
---|
[3790] | 7262 | do |
---|
| 7263 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7269 | fi |
---|
| 7270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7271 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7272 | else |
---|
| 7273 | # Is the header compilable? |
---|
| 7274 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7275 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7276 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7277 | /* confdefs.h. */ |
---|
| 7278 | _ACEOF |
---|
| 7279 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7280 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7281 | /* end confdefs.h. */ |
---|
| 7282 | $ac_includes_default |
---|
| 7283 | #include <$ac_header> |
---|
| 7284 | _ACEOF |
---|
| 7285 | rm -f conftest.$ac_objext |
---|
| 7286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7287 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7288 | ac_status=$? |
---|
| 7289 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7290 | rm -f conftest.er1 |
---|
| 7291 | cat conftest.err >&5 |
---|
| 7292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7293 | (exit $ac_status); } && |
---|
| 7294 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7295 | || test ! -s conftest.err' |
---|
| 7296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7297 | (eval $ac_try) 2>&5 |
---|
| 7298 | ac_status=$? |
---|
| 7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7300 | (exit $ac_status); }; } && |
---|
| 7301 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7303 | (eval $ac_try) 2>&5 |
---|
| 7304 | ac_status=$? |
---|
| 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7306 | (exit $ac_status); }; }; then |
---|
| 7307 | ac_header_compiler=yes |
---|
| 7308 | else |
---|
| 7309 | echo "$as_me: failed program was:" >&5 |
---|
| 7310 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7311 | |
---|
| 7312 | ac_header_compiler=no |
---|
| 7313 | fi |
---|
| 7314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7315 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7316 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7317 | |
---|
| 7318 | # Is the header present? |
---|
| 7319 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7320 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7321 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7322 | /* confdefs.h. */ |
---|
| 7323 | _ACEOF |
---|
| 7324 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7326 | /* end confdefs.h. */ |
---|
| 7327 | #include <$ac_header> |
---|
| 7328 | _ACEOF |
---|
| 7329 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7331 | ac_status=$? |
---|
| 7332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7333 | rm -f conftest.er1 |
---|
| 7334 | cat conftest.err >&5 |
---|
| 7335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7336 | (exit $ac_status); } >/dev/null; then |
---|
| 7337 | if test -s conftest.err; then |
---|
| 7338 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7339 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7340 | else |
---|
| 7341 | ac_cpp_err= |
---|
| 7342 | fi |
---|
| 7343 | else |
---|
| 7344 | ac_cpp_err=yes |
---|
| 7345 | fi |
---|
| 7346 | if test -z "$ac_cpp_err"; then |
---|
| 7347 | ac_header_preproc=yes |
---|
| 7348 | else |
---|
| 7349 | echo "$as_me: failed program was:" >&5 |
---|
| 7350 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7351 | |
---|
| 7352 | ac_header_preproc=no |
---|
| 7353 | fi |
---|
| 7354 | rm -f conftest.err conftest.$ac_ext |
---|
| 7355 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7356 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7357 | |
---|
| 7358 | # So? What about this header? |
---|
| 7359 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7360 | yes:no: ) |
---|
| 7361 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7362 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7364 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7365 | ac_header_preproc=yes |
---|
| 7366 | ;; |
---|
| 7367 | no:yes:* ) |
---|
| 7368 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7369 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7370 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7371 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7372 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7373 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7374 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7375 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7377 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7378 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7379 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7380 | ( |
---|
| 7381 | cat <<\_ASBOX |
---|
| 7382 | ## ---------------------------------------------- ## |
---|
| 7383 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7384 | ## ---------------------------------------------- ## |
---|
| 7385 | _ASBOX |
---|
| 7386 | ) | |
---|
| 7387 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7388 | ;; |
---|
| 7389 | esac |
---|
| 7390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7394 | else |
---|
| 7395 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7396 | fi |
---|
| 7397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7398 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7399 | |
---|
| 7400 | fi |
---|
| 7401 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7402 | cat >>confdefs.h <<_ACEOF |
---|
| 7403 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7404 | _ACEOF |
---|
| 7405 | |
---|
| 7406 | else |
---|
| 7407 | |
---|
[4697] | 7408 | for ac_header in SDL/SDL_image.h |
---|
[3140] | 7409 | do |
---|
| 7410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7416 | fi |
---|
| 7417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7419 | else |
---|
| 7420 | # Is the header compilable? |
---|
| 7421 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7422 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7423 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7424 | /* confdefs.h. */ |
---|
| 7425 | _ACEOF |
---|
| 7426 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7428 | /* end confdefs.h. */ |
---|
| 7429 | $ac_includes_default |
---|
| 7430 | #include <$ac_header> |
---|
| 7431 | _ACEOF |
---|
| 7432 | rm -f conftest.$ac_objext |
---|
| 7433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7434 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7435 | ac_status=$? |
---|
| 7436 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7437 | rm -f conftest.er1 |
---|
| 7438 | cat conftest.err >&5 |
---|
| 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7440 | (exit $ac_status); } && |
---|
| 7441 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7442 | || test ! -s conftest.err' |
---|
| 7443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7444 | (eval $ac_try) 2>&5 |
---|
| 7445 | ac_status=$? |
---|
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7447 | (exit $ac_status); }; } && |
---|
| 7448 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7450 | (eval $ac_try) 2>&5 |
---|
| 7451 | ac_status=$? |
---|
| 7452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7453 | (exit $ac_status); }; }; then |
---|
| 7454 | ac_header_compiler=yes |
---|
| 7455 | else |
---|
| 7456 | echo "$as_me: failed program was:" >&5 |
---|
| 7457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 7458 | |
---|
[3140] | 7459 | ac_header_compiler=no |
---|
| 7460 | fi |
---|
| 7461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7462 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7463 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 7464 | |
---|
[3140] | 7465 | # Is the header present? |
---|
| 7466 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7467 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7468 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7469 | /* confdefs.h. */ |
---|
| 7470 | _ACEOF |
---|
| 7471 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7472 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7473 | /* end confdefs.h. */ |
---|
| 7474 | #include <$ac_header> |
---|
| 7475 | _ACEOF |
---|
| 7476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7478 | ac_status=$? |
---|
| 7479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7480 | rm -f conftest.er1 |
---|
| 7481 | cat conftest.err >&5 |
---|
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7483 | (exit $ac_status); } >/dev/null; then |
---|
| 7484 | if test -s conftest.err; then |
---|
| 7485 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7487 | else |
---|
| 7488 | ac_cpp_err= |
---|
| 7489 | fi |
---|
| 7490 | else |
---|
| 7491 | ac_cpp_err=yes |
---|
| 7492 | fi |
---|
| 7493 | if test -z "$ac_cpp_err"; then |
---|
| 7494 | ac_header_preproc=yes |
---|
| 7495 | else |
---|
| 7496 | echo "$as_me: failed program was:" >&5 |
---|
| 7497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7498 | |
---|
| 7499 | ac_header_preproc=no |
---|
| 7500 | fi |
---|
| 7501 | rm -f conftest.err conftest.$ac_ext |
---|
| 7502 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7503 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7504 | |
---|
| 7505 | # So? What about this header? |
---|
| 7506 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7507 | yes:no: ) |
---|
| 7508 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7509 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7511 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7512 | ac_header_preproc=yes |
---|
| 7513 | ;; |
---|
| 7514 | no:yes:* ) |
---|
| 7515 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7516 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7517 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7518 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7519 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7520 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7521 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7522 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7524 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7525 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7526 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7527 | ( |
---|
| 7528 | cat <<\_ASBOX |
---|
[3240] | 7529 | ## ---------------------------------------------- ## |
---|
| 7530 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7531 | ## ---------------------------------------------- ## |
---|
[3140] | 7532 | _ASBOX |
---|
| 7533 | ) | |
---|
| 7534 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7535 | ;; |
---|
| 7536 | esac |
---|
| 7537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7541 | else |
---|
| 7542 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7543 | fi |
---|
| 7544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7546 | |
---|
| 7547 | fi |
---|
| 7548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7549 | cat >>confdefs.h <<_ACEOF |
---|
| 7550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7551 | _ACEOF |
---|
| 7552 | |
---|
| 7553 | else |
---|
[4697] | 7554 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
| 7555 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
[4665] | 7556 | { (exit 1); exit 1; }; } |
---|
| 7557 | fi |
---|
[4662] | 7558 | |
---|
[4665] | 7559 | done |
---|
| 7560 | |
---|
[4697] | 7561 | fi |
---|
| 7562 | |
---|
| 7563 | done |
---|
| 7564 | |
---|
| 7565 | # checking for SDL_image-lib |
---|
| 7566 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 7567 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 7568 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
[4665] | 7569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7570 | else |
---|
| 7571 | ac_check_lib_save_LIBS=$LIBS |
---|
[4697] | 7572 | LIBS="-lSDL_image $LIBS" |
---|
[4665] | 7573 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7574 | /* confdefs.h. */ |
---|
| 7575 | _ACEOF |
---|
| 7576 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7577 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7578 | /* end confdefs.h. */ |
---|
| 7579 | |
---|
| 7580 | |
---|
| 7581 | int |
---|
| 7582 | main () |
---|
| 7583 | { |
---|
| 7584 | main (); |
---|
| 7585 | ; |
---|
| 7586 | return 0; |
---|
| 7587 | } |
---|
| 7588 | _ACEOF |
---|
| 7589 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7591 | (eval $ac_link) 2>conftest.er1 |
---|
| 7592 | ac_status=$? |
---|
| 7593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7594 | rm -f conftest.er1 |
---|
| 7595 | cat conftest.err >&5 |
---|
| 7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7597 | (exit $ac_status); } && |
---|
| 7598 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7599 | || test ! -s conftest.err' |
---|
| 7600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7601 | (eval $ac_try) 2>&5 |
---|
| 7602 | ac_status=$? |
---|
| 7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7604 | (exit $ac_status); }; } && |
---|
| 7605 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7607 | (eval $ac_try) 2>&5 |
---|
| 7608 | ac_status=$? |
---|
| 7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7610 | (exit $ac_status); }; }; then |
---|
[4697] | 7611 | ac_cv_lib_SDL_image_main=yes |
---|
[4665] | 7612 | else |
---|
| 7613 | echo "$as_me: failed program was:" >&5 |
---|
| 7614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7615 | |
---|
[4697] | 7616 | ac_cv_lib_SDL_image_main=no |
---|
[4665] | 7617 | fi |
---|
| 7618 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7619 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7620 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7621 | fi |
---|
[4697] | 7622 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 7623 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 7624 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 7625 | FOUND_SDL_image=yes |
---|
[4665] | 7626 | fi |
---|
| 7627 | |
---|
[4697] | 7628 | if test x$FOUND_SDL_image = xyes ; then |
---|
| 7629 | LIBS="$LIBS -lSDL_image" |
---|
| 7630 | else |
---|
| 7631 | echo "------------------" |
---|
| 7632 | echo "SDL_image library not found." |
---|
| 7633 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 7634 | echo "------------------" |
---|
| 7635 | exit -1 |
---|
| 7636 | fi |
---|
[4665] | 7637 | |
---|
[4697] | 7638 | #-----# |
---|
| 7639 | # ogg # |
---|
| 7640 | #-----# |
---|
| 7641 | ## checking for ogg-headers |
---|
| 7642 | # AC_CHECK_HEADERS([ogg/ogg.h] ,, |
---|
| 7643 | # [AC_MSG_ERROR([cannot find ogg header.])]) |
---|
| 7644 | ## checking for ogg-lib |
---|
| 7645 | # AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes]) |
---|
| 7646 | # if test x$FOUND_ogg = xyes ; then |
---|
| 7647 | # LIBS="$LIBS -logg" |
---|
| 7648 | # else |
---|
| 7649 | # echo "------------------" |
---|
| 7650 | # echo "ogg library not found." |
---|
| 7651 | # echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 7652 | # echo "------------------" |
---|
| 7653 | # exit -1 |
---|
| 7654 | # fi |
---|
| 7655 | |
---|
[4665] | 7656 | #--------# |
---|
| 7657 | # vorbis # |
---|
| 7658 | #--------# |
---|
[4697] | 7659 | ## checking for vorbis-lib |
---|
| 7660 | # AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes]) |
---|
| 7661 | # if test x$FOUND_vorbis = xyes ; then |
---|
| 7662 | # LIBS="$LIBS -lvorbis" |
---|
| 7663 | # else |
---|
| 7664 | # echo "------------------" |
---|
| 7665 | # echo "vorbis library not found." |
---|
| 7666 | # echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 7667 | # echo "------------------" |
---|
| 7668 | # exit -1 |
---|
| 7669 | # fi |
---|
[4665] | 7670 | |
---|
| 7671 | #------------# |
---|
| 7672 | # vorbisfile # |
---|
| 7673 | #------------# |
---|
[4697] | 7674 | ## checking for vorbis-headers |
---|
| 7675 | # AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,, |
---|
| 7676 | # [AC_MSG_ERROR([cannot find vorbisfile header.])]) |
---|
| 7677 | ## checking for vorbisfile-lib |
---|
| 7678 | # AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes]) |
---|
| 7679 | # if test x$FOUND_vorbisfile = xyes ; then |
---|
| 7680 | # LIBS="$LIBS -lvorbisfile" |
---|
| 7681 | # else |
---|
| 7682 | # echo "------------------" |
---|
| 7683 | # echo "vorbisfile library not found." |
---|
| 7684 | # echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 7685 | # echo "------------------" |
---|
| 7686 | # exit -1 |
---|
| 7687 | # fi |
---|
[4665] | 7688 | |
---|
[3424] | 7689 | #-----# |
---|
| 7690 | # GTK # |
---|
| 7691 | #-----# |
---|
| 7692 | if test x$def_gtk = xyes; then |
---|
[4556] | 7693 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 7694 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 7695 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[4556] | 7696 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
| 7697 | echo "yes" |
---|
| 7698 | have_gtk2=yes |
---|
| 7699 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
| 7700 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
[3101] | 7701 | |
---|
| 7702 | cat >>confdefs.h <<_ACEOF |
---|
| 7703 | #define HAVE_GTK2 1 |
---|
| 7704 | _ACEOF |
---|
| 7705 | |
---|
[4556] | 7706 | if test $DEBUG -ge 3; then |
---|
| 7707 | echo "cflags: $GTK2_CFLAGS" |
---|
| 7708 | echo "libs: $GTK2_LIBS" |
---|
| 7709 | fi |
---|
| 7710 | else |
---|
| 7711 | echo "no" |
---|
| 7712 | fi |
---|
[3100] | 7713 | |
---|
[2980] | 7714 | fi |
---|
[2190] | 7715 | |
---|
[2701] | 7716 | |
---|
| 7717 | |
---|
[2190] | 7718 | |
---|
[3100] | 7719 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 7720 | HAVE_GTK2_TRUE= |
---|
| 7721 | HAVE_GTK2_FALSE='#' |
---|
| 7722 | else |
---|
| 7723 | HAVE_GTK2_TRUE='#' |
---|
| 7724 | HAVE_GTK2_FALSE= |
---|
| 7725 | fi |
---|
| 7726 | |
---|
| 7727 | |
---|
[3424] | 7728 | #---------# |
---|
| 7729 | # libcURL # |
---|
| 7730 | #---------# |
---|
| 7731 | if test x$def_curl = xyes; then |
---|
[3423] | 7732 | |
---|
| 7733 | |
---|
| 7734 | for ac_header in curl/curl.h |
---|
| 7735 | do |
---|
| 7736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7738 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7742 | fi |
---|
| 7743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7745 | else |
---|
| 7746 | # Is the header compilable? |
---|
| 7747 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7748 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7749 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7750 | /* confdefs.h. */ |
---|
| 7751 | _ACEOF |
---|
| 7752 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7753 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7754 | /* end confdefs.h. */ |
---|
| 7755 | $ac_includes_default |
---|
| 7756 | #include <$ac_header> |
---|
| 7757 | _ACEOF |
---|
| 7758 | rm -f conftest.$ac_objext |
---|
| 7759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7760 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7761 | ac_status=$? |
---|
| 7762 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7763 | rm -f conftest.er1 |
---|
| 7764 | cat conftest.err >&5 |
---|
| 7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7766 | (exit $ac_status); } && |
---|
| 7767 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7768 | || test ! -s conftest.err' |
---|
| 7769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7770 | (eval $ac_try) 2>&5 |
---|
| 7771 | ac_status=$? |
---|
| 7772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7773 | (exit $ac_status); }; } && |
---|
| 7774 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7776 | (eval $ac_try) 2>&5 |
---|
| 7777 | ac_status=$? |
---|
| 7778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7779 | (exit $ac_status); }; }; then |
---|
| 7780 | ac_header_compiler=yes |
---|
| 7781 | else |
---|
| 7782 | echo "$as_me: failed program was:" >&5 |
---|
| 7783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7784 | |
---|
| 7785 | ac_header_compiler=no |
---|
| 7786 | fi |
---|
| 7787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7788 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7789 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7790 | |
---|
| 7791 | # Is the header present? |
---|
| 7792 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7793 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7794 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7795 | /* confdefs.h. */ |
---|
| 7796 | _ACEOF |
---|
| 7797 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7798 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7799 | /* end confdefs.h. */ |
---|
| 7800 | #include <$ac_header> |
---|
| 7801 | _ACEOF |
---|
| 7802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7804 | ac_status=$? |
---|
| 7805 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7806 | rm -f conftest.er1 |
---|
| 7807 | cat conftest.err >&5 |
---|
| 7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7809 | (exit $ac_status); } >/dev/null; then |
---|
| 7810 | if test -s conftest.err; then |
---|
| 7811 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7812 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7813 | else |
---|
| 7814 | ac_cpp_err= |
---|
| 7815 | fi |
---|
| 7816 | else |
---|
| 7817 | ac_cpp_err=yes |
---|
| 7818 | fi |
---|
| 7819 | if test -z "$ac_cpp_err"; then |
---|
| 7820 | ac_header_preproc=yes |
---|
| 7821 | else |
---|
| 7822 | echo "$as_me: failed program was:" >&5 |
---|
| 7823 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7824 | |
---|
| 7825 | ac_header_preproc=no |
---|
| 7826 | fi |
---|
| 7827 | rm -f conftest.err conftest.$ac_ext |
---|
| 7828 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7829 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7830 | |
---|
| 7831 | # So? What about this header? |
---|
| 7832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7833 | yes:no: ) |
---|
| 7834 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7835 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7836 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7837 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7838 | ac_header_preproc=yes |
---|
| 7839 | ;; |
---|
| 7840 | no:yes:* ) |
---|
| 7841 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7842 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7843 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7844 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7845 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7846 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7847 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7848 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7850 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7851 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7852 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7853 | ( |
---|
| 7854 | cat <<\_ASBOX |
---|
| 7855 | ## ---------------------------------------------- ## |
---|
| 7856 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7857 | ## ---------------------------------------------- ## |
---|
| 7858 | _ASBOX |
---|
| 7859 | ) | |
---|
| 7860 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7861 | ;; |
---|
| 7862 | esac |
---|
| 7863 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7867 | else |
---|
| 7868 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7869 | fi |
---|
| 7870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7871 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7872 | |
---|
| 7873 | fi |
---|
| 7874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7875 | cat >>confdefs.h <<_ACEOF |
---|
| 7876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7877 | _ACEOF |
---|
| 7878 | curlHeader="yes" |
---|
| 7879 | else |
---|
| 7880 | curlHeader="no" |
---|
| 7881 | fi |
---|
| 7882 | |
---|
| 7883 | done |
---|
| 7884 | |
---|
| 7885 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 7886 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 7887 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 7888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7889 | else |
---|
| 7890 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7891 | LIBS="-lcurl $LIBS" |
---|
| 7892 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7893 | /* confdefs.h. */ |
---|
| 7894 | _ACEOF |
---|
| 7895 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7896 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7897 | /* end confdefs.h. */ |
---|
| 7898 | |
---|
| 7899 | |
---|
| 7900 | int |
---|
| 7901 | main () |
---|
| 7902 | { |
---|
| 7903 | main (); |
---|
| 7904 | ; |
---|
| 7905 | return 0; |
---|
| 7906 | } |
---|
| 7907 | _ACEOF |
---|
| 7908 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7910 | (eval $ac_link) 2>conftest.er1 |
---|
| 7911 | ac_status=$? |
---|
| 7912 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7913 | rm -f conftest.er1 |
---|
| 7914 | cat conftest.err >&5 |
---|
| 7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7916 | (exit $ac_status); } && |
---|
| 7917 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7918 | || test ! -s conftest.err' |
---|
| 7919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7920 | (eval $ac_try) 2>&5 |
---|
| 7921 | ac_status=$? |
---|
| 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7923 | (exit $ac_status); }; } && |
---|
| 7924 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7926 | (eval $ac_try) 2>&5 |
---|
| 7927 | ac_status=$? |
---|
| 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7929 | (exit $ac_status); }; }; then |
---|
| 7930 | ac_cv_lib_curl_main=yes |
---|
| 7931 | else |
---|
| 7932 | echo "$as_me: failed program was:" >&5 |
---|
| 7933 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7934 | |
---|
| 7935 | ac_cv_lib_curl_main=no |
---|
| 7936 | fi |
---|
| 7937 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7938 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7939 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7940 | fi |
---|
| 7941 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 7942 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 7943 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 7944 | FOUND_curl=yes |
---|
| 7945 | fi |
---|
| 7946 | |
---|
| 7947 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 7948 | have_curl=yes |
---|
| 7949 | CURL_LIBS=`curl-config --libs` |
---|
| 7950 | CURLCFLAGS=`curl-config --cflags` |
---|
| 7951 | |
---|
| 7952 | cat >>confdefs.h <<_ACEOF |
---|
| 7953 | #define HAVE_CURL 1 |
---|
| 7954 | _ACEOF |
---|
| 7955 | |
---|
| 7956 | else |
---|
| 7957 | have_curl=no |
---|
| 7958 | fi |
---|
| 7959 | |
---|
| 7960 | fi |
---|
| 7961 | |
---|
| 7962 | |
---|
| 7963 | |
---|
| 7964 | |
---|
| 7965 | if test x$have_curl = xyes; then |
---|
| 7966 | HAVE_CURL_TRUE= |
---|
| 7967 | HAVE_CURL_FALSE='#' |
---|
| 7968 | else |
---|
| 7969 | HAVE_CURL_TRUE='#' |
---|
| 7970 | HAVE_CURL_FALSE= |
---|
| 7971 | fi |
---|
| 7972 | |
---|
| 7973 | |
---|
[3863] | 7974 | #--------# |
---|
| 7975 | # efence # |
---|
| 7976 | #--------# |
---|
| 7977 | if test x$def_efence = xyes ; then |
---|
| 7978 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
| 7979 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
| 7980 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
| 7981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7982 | else |
---|
| 7983 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7984 | LIBS="-lefence $LIBS" |
---|
| 7985 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7986 | /* confdefs.h. */ |
---|
| 7987 | _ACEOF |
---|
| 7988 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7989 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7990 | /* end confdefs.h. */ |
---|
| 7991 | |
---|
| 7992 | |
---|
| 7993 | int |
---|
| 7994 | main () |
---|
| 7995 | { |
---|
| 7996 | main (); |
---|
| 7997 | ; |
---|
| 7998 | return 0; |
---|
| 7999 | } |
---|
| 8000 | _ACEOF |
---|
| 8001 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8003 | (eval $ac_link) 2>conftest.er1 |
---|
| 8004 | ac_status=$? |
---|
| 8005 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8006 | rm -f conftest.er1 |
---|
| 8007 | cat conftest.err >&5 |
---|
| 8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8009 | (exit $ac_status); } && |
---|
| 8010 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8011 | || test ! -s conftest.err' |
---|
| 8012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8013 | (eval $ac_try) 2>&5 |
---|
| 8014 | ac_status=$? |
---|
| 8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8016 | (exit $ac_status); }; } && |
---|
| 8017 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8019 | (eval $ac_try) 2>&5 |
---|
| 8020 | ac_status=$? |
---|
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8022 | (exit $ac_status); }; }; then |
---|
| 8023 | ac_cv_lib_efence_main=yes |
---|
| 8024 | else |
---|
| 8025 | echo "$as_me: failed program was:" >&5 |
---|
| 8026 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8027 | |
---|
| 8028 | ac_cv_lib_efence_main=no |
---|
| 8029 | fi |
---|
| 8030 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8031 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8032 | LIBS=$ac_check_lib_save_LIBS |
---|
| 8033 | fi |
---|
| 8034 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
| 8035 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
| 8036 | if test $ac_cv_lib_efence_main = yes; then |
---|
| 8037 | FOUND_efence=yes |
---|
| 8038 | fi |
---|
| 8039 | |
---|
| 8040 | if test x$FOUND_efence = xyes ; then |
---|
| 8041 | LIBS="$LIBS -lefence" |
---|
| 8042 | fi |
---|
| 8043 | |
---|
| 8044 | fi |
---|
| 8045 | |
---|
[1956] | 8046 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 8047 | |
---|
| 8048 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 8049 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 8050 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 8051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8052 | else |
---|
| 8053 | ac_check_lib_save_LIBS=$LIBS |
---|
| 8054 | LIBS="-lm $LIBS" |
---|
| 8055 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8056 | /* confdefs.h. */ |
---|
| 8057 | _ACEOF |
---|
| 8058 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8060 | /* end confdefs.h. */ |
---|
| 8061 | |
---|
| 8062 | |
---|
| 8063 | int |
---|
| 8064 | main () |
---|
| 8065 | { |
---|
| 8066 | main (); |
---|
| 8067 | ; |
---|
| 8068 | return 0; |
---|
| 8069 | } |
---|
| 8070 | _ACEOF |
---|
| 8071 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8073 | (eval $ac_link) 2>conftest.er1 |
---|
| 8074 | ac_status=$? |
---|
| 8075 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8076 | rm -f conftest.er1 |
---|
| 8077 | cat conftest.err >&5 |
---|
| 8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8079 | (exit $ac_status); } && |
---|
| 8080 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8081 | || test ! -s conftest.err' |
---|
| 8082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8083 | (eval $ac_try) 2>&5 |
---|
| 8084 | ac_status=$? |
---|
| 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8086 | (exit $ac_status); }; } && |
---|
| 8087 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8089 | (eval $ac_try) 2>&5 |
---|
| 8090 | ac_status=$? |
---|
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8092 | (exit $ac_status); }; }; then |
---|
| 8093 | ac_cv_lib_m_main=yes |
---|
| 8094 | else |
---|
| 8095 | echo "$as_me: failed program was:" >&5 |
---|
| 8096 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8097 | |
---|
| 8098 | ac_cv_lib_m_main=no |
---|
| 8099 | fi |
---|
| 8100 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8101 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8102 | LIBS=$ac_check_lib_save_LIBS |
---|
| 8103 | fi |
---|
| 8104 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 8105 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 8106 | if test $ac_cv_lib_m_main = yes; then |
---|
| 8107 | cat >>confdefs.h <<_ACEOF |
---|
| 8108 | #define HAVE_LIBM 1 |
---|
| 8109 | _ACEOF |
---|
| 8110 | |
---|
| 8111 | LIBS="-lm $LIBS" |
---|
| 8112 | |
---|
| 8113 | fi |
---|
| 8114 | |
---|
| 8115 | |
---|
[2018] | 8116 | |
---|
[1956] | 8117 | # Checks for header files. |
---|
| 8118 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 8119 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 8120 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 8121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8122 | else |
---|
| 8123 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8124 | /* confdefs.h. */ |
---|
| 8125 | _ACEOF |
---|
| 8126 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8127 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8128 | /* end confdefs.h. */ |
---|
| 8129 | #include <stdlib.h> |
---|
| 8130 | #include <stdarg.h> |
---|
| 8131 | #include <string.h> |
---|
| 8132 | #include <float.h> |
---|
| 8133 | |
---|
| 8134 | int |
---|
| 8135 | main () |
---|
| 8136 | { |
---|
| 8137 | |
---|
| 8138 | ; |
---|
| 8139 | return 0; |
---|
| 8140 | } |
---|
| 8141 | _ACEOF |
---|
| 8142 | rm -f conftest.$ac_objext |
---|
| 8143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8144 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8145 | ac_status=$? |
---|
| 8146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8147 | rm -f conftest.er1 |
---|
| 8148 | cat conftest.err >&5 |
---|
| 8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8150 | (exit $ac_status); } && |
---|
| 8151 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8152 | || test ! -s conftest.err' |
---|
| 8153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8154 | (eval $ac_try) 2>&5 |
---|
| 8155 | ac_status=$? |
---|
| 8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8157 | (exit $ac_status); }; } && |
---|
| 8158 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8160 | (eval $ac_try) 2>&5 |
---|
| 8161 | ac_status=$? |
---|
| 8162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8163 | (exit $ac_status); }; }; then |
---|
| 8164 | ac_cv_header_stdc=yes |
---|
| 8165 | else |
---|
| 8166 | echo "$as_me: failed program was:" >&5 |
---|
| 8167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8168 | |
---|
| 8169 | ac_cv_header_stdc=no |
---|
| 8170 | fi |
---|
| 8171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8172 | |
---|
| 8173 | if test $ac_cv_header_stdc = yes; then |
---|
| 8174 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 8175 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8176 | /* confdefs.h. */ |
---|
| 8177 | _ACEOF |
---|
| 8178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8180 | /* end confdefs.h. */ |
---|
| 8181 | #include <string.h> |
---|
| 8182 | |
---|
| 8183 | _ACEOF |
---|
| 8184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 8185 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 8186 | : |
---|
| 8187 | else |
---|
| 8188 | ac_cv_header_stdc=no |
---|
| 8189 | fi |
---|
| 8190 | rm -f conftest* |
---|
| 8191 | |
---|
| 8192 | fi |
---|
| 8193 | |
---|
| 8194 | if test $ac_cv_header_stdc = yes; then |
---|
| 8195 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 8196 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8197 | /* confdefs.h. */ |
---|
| 8198 | _ACEOF |
---|
| 8199 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8201 | /* end confdefs.h. */ |
---|
| 8202 | #include <stdlib.h> |
---|
| 8203 | |
---|
| 8204 | _ACEOF |
---|
| 8205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 8206 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 8207 | : |
---|
| 8208 | else |
---|
| 8209 | ac_cv_header_stdc=no |
---|
| 8210 | fi |
---|
| 8211 | rm -f conftest* |
---|
| 8212 | |
---|
| 8213 | fi |
---|
| 8214 | |
---|
| 8215 | if test $ac_cv_header_stdc = yes; then |
---|
| 8216 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 8217 | if test "$cross_compiling" = yes; then |
---|
| 8218 | : |
---|
| 8219 | else |
---|
| 8220 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8221 | /* confdefs.h. */ |
---|
| 8222 | _ACEOF |
---|
| 8223 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8225 | /* end confdefs.h. */ |
---|
| 8226 | #include <ctype.h> |
---|
| 8227 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 8228 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 8229 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 8230 | #else |
---|
| 8231 | # define ISLOWER(c) \ |
---|
| 8232 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 8233 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 8234 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 8235 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 8236 | #endif |
---|
| 8237 | |
---|
| 8238 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 8239 | int |
---|
| 8240 | main () |
---|
| 8241 | { |
---|
| 8242 | int i; |
---|
| 8243 | for (i = 0; i < 256; i++) |
---|
| 8244 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 8245 | || toupper (i) != TOUPPER (i)) |
---|
| 8246 | exit(2); |
---|
| 8247 | exit (0); |
---|
| 8248 | } |
---|
| 8249 | _ACEOF |
---|
| 8250 | rm -f conftest$ac_exeext |
---|
| 8251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8252 | (eval $ac_link) 2>&5 |
---|
| 8253 | ac_status=$? |
---|
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8257 | (eval $ac_try) 2>&5 |
---|
| 8258 | ac_status=$? |
---|
| 8259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8260 | (exit $ac_status); }; }; then |
---|
| 8261 | : |
---|
| 8262 | else |
---|
| 8263 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8264 | echo "$as_me: failed program was:" >&5 |
---|
| 8265 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8266 | |
---|
| 8267 | ( exit $ac_status ) |
---|
| 8268 | ac_cv_header_stdc=no |
---|
| 8269 | fi |
---|
| 8270 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8271 | fi |
---|
| 8272 | fi |
---|
| 8273 | fi |
---|
| 8274 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 8275 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 8276 | if test $ac_cv_header_stdc = yes; then |
---|
| 8277 | |
---|
| 8278 | cat >>confdefs.h <<\_ACEOF |
---|
| 8279 | #define STDC_HEADERS 1 |
---|
| 8280 | _ACEOF |
---|
| 8281 | |
---|
| 8282 | fi |
---|
| 8283 | |
---|
| 8284 | |
---|
| 8285 | |
---|
| 8286 | for ac_header in stdlib.h string.h |
---|
| 8287 | do |
---|
| 8288 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8290 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8294 | fi |
---|
| 8295 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8296 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8297 | else |
---|
| 8298 | # Is the header compilable? |
---|
| 8299 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8300 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8301 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8302 | /* confdefs.h. */ |
---|
| 8303 | _ACEOF |
---|
| 8304 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8305 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8306 | /* end confdefs.h. */ |
---|
| 8307 | $ac_includes_default |
---|
| 8308 | #include <$ac_header> |
---|
| 8309 | _ACEOF |
---|
| 8310 | rm -f conftest.$ac_objext |
---|
| 8311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8312 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8313 | ac_status=$? |
---|
| 8314 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8315 | rm -f conftest.er1 |
---|
| 8316 | cat conftest.err >&5 |
---|
| 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8318 | (exit $ac_status); } && |
---|
| 8319 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8320 | || test ! -s conftest.err' |
---|
| 8321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8322 | (eval $ac_try) 2>&5 |
---|
| 8323 | ac_status=$? |
---|
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8325 | (exit $ac_status); }; } && |
---|
| 8326 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8328 | (eval $ac_try) 2>&5 |
---|
| 8329 | ac_status=$? |
---|
| 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8331 | (exit $ac_status); }; }; then |
---|
| 8332 | ac_header_compiler=yes |
---|
| 8333 | else |
---|
| 8334 | echo "$as_me: failed program was:" >&5 |
---|
| 8335 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8336 | |
---|
| 8337 | ac_header_compiler=no |
---|
| 8338 | fi |
---|
| 8339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8340 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8341 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8342 | |
---|
| 8343 | # Is the header present? |
---|
| 8344 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8345 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8346 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8347 | /* confdefs.h. */ |
---|
| 8348 | _ACEOF |
---|
| 8349 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8350 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8351 | /* end confdefs.h. */ |
---|
| 8352 | #include <$ac_header> |
---|
| 8353 | _ACEOF |
---|
| 8354 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8355 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8356 | ac_status=$? |
---|
| 8357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8358 | rm -f conftest.er1 |
---|
| 8359 | cat conftest.err >&5 |
---|
| 8360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8361 | (exit $ac_status); } >/dev/null; then |
---|
| 8362 | if test -s conftest.err; then |
---|
| 8363 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8364 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8365 | else |
---|
| 8366 | ac_cpp_err= |
---|
| 8367 | fi |
---|
| 8368 | else |
---|
| 8369 | ac_cpp_err=yes |
---|
| 8370 | fi |
---|
| 8371 | if test -z "$ac_cpp_err"; then |
---|
| 8372 | ac_header_preproc=yes |
---|
| 8373 | else |
---|
| 8374 | echo "$as_me: failed program was:" >&5 |
---|
| 8375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8376 | |
---|
| 8377 | ac_header_preproc=no |
---|
| 8378 | fi |
---|
| 8379 | rm -f conftest.err conftest.$ac_ext |
---|
| 8380 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8381 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8382 | |
---|
| 8383 | # So? What about this header? |
---|
| 8384 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8385 | yes:no: ) |
---|
| 8386 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8387 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8389 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8390 | ac_header_preproc=yes |
---|
| 8391 | ;; |
---|
| 8392 | no:yes:* ) |
---|
| 8393 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8394 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8395 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8396 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8397 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8398 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8399 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8400 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8403 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8404 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8405 | ( |
---|
| 8406 | cat <<\_ASBOX |
---|
[3240] | 8407 | ## ---------------------------------------------- ## |
---|
| 8408 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8409 | ## ---------------------------------------------- ## |
---|
[1956] | 8410 | _ASBOX |
---|
| 8411 | ) | |
---|
| 8412 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8413 | ;; |
---|
| 8414 | esac |
---|
| 8415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8419 | else |
---|
| 8420 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 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 | |
---|
| 8425 | fi |
---|
| 8426 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8427 | cat >>confdefs.h <<_ACEOF |
---|
| 8428 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8429 | _ACEOF |
---|
| 8430 | |
---|
| 8431 | fi |
---|
| 8432 | |
---|
| 8433 | done |
---|
| 8434 | |
---|
| 8435 | |
---|
| 8436 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 8437 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 8438 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 8439 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 8440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8441 | else |
---|
| 8442 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8443 | /* confdefs.h. */ |
---|
| 8444 | _ACEOF |
---|
| 8445 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8446 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8447 | /* end confdefs.h. */ |
---|
| 8448 | |
---|
| 8449 | #include <stdbool.h> |
---|
| 8450 | #ifndef bool |
---|
| 8451 | # error bool is not defined |
---|
| 8452 | #endif |
---|
| 8453 | #ifndef false |
---|
| 8454 | # error false is not defined |
---|
| 8455 | #endif |
---|
| 8456 | #if false |
---|
| 8457 | # error false is not 0 |
---|
| 8458 | #endif |
---|
| 8459 | #ifndef true |
---|
| 8460 | # error true is not defined |
---|
| 8461 | #endif |
---|
| 8462 | #if true != 1 |
---|
| 8463 | # error true is not 1 |
---|
| 8464 | #endif |
---|
| 8465 | #ifndef __bool_true_false_are_defined |
---|
| 8466 | # error __bool_true_false_are_defined is not defined |
---|
| 8467 | #endif |
---|
| 8468 | |
---|
| 8469 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 8470 | |
---|
| 8471 | char a[true == 1 ? 1 : -1]; |
---|
| 8472 | char b[false == 0 ? 1 : -1]; |
---|
| 8473 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 8474 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 8475 | bool e = &s; |
---|
| 8476 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 8477 | char g[true]; |
---|
| 8478 | char h[sizeof (_Bool)]; |
---|
| 8479 | char i[sizeof s.t]; |
---|
| 8480 | |
---|
| 8481 | int |
---|
| 8482 | main () |
---|
| 8483 | { |
---|
| 8484 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 8485 | ; |
---|
| 8486 | return 0; |
---|
| 8487 | } |
---|
| 8488 | _ACEOF |
---|
| 8489 | rm -f conftest.$ac_objext |
---|
| 8490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8491 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8492 | ac_status=$? |
---|
| 8493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8494 | rm -f conftest.er1 |
---|
| 8495 | cat conftest.err >&5 |
---|
| 8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8497 | (exit $ac_status); } && |
---|
| 8498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8499 | || test ! -s conftest.err' |
---|
| 8500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8501 | (eval $ac_try) 2>&5 |
---|
| 8502 | ac_status=$? |
---|
| 8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8504 | (exit $ac_status); }; } && |
---|
| 8505 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8507 | (eval $ac_try) 2>&5 |
---|
| 8508 | ac_status=$? |
---|
| 8509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8510 | (exit $ac_status); }; }; then |
---|
| 8511 | ac_cv_header_stdbool_h=yes |
---|
| 8512 | else |
---|
| 8513 | echo "$as_me: failed program was:" >&5 |
---|
| 8514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8515 | |
---|
| 8516 | ac_cv_header_stdbool_h=no |
---|
| 8517 | fi |
---|
| 8518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8519 | fi |
---|
| 8520 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 8521 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 8522 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 8523 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 8524 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 8525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8526 | else |
---|
| 8527 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8528 | /* confdefs.h. */ |
---|
| 8529 | _ACEOF |
---|
| 8530 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8531 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8532 | /* end confdefs.h. */ |
---|
| 8533 | $ac_includes_default |
---|
| 8534 | int |
---|
| 8535 | main () |
---|
| 8536 | { |
---|
| 8537 | if ((_Bool *) 0) |
---|
| 8538 | return 0; |
---|
| 8539 | if (sizeof (_Bool)) |
---|
| 8540 | return 0; |
---|
| 8541 | ; |
---|
| 8542 | return 0; |
---|
| 8543 | } |
---|
| 8544 | _ACEOF |
---|
| 8545 | rm -f conftest.$ac_objext |
---|
| 8546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8547 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8548 | ac_status=$? |
---|
| 8549 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8550 | rm -f conftest.er1 |
---|
| 8551 | cat conftest.err >&5 |
---|
| 8552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8553 | (exit $ac_status); } && |
---|
| 8554 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8555 | || test ! -s conftest.err' |
---|
| 8556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8557 | (eval $ac_try) 2>&5 |
---|
| 8558 | ac_status=$? |
---|
| 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8560 | (exit $ac_status); }; } && |
---|
| 8561 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8563 | (eval $ac_try) 2>&5 |
---|
| 8564 | ac_status=$? |
---|
| 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8566 | (exit $ac_status); }; }; then |
---|
| 8567 | ac_cv_type__Bool=yes |
---|
| 8568 | else |
---|
| 8569 | echo "$as_me: failed program was:" >&5 |
---|
| 8570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8571 | |
---|
| 8572 | ac_cv_type__Bool=no |
---|
| 8573 | fi |
---|
| 8574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8575 | fi |
---|
| 8576 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 8577 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 8578 | if test $ac_cv_type__Bool = yes; then |
---|
| 8579 | |
---|
| 8580 | cat >>confdefs.h <<_ACEOF |
---|
| 8581 | #define HAVE__BOOL 1 |
---|
| 8582 | _ACEOF |
---|
| 8583 | |
---|
| 8584 | |
---|
| 8585 | fi |
---|
| 8586 | |
---|
| 8587 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 8588 | |
---|
| 8589 | cat >>confdefs.h <<\_ACEOF |
---|
| 8590 | #define HAVE_STDBOOL_H 1 |
---|
| 8591 | _ACEOF |
---|
| 8592 | |
---|
| 8593 | fi |
---|
| 8594 | |
---|
| 8595 | |
---|
| 8596 | # Checks for library functions. |
---|
| 8597 | |
---|
| 8598 | for ac_header in stdlib.h |
---|
| 8599 | do |
---|
| 8600 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8601 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8602 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8606 | fi |
---|
| 8607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8609 | else |
---|
| 8610 | # Is the header compilable? |
---|
| 8611 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8612 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8613 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8614 | /* confdefs.h. */ |
---|
| 8615 | _ACEOF |
---|
| 8616 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8618 | /* end confdefs.h. */ |
---|
| 8619 | $ac_includes_default |
---|
| 8620 | #include <$ac_header> |
---|
| 8621 | _ACEOF |
---|
| 8622 | rm -f conftest.$ac_objext |
---|
| 8623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8624 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8625 | ac_status=$? |
---|
| 8626 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8627 | rm -f conftest.er1 |
---|
| 8628 | cat conftest.err >&5 |
---|
| 8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8630 | (exit $ac_status); } && |
---|
| 8631 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8632 | || test ! -s conftest.err' |
---|
| 8633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8634 | (eval $ac_try) 2>&5 |
---|
| 8635 | ac_status=$? |
---|
| 8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8637 | (exit $ac_status); }; } && |
---|
| 8638 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8640 | (eval $ac_try) 2>&5 |
---|
| 8641 | ac_status=$? |
---|
| 8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8643 | (exit $ac_status); }; }; then |
---|
| 8644 | ac_header_compiler=yes |
---|
| 8645 | else |
---|
| 8646 | echo "$as_me: failed program was:" >&5 |
---|
| 8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8648 | |
---|
| 8649 | ac_header_compiler=no |
---|
| 8650 | fi |
---|
| 8651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8652 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8653 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8654 | |
---|
| 8655 | # Is the header present? |
---|
| 8656 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8657 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8658 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8659 | /* confdefs.h. */ |
---|
| 8660 | _ACEOF |
---|
| 8661 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8662 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8663 | /* end confdefs.h. */ |
---|
| 8664 | #include <$ac_header> |
---|
| 8665 | _ACEOF |
---|
| 8666 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8668 | ac_status=$? |
---|
| 8669 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8670 | rm -f conftest.er1 |
---|
| 8671 | cat conftest.err >&5 |
---|
| 8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8673 | (exit $ac_status); } >/dev/null; then |
---|
| 8674 | if test -s conftest.err; then |
---|
| 8675 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8676 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8677 | else |
---|
| 8678 | ac_cpp_err= |
---|
| 8679 | fi |
---|
| 8680 | else |
---|
| 8681 | ac_cpp_err=yes |
---|
| 8682 | fi |
---|
| 8683 | if test -z "$ac_cpp_err"; then |
---|
| 8684 | ac_header_preproc=yes |
---|
| 8685 | else |
---|
| 8686 | echo "$as_me: failed program was:" >&5 |
---|
| 8687 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8688 | |
---|
| 8689 | ac_header_preproc=no |
---|
| 8690 | fi |
---|
| 8691 | rm -f conftest.err conftest.$ac_ext |
---|
| 8692 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8693 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8694 | |
---|
| 8695 | # So? What about this header? |
---|
| 8696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8697 | yes:no: ) |
---|
| 8698 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8699 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8701 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8702 | ac_header_preproc=yes |
---|
| 8703 | ;; |
---|
| 8704 | no:yes:* ) |
---|
| 8705 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8706 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8707 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8708 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8709 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8710 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8711 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8712 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8713 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8714 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8715 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8716 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8717 | ( |
---|
| 8718 | cat <<\_ASBOX |
---|
[3240] | 8719 | ## ---------------------------------------------- ## |
---|
| 8720 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8721 | ## ---------------------------------------------- ## |
---|
[1956] | 8722 | _ASBOX |
---|
| 8723 | ) | |
---|
| 8724 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8725 | ;; |
---|
| 8726 | esac |
---|
| 8727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8731 | else |
---|
| 8732 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8733 | fi |
---|
| 8734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8735 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8736 | |
---|
| 8737 | fi |
---|
| 8738 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8739 | cat >>confdefs.h <<_ACEOF |
---|
| 8740 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8741 | _ACEOF |
---|
| 8742 | |
---|
| 8743 | fi |
---|
| 8744 | |
---|
| 8745 | done |
---|
| 8746 | |
---|
| 8747 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 8748 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 8749 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 8750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8751 | else |
---|
| 8752 | if test "$cross_compiling" = yes; then |
---|
| 8753 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8754 | else |
---|
| 8755 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8756 | /* confdefs.h. */ |
---|
| 8757 | _ACEOF |
---|
| 8758 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8759 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8760 | /* end confdefs.h. */ |
---|
| 8761 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 8762 | # include <stdlib.h> |
---|
| 8763 | #else |
---|
| 8764 | char *malloc (); |
---|
| 8765 | #endif |
---|
| 8766 | |
---|
| 8767 | int |
---|
| 8768 | main () |
---|
| 8769 | { |
---|
| 8770 | exit (malloc (0) ? 0 : 1); |
---|
| 8771 | ; |
---|
| 8772 | return 0; |
---|
| 8773 | } |
---|
| 8774 | _ACEOF |
---|
| 8775 | rm -f conftest$ac_exeext |
---|
| 8776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8777 | (eval $ac_link) 2>&5 |
---|
| 8778 | ac_status=$? |
---|
| 8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8782 | (eval $ac_try) 2>&5 |
---|
| 8783 | ac_status=$? |
---|
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8785 | (exit $ac_status); }; }; then |
---|
| 8786 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 8787 | else |
---|
| 8788 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8789 | echo "$as_me: failed program was:" >&5 |
---|
| 8790 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8791 | |
---|
| 8792 | ( exit $ac_status ) |
---|
| 8793 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8794 | fi |
---|
| 8795 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8796 | fi |
---|
| 8797 | fi |
---|
| 8798 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8799 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8800 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8801 | |
---|
| 8802 | cat >>confdefs.h <<\_ACEOF |
---|
| 8803 | #define HAVE_MALLOC 1 |
---|
| 8804 | _ACEOF |
---|
| 8805 | |
---|
| 8806 | else |
---|
| 8807 | cat >>confdefs.h <<\_ACEOF |
---|
| 8808 | #define HAVE_MALLOC 0 |
---|
| 8809 | _ACEOF |
---|
| 8810 | |
---|
| 8811 | case $LIBOBJS in |
---|
| 8812 | "malloc.$ac_objext" | \ |
---|
| 8813 | *" malloc.$ac_objext" | \ |
---|
| 8814 | "malloc.$ac_objext "* | \ |
---|
| 8815 | *" malloc.$ac_objext "* ) ;; |
---|
| 8816 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8817 | esac |
---|
| 8818 | |
---|
| 8819 | |
---|
| 8820 | cat >>confdefs.h <<\_ACEOF |
---|
| 8821 | #define malloc rpl_malloc |
---|
| 8822 | _ACEOF |
---|
| 8823 | |
---|
| 8824 | fi |
---|
| 8825 | |
---|
| 8826 | |
---|
| 8827 | |
---|
| 8828 | |
---|
| 8829 | |
---|
| 8830 | for ac_func in bzero sqrt |
---|
| 8831 | do |
---|
| 8832 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8833 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8834 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8835 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8837 | else |
---|
| 8838 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8839 | /* confdefs.h. */ |
---|
| 8840 | _ACEOF |
---|
| 8841 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8843 | /* end confdefs.h. */ |
---|
| 8844 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8845 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8846 | #define $ac_func innocuous_$ac_func |
---|
| 8847 | |
---|
| 8848 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8849 | which can conflict with char $ac_func (); below. |
---|
| 8850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8851 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8852 | |
---|
| 8853 | #ifdef __STDC__ |
---|
| 8854 | # include <limits.h> |
---|
| 8855 | #else |
---|
| 8856 | # include <assert.h> |
---|
| 8857 | #endif |
---|
| 8858 | |
---|
| 8859 | #undef $ac_func |
---|
| 8860 | |
---|
| 8861 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8862 | #ifdef __cplusplus |
---|
| 8863 | extern "C" |
---|
| 8864 | { |
---|
| 8865 | #endif |
---|
| 8866 | /* We use char because int might match the return type of a gcc2 |
---|
| 8867 | builtin and then its argument prototype would still apply. */ |
---|
| 8868 | char $ac_func (); |
---|
| 8869 | /* The GNU C library defines this for functions which it implements |
---|
| 8870 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8871 | something starting with __ and the normal name is an alias. */ |
---|
| 8872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8873 | choke me |
---|
| 8874 | #else |
---|
| 8875 | char (*f) () = $ac_func; |
---|
| 8876 | #endif |
---|
| 8877 | #ifdef __cplusplus |
---|
| 8878 | } |
---|
| 8879 | #endif |
---|
| 8880 | |
---|
| 8881 | int |
---|
| 8882 | main () |
---|
| 8883 | { |
---|
| 8884 | return f != $ac_func; |
---|
| 8885 | ; |
---|
| 8886 | return 0; |
---|
| 8887 | } |
---|
| 8888 | _ACEOF |
---|
| 8889 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8891 | (eval $ac_link) 2>conftest.er1 |
---|
| 8892 | ac_status=$? |
---|
| 8893 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8894 | rm -f conftest.er1 |
---|
| 8895 | cat conftest.err >&5 |
---|
| 8896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8897 | (exit $ac_status); } && |
---|
| 8898 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8899 | || test ! -s conftest.err' |
---|
| 8900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8901 | (eval $ac_try) 2>&5 |
---|
| 8902 | ac_status=$? |
---|
| 8903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8904 | (exit $ac_status); }; } && |
---|
| 8905 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8907 | (eval $ac_try) 2>&5 |
---|
| 8908 | ac_status=$? |
---|
| 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8910 | (exit $ac_status); }; }; then |
---|
| 8911 | eval "$as_ac_var=yes" |
---|
| 8912 | else |
---|
| 8913 | echo "$as_me: failed program was:" >&5 |
---|
| 8914 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8915 | |
---|
| 8916 | eval "$as_ac_var=no" |
---|
| 8917 | fi |
---|
| 8918 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8919 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8920 | fi |
---|
| 8921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8922 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8923 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8924 | cat >>confdefs.h <<_ACEOF |
---|
| 8925 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8926 | _ACEOF |
---|
| 8927 | |
---|
| 8928 | fi |
---|
| 8929 | done |
---|
| 8930 | |
---|
| 8931 | |
---|
[3424] | 8932 | ###################### |
---|
| 8933 | ## OUTPUT CONFIGURE ## |
---|
| 8934 | ###################### |
---|
[4644] | 8935 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile src/subprojects/gui/Makefile" |
---|
[1956] | 8936 | |
---|
[3377] | 8937 | |
---|
[1956] | 8938 | cat >confcache <<\_ACEOF |
---|
| 8939 | # This file is a shell script that caches the results of configure |
---|
| 8940 | # tests run on this system so they can be shared between configure |
---|
| 8941 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8942 | # It is not useful on other systems. If it contains results you don't |
---|
| 8943 | # want to keep, you may remove or edit it. |
---|
| 8944 | # |
---|
| 8945 | # config.status only pays attention to the cache file if you give it |
---|
| 8946 | # the --recheck option to rerun configure. |
---|
| 8947 | # |
---|
| 8948 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8949 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8950 | # following values. |
---|
| 8951 | |
---|
| 8952 | _ACEOF |
---|
| 8953 | |
---|
| 8954 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8955 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8956 | # So, don't put newlines in cache variables' values. |
---|
| 8957 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8958 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8959 | { |
---|
| 8960 | (set) 2>&1 | |
---|
| 8961 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8962 | *ac_space=\ *) |
---|
| 8963 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8964 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8965 | sed -n \ |
---|
| 8966 | "s/'/'\\\\''/g; |
---|
| 8967 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8968 | ;; |
---|
| 8969 | *) |
---|
| 8970 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8971 | sed -n \ |
---|
| 8972 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8973 | ;; |
---|
| 8974 | esac; |
---|
| 8975 | } | |
---|
| 8976 | sed ' |
---|
| 8977 | t clear |
---|
| 8978 | : clear |
---|
| 8979 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8980 | t end |
---|
| 8981 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8982 | : end' >>confcache |
---|
| 8983 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8984 | if test -w $cache_file; then |
---|
| 8985 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8986 | cat confcache >$cache_file |
---|
| 8987 | else |
---|
| 8988 | echo "not updating unwritable cache $cache_file" |
---|
| 8989 | fi |
---|
| 8990 | fi |
---|
| 8991 | rm -f confcache |
---|
| 8992 | |
---|
| 8993 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8994 | # Let make expand exec_prefix. |
---|
| 8995 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8996 | |
---|
| 8997 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8998 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8999 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 9000 | # (actually we leave an empty line to preserve line numbers). |
---|
| 9001 | if test "x$srcdir" = x.; then |
---|
| 9002 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 9003 | s/:*\$(srcdir):*/:/; |
---|
| 9004 | s/:*\${srcdir}:*/:/; |
---|
| 9005 | s/:*@srcdir@:*/:/; |
---|
| 9006 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 9007 | s/:*$//; |
---|
| 9008 | s/^[^=]*=[ ]*$//; |
---|
| 9009 | }' |
---|
| 9010 | fi |
---|
| 9011 | |
---|
| 9012 | DEFS=-DHAVE_CONFIG_H |
---|
| 9013 | |
---|
| 9014 | ac_libobjs= |
---|
| 9015 | ac_ltlibobjs= |
---|
| 9016 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 9017 | # 1. Remove the extension, and $U if already installed. |
---|
| 9018 | ac_i=`echo "$ac_i" | |
---|
| 9019 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 9020 | # 2. Add them. |
---|
| 9021 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 9022 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 9023 | done |
---|
| 9024 | LIBOBJS=$ac_libobjs |
---|
| 9025 | |
---|
| 9026 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 9027 | |
---|
| 9028 | |
---|
| 9029 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 9030 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 9031 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9032 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 9033 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9034 | { (exit 1); exit 1; }; } |
---|
| 9035 | fi |
---|
| 9036 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 9037 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 9038 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9039 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 9040 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9041 | { (exit 1); exit 1; }; } |
---|
| 9042 | fi |
---|
| 9043 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 9044 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 9045 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9046 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 9047 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9048 | { (exit 1); exit 1; }; } |
---|
| 9049 | fi |
---|
[3377] | 9050 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 9051 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 9052 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9053 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 9054 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9055 | { (exit 1); exit 1; }; } |
---|
| 9056 | fi |
---|
[3558] | 9057 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
| 9058 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 9059 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9060 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 9061 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9062 | { (exit 1); exit 1; }; } |
---|
| 9063 | fi |
---|
[3219] | 9064 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 9065 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 9066 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9067 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 9068 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9069 | { (exit 1); exit 1; }; } |
---|
| 9070 | fi |
---|
[2980] | 9071 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 9072 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 9073 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9074 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 9075 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9076 | { (exit 1); exit 1; }; } |
---|
| 9077 | fi |
---|
[3423] | 9078 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 9079 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 9080 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 9081 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 9082 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 9083 | { (exit 1); exit 1; }; } |
---|
| 9084 | fi |
---|
[1956] | 9085 | |
---|
| 9086 | : ${CONFIG_STATUS=./config.status} |
---|
| 9087 | ac_clean_files_save=$ac_clean_files |
---|
| 9088 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 9089 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 9090 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 9091 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 9092 | #! $SHELL |
---|
| 9093 | # Generated by $as_me. |
---|
| 9094 | # Run this file to recreate the current configuration. |
---|
| 9095 | # Compiler output produced by configure, useful for debugging |
---|
| 9096 | # configure, is in config.log if it exists. |
---|
| 9097 | |
---|
| 9098 | debug=false |
---|
| 9099 | ac_cs_recheck=false |
---|
| 9100 | ac_cs_silent=false |
---|
| 9101 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 9102 | _ACEOF |
---|
| 9103 | |
---|
| 9104 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9105 | ## --------------------- ## |
---|
| 9106 | ## M4sh Initialization. ## |
---|
| 9107 | ## --------------------- ## |
---|
| 9108 | |
---|
| 9109 | # Be Bourne compatible |
---|
| 9110 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 9111 | emulate sh |
---|
| 9112 | NULLCMD=: |
---|
| 9113 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 9114 | # is contrary to our usage. Disable this feature. |
---|
| 9115 | alias -g '${1+"$@"}'='"$@"' |
---|
| 9116 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 9117 | set -o posix |
---|
| 9118 | fi |
---|
| 9119 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 9120 | |
---|
| 9121 | # Support unset when possible. |
---|
| 9122 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 9123 | as_unset=unset |
---|
| 9124 | else |
---|
| 9125 | as_unset=false |
---|
| 9126 | fi |
---|
| 9127 | |
---|
| 9128 | |
---|
| 9129 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 9130 | $as_unset ENV MAIL MAILPATH |
---|
| 9131 | PS1='$ ' |
---|
| 9132 | PS2='> ' |
---|
| 9133 | PS4='+ ' |
---|
| 9134 | |
---|
| 9135 | # NLS nuisances. |
---|
| 9136 | for as_var in \ |
---|
| 9137 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 9138 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 9139 | LC_TELEPHONE LC_TIME |
---|
| 9140 | do |
---|
| 9141 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 9142 | eval $as_var=C; export $as_var |
---|
| 9143 | else |
---|
| 9144 | $as_unset $as_var |
---|
| 9145 | fi |
---|
| 9146 | done |
---|
| 9147 | |
---|
| 9148 | # Required to use basename. |
---|
| 9149 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 9150 | as_expr=expr |
---|
| 9151 | else |
---|
| 9152 | as_expr=false |
---|
| 9153 | fi |
---|
| 9154 | |
---|
| 9155 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 9156 | as_basename=basename |
---|
| 9157 | else |
---|
| 9158 | as_basename=false |
---|
| 9159 | fi |
---|
| 9160 | |
---|
| 9161 | |
---|
| 9162 | # Name of the executable. |
---|
| 9163 | as_me=`$as_basename "$0" || |
---|
| 9164 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 9165 | X"$0" : 'X\(//\)$' \| \ |
---|
| 9166 | X"$0" : 'X\(/\)$' \| \ |
---|
| 9167 | . : '\(.\)' 2>/dev/null || |
---|
| 9168 | echo X/"$0" | |
---|
| 9169 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 9170 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 9171 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 9172 | s/.*/./; q'` |
---|
| 9173 | |
---|
| 9174 | |
---|
| 9175 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 9176 | # Avoid depending upon Character Ranges. |
---|
| 9177 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 9178 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 9179 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 9180 | as_cr_digits='0123456789' |
---|
| 9181 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 9182 | |
---|
| 9183 | # The user is always right. |
---|
| 9184 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 9185 | echo "#! /bin/sh" >conf$$.sh |
---|
| 9186 | echo "exit 0" >>conf$$.sh |
---|
| 9187 | chmod +x conf$$.sh |
---|
| 9188 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 9189 | PATH_SEPARATOR=';' |
---|
| 9190 | else |
---|
| 9191 | PATH_SEPARATOR=: |
---|
| 9192 | fi |
---|
| 9193 | rm -f conf$$.sh |
---|
| 9194 | fi |
---|
| 9195 | |
---|
| 9196 | |
---|
| 9197 | as_lineno_1=$LINENO |
---|
| 9198 | as_lineno_2=$LINENO |
---|
| 9199 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 9200 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 9201 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 9202 | # Find who we are. Look in the path if we contain no path at all |
---|
| 9203 | # relative or not. |
---|
| 9204 | case $0 in |
---|
| 9205 | *[\\/]* ) as_myself=$0 ;; |
---|
| 9206 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 9207 | for as_dir in $PATH |
---|
| 9208 | do |
---|
| 9209 | IFS=$as_save_IFS |
---|
| 9210 | test -z "$as_dir" && as_dir=. |
---|
| 9211 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 9212 | done |
---|
| 9213 | |
---|
| 9214 | ;; |
---|
| 9215 | esac |
---|
| 9216 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 9217 | # in which case we are not to be found in the path. |
---|
| 9218 | if test "x$as_myself" = x; then |
---|
| 9219 | as_myself=$0 |
---|
| 9220 | fi |
---|
| 9221 | if test ! -f "$as_myself"; then |
---|
| 9222 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 9223 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 9224 | { (exit 1); exit 1; }; } |
---|
| 9225 | fi |
---|
| 9226 | case $CONFIG_SHELL in |
---|
| 9227 | '') |
---|
| 9228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 9229 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 9230 | do |
---|
| 9231 | IFS=$as_save_IFS |
---|
| 9232 | test -z "$as_dir" && as_dir=. |
---|
| 9233 | for as_base in sh bash ksh sh5; do |
---|
| 9234 | case $as_dir in |
---|
| 9235 | /*) |
---|
| 9236 | if ("$as_dir/$as_base" -c ' |
---|
| 9237 | as_lineno_1=$LINENO |
---|
| 9238 | as_lineno_2=$LINENO |
---|
| 9239 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 9240 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 9241 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 9242 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 9243 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 9244 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 9245 | export CONFIG_SHELL |
---|
| 9246 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 9247 | fi;; |
---|
| 9248 | esac |
---|
| 9249 | done |
---|
| 9250 | done |
---|
| 9251 | ;; |
---|
| 9252 | esac |
---|
| 9253 | |
---|
| 9254 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 9255 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 9256 | # line-number line before each line; the second 'sed' does the real |
---|
| 9257 | # work. The second script uses 'N' to pair each line-number line |
---|
| 9258 | # with the numbered line, and appends trailing '-' during |
---|
| 9259 | # substitution so that $LINENO is not a special case at line end. |
---|
| 9260 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 9261 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 9262 | sed '=' <$as_myself | |
---|
| 9263 | sed ' |
---|
| 9264 | N |
---|
| 9265 | s,$,-, |
---|
| 9266 | : loop |
---|
| 9267 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 9268 | t loop |
---|
| 9269 | s,-$,, |
---|
| 9270 | s,^['$as_cr_digits']*\n,, |
---|
| 9271 | ' >$as_me.lineno && |
---|
| 9272 | chmod +x $as_me.lineno || |
---|
| 9273 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 9274 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 9275 | { (exit 1); exit 1; }; } |
---|
| 9276 | |
---|
| 9277 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 9278 | # (the dirname of $[0] is not the place where we might find the |
---|
| 9279 | # original and so on. Autoconf is especially sensible to this). |
---|
| 9280 | . ./$as_me.lineno |
---|
| 9281 | # Exit status is that of the last command. |
---|
| 9282 | exit |
---|
| 9283 | } |
---|
| 9284 | |
---|
| 9285 | |
---|
| 9286 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 9287 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 9288 | ' ECHO_T=' ' ;; |
---|
| 9289 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 9290 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 9291 | esac |
---|
| 9292 | |
---|
| 9293 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 9294 | as_expr=expr |
---|
| 9295 | else |
---|
| 9296 | as_expr=false |
---|
| 9297 | fi |
---|
| 9298 | |
---|
| 9299 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 9300 | echo >conf$$.file |
---|
| 9301 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 9302 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 9303 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 9304 | if test -f conf$$.exe; then |
---|
| 9305 | # Don't use ln at all; we don't have any links |
---|
| 9306 | as_ln_s='cp -p' |
---|
| 9307 | else |
---|
| 9308 | as_ln_s='ln -s' |
---|
| 9309 | fi |
---|
| 9310 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 9311 | as_ln_s=ln |
---|
| 9312 | else |
---|
| 9313 | as_ln_s='cp -p' |
---|
| 9314 | fi |
---|
| 9315 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 9316 | |
---|
| 9317 | if mkdir -p . 2>/dev/null; then |
---|
| 9318 | as_mkdir_p=: |
---|
| 9319 | else |
---|
| 9320 | test -d ./-p && rmdir ./-p |
---|
| 9321 | as_mkdir_p=false |
---|
| 9322 | fi |
---|
| 9323 | |
---|
| 9324 | as_executable_p="test -f" |
---|
| 9325 | |
---|
| 9326 | # Sed expression to map a string onto a valid CPP name. |
---|
| 9327 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 9328 | |
---|
| 9329 | # Sed expression to map a string onto a valid variable name. |
---|
| 9330 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 9331 | |
---|
| 9332 | |
---|
| 9333 | # IFS |
---|
| 9334 | # We need space, tab and new line, in precisely that order. |
---|
| 9335 | as_nl=' |
---|
| 9336 | ' |
---|
| 9337 | IFS=" $as_nl" |
---|
| 9338 | |
---|
| 9339 | # CDPATH. |
---|
| 9340 | $as_unset CDPATH |
---|
| 9341 | |
---|
| 9342 | exec 6>&1 |
---|
| 9343 | |
---|
| 9344 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 9345 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 9346 | # values after options handling. Logging --version etc. is OK. |
---|
| 9347 | exec 5>>config.log |
---|
| 9348 | { |
---|
| 9349 | echo |
---|
| 9350 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 9351 | ## Running $as_me. ## |
---|
| 9352 | _ASBOX |
---|
| 9353 | } >&5 |
---|
| 9354 | cat >&5 <<_CSEOF |
---|
| 9355 | |
---|
[4759] | 9356 | This file was extended by orxonox $as_me 0.3.0-pre-alpha, which was |
---|
[1956] | 9357 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 9358 | |
---|
| 9359 | CONFIG_FILES = $CONFIG_FILES |
---|
| 9360 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 9361 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 9362 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 9363 | $ $0 $@ |
---|
| 9364 | |
---|
| 9365 | _CSEOF |
---|
| 9366 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 9367 | echo >&5 |
---|
| 9368 | _ACEOF |
---|
| 9369 | |
---|
| 9370 | # Files that config.status was made for. |
---|
| 9371 | if test -n "$ac_config_files"; then |
---|
| 9372 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 9373 | fi |
---|
| 9374 | |
---|
| 9375 | if test -n "$ac_config_headers"; then |
---|
| 9376 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 9377 | fi |
---|
| 9378 | |
---|
| 9379 | if test -n "$ac_config_links"; then |
---|
| 9380 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 9381 | fi |
---|
| 9382 | |
---|
| 9383 | if test -n "$ac_config_commands"; then |
---|
| 9384 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 9385 | fi |
---|
| 9386 | |
---|
| 9387 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9388 | |
---|
| 9389 | ac_cs_usage="\ |
---|
| 9390 | \`$as_me' instantiates files from templates according to the |
---|
| 9391 | current configuration. |
---|
| 9392 | |
---|
| 9393 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 9394 | |
---|
| 9395 | -h, --help print this help, then exit |
---|
| 9396 | -V, --version print version number, then exit |
---|
| 9397 | -q, --quiet do not print progress messages |
---|
| 9398 | -d, --debug don't remove temporary files |
---|
| 9399 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 9400 | --file=FILE[:TEMPLATE] |
---|
| 9401 | instantiate the configuration file FILE |
---|
| 9402 | --header=FILE[:TEMPLATE] |
---|
| 9403 | instantiate the configuration header FILE |
---|
| 9404 | |
---|
| 9405 | Configuration files: |
---|
| 9406 | $config_files |
---|
| 9407 | |
---|
| 9408 | Configuration headers: |
---|
| 9409 | $config_headers |
---|
| 9410 | |
---|
| 9411 | Configuration commands: |
---|
| 9412 | $config_commands |
---|
| 9413 | |
---|
| 9414 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 9415 | _ACEOF |
---|
| 9416 | |
---|
| 9417 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9418 | ac_cs_version="\\ |
---|
[4759] | 9419 | orxonox config.status 0.3.0-pre-alpha |
---|
[1956] | 9420 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 9421 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 9422 | |
---|
| 9423 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 9424 | This config.status script is free software; the Free Software Foundation |
---|
| 9425 | gives unlimited permission to copy, distribute and modify it." |
---|
| 9426 | srcdir=$srcdir |
---|
| 9427 | INSTALL="$INSTALL" |
---|
| 9428 | _ACEOF |
---|
| 9429 | |
---|
| 9430 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9431 | # If no file are specified by the user, then we need to provide default |
---|
| 9432 | # value. By we need to know if files were specified by the user. |
---|
| 9433 | ac_need_defaults=: |
---|
| 9434 | while test $# != 0 |
---|
| 9435 | do |
---|
| 9436 | case $1 in |
---|
| 9437 | --*=*) |
---|
| 9438 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 9439 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 9440 | ac_shift=: |
---|
| 9441 | ;; |
---|
| 9442 | -*) |
---|
| 9443 | ac_option=$1 |
---|
| 9444 | ac_optarg=$2 |
---|
| 9445 | ac_shift=shift |
---|
| 9446 | ;; |
---|
| 9447 | *) # This is not an option, so the user has probably given explicit |
---|
| 9448 | # arguments. |
---|
| 9449 | ac_option=$1 |
---|
| 9450 | ac_need_defaults=false;; |
---|
| 9451 | esac |
---|
| 9452 | |
---|
| 9453 | case $ac_option in |
---|
| 9454 | # Handling of the options. |
---|
| 9455 | _ACEOF |
---|
| 9456 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9457 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 9458 | ac_cs_recheck=: ;; |
---|
| 9459 | --version | --vers* | -V ) |
---|
| 9460 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 9461 | --he | --h) |
---|
| 9462 | # Conflict between --help and --header |
---|
| 9463 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 9464 | Try \`$0 --help' for more information." >&5 |
---|
| 9465 | echo "$as_me: error: ambiguous option: $1 |
---|
| 9466 | Try \`$0 --help' for more information." >&2;} |
---|
| 9467 | { (exit 1); exit 1; }; };; |
---|
| 9468 | --help | --hel | -h ) |
---|
| 9469 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 9470 | --debug | --d* | -d ) |
---|
| 9471 | debug=: ;; |
---|
| 9472 | --file | --fil | --fi | --f ) |
---|
| 9473 | $ac_shift |
---|
| 9474 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 9475 | ac_need_defaults=false;; |
---|
| 9476 | --header | --heade | --head | --hea ) |
---|
| 9477 | $ac_shift |
---|
| 9478 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 9479 | ac_need_defaults=false;; |
---|
| 9480 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 9481 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 9482 | ac_cs_silent=: ;; |
---|
| 9483 | |
---|
| 9484 | # This is an error. |
---|
| 9485 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 9486 | Try \`$0 --help' for more information." >&5 |
---|
| 9487 | echo "$as_me: error: unrecognized option: $1 |
---|
| 9488 | Try \`$0 --help' for more information." >&2;} |
---|
| 9489 | { (exit 1); exit 1; }; } ;; |
---|
| 9490 | |
---|
| 9491 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 9492 | |
---|
| 9493 | esac |
---|
| 9494 | shift |
---|
| 9495 | done |
---|
| 9496 | |
---|
| 9497 | ac_configure_extra_args= |
---|
| 9498 | |
---|
| 9499 | if $ac_cs_silent; then |
---|
| 9500 | exec 6>/dev/null |
---|
| 9501 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 9502 | fi |
---|
| 9503 | |
---|
| 9504 | _ACEOF |
---|
| 9505 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9506 | if \$ac_cs_recheck; then |
---|
| 9507 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 9508 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 9509 | fi |
---|
| 9510 | |
---|
| 9511 | _ACEOF |
---|
| 9512 | |
---|
| 9513 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9514 | # |
---|
| 9515 | # INIT-COMMANDS section. |
---|
| 9516 | # |
---|
| 9517 | |
---|
| 9518 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 9519 | |
---|
| 9520 | _ACEOF |
---|
| 9521 | |
---|
| 9522 | |
---|
| 9523 | |
---|
| 9524 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9525 | for ac_config_target in $ac_config_targets |
---|
| 9526 | do |
---|
| 9527 | case "$ac_config_target" in |
---|
| 9528 | # Handling of arguments. |
---|
| 9529 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 9530 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3493] | 9531 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 9532 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
[3489] | 9533 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
[4506] | 9534 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
[4484] | 9535 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
[4338] | 9536 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
[4416] | 9537 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
[4527] | 9538 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
[3493] | 9539 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
[4265] | 9540 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
[3549] | 9541 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
| 9542 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
[4263] | 9543 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
[4338] | 9544 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
[4531] | 9545 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
[4263] | 9546 | "src/subprojects/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/gui/Makefile" ;; |
---|
[1956] | 9547 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 9548 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 9549 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 9550 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 9551 | { (exit 1); exit 1; }; };; |
---|
| 9552 | esac |
---|
| 9553 | done |
---|
| 9554 | |
---|
| 9555 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 9556 | # then the envvar interface is used. Set only those that are not. |
---|
| 9557 | # We use the long form for the default assignment because of an extremely |
---|
| 9558 | # bizarre bug on SunOS 4.1.3. |
---|
| 9559 | if $ac_need_defaults; then |
---|
| 9560 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 9561 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 9562 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 9563 | fi |
---|
| 9564 | |
---|
| 9565 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 9566 | # simply because there is no reason to put it here, and in addition, |
---|
| 9567 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 9568 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 9569 | $debug || |
---|
| 9570 | { |
---|
| 9571 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 9572 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 9573 | } |
---|
| 9574 | |
---|
| 9575 | # Create a (secure) tmp directory for tmp files. |
---|
| 9576 | |
---|
| 9577 | { |
---|
| 9578 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 9579 | test -n "$tmp" && test -d "$tmp" |
---|
| 9580 | } || |
---|
| 9581 | { |
---|
| 9582 | tmp=./confstat$$-$RANDOM |
---|
| 9583 | (umask 077 && mkdir $tmp) |
---|
| 9584 | } || |
---|
| 9585 | { |
---|
| 9586 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 9587 | { (exit 1); exit 1; } |
---|
| 9588 | } |
---|
| 9589 | |
---|
| 9590 | _ACEOF |
---|
| 9591 | |
---|
| 9592 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9593 | |
---|
| 9594 | # |
---|
| 9595 | # CONFIG_FILES section. |
---|
| 9596 | # |
---|
| 9597 | |
---|
| 9598 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 9599 | # This happens for instance when ./config.status config.h |
---|
| 9600 | if test -n "\$CONFIG_FILES"; then |
---|
| 9601 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 9602 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 9603 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 9604 | s,@SHELL@,$SHELL,;t t |
---|
| 9605 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 9606 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 9607 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 9608 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 9609 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 9610 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 9611 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 9612 | s,@prefix@,$prefix,;t t |
---|
| 9613 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 9614 | s,@bindir@,$bindir,;t t |
---|
| 9615 | s,@sbindir@,$sbindir,;t t |
---|
| 9616 | s,@libexecdir@,$libexecdir,;t t |
---|
| 9617 | s,@datadir@,$datadir,;t t |
---|
| 9618 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 9619 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 9620 | s,@localstatedir@,$localstatedir,;t t |
---|
| 9621 | s,@libdir@,$libdir,;t t |
---|
| 9622 | s,@includedir@,$includedir,;t t |
---|
| 9623 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 9624 | s,@infodir@,$infodir,;t t |
---|
| 9625 | s,@mandir@,$mandir,;t t |
---|
| 9626 | s,@build_alias@,$build_alias,;t t |
---|
| 9627 | s,@host_alias@,$host_alias,;t t |
---|
| 9628 | s,@target_alias@,$target_alias,;t t |
---|
| 9629 | s,@DEFS@,$DEFS,;t t |
---|
| 9630 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 9631 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 9632 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 9633 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 9634 | s,@build@,$build,;t t |
---|
| 9635 | s,@build_cpu@,$build_cpu,;t t |
---|
| 9636 | s,@build_vendor@,$build_vendor,;t t |
---|
| 9637 | s,@build_os@,$build_os,;t t |
---|
| 9638 | s,@host@,$host,;t t |
---|
| 9639 | s,@host_cpu@,$host_cpu,;t t |
---|
| 9640 | s,@host_vendor@,$host_vendor,;t t |
---|
| 9641 | s,@host_os@,$host_os,;t t |
---|
| 9642 | s,@target@,$target,;t t |
---|
| 9643 | s,@target_cpu@,$target_cpu,;t t |
---|
| 9644 | s,@target_vendor@,$target_vendor,;t t |
---|
| 9645 | s,@target_os@,$target_os,;t t |
---|
[1956] | 9646 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 9647 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 9648 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 9649 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 9650 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 9651 | s,@VERSION@,$VERSION,;t t |
---|
| 9652 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 9653 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 9654 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 9655 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 9656 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 9657 | s,@AMTAR@,$AMTAR,;t t |
---|
| 9658 | s,@install_sh@,$install_sh,;t t |
---|
| 9659 | s,@STRIP@,$STRIP,;t t |
---|
| 9660 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 9661 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 9662 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 9663 | s,@AWK@,$AWK,;t t |
---|
| 9664 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 9665 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 9666 | s,@CXX@,$CXX,;t t |
---|
| 9667 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 9668 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 9669 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 9670 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 9671 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 9672 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 9673 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 9674 | s,@am__include@,$am__include,;t t |
---|
| 9675 | s,@am__quote@,$am__quote,;t t |
---|
| 9676 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 9677 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 9678 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 9679 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 9680 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 9681 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
[4054] | 9682 | s,@RANLIB@,$RANLIB,;t t |
---|
| 9683 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
[1956] | 9684 | s,@CC@,$CC,;t t |
---|
| 9685 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 9686 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 9687 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 9688 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 9689 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 9690 | s,@CPP@,$CPP,;t t |
---|
| 9691 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 9692 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 9693 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 9694 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3558] | 9695 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
| 9696 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
[3219] | 9697 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 9698 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 9699 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[3789] | 9700 | s,@GPROF@,$GPROF,;t t |
---|
[4130] | 9701 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
[2989] | 9702 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 9703 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 9704 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 9705 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 9706 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3423] | 9707 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 9708 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 9709 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 9710 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 9711 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 9712 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 9713 | CEOF |
---|
| 9714 | |
---|
| 9715 | _ACEOF |
---|
| 9716 | |
---|
| 9717 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9718 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 9719 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 9720 | ac_max_sed_lines=48 |
---|
| 9721 | ac_sed_frag=1 # Number of current file. |
---|
| 9722 | ac_beg=1 # First line for current file. |
---|
| 9723 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 9724 | ac_more_lines=: |
---|
| 9725 | ac_sed_cmds= |
---|
| 9726 | while $ac_more_lines; do |
---|
| 9727 | if test $ac_beg -gt 1; then |
---|
| 9728 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9729 | else |
---|
| 9730 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9731 | fi |
---|
| 9732 | if test ! -s $tmp/subs.frag; then |
---|
| 9733 | ac_more_lines=false |
---|
| 9734 | else |
---|
| 9735 | # The purpose of the label and of the branching condition is to |
---|
| 9736 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 9737 | # is no need to browse any of the substitutions). |
---|
| 9738 | # These are the two extra sed commands mentioned above. |
---|
| 9739 | (echo ':t |
---|
| 9740 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 9741 | if test -z "$ac_sed_cmds"; then |
---|
| 9742 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9743 | else |
---|
| 9744 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9745 | fi |
---|
| 9746 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 9747 | ac_beg=$ac_end |
---|
| 9748 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 9749 | fi |
---|
| 9750 | done |
---|
| 9751 | if test -z "$ac_sed_cmds"; then |
---|
| 9752 | ac_sed_cmds=cat |
---|
| 9753 | fi |
---|
| 9754 | fi # test -n "$CONFIG_FILES" |
---|
| 9755 | |
---|
| 9756 | _ACEOF |
---|
| 9757 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9758 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 9759 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9760 | case $ac_file in |
---|
| 9761 | - | *:- | *:-:* ) # input from stdin |
---|
| 9762 | cat >$tmp/stdin |
---|
| 9763 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9764 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9765 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9766 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9767 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9768 | esac |
---|
| 9769 | |
---|
| 9770 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 9771 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9772 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9773 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9774 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9775 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9776 | . : '\(.\)' 2>/dev/null || |
---|
| 9777 | echo X"$ac_file" | |
---|
| 9778 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9779 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9780 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9781 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9782 | s/.*/./; q'` |
---|
| 9783 | { if $as_mkdir_p; then |
---|
| 9784 | mkdir -p "$ac_dir" |
---|
| 9785 | else |
---|
| 9786 | as_dir="$ac_dir" |
---|
| 9787 | as_dirs= |
---|
| 9788 | while test ! -d "$as_dir"; do |
---|
| 9789 | as_dirs="$as_dir $as_dirs" |
---|
| 9790 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9791 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9792 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9793 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9794 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9795 | . : '\(.\)' 2>/dev/null || |
---|
| 9796 | echo X"$as_dir" | |
---|
| 9797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9798 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9799 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9800 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9801 | s/.*/./; q'` |
---|
| 9802 | done |
---|
| 9803 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9804 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9805 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9806 | { (exit 1); exit 1; }; }; } |
---|
| 9807 | |
---|
| 9808 | ac_builddir=. |
---|
| 9809 | |
---|
| 9810 | if test "$ac_dir" != .; then |
---|
| 9811 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9812 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9813 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9814 | else |
---|
| 9815 | ac_dir_suffix= ac_top_builddir= |
---|
| 9816 | fi |
---|
| 9817 | |
---|
| 9818 | case $srcdir in |
---|
| 9819 | .) # No --srcdir option. We are building in place. |
---|
| 9820 | ac_srcdir=. |
---|
| 9821 | if test -z "$ac_top_builddir"; then |
---|
| 9822 | ac_top_srcdir=. |
---|
| 9823 | else |
---|
| 9824 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9825 | fi ;; |
---|
| 9826 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9827 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9828 | ac_top_srcdir=$srcdir ;; |
---|
| 9829 | *) # Relative path. |
---|
| 9830 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9831 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9832 | esac |
---|
| 9833 | |
---|
| 9834 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9835 | # the directories may not exist. |
---|
| 9836 | case `pwd` in |
---|
| 9837 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9838 | *) |
---|
| 9839 | case "$ac_dir" in |
---|
| 9840 | .) ac_abs_builddir=`pwd`;; |
---|
| 9841 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9842 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9843 | esac;; |
---|
| 9844 | esac |
---|
| 9845 | case $ac_abs_builddir in |
---|
| 9846 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9847 | *) |
---|
| 9848 | case ${ac_top_builddir}. in |
---|
| 9849 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9850 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9851 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9852 | esac;; |
---|
| 9853 | esac |
---|
| 9854 | case $ac_abs_builddir in |
---|
| 9855 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9856 | *) |
---|
| 9857 | case $ac_srcdir in |
---|
| 9858 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9859 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9860 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9861 | esac;; |
---|
| 9862 | esac |
---|
| 9863 | case $ac_abs_builddir in |
---|
| 9864 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9865 | *) |
---|
| 9866 | case $ac_top_srcdir in |
---|
| 9867 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9868 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9869 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9870 | esac;; |
---|
| 9871 | esac |
---|
| 9872 | |
---|
| 9873 | |
---|
| 9874 | case $INSTALL in |
---|
| 9875 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9876 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9877 | esac |
---|
| 9878 | |
---|
| 9879 | if test x"$ac_file" != x-; then |
---|
| 9880 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9881 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9882 | rm -f "$ac_file" |
---|
| 9883 | fi |
---|
| 9884 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9885 | # use $as_me), people would be surprised to read: |
---|
| 9886 | # /* config.h. Generated by config.status. */ |
---|
| 9887 | if test x"$ac_file" = x-; then |
---|
| 9888 | configure_input= |
---|
| 9889 | else |
---|
| 9890 | configure_input="$ac_file. " |
---|
| 9891 | fi |
---|
| 9892 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9893 | sed 's,.*/,,'` by configure." |
---|
| 9894 | |
---|
| 9895 | # First look for the input files in the build tree, otherwise in the |
---|
| 9896 | # src tree. |
---|
| 9897 | ac_file_inputs=`IFS=: |
---|
| 9898 | for f in $ac_file_in; do |
---|
| 9899 | case $f in |
---|
| 9900 | -) echo $tmp/stdin ;; |
---|
| 9901 | [\\/$]*) |
---|
| 9902 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9903 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9904 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9905 | { (exit 1); exit 1; }; } |
---|
| 9906 | echo "$f";; |
---|
| 9907 | *) # Relative |
---|
| 9908 | if test -f "$f"; then |
---|
| 9909 | # Build tree |
---|
| 9910 | echo "$f" |
---|
| 9911 | elif test -f "$srcdir/$f"; then |
---|
| 9912 | # Source tree |
---|
| 9913 | echo "$srcdir/$f" |
---|
| 9914 | else |
---|
| 9915 | # /dev/null tree |
---|
| 9916 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9917 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9918 | { (exit 1); exit 1; }; } |
---|
| 9919 | fi;; |
---|
| 9920 | esac |
---|
| 9921 | done` || { (exit 1); exit 1; } |
---|
| 9922 | _ACEOF |
---|
| 9923 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9924 | sed "$ac_vpsub |
---|
| 9925 | $extrasub |
---|
| 9926 | _ACEOF |
---|
| 9927 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9928 | :t |
---|
| 9929 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9930 | s,@configure_input@,$configure_input,;t t |
---|
| 9931 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9932 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9933 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9934 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9935 | s,@builddir@,$ac_builddir,;t t |
---|
| 9936 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9937 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9938 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9939 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9940 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9941 | rm -f $tmp/stdin |
---|
| 9942 | if test x"$ac_file" != x-; then |
---|
| 9943 | mv $tmp/out $ac_file |
---|
| 9944 | else |
---|
| 9945 | cat $tmp/out |
---|
| 9946 | rm -f $tmp/out |
---|
| 9947 | fi |
---|
| 9948 | |
---|
| 9949 | done |
---|
| 9950 | _ACEOF |
---|
| 9951 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9952 | |
---|
| 9953 | # |
---|
| 9954 | # CONFIG_HEADER section. |
---|
| 9955 | # |
---|
| 9956 | |
---|
| 9957 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9958 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9959 | # |
---|
| 9960 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9961 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9962 | ac_dB='[ ].*$,\1#\2' |
---|
| 9963 | ac_dC=' ' |
---|
| 9964 | ac_dD=',;t' |
---|
| 9965 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9966 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9967 | ac_uB='$,\1#\2define\3' |
---|
| 9968 | ac_uC=' ' |
---|
| 9969 | ac_uD=',;t' |
---|
| 9970 | |
---|
| 9971 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9972 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9973 | case $ac_file in |
---|
| 9974 | - | *:- | *:-:* ) # input from stdin |
---|
| 9975 | cat >$tmp/stdin |
---|
| 9976 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9977 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9978 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9979 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9980 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9981 | esac |
---|
| 9982 | |
---|
| 9983 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9984 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9985 | |
---|
| 9986 | # First look for the input files in the build tree, otherwise in the |
---|
| 9987 | # src tree. |
---|
| 9988 | ac_file_inputs=`IFS=: |
---|
| 9989 | for f in $ac_file_in; do |
---|
| 9990 | case $f in |
---|
| 9991 | -) echo $tmp/stdin ;; |
---|
| 9992 | [\\/$]*) |
---|
| 9993 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9994 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9995 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9996 | { (exit 1); exit 1; }; } |
---|
| 9997 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9998 | echo "$f";; |
---|
| 9999 | *) # Relative |
---|
| 10000 | if test -f "$f"; then |
---|
| 10001 | # Build tree |
---|
| 10002 | echo "$f" |
---|
| 10003 | elif test -f "$srcdir/$f"; then |
---|
| 10004 | # Source tree |
---|
| 10005 | echo "$srcdir/$f" |
---|
| 10006 | else |
---|
| 10007 | # /dev/null tree |
---|
| 10008 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 10009 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 10010 | { (exit 1); exit 1; }; } |
---|
| 10011 | fi;; |
---|
| 10012 | esac |
---|
| 10013 | done` || { (exit 1); exit 1; } |
---|
| 10014 | # Remove the trailing spaces. |
---|
| 10015 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 10016 | |
---|
| 10017 | _ACEOF |
---|
| 10018 | |
---|
| 10019 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 10020 | # `conftest.undefs', that substitutes the proper values into |
---|
| 10021 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 10022 | # templates, and the second `#undef' templates. |
---|
| 10023 | # And first: Protect against being on the right side of a sed subst in |
---|
| 10024 | # config.status. Protect against being in an unquoted here document |
---|
| 10025 | # in config.status. |
---|
| 10026 | rm -f conftest.defines conftest.undefs |
---|
| 10027 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 10028 | # Putting comments in sed scripts is not portable. |
---|
| 10029 | # |
---|
| 10030 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 10031 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 10032 | # See the Autoconf documentation for `clear'. |
---|
| 10033 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 10034 | s/[\\&,]/\\&/g |
---|
| 10035 | s,[\\$`],\\&,g |
---|
| 10036 | t clear |
---|
| 10037 | : clear |
---|
| 10038 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 10039 | t end |
---|
| 10040 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 10041 | : end |
---|
| 10042 | _ACEOF |
---|
| 10043 | # If some macros were called several times there might be several times |
---|
| 10044 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 10045 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 10046 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 10047 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 10048 | rm -f confdef2sed.sed |
---|
| 10049 | |
---|
| 10050 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 10051 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 10052 | # on some systems where configure will not decide to define it. |
---|
| 10053 | cat >>conftest.undefs <<\_ACEOF |
---|
| 10054 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 10055 | _ACEOF |
---|
| 10056 | |
---|
| 10057 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 10058 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 10059 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 10060 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 10061 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 10062 | echo ' :' >>$CONFIG_STATUS |
---|
| 10063 | rm -f conftest.tail |
---|
| 10064 | while grep . conftest.defines >/dev/null |
---|
| 10065 | do |
---|
| 10066 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 10067 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 10068 | # Speed up: don't consider the non `#define' lines. |
---|
| 10069 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 10070 | # Work around the forget-to-reset-the-flag bug. |
---|
| 10071 | echo 't clr' >>$CONFIG_STATUS |
---|
| 10072 | echo ': clr' >>$CONFIG_STATUS |
---|
| 10073 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 10074 | echo 'CEOF |
---|
| 10075 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 10076 | rm -f $tmp/in |
---|
| 10077 | mv $tmp/out $tmp/in |
---|
| 10078 | ' >>$CONFIG_STATUS |
---|
| 10079 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 10080 | rm -f conftest.defines |
---|
| 10081 | mv conftest.tail conftest.defines |
---|
| 10082 | done |
---|
| 10083 | rm -f conftest.defines |
---|
| 10084 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 10085 | echo >>$CONFIG_STATUS |
---|
| 10086 | |
---|
| 10087 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 10088 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 10089 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 10090 | rm -f conftest.tail |
---|
| 10091 | while grep . conftest.undefs >/dev/null |
---|
| 10092 | do |
---|
| 10093 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 10094 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 10095 | # Speed up: don't consider the non `#undef' |
---|
| 10096 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 10097 | # Work around the forget-to-reset-the-flag bug. |
---|
| 10098 | echo 't clr' >>$CONFIG_STATUS |
---|
| 10099 | echo ': clr' >>$CONFIG_STATUS |
---|
| 10100 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 10101 | echo 'CEOF |
---|
| 10102 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 10103 | rm -f $tmp/in |
---|
| 10104 | mv $tmp/out $tmp/in |
---|
| 10105 | ' >>$CONFIG_STATUS |
---|
| 10106 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 10107 | rm -f conftest.undefs |
---|
| 10108 | mv conftest.tail conftest.undefs |
---|
| 10109 | done |
---|
| 10110 | rm -f conftest.undefs |
---|
| 10111 | |
---|
| 10112 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 10113 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 10114 | # use $as_me), people would be surprised to read: |
---|
| 10115 | # /* config.h. Generated by config.status. */ |
---|
| 10116 | if test x"$ac_file" = x-; then |
---|
| 10117 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 10118 | else |
---|
| 10119 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 10120 | fi |
---|
| 10121 | cat $tmp/in >>$tmp/config.h |
---|
| 10122 | rm -f $tmp/in |
---|
| 10123 | if test x"$ac_file" != x-; then |
---|
| 10124 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 10125 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 10126 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 10127 | else |
---|
| 10128 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 10129 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10130 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 10131 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 10132 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 10133 | . : '\(.\)' 2>/dev/null || |
---|
| 10134 | echo X"$ac_file" | |
---|
| 10135 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10136 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10137 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10138 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10139 | s/.*/./; q'` |
---|
| 10140 | { if $as_mkdir_p; then |
---|
| 10141 | mkdir -p "$ac_dir" |
---|
| 10142 | else |
---|
| 10143 | as_dir="$ac_dir" |
---|
| 10144 | as_dirs= |
---|
| 10145 | while test ! -d "$as_dir"; do |
---|
| 10146 | as_dirs="$as_dir $as_dirs" |
---|
| 10147 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 10148 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10149 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 10150 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 10151 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 10152 | . : '\(.\)' 2>/dev/null || |
---|
| 10153 | echo X"$as_dir" | |
---|
| 10154 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10155 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10156 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10157 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10158 | s/.*/./; q'` |
---|
| 10159 | done |
---|
| 10160 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 10161 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 10162 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 10163 | { (exit 1); exit 1; }; }; } |
---|
| 10164 | |
---|
| 10165 | rm -f $ac_file |
---|
| 10166 | mv $tmp/config.h $ac_file |
---|
| 10167 | fi |
---|
| 10168 | else |
---|
| 10169 | cat $tmp/config.h |
---|
| 10170 | rm -f $tmp/config.h |
---|
| 10171 | fi |
---|
| 10172 | # Compute $ac_file's index in $config_headers. |
---|
| 10173 | _am_stamp_count=1 |
---|
| 10174 | for _am_header in $config_headers :; do |
---|
| 10175 | case $_am_header in |
---|
| 10176 | $ac_file | $ac_file:* ) |
---|
| 10177 | break ;; |
---|
| 10178 | * ) |
---|
| 10179 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 10180 | esac |
---|
| 10181 | done |
---|
| 10182 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 10183 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10184 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 10185 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 10186 | X$ac_file : 'X\(/\)' \| \ |
---|
| 10187 | . : '\(.\)' 2>/dev/null || |
---|
| 10188 | echo X$ac_file | |
---|
| 10189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10190 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10191 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10192 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10193 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 10194 | done |
---|
| 10195 | _ACEOF |
---|
| 10196 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 10197 | |
---|
| 10198 | # |
---|
| 10199 | # CONFIG_COMMANDS section. |
---|
| 10200 | # |
---|
| 10201 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 10202 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 10203 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 10204 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 10205 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10206 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 10207 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 10208 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 10209 | . : '\(.\)' 2>/dev/null || |
---|
| 10210 | echo X"$ac_dest" | |
---|
| 10211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10212 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10213 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10214 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10215 | s/.*/./; q'` |
---|
| 10216 | { if $as_mkdir_p; then |
---|
| 10217 | mkdir -p "$ac_dir" |
---|
| 10218 | else |
---|
| 10219 | as_dir="$ac_dir" |
---|
| 10220 | as_dirs= |
---|
| 10221 | while test ! -d "$as_dir"; do |
---|
| 10222 | as_dirs="$as_dir $as_dirs" |
---|
| 10223 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 10224 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10225 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 10226 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 10227 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 10228 | . : '\(.\)' 2>/dev/null || |
---|
| 10229 | echo X"$as_dir" | |
---|
| 10230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10231 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10232 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10233 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10234 | s/.*/./; q'` |
---|
| 10235 | done |
---|
| 10236 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 10237 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 10238 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 10239 | { (exit 1); exit 1; }; }; } |
---|
| 10240 | |
---|
| 10241 | ac_builddir=. |
---|
| 10242 | |
---|
| 10243 | if test "$ac_dir" != .; then |
---|
| 10244 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 10245 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 10246 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 10247 | else |
---|
| 10248 | ac_dir_suffix= ac_top_builddir= |
---|
| 10249 | fi |
---|
| 10250 | |
---|
| 10251 | case $srcdir in |
---|
| 10252 | .) # No --srcdir option. We are building in place. |
---|
| 10253 | ac_srcdir=. |
---|
| 10254 | if test -z "$ac_top_builddir"; then |
---|
| 10255 | ac_top_srcdir=. |
---|
| 10256 | else |
---|
| 10257 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 10258 | fi ;; |
---|
| 10259 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 10260 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 10261 | ac_top_srcdir=$srcdir ;; |
---|
| 10262 | *) # Relative path. |
---|
| 10263 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 10264 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 10265 | esac |
---|
| 10266 | |
---|
| 10267 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 10268 | # the directories may not exist. |
---|
| 10269 | case `pwd` in |
---|
| 10270 | .) ac_abs_builddir="$ac_dir";; |
---|
| 10271 | *) |
---|
| 10272 | case "$ac_dir" in |
---|
| 10273 | .) ac_abs_builddir=`pwd`;; |
---|
| 10274 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 10275 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 10276 | esac;; |
---|
| 10277 | esac |
---|
| 10278 | case $ac_abs_builddir in |
---|
| 10279 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 10280 | *) |
---|
| 10281 | case ${ac_top_builddir}. in |
---|
| 10282 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 10283 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 10284 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 10285 | esac;; |
---|
| 10286 | esac |
---|
| 10287 | case $ac_abs_builddir in |
---|
| 10288 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 10289 | *) |
---|
| 10290 | case $ac_srcdir in |
---|
| 10291 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 10292 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 10293 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 10294 | esac;; |
---|
| 10295 | esac |
---|
| 10296 | case $ac_abs_builddir in |
---|
| 10297 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 10298 | *) |
---|
| 10299 | case $ac_top_srcdir in |
---|
| 10300 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 10301 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 10302 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 10303 | esac;; |
---|
| 10304 | esac |
---|
| 10305 | |
---|
| 10306 | |
---|
| 10307 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 10308 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 10309 | case $ac_dest in |
---|
| 10310 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 10311 | # Strip MF so we end up with the name of the file. |
---|
| 10312 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 10313 | # Check whether this is an Automake generated Makefile or not. |
---|
| 10314 | # We used to match only the files named `Makefile.in', but |
---|
| 10315 | # some people rename them; so instead we look at the file content. |
---|
| 10316 | # Grep'ing the first line is not enough: some people post-process |
---|
| 10317 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 10318 | # So let's grep whole file. |
---|
| 10319 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 10320 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 10321 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10322 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 10323 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 10324 | X"$mf" : 'X\(/\)' \| \ |
---|
| 10325 | . : '\(.\)' 2>/dev/null || |
---|
| 10326 | echo X"$mf" | |
---|
| 10327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10328 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10329 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10330 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10331 | s/.*/./; q'` |
---|
| 10332 | else |
---|
| 10333 | continue |
---|
| 10334 | fi |
---|
| 10335 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 10336 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 10337 | # running `make'. |
---|
[4698] | 10338 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 10339 | test -z "$DEPDIR" && continue |
---|
| 10340 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[4698] | 10341 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 10342 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 10343 | # We invoke sed twice because it is the simplest approach to |
---|
| 10344 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[4698] | 10345 | for file in `sed -n ' |
---|
[1956] | 10346 | /^DEP_FILES = .*\\\\$/ { |
---|
| 10347 | s/^DEP_FILES = // |
---|
| 10348 | :loop |
---|
| 10349 | s/\\\\$// |
---|
| 10350 | p |
---|
| 10351 | n |
---|
| 10352 | /\\\\$/ b loop |
---|
| 10353 | p |
---|
| 10354 | } |
---|
| 10355 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 10356 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 10357 | # Make sure the directory exists. |
---|
| 10358 | test -f "$dirpart/$file" && continue |
---|
| 10359 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 10360 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10361 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 10362 | X"$file" : 'X\(//\)$' \| \ |
---|
| 10363 | X"$file" : 'X\(/\)' \| \ |
---|
| 10364 | . : '\(.\)' 2>/dev/null || |
---|
| 10365 | echo X"$file" | |
---|
| 10366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10367 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10368 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10369 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10370 | s/.*/./; q'` |
---|
| 10371 | { if $as_mkdir_p; then |
---|
| 10372 | mkdir -p $dirpart/$fdir |
---|
| 10373 | else |
---|
| 10374 | as_dir=$dirpart/$fdir |
---|
| 10375 | as_dirs= |
---|
| 10376 | while test ! -d "$as_dir"; do |
---|
| 10377 | as_dirs="$as_dir $as_dirs" |
---|
| 10378 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 10379 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10380 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 10381 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 10382 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 10383 | . : '\(.\)' 2>/dev/null || |
---|
| 10384 | echo X"$as_dir" | |
---|
| 10385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10386 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10387 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10388 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10389 | s/.*/./; q'` |
---|
| 10390 | done |
---|
| 10391 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 10392 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 10393 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 10394 | { (exit 1); exit 1; }; }; } |
---|
| 10395 | |
---|
| 10396 | # echo "creating $dirpart/$file" |
---|
| 10397 | echo '# dummy' > "$dirpart/$file" |
---|
| 10398 | done |
---|
| 10399 | done |
---|
| 10400 | ;; |
---|
| 10401 | esac |
---|
| 10402 | done |
---|
| 10403 | _ACEOF |
---|
| 10404 | |
---|
| 10405 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 10406 | |
---|
| 10407 | { (exit 0); exit 0; } |
---|
| 10408 | _ACEOF |
---|
| 10409 | chmod +x $CONFIG_STATUS |
---|
| 10410 | ac_clean_files=$ac_clean_files_save |
---|
| 10411 | |
---|
| 10412 | |
---|
| 10413 | # configure is writing to config.log, and then calls config.status. |
---|
| 10414 | # config.status does its own redirection, appending to config.log. |
---|
| 10415 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 10416 | # by configure, so config.status won't be able to write to it; its |
---|
| 10417 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 10418 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 10419 | # appended to by config.status. When coming back to configure, we |
---|
| 10420 | # need to make the FD available again. |
---|
| 10421 | if test "$no_create" != yes; then |
---|
| 10422 | ac_cs_success=: |
---|
| 10423 | ac_config_status_args= |
---|
| 10424 | test "$silent" = yes && |
---|
| 10425 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 10426 | exec 5>/dev/null |
---|
| 10427 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 10428 | exec 5>>config.log |
---|
| 10429 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 10430 | # would make configure fail if this is the last instruction. |
---|
| 10431 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 10432 | fi |
---|
| 10433 | |
---|