[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha. |
---|
| 4 | # |
---|
| 5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 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' |
---|
| 272 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
| 274 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
| 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 | |
---|
[2705] | 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 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 CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS 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 |
---|
| 791 | \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems. |
---|
| 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 |
---|
| 848 | _ACEOF |
---|
| 849 | fi |
---|
| 850 | |
---|
| 851 | if test -n "$ac_init_help"; then |
---|
| 852 | case $ac_init_help in |
---|
| 853 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
| 854 | esac |
---|
| 855 | cat <<\_ACEOF |
---|
| 856 | |
---|
| 857 | Optional Features: |
---|
| 858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2705] | 860 | --disable-dependency-tracking speeds up one-time build |
---|
| 861 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[1956] | 862 | |
---|
| 863 | Some influential environment variables: |
---|
| 864 | CXX C++ compiler command |
---|
| 865 | CXXFLAGS C++ compiler flags |
---|
| 866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 867 | nonstandard directory <lib dir> |
---|
| 868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 869 | headers in a nonstandard directory <include dir> |
---|
| 870 | CC C compiler command |
---|
| 871 | CFLAGS C compiler flags |
---|
| 872 | CPP C preprocessor |
---|
| 873 | |
---|
| 874 | Use these variables to override the choices made by `configure' or to help |
---|
| 875 | it to find libraries and programs with nonstandard names/locations. |
---|
| 876 | |
---|
| 877 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 878 | _ACEOF |
---|
| 879 | fi |
---|
| 880 | |
---|
| 881 | if test "$ac_init_help" = "recursive"; then |
---|
| 882 | # If there are subdirs, report their specific --help. |
---|
| 883 | ac_popdir=`pwd` |
---|
| 884 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 885 | test -d $ac_dir || continue |
---|
| 886 | ac_builddir=. |
---|
| 887 | |
---|
| 888 | if test "$ac_dir" != .; then |
---|
| 889 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 890 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 891 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 892 | else |
---|
| 893 | ac_dir_suffix= ac_top_builddir= |
---|
| 894 | fi |
---|
| 895 | |
---|
| 896 | case $srcdir in |
---|
| 897 | .) # No --srcdir option. We are building in place. |
---|
| 898 | ac_srcdir=. |
---|
| 899 | if test -z "$ac_top_builddir"; then |
---|
| 900 | ac_top_srcdir=. |
---|
| 901 | else |
---|
| 902 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 903 | fi ;; |
---|
| 904 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 905 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 906 | ac_top_srcdir=$srcdir ;; |
---|
| 907 | *) # Relative path. |
---|
| 908 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 909 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 910 | esac |
---|
| 911 | |
---|
| 912 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 913 | # the directories may not exist. |
---|
| 914 | case `pwd` in |
---|
| 915 | .) ac_abs_builddir="$ac_dir";; |
---|
| 916 | *) |
---|
| 917 | case "$ac_dir" in |
---|
| 918 | .) ac_abs_builddir=`pwd`;; |
---|
| 919 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 920 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 921 | esac;; |
---|
| 922 | esac |
---|
| 923 | case $ac_abs_builddir in |
---|
| 924 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 925 | *) |
---|
| 926 | case ${ac_top_builddir}. in |
---|
| 927 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 928 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 929 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 930 | esac;; |
---|
| 931 | esac |
---|
| 932 | case $ac_abs_builddir in |
---|
| 933 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 934 | *) |
---|
| 935 | case $ac_srcdir in |
---|
| 936 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 937 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 938 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 939 | esac;; |
---|
| 940 | esac |
---|
| 941 | case $ac_abs_builddir in |
---|
| 942 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 943 | *) |
---|
| 944 | case $ac_top_srcdir in |
---|
| 945 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 946 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 947 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 948 | esac;; |
---|
| 949 | esac |
---|
| 950 | |
---|
| 951 | cd $ac_dir |
---|
| 952 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 953 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 954 | echo |
---|
| 955 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 956 | elif test -f $ac_srcdir/configure; then |
---|
| 957 | echo |
---|
| 958 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 959 | elif test -f $ac_srcdir/configure.ac || |
---|
| 960 | test -f $ac_srcdir/configure.in; then |
---|
| 961 | echo |
---|
| 962 | $ac_configure --help |
---|
| 963 | else |
---|
| 964 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 965 | fi |
---|
| 966 | cd $ac_popdir |
---|
| 967 | done |
---|
| 968 | fi |
---|
| 969 | |
---|
| 970 | test -n "$ac_init_help" && exit 0 |
---|
| 971 | if $ac_init_version; then |
---|
| 972 | cat <<\_ACEOF |
---|
| 973 | orxonox configure 0.1-pre-alpha |
---|
| 974 | generated by GNU Autoconf 2.59 |
---|
| 975 | |
---|
| 976 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 977 | This configure script is free software; the Free Software Foundation |
---|
| 978 | gives unlimited permission to copy, distribute and modify it. |
---|
| 979 | _ACEOF |
---|
| 980 | exit 0 |
---|
| 981 | fi |
---|
| 982 | exec 5>config.log |
---|
| 983 | cat >&5 <<_ACEOF |
---|
| 984 | This file contains any messages produced by compilers while |
---|
| 985 | running configure, to aid debugging if configure makes a mistake. |
---|
| 986 | |
---|
| 987 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 988 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 989 | |
---|
| 990 | $ $0 $@ |
---|
| 991 | |
---|
| 992 | _ACEOF |
---|
| 993 | { |
---|
| 994 | cat <<_ASUNAME |
---|
| 995 | ## --------- ## |
---|
| 996 | ## Platform. ## |
---|
| 997 | ## --------- ## |
---|
| 998 | |
---|
| 999 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1000 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1001 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1002 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1003 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1004 | |
---|
| 1005 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1006 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1007 | |
---|
| 1008 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1009 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1010 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1011 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1012 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1013 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1014 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1015 | |
---|
| 1016 | _ASUNAME |
---|
| 1017 | |
---|
| 1018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1019 | for as_dir in $PATH |
---|
| 1020 | do |
---|
| 1021 | IFS=$as_save_IFS |
---|
| 1022 | test -z "$as_dir" && as_dir=. |
---|
| 1023 | echo "PATH: $as_dir" |
---|
| 1024 | done |
---|
| 1025 | |
---|
| 1026 | } >&5 |
---|
| 1027 | |
---|
| 1028 | cat >&5 <<_ACEOF |
---|
| 1029 | |
---|
| 1030 | |
---|
| 1031 | ## ----------- ## |
---|
| 1032 | ## Core tests. ## |
---|
| 1033 | ## ----------- ## |
---|
| 1034 | |
---|
| 1035 | _ACEOF |
---|
| 1036 | |
---|
| 1037 | |
---|
| 1038 | # Keep a trace of the command line. |
---|
| 1039 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1040 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1041 | # Also quote any args containing shell meta-characters. |
---|
| 1042 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1043 | ac_configure_args= |
---|
| 1044 | ac_configure_args0= |
---|
| 1045 | ac_configure_args1= |
---|
| 1046 | ac_sep= |
---|
| 1047 | ac_must_keep_next=false |
---|
| 1048 | for ac_pass in 1 2 |
---|
| 1049 | do |
---|
| 1050 | for ac_arg |
---|
| 1051 | do |
---|
| 1052 | case $ac_arg in |
---|
| 1053 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1055 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1056 | continue ;; |
---|
| 1057 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1058 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1059 | esac |
---|
| 1060 | case $ac_pass in |
---|
| 1061 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1062 | 2) |
---|
| 1063 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1064 | if test $ac_must_keep_next = true; then |
---|
| 1065 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1066 | else |
---|
| 1067 | case $ac_arg in |
---|
| 1068 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1069 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1070 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1071 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1072 | case "$ac_configure_args0 " in |
---|
| 1073 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1074 | esac |
---|
| 1075 | ;; |
---|
| 1076 | -* ) ac_must_keep_next=true ;; |
---|
| 1077 | esac |
---|
| 1078 | fi |
---|
| 1079 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1080 | # Get rid of the leading space. |
---|
| 1081 | ac_sep=" " |
---|
| 1082 | ;; |
---|
| 1083 | esac |
---|
| 1084 | done |
---|
| 1085 | done |
---|
| 1086 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1087 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1088 | |
---|
| 1089 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1090 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1091 | # would cause problems or look ugly. |
---|
| 1092 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1093 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1094 | trap 'exit_status=$? |
---|
| 1095 | # Save into config.log some information that might help in debugging. |
---|
| 1096 | { |
---|
| 1097 | echo |
---|
| 1098 | |
---|
| 1099 | cat <<\_ASBOX |
---|
| 1100 | ## ---------------- ## |
---|
| 1101 | ## Cache variables. ## |
---|
| 1102 | ## ---------------- ## |
---|
| 1103 | _ASBOX |
---|
| 1104 | echo |
---|
| 1105 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1106 | { |
---|
| 1107 | (set) 2>&1 | |
---|
| 1108 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1109 | *ac_space=\ *) |
---|
| 1110 | sed -n \ |
---|
| 1111 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1113 | ;; |
---|
| 1114 | *) |
---|
| 1115 | sed -n \ |
---|
| 1116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1117 | ;; |
---|
| 1118 | esac; |
---|
| 1119 | } |
---|
| 1120 | echo |
---|
| 1121 | |
---|
| 1122 | cat <<\_ASBOX |
---|
| 1123 | ## ----------------- ## |
---|
| 1124 | ## Output variables. ## |
---|
| 1125 | ## ----------------- ## |
---|
| 1126 | _ASBOX |
---|
| 1127 | echo |
---|
| 1128 | for ac_var in $ac_subst_vars |
---|
| 1129 | do |
---|
| 1130 | eval ac_val=$`echo $ac_var` |
---|
| 1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1132 | done | sort |
---|
| 1133 | echo |
---|
| 1134 | |
---|
| 1135 | if test -n "$ac_subst_files"; then |
---|
| 1136 | cat <<\_ASBOX |
---|
| 1137 | ## ------------- ## |
---|
| 1138 | ## Output files. ## |
---|
| 1139 | ## ------------- ## |
---|
| 1140 | _ASBOX |
---|
| 1141 | echo |
---|
| 1142 | for ac_var in $ac_subst_files |
---|
| 1143 | do |
---|
| 1144 | eval ac_val=$`echo $ac_var` |
---|
| 1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1146 | done | sort |
---|
| 1147 | echo |
---|
| 1148 | fi |
---|
| 1149 | |
---|
| 1150 | if test -s confdefs.h; then |
---|
| 1151 | cat <<\_ASBOX |
---|
| 1152 | ## ----------- ## |
---|
| 1153 | ## confdefs.h. ## |
---|
| 1154 | ## ----------- ## |
---|
| 1155 | _ASBOX |
---|
| 1156 | echo |
---|
| 1157 | sed "/^$/d" confdefs.h | sort |
---|
| 1158 | echo |
---|
| 1159 | fi |
---|
| 1160 | test "$ac_signal" != 0 && |
---|
| 1161 | echo "$as_me: caught signal $ac_signal" |
---|
| 1162 | echo "$as_me: exit $exit_status" |
---|
| 1163 | } >&5 |
---|
| 1164 | rm -f core *.core && |
---|
| 1165 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1166 | exit $exit_status |
---|
| 1167 | ' 0 |
---|
| 1168 | for ac_signal in 1 2 13 15; do |
---|
| 1169 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1170 | done |
---|
| 1171 | ac_signal=0 |
---|
| 1172 | |
---|
| 1173 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1174 | rm -rf conftest* confdefs.h |
---|
| 1175 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1176 | echo >confdefs.h |
---|
| 1177 | |
---|
| 1178 | # Predefined preprocessor variables. |
---|
| 1179 | |
---|
| 1180 | cat >>confdefs.h <<_ACEOF |
---|
| 1181 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1182 | _ACEOF |
---|
| 1183 | |
---|
| 1184 | |
---|
| 1185 | cat >>confdefs.h <<_ACEOF |
---|
| 1186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1187 | _ACEOF |
---|
| 1188 | |
---|
| 1189 | |
---|
| 1190 | cat >>confdefs.h <<_ACEOF |
---|
| 1191 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1192 | _ACEOF |
---|
| 1193 | |
---|
| 1194 | |
---|
| 1195 | cat >>confdefs.h <<_ACEOF |
---|
| 1196 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1197 | _ACEOF |
---|
| 1198 | |
---|
| 1199 | |
---|
| 1200 | cat >>confdefs.h <<_ACEOF |
---|
| 1201 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1202 | _ACEOF |
---|
| 1203 | |
---|
| 1204 | |
---|
| 1205 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1206 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1207 | if test -z "$CONFIG_SITE"; then |
---|
| 1208 | if test "x$prefix" != xNONE; then |
---|
| 1209 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1210 | else |
---|
| 1211 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1212 | fi |
---|
| 1213 | fi |
---|
| 1214 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1215 | if test -r "$ac_site_file"; then |
---|
| 1216 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1217 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1218 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1219 | . "$ac_site_file" |
---|
| 1220 | fi |
---|
| 1221 | done |
---|
| 1222 | |
---|
| 1223 | if test -r "$cache_file"; then |
---|
| 1224 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1225 | # files actually), so we avoid doing that. |
---|
| 1226 | if test -f "$cache_file"; then |
---|
| 1227 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1228 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1229 | case $cache_file in |
---|
| 1230 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1231 | *) . ./$cache_file;; |
---|
| 1232 | esac |
---|
| 1233 | fi |
---|
| 1234 | else |
---|
| 1235 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1236 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1237 | >$cache_file |
---|
| 1238 | fi |
---|
| 1239 | |
---|
| 1240 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1241 | # value. |
---|
| 1242 | ac_cache_corrupted=false |
---|
| 1243 | for ac_var in `(set) 2>&1 | |
---|
| 1244 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1245 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1246 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1247 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1248 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1249 | case $ac_old_set,$ac_new_set in |
---|
| 1250 | set,) |
---|
| 1251 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1252 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1253 | ac_cache_corrupted=: ;; |
---|
| 1254 | ,set) |
---|
| 1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1256 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1257 | ac_cache_corrupted=: ;; |
---|
| 1258 | ,);; |
---|
| 1259 | *) |
---|
| 1260 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1261 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1262 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1263 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1264 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1265 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1266 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1267 | ac_cache_corrupted=: |
---|
| 1268 | fi;; |
---|
| 1269 | esac |
---|
| 1270 | # Pass precious variables to config.status. |
---|
| 1271 | if test "$ac_new_set" = set; then |
---|
| 1272 | case $ac_new_val in |
---|
| 1273 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1274 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1275 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1276 | esac |
---|
| 1277 | case " $ac_configure_args " in |
---|
| 1278 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1279 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1280 | esac |
---|
| 1281 | fi |
---|
| 1282 | done |
---|
| 1283 | if $ac_cache_corrupted; then |
---|
| 1284 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1285 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1286 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1287 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1288 | { (exit 1); exit 1; }; } |
---|
| 1289 | fi |
---|
| 1290 | |
---|
| 1291 | ac_ext=c |
---|
| 1292 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1296 | |
---|
| 1297 | |
---|
| 1298 | |
---|
| 1299 | |
---|
| 1300 | |
---|
| 1301 | |
---|
| 1302 | |
---|
| 1303 | |
---|
| 1304 | |
---|
| 1305 | |
---|
| 1306 | |
---|
| 1307 | |
---|
| 1308 | |
---|
| 1309 | |
---|
| 1310 | |
---|
| 1311 | |
---|
| 1312 | |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
[2705] | 1323 | am__api_version="1.8" |
---|
[1956] | 1324 | ac_aux_dir= |
---|
| 1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1326 | if test -f $ac_dir/install-sh; then |
---|
| 1327 | ac_aux_dir=$ac_dir |
---|
| 1328 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1329 | break |
---|
| 1330 | elif test -f $ac_dir/install.sh; then |
---|
| 1331 | ac_aux_dir=$ac_dir |
---|
| 1332 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1333 | break |
---|
| 1334 | elif test -f $ac_dir/shtool; then |
---|
| 1335 | ac_aux_dir=$ac_dir |
---|
| 1336 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1337 | break |
---|
| 1338 | fi |
---|
| 1339 | done |
---|
| 1340 | if test -z "$ac_aux_dir"; then |
---|
| 1341 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1342 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1343 | { (exit 1); exit 1; }; } |
---|
| 1344 | fi |
---|
| 1345 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1346 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1347 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1348 | |
---|
| 1349 | # Find a good install program. We prefer a C program (faster), |
---|
| 1350 | # so one script is as good as another. But avoid the broken or |
---|
| 1351 | # incompatible versions: |
---|
| 1352 | # SysV /etc/install, /usr/sbin/install |
---|
| 1353 | # SunOS /usr/etc/install |
---|
| 1354 | # IRIX /sbin/install |
---|
| 1355 | # AIX /bin/install |
---|
| 1356 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1357 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1358 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1359 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1360 | # OS/2's system install, which has a completely different semantic |
---|
| 1361 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1362 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1363 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1364 | if test -z "$INSTALL"; then |
---|
| 1365 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1367 | else |
---|
| 1368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1369 | for as_dir in $PATH |
---|
| 1370 | do |
---|
| 1371 | IFS=$as_save_IFS |
---|
| 1372 | test -z "$as_dir" && as_dir=. |
---|
| 1373 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1374 | case $as_dir/ in |
---|
| 1375 | ./ | .// | /cC/* | \ |
---|
| 1376 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1377 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1378 | /usr/ucb/* ) ;; |
---|
| 1379 | *) |
---|
| 1380 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1381 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1382 | # by default. |
---|
| 1383 | for ac_prog in ginstall scoinst install; do |
---|
| 1384 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1385 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1386 | if test $ac_prog = install && |
---|
| 1387 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1388 | # AIX install. It has an incompatible calling convention. |
---|
| 1389 | : |
---|
| 1390 | elif test $ac_prog = install && |
---|
| 1391 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1392 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1393 | : |
---|
| 1394 | else |
---|
| 1395 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1396 | break 3 |
---|
| 1397 | fi |
---|
[1853] | 1398 | fi |
---|
[1956] | 1399 | done |
---|
| 1400 | done |
---|
| 1401 | ;; |
---|
| 1402 | esac |
---|
| 1403 | done |
---|
| 1404 | |
---|
| 1405 | |
---|
[1853] | 1406 | fi |
---|
[1956] | 1407 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1408 | INSTALL=$ac_cv_path_install |
---|
| 1409 | else |
---|
| 1410 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1411 | # path for INSTALL within a source directory, because that will |
---|
| 1412 | # break other packages using the cache if that directory is |
---|
| 1413 | # removed, or if the path is relative. |
---|
| 1414 | INSTALL=$ac_install_sh |
---|
| 1415 | fi |
---|
| 1416 | fi |
---|
| 1417 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1418 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1419 | |
---|
| 1420 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1421 | # It thinks the first close brace ends the variable substitution. |
---|
| 1422 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1423 | |
---|
| 1424 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1425 | |
---|
| 1426 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1427 | |
---|
| 1428 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1429 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1430 | # Just in case |
---|
| 1431 | sleep 1 |
---|
| 1432 | echo timestamp > conftest.file |
---|
| 1433 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1434 | # arguments. Must try -L first in case configure is actually a |
---|
| 1435 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1436 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1437 | # directory). |
---|
| 1438 | if ( |
---|
| 1439 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1440 | if test "$*" = "X"; then |
---|
| 1441 | # -L didn't work. |
---|
| 1442 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1443 | fi |
---|
| 1444 | rm -f conftest.file |
---|
| 1445 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1446 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1447 | |
---|
| 1448 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1449 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1450 | # broken ls alias from the environment. This has actually |
---|
| 1451 | # happened. Such a system could not be considered "sane". |
---|
| 1452 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1453 | alias in your environment" >&5 |
---|
| 1454 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1455 | alias in your environment" >&2;} |
---|
| 1456 | { (exit 1); exit 1; }; } |
---|
| 1457 | fi |
---|
| 1458 | |
---|
| 1459 | test "$2" = conftest.file |
---|
| 1460 | ) |
---|
| 1461 | then |
---|
| 1462 | # Ok. |
---|
| 1463 | : |
---|
[1853] | 1464 | else |
---|
[1956] | 1465 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1466 | Check your system clock" >&5 |
---|
| 1467 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1468 | Check your system clock" >&2;} |
---|
| 1469 | { (exit 1); exit 1; }; } |
---|
[1853] | 1470 | fi |
---|
[1956] | 1471 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1472 | echo "${ECHO_T}yes" >&6 |
---|
| 1473 | test "$program_prefix" != NONE && |
---|
| 1474 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1475 | # Use a double $ so make ignores it. |
---|
| 1476 | test "$program_suffix" != NONE && |
---|
| 1477 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1478 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1479 | # By default was `s,x,x', remove it if useless. |
---|
| 1480 | cat <<\_ACEOF >conftest.sed |
---|
| 1481 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1482 | _ACEOF |
---|
| 1483 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1484 | rm conftest.sed |
---|
[1853] | 1485 | |
---|
[1956] | 1486 | # expand $ac_aux_dir to an absolute path |
---|
| 1487 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1488 | |
---|
| 1489 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1490 | # Use eval to expand $SHELL |
---|
| 1491 | if eval "$MISSING --run true"; then |
---|
| 1492 | am_missing_run="$MISSING --run " |
---|
| 1493 | else |
---|
| 1494 | am_missing_run= |
---|
| 1495 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1496 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1497 | fi |
---|
| 1498 | |
---|
[2705] | 1499 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
| 1500 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1501 | # argument. Indeed, we sometimes output rules like |
---|
| 1502 | # $(mkdir_p) $(somedir) |
---|
| 1503 | # where $(somedir) is conditionally defined. |
---|
| 1504 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1505 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1506 | mkdir_p='mkdir -p -- .' |
---|
| 1507 | else |
---|
| 1508 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1509 | # recognize any option. It will interpret all options as |
---|
| 1510 | # directories to create, and then abort because `.' already |
---|
| 1511 | # exists. |
---|
| 1512 | for d in ./-p ./--version; |
---|
| 1513 | do |
---|
| 1514 | test -d $d && rmdir $d |
---|
| 1515 | done |
---|
| 1516 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1517 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1518 | mkdir_p='$(mkinstalldirs)' |
---|
| 1519 | else |
---|
| 1520 | mkdir_p='$(install_sh) -d' |
---|
| 1521 | fi |
---|
| 1522 | fi |
---|
| 1523 | |
---|
[1956] | 1524 | for ac_prog in gawk mawk nawk awk |
---|
| 1525 | do |
---|
| 1526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1527 | set dummy $ac_prog; ac_word=$2 |
---|
| 1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1530 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1532 | else |
---|
| 1533 | if test -n "$AWK"; then |
---|
| 1534 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1535 | else |
---|
| 1536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1537 | for as_dir in $PATH |
---|
| 1538 | do |
---|
| 1539 | IFS=$as_save_IFS |
---|
| 1540 | test -z "$as_dir" && as_dir=. |
---|
| 1541 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1543 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1545 | break 2 |
---|
| 1546 | fi |
---|
| 1547 | done |
---|
| 1548 | done |
---|
| 1549 | |
---|
| 1550 | fi |
---|
| 1551 | fi |
---|
| 1552 | AWK=$ac_cv_prog_AWK |
---|
| 1553 | if test -n "$AWK"; then |
---|
| 1554 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1555 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1556 | else |
---|
| 1557 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1558 | echo "${ECHO_T}no" >&6 |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | test -n "$AWK" && break |
---|
| 1562 | done |
---|
| 1563 | |
---|
| 1564 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1565 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1566 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1567 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1569 | else |
---|
| 1570 | cat >conftest.make <<\_ACEOF |
---|
| 1571 | all: |
---|
| 1572 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1573 | _ACEOF |
---|
| 1574 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1575 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1576 | if test -n "$ac_maketemp"; then |
---|
| 1577 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1578 | else |
---|
| 1579 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1580 | fi |
---|
| 1581 | rm -f conftest.make |
---|
| 1582 | fi |
---|
| 1583 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1584 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1585 | echo "${ECHO_T}yes" >&6 |
---|
| 1586 | SET_MAKE= |
---|
| 1587 | else |
---|
| 1588 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1589 | echo "${ECHO_T}no" >&6 |
---|
| 1590 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1591 | fi |
---|
| 1592 | |
---|
| 1593 | rm -rf .tst 2>/dev/null |
---|
| 1594 | mkdir .tst 2>/dev/null |
---|
| 1595 | if test -d .tst; then |
---|
| 1596 | am__leading_dot=. |
---|
| 1597 | else |
---|
| 1598 | am__leading_dot=_ |
---|
| 1599 | fi |
---|
| 1600 | rmdir .tst 2>/dev/null |
---|
| 1601 | |
---|
[2705] | 1602 | # test to see if srcdir already configured |
---|
[1956] | 1603 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1604 | test -f $srcdir/config.status; then |
---|
| 1605 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1606 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1607 | { (exit 1); exit 1; }; } |
---|
| 1608 | fi |
---|
| 1609 | |
---|
| 1610 | # test whether we have cygpath |
---|
| 1611 | if test -z "$CYGPATH_W"; then |
---|
| 1612 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1613 | CYGPATH_W='cygpath -w' |
---|
| 1614 | else |
---|
| 1615 | CYGPATH_W=echo |
---|
| 1616 | fi |
---|
| 1617 | fi |
---|
| 1618 | |
---|
| 1619 | |
---|
| 1620 | # Define the identity of the package. |
---|
| 1621 | PACKAGE='orxonox' |
---|
| 1622 | VERSION='0.1-pre-alpha' |
---|
| 1623 | |
---|
| 1624 | |
---|
| 1625 | cat >>confdefs.h <<_ACEOF |
---|
| 1626 | #define PACKAGE "$PACKAGE" |
---|
| 1627 | _ACEOF |
---|
| 1628 | |
---|
| 1629 | |
---|
| 1630 | cat >>confdefs.h <<_ACEOF |
---|
| 1631 | #define VERSION "$VERSION" |
---|
| 1632 | _ACEOF |
---|
| 1633 | |
---|
| 1634 | # Some tools Automake needs. |
---|
| 1635 | |
---|
| 1636 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1637 | |
---|
| 1638 | |
---|
| 1639 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1640 | |
---|
| 1641 | |
---|
| 1642 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1643 | |
---|
| 1644 | |
---|
| 1645 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1646 | |
---|
| 1647 | |
---|
| 1648 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1649 | |
---|
| 1650 | |
---|
| 1651 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1652 | |
---|
| 1653 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1654 | |
---|
| 1655 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1656 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1657 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1658 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1659 | if test "$cross_compiling" != no; then |
---|
| 1660 | if test -n "$ac_tool_prefix"; then |
---|
| 1661 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1662 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1665 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1667 | else |
---|
| 1668 | if test -n "$STRIP"; then |
---|
| 1669 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1670 | else |
---|
| 1671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1672 | for as_dir in $PATH |
---|
| 1673 | do |
---|
| 1674 | IFS=$as_save_IFS |
---|
| 1675 | test -z "$as_dir" && as_dir=. |
---|
| 1676 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1678 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1680 | break 2 |
---|
| 1681 | fi |
---|
| 1682 | done |
---|
| 1683 | done |
---|
| 1684 | |
---|
| 1685 | fi |
---|
| 1686 | fi |
---|
| 1687 | STRIP=$ac_cv_prog_STRIP |
---|
| 1688 | if test -n "$STRIP"; then |
---|
| 1689 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1690 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1691 | else |
---|
| 1692 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1693 | echo "${ECHO_T}no" >&6 |
---|
| 1694 | fi |
---|
| 1695 | |
---|
| 1696 | fi |
---|
| 1697 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1698 | ac_ct_STRIP=$STRIP |
---|
| 1699 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1700 | set dummy strip; ac_word=$2 |
---|
| 1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1703 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1705 | else |
---|
| 1706 | if test -n "$ac_ct_STRIP"; then |
---|
| 1707 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1708 | else |
---|
| 1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1710 | for as_dir in $PATH |
---|
| 1711 | do |
---|
| 1712 | IFS=$as_save_IFS |
---|
| 1713 | test -z "$as_dir" && as_dir=. |
---|
| 1714 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1716 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1718 | break 2 |
---|
| 1719 | fi |
---|
| 1720 | done |
---|
| 1721 | done |
---|
| 1722 | |
---|
| 1723 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1724 | fi |
---|
| 1725 | fi |
---|
| 1726 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1727 | if test -n "$ac_ct_STRIP"; then |
---|
| 1728 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1729 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1730 | else |
---|
| 1731 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1732 | echo "${ECHO_T}no" >&6 |
---|
| 1733 | fi |
---|
| 1734 | |
---|
| 1735 | STRIP=$ac_ct_STRIP |
---|
| 1736 | else |
---|
| 1737 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1738 | fi |
---|
| 1739 | |
---|
| 1740 | fi |
---|
| 1741 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1742 | |
---|
| 1743 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1744 | # some platforms. |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | |
---|
| 1748 | |
---|
[2627] | 1749 | |
---|
[1959] | 1750 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1751 | |
---|
| 1752 | |
---|
[2018] | 1753 | |
---|
[1956] | 1754 | # Checks for programs. |
---|
| 1755 | ac_ext=cc |
---|
| 1756 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1760 | if test -n "$ac_tool_prefix"; then |
---|
| 1761 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1762 | do |
---|
| 1763 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1764 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1767 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1769 | else |
---|
| 1770 | if test -n "$CXX"; then |
---|
| 1771 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1772 | else |
---|
| 1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1774 | for as_dir in $PATH |
---|
| 1775 | do |
---|
| 1776 | IFS=$as_save_IFS |
---|
| 1777 | test -z "$as_dir" && as_dir=. |
---|
| 1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1780 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1782 | break 2 |
---|
| 1783 | fi |
---|
| 1784 | done |
---|
| 1785 | done |
---|
| 1786 | |
---|
| 1787 | fi |
---|
| 1788 | fi |
---|
| 1789 | CXX=$ac_cv_prog_CXX |
---|
| 1790 | if test -n "$CXX"; then |
---|
| 1791 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1792 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1793 | else |
---|
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1795 | echo "${ECHO_T}no" >&6 |
---|
| 1796 | fi |
---|
| 1797 | |
---|
| 1798 | test -n "$CXX" && break |
---|
| 1799 | done |
---|
| 1800 | fi |
---|
| 1801 | if test -z "$CXX"; then |
---|
| 1802 | ac_ct_CXX=$CXX |
---|
| 1803 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1804 | do |
---|
| 1805 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1806 | set dummy $ac_prog; ac_word=$2 |
---|
| 1807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1809 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1811 | else |
---|
| 1812 | if test -n "$ac_ct_CXX"; then |
---|
| 1813 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1814 | else |
---|
| 1815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1816 | for as_dir in $PATH |
---|
| 1817 | do |
---|
| 1818 | IFS=$as_save_IFS |
---|
| 1819 | test -z "$as_dir" && as_dir=. |
---|
| 1820 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1822 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1824 | break 2 |
---|
| 1825 | fi |
---|
| 1826 | done |
---|
| 1827 | done |
---|
| 1828 | |
---|
| 1829 | fi |
---|
| 1830 | fi |
---|
| 1831 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1832 | if test -n "$ac_ct_CXX"; then |
---|
| 1833 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1834 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1835 | else |
---|
| 1836 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1837 | echo "${ECHO_T}no" >&6 |
---|
| 1838 | fi |
---|
| 1839 | |
---|
| 1840 | test -n "$ac_ct_CXX" && break |
---|
| 1841 | done |
---|
| 1842 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1843 | |
---|
| 1844 | CXX=$ac_ct_CXX |
---|
| 1845 | fi |
---|
| 1846 | |
---|
| 1847 | |
---|
| 1848 | # Provide some information about the compiler. |
---|
| 1849 | echo "$as_me:$LINENO:" \ |
---|
| 1850 | "checking for C++ compiler version" >&5 |
---|
| 1851 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1852 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1853 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1854 | ac_status=$? |
---|
| 1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1856 | (exit $ac_status); } |
---|
| 1857 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1858 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1859 | ac_status=$? |
---|
| 1860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1861 | (exit $ac_status); } |
---|
| 1862 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1863 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1864 | ac_status=$? |
---|
| 1865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1866 | (exit $ac_status); } |
---|
| 1867 | |
---|
| 1868 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1869 | /* confdefs.h. */ |
---|
| 1870 | _ACEOF |
---|
| 1871 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1872 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1873 | /* end confdefs.h. */ |
---|
| 1874 | |
---|
| 1875 | int |
---|
| 1876 | main () |
---|
| 1877 | { |
---|
| 1878 | |
---|
| 1879 | ; |
---|
| 1880 | return 0; |
---|
| 1881 | } |
---|
| 1882 | _ACEOF |
---|
| 1883 | ac_clean_files_save=$ac_clean_files |
---|
| 1884 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1885 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1886 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1887 | # of exeext. |
---|
| 1888 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1889 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1890 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1891 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1892 | (eval $ac_link_default) 2>&5 |
---|
| 1893 | ac_status=$? |
---|
| 1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1895 | (exit $ac_status); }; then |
---|
| 1896 | # Find the output, starting from the most likely. This scheme is |
---|
| 1897 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1898 | # resort. |
---|
| 1899 | |
---|
| 1900 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1901 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1902 | ac_cv_exeext= |
---|
| 1903 | # b.out is created by i960 compilers. |
---|
| 1904 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1905 | do |
---|
| 1906 | test -f "$ac_file" || continue |
---|
| 1907 | case $ac_file in |
---|
| 1908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1909 | ;; |
---|
| 1910 | conftest.$ac_ext ) |
---|
| 1911 | # This is the source file. |
---|
| 1912 | ;; |
---|
| 1913 | [ab].out ) |
---|
| 1914 | # We found the default executable, but exeext='' is most |
---|
| 1915 | # certainly right. |
---|
| 1916 | break;; |
---|
| 1917 | *.* ) |
---|
| 1918 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1919 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1920 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1921 | # maintain Libtool? --akim. |
---|
| 1922 | export ac_cv_exeext |
---|
| 1923 | break;; |
---|
| 1924 | * ) |
---|
| 1925 | break;; |
---|
| 1926 | esac |
---|
| 1927 | done |
---|
| 1928 | else |
---|
| 1929 | echo "$as_me: failed program was:" >&5 |
---|
| 1930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1931 | |
---|
| 1932 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1933 | See \`config.log' for more details." >&5 |
---|
| 1934 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1935 | See \`config.log' for more details." >&2;} |
---|
| 1936 | { (exit 77); exit 77; }; } |
---|
| 1937 | fi |
---|
| 1938 | |
---|
| 1939 | ac_exeext=$ac_cv_exeext |
---|
| 1940 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1941 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1942 | |
---|
| 1943 | # Check the compiler produces executables we can run. If not, either |
---|
| 1944 | # the compiler is broken, or we cross compile. |
---|
| 1945 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1946 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1947 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1948 | # If not cross compiling, check that we can run a simple program. |
---|
| 1949 | if test "$cross_compiling" != yes; then |
---|
| 1950 | if { ac_try='./$ac_file' |
---|
| 1951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1952 | (eval $ac_try) 2>&5 |
---|
| 1953 | ac_status=$? |
---|
| 1954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1955 | (exit $ac_status); }; }; then |
---|
| 1956 | cross_compiling=no |
---|
| 1957 | else |
---|
| 1958 | if test "$cross_compiling" = maybe; then |
---|
| 1959 | cross_compiling=yes |
---|
| 1960 | else |
---|
| 1961 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 1962 | If you meant to cross compile, use \`--host'. |
---|
| 1963 | See \`config.log' for more details." >&5 |
---|
| 1964 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 1965 | If you meant to cross compile, use \`--host'. |
---|
| 1966 | See \`config.log' for more details." >&2;} |
---|
| 1967 | { (exit 1); exit 1; }; } |
---|
| 1968 | fi |
---|
| 1969 | fi |
---|
| 1970 | fi |
---|
| 1971 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1972 | echo "${ECHO_T}yes" >&6 |
---|
| 1973 | |
---|
| 1974 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1975 | ac_clean_files=$ac_clean_files_save |
---|
| 1976 | # Check the compiler produces executables we can run. If not, either |
---|
| 1977 | # the compiler is broken, or we cross compile. |
---|
| 1978 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1979 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1980 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1981 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1982 | |
---|
| 1983 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1984 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1986 | (eval $ac_link) 2>&5 |
---|
| 1987 | ac_status=$? |
---|
| 1988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1989 | (exit $ac_status); }; then |
---|
| 1990 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1991 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1992 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1993 | # `rm'. |
---|
| 1994 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1995 | test -f "$ac_file" || continue |
---|
| 1996 | case $ac_file in |
---|
| 1997 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1998 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1999 | export ac_cv_exeext |
---|
| 2000 | break;; |
---|
| 2001 | * ) break;; |
---|
| 2002 | esac |
---|
| 2003 | done |
---|
| 2004 | else |
---|
| 2005 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2006 | See \`config.log' for more details." >&5 |
---|
| 2007 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2008 | See \`config.log' for more details." >&2;} |
---|
| 2009 | { (exit 1); exit 1; }; } |
---|
| 2010 | fi |
---|
| 2011 | |
---|
| 2012 | rm -f conftest$ac_cv_exeext |
---|
| 2013 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2014 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2015 | |
---|
| 2016 | rm -f conftest.$ac_ext |
---|
| 2017 | EXEEXT=$ac_cv_exeext |
---|
| 2018 | ac_exeext=$EXEEXT |
---|
| 2019 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2020 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2021 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2023 | else |
---|
| 2024 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2025 | /* confdefs.h. */ |
---|
| 2026 | _ACEOF |
---|
| 2027 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2028 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2029 | /* end confdefs.h. */ |
---|
| 2030 | |
---|
| 2031 | int |
---|
| 2032 | main () |
---|
| 2033 | { |
---|
| 2034 | |
---|
| 2035 | ; |
---|
| 2036 | return 0; |
---|
| 2037 | } |
---|
| 2038 | _ACEOF |
---|
| 2039 | rm -f conftest.o conftest.obj |
---|
| 2040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2041 | (eval $ac_compile) 2>&5 |
---|
| 2042 | ac_status=$? |
---|
| 2043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2044 | (exit $ac_status); }; then |
---|
| 2045 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2046 | case $ac_file in |
---|
| 2047 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2048 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2049 | break;; |
---|
| 2050 | esac |
---|
| 2051 | done |
---|
| 2052 | else |
---|
| 2053 | echo "$as_me: failed program was:" >&5 |
---|
| 2054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2055 | |
---|
| 2056 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2057 | See \`config.log' for more details." >&5 |
---|
| 2058 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2059 | See \`config.log' for more details." >&2;} |
---|
| 2060 | { (exit 1); exit 1; }; } |
---|
| 2061 | fi |
---|
| 2062 | |
---|
| 2063 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2064 | fi |
---|
| 2065 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2066 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2067 | OBJEXT=$ac_cv_objext |
---|
| 2068 | ac_objext=$OBJEXT |
---|
| 2069 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2070 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2071 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2073 | else |
---|
| 2074 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2075 | /* confdefs.h. */ |
---|
| 2076 | _ACEOF |
---|
| 2077 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2078 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2079 | /* end confdefs.h. */ |
---|
| 2080 | |
---|
| 2081 | int |
---|
| 2082 | main () |
---|
| 2083 | { |
---|
| 2084 | #ifndef __GNUC__ |
---|
| 2085 | choke me |
---|
| 2086 | #endif |
---|
| 2087 | |
---|
| 2088 | ; |
---|
| 2089 | return 0; |
---|
| 2090 | } |
---|
| 2091 | _ACEOF |
---|
| 2092 | rm -f conftest.$ac_objext |
---|
| 2093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2094 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2095 | ac_status=$? |
---|
| 2096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2097 | rm -f conftest.er1 |
---|
| 2098 | cat conftest.err >&5 |
---|
| 2099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2100 | (exit $ac_status); } && |
---|
| 2101 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2102 | || test ! -s conftest.err' |
---|
| 2103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2104 | (eval $ac_try) 2>&5 |
---|
| 2105 | ac_status=$? |
---|
| 2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2107 | (exit $ac_status); }; } && |
---|
| 2108 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2110 | (eval $ac_try) 2>&5 |
---|
| 2111 | ac_status=$? |
---|
| 2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2113 | (exit $ac_status); }; }; then |
---|
| 2114 | ac_compiler_gnu=yes |
---|
| 2115 | else |
---|
| 2116 | echo "$as_me: failed program was:" >&5 |
---|
| 2117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2118 | |
---|
| 2119 | ac_compiler_gnu=no |
---|
| 2120 | fi |
---|
| 2121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2122 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2123 | |
---|
| 2124 | fi |
---|
| 2125 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2126 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2127 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2128 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2129 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2130 | CXXFLAGS="-g" |
---|
| 2131 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2132 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2133 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2135 | else |
---|
| 2136 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2137 | /* confdefs.h. */ |
---|
| 2138 | _ACEOF |
---|
| 2139 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2140 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2141 | /* end confdefs.h. */ |
---|
| 2142 | |
---|
| 2143 | int |
---|
| 2144 | main () |
---|
| 2145 | { |
---|
| 2146 | |
---|
| 2147 | ; |
---|
| 2148 | return 0; |
---|
| 2149 | } |
---|
| 2150 | _ACEOF |
---|
| 2151 | rm -f conftest.$ac_objext |
---|
| 2152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2153 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2154 | ac_status=$? |
---|
| 2155 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2156 | rm -f conftest.er1 |
---|
| 2157 | cat conftest.err >&5 |
---|
| 2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2159 | (exit $ac_status); } && |
---|
| 2160 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2161 | || test ! -s conftest.err' |
---|
| 2162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2163 | (eval $ac_try) 2>&5 |
---|
| 2164 | ac_status=$? |
---|
| 2165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2166 | (exit $ac_status); }; } && |
---|
| 2167 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2169 | (eval $ac_try) 2>&5 |
---|
| 2170 | ac_status=$? |
---|
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2172 | (exit $ac_status); }; }; then |
---|
| 2173 | ac_cv_prog_cxx_g=yes |
---|
| 2174 | else |
---|
| 2175 | echo "$as_me: failed program was:" >&5 |
---|
| 2176 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2177 | |
---|
| 2178 | ac_cv_prog_cxx_g=no |
---|
| 2179 | fi |
---|
| 2180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2181 | fi |
---|
| 2182 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2183 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2184 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2185 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2186 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2187 | if test "$GXX" = yes; then |
---|
| 2188 | CXXFLAGS="-g -O2" |
---|
| 2189 | else |
---|
| 2190 | CXXFLAGS="-g" |
---|
| 2191 | fi |
---|
| 2192 | else |
---|
| 2193 | if test "$GXX" = yes; then |
---|
| 2194 | CXXFLAGS="-O2" |
---|
| 2195 | else |
---|
| 2196 | CXXFLAGS= |
---|
| 2197 | fi |
---|
| 2198 | fi |
---|
| 2199 | for ac_declaration in \ |
---|
| 2200 | '' \ |
---|
| 2201 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2202 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2203 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2204 | 'extern "C" void exit (int);' \ |
---|
| 2205 | 'void exit (int);' |
---|
| 2206 | do |
---|
| 2207 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2208 | /* confdefs.h. */ |
---|
| 2209 | _ACEOF |
---|
| 2210 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2211 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2212 | /* end confdefs.h. */ |
---|
| 2213 | $ac_declaration |
---|
| 2214 | #include <stdlib.h> |
---|
| 2215 | int |
---|
| 2216 | main () |
---|
| 2217 | { |
---|
| 2218 | exit (42); |
---|
| 2219 | ; |
---|
| 2220 | return 0; |
---|
| 2221 | } |
---|
| 2222 | _ACEOF |
---|
| 2223 | rm -f conftest.$ac_objext |
---|
| 2224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2225 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2226 | ac_status=$? |
---|
| 2227 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2228 | rm -f conftest.er1 |
---|
| 2229 | cat conftest.err >&5 |
---|
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2231 | (exit $ac_status); } && |
---|
| 2232 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2233 | || test ! -s conftest.err' |
---|
| 2234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2235 | (eval $ac_try) 2>&5 |
---|
| 2236 | ac_status=$? |
---|
| 2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2238 | (exit $ac_status); }; } && |
---|
| 2239 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2241 | (eval $ac_try) 2>&5 |
---|
| 2242 | ac_status=$? |
---|
| 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2244 | (exit $ac_status); }; }; then |
---|
| 2245 | : |
---|
| 2246 | else |
---|
| 2247 | echo "$as_me: failed program was:" >&5 |
---|
| 2248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2249 | |
---|
| 2250 | continue |
---|
| 2251 | fi |
---|
| 2252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2253 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2254 | /* confdefs.h. */ |
---|
| 2255 | _ACEOF |
---|
| 2256 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2258 | /* end confdefs.h. */ |
---|
| 2259 | $ac_declaration |
---|
| 2260 | int |
---|
| 2261 | main () |
---|
| 2262 | { |
---|
| 2263 | exit (42); |
---|
| 2264 | ; |
---|
| 2265 | return 0; |
---|
| 2266 | } |
---|
| 2267 | _ACEOF |
---|
| 2268 | rm -f conftest.$ac_objext |
---|
| 2269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2270 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2271 | ac_status=$? |
---|
| 2272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2273 | rm -f conftest.er1 |
---|
| 2274 | cat conftest.err >&5 |
---|
| 2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2276 | (exit $ac_status); } && |
---|
| 2277 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2278 | || test ! -s conftest.err' |
---|
| 2279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2280 | (eval $ac_try) 2>&5 |
---|
| 2281 | ac_status=$? |
---|
| 2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2283 | (exit $ac_status); }; } && |
---|
| 2284 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2286 | (eval $ac_try) 2>&5 |
---|
| 2287 | ac_status=$? |
---|
| 2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2289 | (exit $ac_status); }; }; then |
---|
| 2290 | break |
---|
| 2291 | else |
---|
| 2292 | echo "$as_me: failed program was:" >&5 |
---|
| 2293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2294 | |
---|
| 2295 | fi |
---|
| 2296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2297 | done |
---|
| 2298 | rm -f conftest* |
---|
| 2299 | if test -n "$ac_declaration"; then |
---|
| 2300 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2301 | echo $ac_declaration >>confdefs.h |
---|
| 2302 | echo '#endif' >>confdefs.h |
---|
| 2303 | fi |
---|
| 2304 | |
---|
| 2305 | ac_ext=c |
---|
| 2306 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2310 | DEPDIR="${am__leading_dot}deps" |
---|
| 2311 | |
---|
| 2312 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2313 | |
---|
| 2314 | |
---|
| 2315 | am_make=${MAKE-make} |
---|
| 2316 | cat > confinc << 'END' |
---|
| 2317 | am__doit: |
---|
| 2318 | @echo done |
---|
| 2319 | .PHONY: am__doit |
---|
| 2320 | END |
---|
| 2321 | # If we don't find an include directive, just comment out the code. |
---|
| 2322 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2323 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2324 | am__include="#" |
---|
| 2325 | am__quote= |
---|
| 2326 | _am_result=none |
---|
| 2327 | # First try GNU make style include. |
---|
| 2328 | echo "include confinc" > confmf |
---|
| 2329 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2330 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2331 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2332 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2333 | # case it prints its new name instead of `make'. |
---|
| 2334 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2335 | am__include=include |
---|
| 2336 | am__quote= |
---|
| 2337 | _am_result=GNU |
---|
| 2338 | fi |
---|
| 2339 | # Now try BSD make style include. |
---|
| 2340 | if test "$am__include" = "#"; then |
---|
| 2341 | echo '.include "confinc"' > confmf |
---|
| 2342 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2343 | am__include=.include |
---|
| 2344 | am__quote="\"" |
---|
| 2345 | _am_result=BSD |
---|
| 2346 | fi |
---|
| 2347 | fi |
---|
| 2348 | |
---|
| 2349 | |
---|
| 2350 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2351 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2352 | rm -f confinc confmf |
---|
| 2353 | |
---|
| 2354 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2355 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2356 | enableval="$enable_dependency_tracking" |
---|
| 2357 | |
---|
| 2358 | fi; |
---|
| 2359 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2360 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2361 | AMDEPBACKSLASH='\' |
---|
| 2362 | fi |
---|
| 2363 | |
---|
| 2364 | |
---|
| 2365 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2366 | AMDEP_TRUE= |
---|
| 2367 | AMDEP_FALSE='#' |
---|
| 2368 | else |
---|
| 2369 | AMDEP_TRUE='#' |
---|
| 2370 | AMDEP_FALSE= |
---|
| 2371 | fi |
---|
| 2372 | |
---|
| 2373 | |
---|
| 2374 | |
---|
| 2375 | |
---|
| 2376 | depcc="$CXX" am_compiler_list= |
---|
| 2377 | |
---|
| 2378 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2379 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2380 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2382 | else |
---|
| 2383 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2384 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2385 | # making bogus files that we don't know about and never remove. For |
---|
| 2386 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2387 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2388 | # in D'. |
---|
| 2389 | mkdir conftest.dir |
---|
| 2390 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2391 | # using a relative directory. |
---|
| 2392 | cp "$am_depcomp" conftest.dir |
---|
| 2393 | cd conftest.dir |
---|
| 2394 | # We will build objects and dependencies in a subdirectory because |
---|
| 2395 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2396 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2397 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2398 | # the current directory while Tru64 will put them in the object |
---|
| 2399 | # directory. |
---|
| 2400 | mkdir sub |
---|
| 2401 | |
---|
| 2402 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2403 | if test "$am_compiler_list" = ""; then |
---|
| 2404 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2405 | fi |
---|
| 2406 | for depmode in $am_compiler_list; do |
---|
| 2407 | # Setup a source with many dependencies, because some compilers |
---|
| 2408 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2409 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2410 | # |
---|
| 2411 | # We need to recreate these files for each test, as the compiler may |
---|
| 2412 | # overwrite some of them when testing with obscure command lines. |
---|
| 2413 | # This happens at least with the AIX C compiler. |
---|
| 2414 | : > sub/conftest.c |
---|
| 2415 | for i in 1 2 3 4 5 6; do |
---|
| 2416 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2705] | 2417 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2418 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2419 | touch sub/conftst$i.h |
---|
[1956] | 2420 | done |
---|
| 2421 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2422 | |
---|
| 2423 | case $depmode in |
---|
| 2424 | nosideeffect) |
---|
| 2425 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2426 | # only be used when explicitly requested |
---|
| 2427 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2428 | continue |
---|
| 2429 | else |
---|
| 2430 | break |
---|
| 2431 | fi |
---|
| 2432 | ;; |
---|
| 2433 | none) break ;; |
---|
| 2434 | esac |
---|
| 2435 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2436 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2437 | # handle `-M -o', and we need to detect this. |
---|
| 2438 | if depmode=$depmode \ |
---|
| 2439 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2440 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2441 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2442 | >/dev/null 2>conftest.err && |
---|
| 2443 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2444 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2445 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2446 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2705] | 2447 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2448 | # that says an option was ignored or not supported. |
---|
| 2449 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2450 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2451 | # The diagnosis changed in icc 8.0: |
---|
| 2452 | # icc: Command line remark: option '-MP' not supported |
---|
| 2453 | if (grep 'ignoring option' conftest.err || |
---|
| 2454 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2455 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2456 | break |
---|
| 2457 | fi |
---|
| 2458 | fi |
---|
| 2459 | done |
---|
| 2460 | |
---|
| 2461 | cd .. |
---|
| 2462 | rm -rf conftest.dir |
---|
| 2463 | else |
---|
| 2464 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2465 | fi |
---|
| 2466 | |
---|
| 2467 | fi |
---|
| 2468 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2469 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2470 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2471 | |
---|
| 2472 | |
---|
| 2473 | |
---|
| 2474 | if |
---|
| 2475 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2476 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2477 | am__fastdepCXX_TRUE= |
---|
| 2478 | am__fastdepCXX_FALSE='#' |
---|
| 2479 | else |
---|
| 2480 | am__fastdepCXX_TRUE='#' |
---|
| 2481 | am__fastdepCXX_FALSE= |
---|
| 2482 | fi |
---|
| 2483 | |
---|
| 2484 | |
---|
| 2485 | ac_ext=c |
---|
| 2486 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2490 | if test -n "$ac_tool_prefix"; then |
---|
| 2491 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2492 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2495 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2497 | else |
---|
| 2498 | if test -n "$CC"; then |
---|
| 2499 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2500 | else |
---|
| 2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2502 | for as_dir in $PATH |
---|
| 2503 | do |
---|
| 2504 | IFS=$as_save_IFS |
---|
| 2505 | test -z "$as_dir" && as_dir=. |
---|
| 2506 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2508 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2510 | break 2 |
---|
| 2511 | fi |
---|
| 2512 | done |
---|
| 2513 | done |
---|
| 2514 | |
---|
| 2515 | fi |
---|
| 2516 | fi |
---|
| 2517 | CC=$ac_cv_prog_CC |
---|
| 2518 | if test -n "$CC"; then |
---|
| 2519 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2520 | echo "${ECHO_T}$CC" >&6 |
---|
| 2521 | else |
---|
| 2522 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2523 | echo "${ECHO_T}no" >&6 |
---|
| 2524 | fi |
---|
| 2525 | |
---|
| 2526 | fi |
---|
| 2527 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2528 | ac_ct_CC=$CC |
---|
| 2529 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2530 | set dummy gcc; ac_word=$2 |
---|
| 2531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2533 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2535 | else |
---|
| 2536 | if test -n "$ac_ct_CC"; then |
---|
| 2537 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2538 | else |
---|
| 2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2540 | for as_dir in $PATH |
---|
| 2541 | do |
---|
| 2542 | IFS=$as_save_IFS |
---|
| 2543 | test -z "$as_dir" && as_dir=. |
---|
| 2544 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2546 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2548 | break 2 |
---|
| 2549 | fi |
---|
| 2550 | done |
---|
| 2551 | done |
---|
| 2552 | |
---|
| 2553 | fi |
---|
| 2554 | fi |
---|
| 2555 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2556 | if test -n "$ac_ct_CC"; then |
---|
| 2557 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2558 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2559 | else |
---|
| 2560 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2561 | echo "${ECHO_T}no" >&6 |
---|
| 2562 | fi |
---|
| 2563 | |
---|
| 2564 | CC=$ac_ct_CC |
---|
| 2565 | else |
---|
| 2566 | CC="$ac_cv_prog_CC" |
---|
| 2567 | fi |
---|
| 2568 | |
---|
| 2569 | if test -z "$CC"; then |
---|
| 2570 | if test -n "$ac_tool_prefix"; then |
---|
| 2571 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2572 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2575 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2577 | else |
---|
| 2578 | if test -n "$CC"; then |
---|
| 2579 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2580 | else |
---|
| 2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2582 | for as_dir in $PATH |
---|
| 2583 | do |
---|
| 2584 | IFS=$as_save_IFS |
---|
| 2585 | test -z "$as_dir" && as_dir=. |
---|
| 2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2588 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2590 | break 2 |
---|
| 2591 | fi |
---|
| 2592 | done |
---|
| 2593 | done |
---|
| 2594 | |
---|
| 2595 | fi |
---|
| 2596 | fi |
---|
| 2597 | CC=$ac_cv_prog_CC |
---|
| 2598 | if test -n "$CC"; then |
---|
| 2599 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2600 | echo "${ECHO_T}$CC" >&6 |
---|
| 2601 | else |
---|
| 2602 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2603 | echo "${ECHO_T}no" >&6 |
---|
| 2604 | fi |
---|
| 2605 | |
---|
| 2606 | fi |
---|
| 2607 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2608 | ac_ct_CC=$CC |
---|
| 2609 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2610 | set dummy cc; ac_word=$2 |
---|
| 2611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2613 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2615 | else |
---|
| 2616 | if test -n "$ac_ct_CC"; then |
---|
| 2617 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2618 | else |
---|
| 2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2620 | for as_dir in $PATH |
---|
| 2621 | do |
---|
| 2622 | IFS=$as_save_IFS |
---|
| 2623 | test -z "$as_dir" && as_dir=. |
---|
| 2624 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2626 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2628 | break 2 |
---|
| 2629 | fi |
---|
| 2630 | done |
---|
| 2631 | done |
---|
| 2632 | |
---|
| 2633 | fi |
---|
| 2634 | fi |
---|
| 2635 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2636 | if test -n "$ac_ct_CC"; then |
---|
| 2637 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2638 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2639 | else |
---|
| 2640 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2641 | echo "${ECHO_T}no" >&6 |
---|
| 2642 | fi |
---|
| 2643 | |
---|
| 2644 | CC=$ac_ct_CC |
---|
| 2645 | else |
---|
| 2646 | CC="$ac_cv_prog_CC" |
---|
| 2647 | fi |
---|
| 2648 | |
---|
| 2649 | fi |
---|
| 2650 | if test -z "$CC"; then |
---|
| 2651 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2652 | set dummy cc; ac_word=$2 |
---|
| 2653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2655 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2657 | else |
---|
| 2658 | if test -n "$CC"; then |
---|
| 2659 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2660 | else |
---|
| 2661 | ac_prog_rejected=no |
---|
| 2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2663 | for as_dir in $PATH |
---|
| 2664 | do |
---|
| 2665 | IFS=$as_save_IFS |
---|
| 2666 | test -z "$as_dir" && as_dir=. |
---|
| 2667 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2669 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2670 | ac_prog_rejected=yes |
---|
| 2671 | continue |
---|
| 2672 | fi |
---|
| 2673 | ac_cv_prog_CC="cc" |
---|
| 2674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2675 | break 2 |
---|
| 2676 | fi |
---|
| 2677 | done |
---|
| 2678 | done |
---|
| 2679 | |
---|
| 2680 | if test $ac_prog_rejected = yes; then |
---|
| 2681 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2682 | set dummy $ac_cv_prog_CC |
---|
| 2683 | shift |
---|
| 2684 | if test $# != 0; then |
---|
| 2685 | # We chose a different compiler from the bogus one. |
---|
| 2686 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2687 | # first if we set CC to just the basename; use the full file name. |
---|
| 2688 | shift |
---|
| 2689 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2690 | fi |
---|
| 2691 | fi |
---|
| 2692 | fi |
---|
| 2693 | fi |
---|
| 2694 | CC=$ac_cv_prog_CC |
---|
| 2695 | if test -n "$CC"; then |
---|
| 2696 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2697 | echo "${ECHO_T}$CC" >&6 |
---|
| 2698 | else |
---|
| 2699 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2700 | echo "${ECHO_T}no" >&6 |
---|
| 2701 | fi |
---|
| 2702 | |
---|
| 2703 | fi |
---|
| 2704 | if test -z "$CC"; then |
---|
| 2705 | if test -n "$ac_tool_prefix"; then |
---|
| 2706 | for ac_prog in cl |
---|
| 2707 | do |
---|
| 2708 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2709 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2710 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2712 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2714 | else |
---|
| 2715 | if test -n "$CC"; then |
---|
| 2716 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2717 | else |
---|
| 2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2719 | for as_dir in $PATH |
---|
| 2720 | do |
---|
| 2721 | IFS=$as_save_IFS |
---|
| 2722 | test -z "$as_dir" && as_dir=. |
---|
| 2723 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2725 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2727 | break 2 |
---|
| 2728 | fi |
---|
| 2729 | done |
---|
| 2730 | done |
---|
| 2731 | |
---|
| 2732 | fi |
---|
| 2733 | fi |
---|
| 2734 | CC=$ac_cv_prog_CC |
---|
| 2735 | if test -n "$CC"; then |
---|
| 2736 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2737 | echo "${ECHO_T}$CC" >&6 |
---|
| 2738 | else |
---|
| 2739 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2740 | echo "${ECHO_T}no" >&6 |
---|
| 2741 | fi |
---|
| 2742 | |
---|
| 2743 | test -n "$CC" && break |
---|
| 2744 | done |
---|
| 2745 | fi |
---|
| 2746 | if test -z "$CC"; then |
---|
| 2747 | ac_ct_CC=$CC |
---|
| 2748 | for ac_prog in cl |
---|
| 2749 | do |
---|
| 2750 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2751 | set dummy $ac_prog; ac_word=$2 |
---|
| 2752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2754 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2756 | else |
---|
| 2757 | if test -n "$ac_ct_CC"; then |
---|
| 2758 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2759 | else |
---|
| 2760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2761 | for as_dir in $PATH |
---|
| 2762 | do |
---|
| 2763 | IFS=$as_save_IFS |
---|
| 2764 | test -z "$as_dir" && as_dir=. |
---|
| 2765 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2767 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2769 | break 2 |
---|
| 2770 | fi |
---|
| 2771 | done |
---|
| 2772 | done |
---|
| 2773 | |
---|
| 2774 | fi |
---|
| 2775 | fi |
---|
| 2776 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2777 | if test -n "$ac_ct_CC"; then |
---|
| 2778 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2779 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2780 | else |
---|
| 2781 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2782 | echo "${ECHO_T}no" >&6 |
---|
| 2783 | fi |
---|
| 2784 | |
---|
| 2785 | test -n "$ac_ct_CC" && break |
---|
| 2786 | done |
---|
| 2787 | |
---|
| 2788 | CC=$ac_ct_CC |
---|
| 2789 | fi |
---|
| 2790 | |
---|
| 2791 | fi |
---|
| 2792 | |
---|
| 2793 | |
---|
| 2794 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2795 | See \`config.log' for more details." >&5 |
---|
| 2796 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2797 | See \`config.log' for more details." >&2;} |
---|
| 2798 | { (exit 1); exit 1; }; } |
---|
| 2799 | |
---|
| 2800 | # Provide some information about the compiler. |
---|
| 2801 | echo "$as_me:$LINENO:" \ |
---|
| 2802 | "checking for C compiler version" >&5 |
---|
| 2803 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2804 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2805 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2806 | ac_status=$? |
---|
| 2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2808 | (exit $ac_status); } |
---|
| 2809 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2810 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2811 | ac_status=$? |
---|
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2813 | (exit $ac_status); } |
---|
| 2814 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2815 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2816 | ac_status=$? |
---|
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2818 | (exit $ac_status); } |
---|
| 2819 | |
---|
| 2820 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2821 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2822 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2824 | else |
---|
| 2825 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2826 | /* confdefs.h. */ |
---|
| 2827 | _ACEOF |
---|
| 2828 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2830 | /* end confdefs.h. */ |
---|
| 2831 | |
---|
| 2832 | int |
---|
| 2833 | main () |
---|
| 2834 | { |
---|
| 2835 | #ifndef __GNUC__ |
---|
| 2836 | choke me |
---|
| 2837 | #endif |
---|
| 2838 | |
---|
| 2839 | ; |
---|
| 2840 | return 0; |
---|
| 2841 | } |
---|
| 2842 | _ACEOF |
---|
| 2843 | rm -f conftest.$ac_objext |
---|
| 2844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2845 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2846 | ac_status=$? |
---|
| 2847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2848 | rm -f conftest.er1 |
---|
| 2849 | cat conftest.err >&5 |
---|
| 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2851 | (exit $ac_status); } && |
---|
| 2852 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2853 | || test ! -s conftest.err' |
---|
| 2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2855 | (eval $ac_try) 2>&5 |
---|
| 2856 | ac_status=$? |
---|
| 2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2858 | (exit $ac_status); }; } && |
---|
| 2859 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2861 | (eval $ac_try) 2>&5 |
---|
| 2862 | ac_status=$? |
---|
| 2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2864 | (exit $ac_status); }; }; then |
---|
| 2865 | ac_compiler_gnu=yes |
---|
| 2866 | else |
---|
| 2867 | echo "$as_me: failed program was:" >&5 |
---|
| 2868 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2869 | |
---|
| 2870 | ac_compiler_gnu=no |
---|
| 2871 | fi |
---|
| 2872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2873 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2874 | |
---|
| 2875 | fi |
---|
| 2876 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2877 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2878 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2879 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2880 | ac_save_CFLAGS=$CFLAGS |
---|
| 2881 | CFLAGS="-g" |
---|
| 2882 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2883 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2884 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2886 | else |
---|
| 2887 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2888 | /* confdefs.h. */ |
---|
| 2889 | _ACEOF |
---|
| 2890 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2891 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2892 | /* end confdefs.h. */ |
---|
| 2893 | |
---|
| 2894 | int |
---|
| 2895 | main () |
---|
| 2896 | { |
---|
| 2897 | |
---|
| 2898 | ; |
---|
| 2899 | return 0; |
---|
| 2900 | } |
---|
| 2901 | _ACEOF |
---|
| 2902 | rm -f conftest.$ac_objext |
---|
| 2903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2904 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2905 | ac_status=$? |
---|
| 2906 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2907 | rm -f conftest.er1 |
---|
| 2908 | cat conftest.err >&5 |
---|
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2910 | (exit $ac_status); } && |
---|
| 2911 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2912 | || test ! -s conftest.err' |
---|
| 2913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2914 | (eval $ac_try) 2>&5 |
---|
| 2915 | ac_status=$? |
---|
| 2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2917 | (exit $ac_status); }; } && |
---|
| 2918 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2920 | (eval $ac_try) 2>&5 |
---|
| 2921 | ac_status=$? |
---|
| 2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2923 | (exit $ac_status); }; }; then |
---|
| 2924 | ac_cv_prog_cc_g=yes |
---|
| 2925 | else |
---|
| 2926 | echo "$as_me: failed program was:" >&5 |
---|
| 2927 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2928 | |
---|
| 2929 | ac_cv_prog_cc_g=no |
---|
| 2930 | fi |
---|
| 2931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2932 | fi |
---|
| 2933 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2934 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2935 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2936 | CFLAGS=$ac_save_CFLAGS |
---|
| 2937 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2938 | if test "$GCC" = yes; then |
---|
| 2939 | CFLAGS="-g -O2" |
---|
| 2940 | else |
---|
| 2941 | CFLAGS="-g" |
---|
| 2942 | fi |
---|
| 2943 | else |
---|
| 2944 | if test "$GCC" = yes; then |
---|
| 2945 | CFLAGS="-O2" |
---|
| 2946 | else |
---|
| 2947 | CFLAGS= |
---|
| 2948 | fi |
---|
| 2949 | fi |
---|
| 2950 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2951 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2952 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2954 | else |
---|
| 2955 | ac_cv_prog_cc_stdc=no |
---|
| 2956 | ac_save_CC=$CC |
---|
| 2957 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2958 | /* confdefs.h. */ |
---|
| 2959 | _ACEOF |
---|
| 2960 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2961 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2962 | /* end confdefs.h. */ |
---|
| 2963 | #include <stdarg.h> |
---|
| 2964 | #include <stdio.h> |
---|
| 2965 | #include <sys/types.h> |
---|
| 2966 | #include <sys/stat.h> |
---|
| 2967 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2968 | struct buf { int x; }; |
---|
| 2969 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2970 | static char *e (p, i) |
---|
| 2971 | char **p; |
---|
| 2972 | int i; |
---|
| 2973 | { |
---|
| 2974 | return p[i]; |
---|
| 2975 | } |
---|
| 2976 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2977 | { |
---|
| 2978 | char *s; |
---|
| 2979 | va_list v; |
---|
| 2980 | va_start (v,p); |
---|
| 2981 | s = g (p, va_arg (v,int)); |
---|
| 2982 | va_end (v); |
---|
| 2983 | return s; |
---|
| 2984 | } |
---|
| 2985 | |
---|
| 2986 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2987 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2988 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2989 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2990 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2991 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2992 | that's true only with -std1. */ |
---|
| 2993 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2994 | |
---|
| 2995 | int test (int i, double x); |
---|
| 2996 | struct s1 {int (*f) (int a);}; |
---|
| 2997 | struct s2 {int (*f) (double a);}; |
---|
| 2998 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2999 | int argc; |
---|
| 3000 | char **argv; |
---|
| 3001 | int |
---|
| 3002 | main () |
---|
| 3003 | { |
---|
| 3004 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3005 | ; |
---|
| 3006 | return 0; |
---|
| 3007 | } |
---|
| 3008 | _ACEOF |
---|
| 3009 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3010 | # breaks some systems' header files. |
---|
| 3011 | # AIX -qlanglvl=ansi |
---|
| 3012 | # Ultrix and OSF/1 -std1 |
---|
| 3013 | # HP-UX 10.20 and later -Ae |
---|
| 3014 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3015 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3016 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3017 | do |
---|
| 3018 | CC="$ac_save_CC $ac_arg" |
---|
| 3019 | rm -f conftest.$ac_objext |
---|
| 3020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3021 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3022 | ac_status=$? |
---|
| 3023 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3024 | rm -f conftest.er1 |
---|
| 3025 | cat conftest.err >&5 |
---|
| 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3027 | (exit $ac_status); } && |
---|
| 3028 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3029 | || test ! -s conftest.err' |
---|
| 3030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3031 | (eval $ac_try) 2>&5 |
---|
| 3032 | ac_status=$? |
---|
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3034 | (exit $ac_status); }; } && |
---|
| 3035 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3037 | (eval $ac_try) 2>&5 |
---|
| 3038 | ac_status=$? |
---|
| 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3040 | (exit $ac_status); }; }; then |
---|
| 3041 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3042 | break |
---|
| 3043 | else |
---|
| 3044 | echo "$as_me: failed program was:" >&5 |
---|
| 3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3046 | |
---|
| 3047 | fi |
---|
| 3048 | rm -f conftest.err conftest.$ac_objext |
---|
| 3049 | done |
---|
| 3050 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3051 | CC=$ac_save_CC |
---|
| 3052 | |
---|
| 3053 | fi |
---|
| 3054 | |
---|
| 3055 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3056 | x|xno) |
---|
| 3057 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3058 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3059 | *) |
---|
| 3060 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3061 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3062 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3063 | esac |
---|
| 3064 | |
---|
| 3065 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3066 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3067 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3068 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3069 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3070 | #ifndef __cplusplus |
---|
| 3071 | choke me |
---|
| 3072 | #endif |
---|
| 3073 | _ACEOF |
---|
| 3074 | rm -f conftest.$ac_objext |
---|
| 3075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3076 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3077 | ac_status=$? |
---|
| 3078 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3079 | rm -f conftest.er1 |
---|
| 3080 | cat conftest.err >&5 |
---|
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3082 | (exit $ac_status); } && |
---|
| 3083 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3084 | || test ! -s conftest.err' |
---|
| 3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3086 | (eval $ac_try) 2>&5 |
---|
| 3087 | ac_status=$? |
---|
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3089 | (exit $ac_status); }; } && |
---|
| 3090 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3092 | (eval $ac_try) 2>&5 |
---|
| 3093 | ac_status=$? |
---|
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3095 | (exit $ac_status); }; }; then |
---|
| 3096 | for ac_declaration in \ |
---|
| 3097 | '' \ |
---|
| 3098 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3099 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3100 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3101 | 'extern "C" void exit (int);' \ |
---|
| 3102 | 'void exit (int);' |
---|
| 3103 | do |
---|
| 3104 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3105 | /* confdefs.h. */ |
---|
| 3106 | _ACEOF |
---|
| 3107 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3108 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3109 | /* end confdefs.h. */ |
---|
| 3110 | $ac_declaration |
---|
| 3111 | #include <stdlib.h> |
---|
| 3112 | int |
---|
| 3113 | main () |
---|
| 3114 | { |
---|
| 3115 | exit (42); |
---|
| 3116 | ; |
---|
| 3117 | return 0; |
---|
| 3118 | } |
---|
| 3119 | _ACEOF |
---|
| 3120 | rm -f conftest.$ac_objext |
---|
| 3121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3122 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3123 | ac_status=$? |
---|
| 3124 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3125 | rm -f conftest.er1 |
---|
| 3126 | cat conftest.err >&5 |
---|
| 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3128 | (exit $ac_status); } && |
---|
| 3129 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3130 | || test ! -s conftest.err' |
---|
| 3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3132 | (eval $ac_try) 2>&5 |
---|
| 3133 | ac_status=$? |
---|
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3135 | (exit $ac_status); }; } && |
---|
| 3136 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3138 | (eval $ac_try) 2>&5 |
---|
| 3139 | ac_status=$? |
---|
| 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3141 | (exit $ac_status); }; }; then |
---|
| 3142 | : |
---|
| 3143 | else |
---|
| 3144 | echo "$as_me: failed program was:" >&5 |
---|
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3146 | |
---|
| 3147 | continue |
---|
| 3148 | fi |
---|
| 3149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3150 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3151 | /* confdefs.h. */ |
---|
| 3152 | _ACEOF |
---|
| 3153 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3155 | /* end confdefs.h. */ |
---|
| 3156 | $ac_declaration |
---|
| 3157 | int |
---|
| 3158 | main () |
---|
| 3159 | { |
---|
| 3160 | exit (42); |
---|
| 3161 | ; |
---|
| 3162 | return 0; |
---|
| 3163 | } |
---|
| 3164 | _ACEOF |
---|
| 3165 | rm -f conftest.$ac_objext |
---|
| 3166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3167 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3168 | ac_status=$? |
---|
| 3169 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3170 | rm -f conftest.er1 |
---|
| 3171 | cat conftest.err >&5 |
---|
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3173 | (exit $ac_status); } && |
---|
| 3174 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3175 | || test ! -s conftest.err' |
---|
| 3176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3177 | (eval $ac_try) 2>&5 |
---|
| 3178 | ac_status=$? |
---|
| 3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3180 | (exit $ac_status); }; } && |
---|
| 3181 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3183 | (eval $ac_try) 2>&5 |
---|
| 3184 | ac_status=$? |
---|
| 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3186 | (exit $ac_status); }; }; then |
---|
| 3187 | break |
---|
| 3188 | else |
---|
| 3189 | echo "$as_me: failed program was:" >&5 |
---|
| 3190 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3191 | |
---|
| 3192 | fi |
---|
| 3193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3194 | done |
---|
| 3195 | rm -f conftest* |
---|
| 3196 | if test -n "$ac_declaration"; then |
---|
| 3197 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3198 | echo $ac_declaration >>confdefs.h |
---|
| 3199 | echo '#endif' >>confdefs.h |
---|
| 3200 | fi |
---|
| 3201 | |
---|
| 3202 | else |
---|
| 3203 | echo "$as_me: failed program was:" >&5 |
---|
| 3204 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3205 | |
---|
| 3206 | fi |
---|
| 3207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3208 | ac_ext=c |
---|
| 3209 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3213 | |
---|
| 3214 | depcc="$CC" am_compiler_list= |
---|
| 3215 | |
---|
| 3216 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3217 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3218 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3220 | else |
---|
| 3221 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3222 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3223 | # making bogus files that we don't know about and never remove. For |
---|
| 3224 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3225 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3226 | # in D'. |
---|
| 3227 | mkdir conftest.dir |
---|
| 3228 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3229 | # using a relative directory. |
---|
| 3230 | cp "$am_depcomp" conftest.dir |
---|
| 3231 | cd conftest.dir |
---|
| 3232 | # We will build objects and dependencies in a subdirectory because |
---|
| 3233 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3234 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3235 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3236 | # the current directory while Tru64 will put them in the object |
---|
| 3237 | # directory. |
---|
| 3238 | mkdir sub |
---|
| 3239 | |
---|
| 3240 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3241 | if test "$am_compiler_list" = ""; then |
---|
| 3242 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3243 | fi |
---|
| 3244 | for depmode in $am_compiler_list; do |
---|
| 3245 | # Setup a source with many dependencies, because some compilers |
---|
| 3246 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3247 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3248 | # |
---|
| 3249 | # We need to recreate these files for each test, as the compiler may |
---|
| 3250 | # overwrite some of them when testing with obscure command lines. |
---|
| 3251 | # This happens at least with the AIX C compiler. |
---|
| 3252 | : > sub/conftest.c |
---|
| 3253 | for i in 1 2 3 4 5 6; do |
---|
| 3254 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2705] | 3255 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3256 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3257 | touch sub/conftst$i.h |
---|
[1956] | 3258 | done |
---|
| 3259 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3260 | |
---|
| 3261 | case $depmode in |
---|
| 3262 | nosideeffect) |
---|
| 3263 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3264 | # only be used when explicitly requested |
---|
| 3265 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3266 | continue |
---|
| 3267 | else |
---|
| 3268 | break |
---|
| 3269 | fi |
---|
| 3270 | ;; |
---|
| 3271 | none) break ;; |
---|
| 3272 | esac |
---|
| 3273 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3274 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3275 | # handle `-M -o', and we need to detect this. |
---|
| 3276 | if depmode=$depmode \ |
---|
| 3277 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3278 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3279 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3280 | >/dev/null 2>conftest.err && |
---|
| 3281 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3282 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3283 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3284 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2705] | 3285 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3286 | # that says an option was ignored or not supported. |
---|
| 3287 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3288 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3289 | # The diagnosis changed in icc 8.0: |
---|
| 3290 | # icc: Command line remark: option '-MP' not supported |
---|
| 3291 | if (grep 'ignoring option' conftest.err || |
---|
| 3292 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3293 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3294 | break |
---|
| 3295 | fi |
---|
| 3296 | fi |
---|
| 3297 | done |
---|
| 3298 | |
---|
| 3299 | cd .. |
---|
| 3300 | rm -rf conftest.dir |
---|
| 3301 | else |
---|
| 3302 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3303 | fi |
---|
| 3304 | |
---|
| 3305 | fi |
---|
| 3306 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3307 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3308 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3309 | |
---|
| 3310 | |
---|
| 3311 | |
---|
| 3312 | if |
---|
| 3313 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3314 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3315 | am__fastdepCC_TRUE= |
---|
| 3316 | am__fastdepCC_FALSE='#' |
---|
| 3317 | else |
---|
| 3318 | am__fastdepCC_TRUE='#' |
---|
| 3319 | am__fastdepCC_FALSE= |
---|
| 3320 | fi |
---|
| 3321 | |
---|
| 3322 | |
---|
| 3323 | |
---|
| 3324 | |
---|
[2701] | 3325 | # checking gl header (has to be here because of a Linux error) |
---|
[1956] | 3326 | |
---|
[1971] | 3327 | ac_ext=c |
---|
| 3328 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3332 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3333 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3334 | # On Suns, sometimes $CPP names a directory. |
---|
| 3335 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3336 | CPP= |
---|
| 3337 | fi |
---|
| 3338 | if test -z "$CPP"; then |
---|
| 3339 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3341 | else |
---|
[1971] | 3342 | # Double quotes because CPP needs to be expanded |
---|
| 3343 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3344 | do |
---|
| 3345 | ac_preproc_ok=false |
---|
| 3346 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3347 | do |
---|
| 3348 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3349 | # with a fresh cross-compiler works. |
---|
| 3350 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3351 | # <limits.h> exists even on freestanding compilers. |
---|
| 3352 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3353 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3354 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3355 | /* confdefs.h. */ |
---|
| 3356 | _ACEOF |
---|
| 3357 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3358 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3359 | /* end confdefs.h. */ |
---|
| 3360 | #ifdef __STDC__ |
---|
| 3361 | # include <limits.h> |
---|
| 3362 | #else |
---|
| 3363 | # include <assert.h> |
---|
| 3364 | #endif |
---|
| 3365 | Syntax error |
---|
| 3366 | _ACEOF |
---|
| 3367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3368 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3369 | ac_status=$? |
---|
| 3370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3371 | rm -f conftest.er1 |
---|
| 3372 | cat conftest.err >&5 |
---|
| 3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3374 | (exit $ac_status); } >/dev/null; then |
---|
| 3375 | if test -s conftest.err; then |
---|
| 3376 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3377 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3378 | else |
---|
| 3379 | ac_cpp_err= |
---|
| 3380 | fi |
---|
| 3381 | else |
---|
| 3382 | ac_cpp_err=yes |
---|
| 3383 | fi |
---|
| 3384 | if test -z "$ac_cpp_err"; then |
---|
| 3385 | : |
---|
| 3386 | else |
---|
| 3387 | echo "$as_me: failed program was:" >&5 |
---|
| 3388 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3389 | |
---|
| 3390 | # Broken: fails on valid input. |
---|
| 3391 | continue |
---|
| 3392 | fi |
---|
| 3393 | rm -f conftest.err conftest.$ac_ext |
---|
| 3394 | |
---|
| 3395 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3396 | # can be detected and how. |
---|
| 3397 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3398 | /* confdefs.h. */ |
---|
| 3399 | _ACEOF |
---|
| 3400 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3401 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3402 | /* end confdefs.h. */ |
---|
| 3403 | #include <ac_nonexistent.h> |
---|
| 3404 | _ACEOF |
---|
| 3405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3407 | ac_status=$? |
---|
| 3408 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3409 | rm -f conftest.er1 |
---|
| 3410 | cat conftest.err >&5 |
---|
| 3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3412 | (exit $ac_status); } >/dev/null; then |
---|
| 3413 | if test -s conftest.err; then |
---|
| 3414 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3416 | else |
---|
| 3417 | ac_cpp_err= |
---|
| 3418 | fi |
---|
| 3419 | else |
---|
| 3420 | ac_cpp_err=yes |
---|
| 3421 | fi |
---|
| 3422 | if test -z "$ac_cpp_err"; then |
---|
| 3423 | # Broken: success on invalid input. |
---|
| 3424 | continue |
---|
| 3425 | else |
---|
| 3426 | echo "$as_me: failed program was:" >&5 |
---|
| 3427 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3428 | |
---|
| 3429 | # Passes both tests. |
---|
| 3430 | ac_preproc_ok=: |
---|
| 3431 | break |
---|
| 3432 | fi |
---|
| 3433 | rm -f conftest.err conftest.$ac_ext |
---|
| 3434 | |
---|
| 3435 | done |
---|
| 3436 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3437 | rm -f conftest.err conftest.$ac_ext |
---|
| 3438 | if $ac_preproc_ok; then |
---|
| 3439 | break |
---|
| 3440 | fi |
---|
| 3441 | |
---|
| 3442 | done |
---|
| 3443 | ac_cv_prog_CPP=$CPP |
---|
| 3444 | |
---|
| 3445 | fi |
---|
| 3446 | CPP=$ac_cv_prog_CPP |
---|
| 3447 | else |
---|
| 3448 | ac_cv_prog_CPP=$CPP |
---|
| 3449 | fi |
---|
| 3450 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3451 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3452 | ac_preproc_ok=false |
---|
| 3453 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3454 | do |
---|
| 3455 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3456 | # with a fresh cross-compiler works. |
---|
| 3457 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3458 | # <limits.h> exists even on freestanding compilers. |
---|
| 3459 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3460 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3461 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3462 | /* confdefs.h. */ |
---|
| 3463 | _ACEOF |
---|
| 3464 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3466 | /* end confdefs.h. */ |
---|
| 3467 | #ifdef __STDC__ |
---|
| 3468 | # include <limits.h> |
---|
| 3469 | #else |
---|
| 3470 | # include <assert.h> |
---|
| 3471 | #endif |
---|
| 3472 | Syntax error |
---|
| 3473 | _ACEOF |
---|
| 3474 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3475 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3476 | ac_status=$? |
---|
| 3477 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3478 | rm -f conftest.er1 |
---|
| 3479 | cat conftest.err >&5 |
---|
| 3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3481 | (exit $ac_status); } >/dev/null; then |
---|
| 3482 | if test -s conftest.err; then |
---|
| 3483 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3484 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3485 | else |
---|
| 3486 | ac_cpp_err= |
---|
| 3487 | fi |
---|
| 3488 | else |
---|
| 3489 | ac_cpp_err=yes |
---|
| 3490 | fi |
---|
| 3491 | if test -z "$ac_cpp_err"; then |
---|
| 3492 | : |
---|
| 3493 | else |
---|
| 3494 | echo "$as_me: failed program was:" >&5 |
---|
| 3495 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3496 | |
---|
| 3497 | # Broken: fails on valid input. |
---|
| 3498 | continue |
---|
| 3499 | fi |
---|
| 3500 | rm -f conftest.err conftest.$ac_ext |
---|
| 3501 | |
---|
| 3502 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3503 | # can be detected and how. |
---|
| 3504 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3505 | /* confdefs.h. */ |
---|
| 3506 | _ACEOF |
---|
| 3507 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3509 | /* end confdefs.h. */ |
---|
| 3510 | #include <ac_nonexistent.h> |
---|
| 3511 | _ACEOF |
---|
| 3512 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3513 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3514 | ac_status=$? |
---|
| 3515 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3516 | rm -f conftest.er1 |
---|
| 3517 | cat conftest.err >&5 |
---|
| 3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3519 | (exit $ac_status); } >/dev/null; then |
---|
| 3520 | if test -s conftest.err; then |
---|
| 3521 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3522 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3523 | else |
---|
| 3524 | ac_cpp_err= |
---|
| 3525 | fi |
---|
| 3526 | else |
---|
| 3527 | ac_cpp_err=yes |
---|
| 3528 | fi |
---|
| 3529 | if test -z "$ac_cpp_err"; then |
---|
| 3530 | # Broken: success on invalid input. |
---|
| 3531 | continue |
---|
| 3532 | else |
---|
| 3533 | echo "$as_me: failed program was:" >&5 |
---|
| 3534 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3535 | |
---|
| 3536 | # Passes both tests. |
---|
| 3537 | ac_preproc_ok=: |
---|
| 3538 | break |
---|
| 3539 | fi |
---|
| 3540 | rm -f conftest.err conftest.$ac_ext |
---|
| 3541 | |
---|
| 3542 | done |
---|
| 3543 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3544 | rm -f conftest.err conftest.$ac_ext |
---|
| 3545 | if $ac_preproc_ok; then |
---|
| 3546 | : |
---|
| 3547 | else |
---|
| 3548 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3549 | See \`config.log' for more details." >&5 |
---|
| 3550 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3551 | See \`config.log' for more details." >&2;} |
---|
| 3552 | { (exit 1); exit 1; }; } |
---|
| 3553 | fi |
---|
| 3554 | |
---|
| 3555 | ac_ext=c |
---|
| 3556 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3560 | |
---|
| 3561 | |
---|
| 3562 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3563 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3564 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3566 | else |
---|
| 3567 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3568 | then ac_cv_prog_egrep='grep -E' |
---|
| 3569 | else ac_cv_prog_egrep='egrep' |
---|
| 3570 | fi |
---|
| 3571 | fi |
---|
| 3572 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3573 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3574 | EGREP=$ac_cv_prog_egrep |
---|
| 3575 | |
---|
| 3576 | |
---|
| 3577 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3578 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3579 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3581 | else |
---|
| 3582 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3583 | /* confdefs.h. */ |
---|
| 3584 | _ACEOF |
---|
| 3585 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3587 | /* end confdefs.h. */ |
---|
| 3588 | #include <stdlib.h> |
---|
| 3589 | #include <stdarg.h> |
---|
| 3590 | #include <string.h> |
---|
| 3591 | #include <float.h> |
---|
| 3592 | |
---|
| 3593 | int |
---|
| 3594 | main () |
---|
| 3595 | { |
---|
| 3596 | |
---|
| 3597 | ; |
---|
| 3598 | return 0; |
---|
| 3599 | } |
---|
| 3600 | _ACEOF |
---|
| 3601 | rm -f conftest.$ac_objext |
---|
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3603 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3604 | ac_status=$? |
---|
| 3605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3606 | rm -f conftest.er1 |
---|
| 3607 | cat conftest.err >&5 |
---|
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3609 | (exit $ac_status); } && |
---|
| 3610 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3611 | || test ! -s conftest.err' |
---|
| 3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3613 | (eval $ac_try) 2>&5 |
---|
| 3614 | ac_status=$? |
---|
| 3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3616 | (exit $ac_status); }; } && |
---|
| 3617 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3619 | (eval $ac_try) 2>&5 |
---|
| 3620 | ac_status=$? |
---|
| 3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3622 | (exit $ac_status); }; }; then |
---|
| 3623 | ac_cv_header_stdc=yes |
---|
| 3624 | else |
---|
| 3625 | echo "$as_me: failed program was:" >&5 |
---|
| 3626 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3627 | |
---|
| 3628 | ac_cv_header_stdc=no |
---|
| 3629 | fi |
---|
| 3630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3631 | |
---|
| 3632 | if test $ac_cv_header_stdc = yes; then |
---|
| 3633 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3634 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3635 | /* confdefs.h. */ |
---|
| 3636 | _ACEOF |
---|
| 3637 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3638 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3639 | /* end confdefs.h. */ |
---|
| 3640 | #include <string.h> |
---|
| 3641 | |
---|
| 3642 | _ACEOF |
---|
| 3643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3644 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3645 | : |
---|
| 3646 | else |
---|
| 3647 | ac_cv_header_stdc=no |
---|
| 3648 | fi |
---|
| 3649 | rm -f conftest* |
---|
| 3650 | |
---|
| 3651 | fi |
---|
| 3652 | |
---|
| 3653 | if test $ac_cv_header_stdc = yes; then |
---|
| 3654 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3655 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3656 | /* confdefs.h. */ |
---|
| 3657 | _ACEOF |
---|
| 3658 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3659 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3660 | /* end confdefs.h. */ |
---|
| 3661 | #include <stdlib.h> |
---|
| 3662 | |
---|
| 3663 | _ACEOF |
---|
| 3664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3665 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3666 | : |
---|
| 3667 | else |
---|
| 3668 | ac_cv_header_stdc=no |
---|
| 3669 | fi |
---|
| 3670 | rm -f conftest* |
---|
| 3671 | |
---|
| 3672 | fi |
---|
| 3673 | |
---|
| 3674 | if test $ac_cv_header_stdc = yes; then |
---|
| 3675 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3676 | if test "$cross_compiling" = yes; then |
---|
| 3677 | : |
---|
| 3678 | else |
---|
| 3679 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3680 | /* confdefs.h. */ |
---|
| 3681 | _ACEOF |
---|
| 3682 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3683 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3684 | /* end confdefs.h. */ |
---|
| 3685 | #include <ctype.h> |
---|
| 3686 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3687 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3688 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3689 | #else |
---|
| 3690 | # define ISLOWER(c) \ |
---|
| 3691 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3692 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3693 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3694 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3695 | #endif |
---|
| 3696 | |
---|
| 3697 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3698 | int |
---|
| 3699 | main () |
---|
| 3700 | { |
---|
| 3701 | int i; |
---|
| 3702 | for (i = 0; i < 256; i++) |
---|
| 3703 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3704 | || toupper (i) != TOUPPER (i)) |
---|
| 3705 | exit(2); |
---|
| 3706 | exit (0); |
---|
| 3707 | } |
---|
| 3708 | _ACEOF |
---|
| 3709 | rm -f conftest$ac_exeext |
---|
| 3710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3711 | (eval $ac_link) 2>&5 |
---|
| 3712 | ac_status=$? |
---|
| 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3716 | (eval $ac_try) 2>&5 |
---|
| 3717 | ac_status=$? |
---|
| 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3719 | (exit $ac_status); }; }; then |
---|
| 3720 | : |
---|
| 3721 | else |
---|
| 3722 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3723 | echo "$as_me: failed program was:" >&5 |
---|
| 3724 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3725 | |
---|
| 3726 | ( exit $ac_status ) |
---|
| 3727 | ac_cv_header_stdc=no |
---|
| 3728 | fi |
---|
| 3729 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3730 | fi |
---|
| 3731 | fi |
---|
| 3732 | fi |
---|
| 3733 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3734 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3735 | if test $ac_cv_header_stdc = yes; then |
---|
| 3736 | |
---|
| 3737 | cat >>confdefs.h <<\_ACEOF |
---|
| 3738 | #define STDC_HEADERS 1 |
---|
| 3739 | _ACEOF |
---|
| 3740 | |
---|
| 3741 | fi |
---|
| 3742 | |
---|
| 3743 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3744 | |
---|
| 3745 | |
---|
| 3746 | |
---|
| 3747 | |
---|
| 3748 | |
---|
| 3749 | |
---|
| 3750 | |
---|
| 3751 | |
---|
| 3752 | |
---|
| 3753 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3754 | inttypes.h stdint.h unistd.h |
---|
| 3755 | do |
---|
| 3756 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3757 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3761 | else |
---|
| 3762 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3763 | /* confdefs.h. */ |
---|
| 3764 | _ACEOF |
---|
| 3765 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3766 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3767 | /* end confdefs.h. */ |
---|
| 3768 | $ac_includes_default |
---|
| 3769 | |
---|
| 3770 | #include <$ac_header> |
---|
| 3771 | _ACEOF |
---|
| 3772 | rm -f conftest.$ac_objext |
---|
| 3773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3774 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3775 | ac_status=$? |
---|
| 3776 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3777 | rm -f conftest.er1 |
---|
| 3778 | cat conftest.err >&5 |
---|
| 3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3780 | (exit $ac_status); } && |
---|
| 3781 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3782 | || test ! -s conftest.err' |
---|
| 3783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3784 | (eval $ac_try) 2>&5 |
---|
| 3785 | ac_status=$? |
---|
| 3786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3787 | (exit $ac_status); }; } && |
---|
| 3788 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3790 | (eval $ac_try) 2>&5 |
---|
| 3791 | ac_status=$? |
---|
| 3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3793 | (exit $ac_status); }; }; then |
---|
| 3794 | eval "$as_ac_Header=yes" |
---|
| 3795 | else |
---|
| 3796 | echo "$as_me: failed program was:" >&5 |
---|
| 3797 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3798 | |
---|
| 3799 | eval "$as_ac_Header=no" |
---|
| 3800 | fi |
---|
| 3801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3802 | fi |
---|
| 3803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3805 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3806 | cat >>confdefs.h <<_ACEOF |
---|
| 3807 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3808 | _ACEOF |
---|
| 3809 | |
---|
| 3810 | fi |
---|
| 3811 | |
---|
| 3812 | done |
---|
| 3813 | |
---|
| 3814 | |
---|
| 3815 | |
---|
| 3816 | for ac_header in GL/gl.h |
---|
| 3817 | do |
---|
| 3818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3819 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3824 | fi |
---|
| 3825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3827 | else |
---|
| 3828 | # Is the header compilable? |
---|
| 3829 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3830 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3831 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3832 | /* confdefs.h. */ |
---|
| 3833 | _ACEOF |
---|
| 3834 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3835 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3836 | /* end confdefs.h. */ |
---|
| 3837 | $ac_includes_default |
---|
| 3838 | #include <$ac_header> |
---|
| 3839 | _ACEOF |
---|
| 3840 | rm -f conftest.$ac_objext |
---|
| 3841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3842 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3843 | ac_status=$? |
---|
| 3844 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3845 | rm -f conftest.er1 |
---|
| 3846 | cat conftest.err >&5 |
---|
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3848 | (exit $ac_status); } && |
---|
| 3849 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3850 | || test ! -s conftest.err' |
---|
| 3851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3852 | (eval $ac_try) 2>&5 |
---|
| 3853 | ac_status=$? |
---|
| 3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3855 | (exit $ac_status); }; } && |
---|
| 3856 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3858 | (eval $ac_try) 2>&5 |
---|
| 3859 | ac_status=$? |
---|
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3861 | (exit $ac_status); }; }; then |
---|
| 3862 | ac_header_compiler=yes |
---|
| 3863 | else |
---|
| 3864 | echo "$as_me: failed program was:" >&5 |
---|
| 3865 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3866 | |
---|
| 3867 | ac_header_compiler=no |
---|
| 3868 | fi |
---|
| 3869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3871 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3872 | |
---|
| 3873 | # Is the header present? |
---|
| 3874 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3875 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3876 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3877 | /* confdefs.h. */ |
---|
| 3878 | _ACEOF |
---|
| 3879 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3880 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3881 | /* end confdefs.h. */ |
---|
| 3882 | #include <$ac_header> |
---|
| 3883 | _ACEOF |
---|
| 3884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3886 | ac_status=$? |
---|
| 3887 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3888 | rm -f conftest.er1 |
---|
| 3889 | cat conftest.err >&5 |
---|
| 3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3891 | (exit $ac_status); } >/dev/null; then |
---|
| 3892 | if test -s conftest.err; then |
---|
| 3893 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3894 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3895 | else |
---|
| 3896 | ac_cpp_err= |
---|
| 3897 | fi |
---|
| 3898 | else |
---|
| 3899 | ac_cpp_err=yes |
---|
| 3900 | fi |
---|
| 3901 | if test -z "$ac_cpp_err"; then |
---|
| 3902 | ac_header_preproc=yes |
---|
| 3903 | else |
---|
| 3904 | echo "$as_me: failed program was:" >&5 |
---|
| 3905 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3906 | |
---|
| 3907 | ac_header_preproc=no |
---|
| 3908 | fi |
---|
| 3909 | rm -f conftest.err conftest.$ac_ext |
---|
| 3910 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3911 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3912 | |
---|
| 3913 | # So? What about this header? |
---|
| 3914 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 3915 | yes:no: ) |
---|
| 3916 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3917 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 3918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 3919 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 3920 | ac_header_preproc=yes |
---|
| 3921 | ;; |
---|
| 3922 | no:yes:* ) |
---|
| 3923 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3924 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 3925 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3926 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3927 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 3928 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 3929 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 3930 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 3931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3932 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3933 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 3934 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 3935 | ( |
---|
| 3936 | cat <<\_ASBOX |
---|
| 3937 | ## ------------------------------------------- ## |
---|
| 3938 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 3939 | ## ------------------------------------------- ## |
---|
| 3940 | _ASBOX |
---|
| 3941 | ) | |
---|
| 3942 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3943 | ;; |
---|
| 3944 | esac |
---|
| 3945 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3949 | else |
---|
| 3950 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 3951 | fi |
---|
| 3952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3954 | |
---|
| 3955 | fi |
---|
| 3956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3957 | cat >>confdefs.h <<_ACEOF |
---|
| 3958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3959 | _ACEOF |
---|
| 3960 | |
---|
| 3961 | else |
---|
| 3962 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 3963 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 3964 | { (exit 1); exit 1; }; } |
---|
| 3965 | fi |
---|
| 3966 | |
---|
| 3967 | done |
---|
| 3968 | |
---|
| 3969 | |
---|
[1956] | 3970 | |
---|
[1971] | 3971 | |
---|
[2701] | 3972 | ### CHECKING FOR SYSTEM ### |
---|
[1956] | 3973 | |
---|
[2701] | 3974 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 3975 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
| 3976 | case `uname` in |
---|
| 3977 | ### WINDOWS ### |
---|
| 3978 | *MINGW*) |
---|
| 3979 | echo "mingw-WINDOWS detected" |
---|
[1959] | 3980 | |
---|
[2701] | 3981 | mingw="yes" |
---|
| 3982 | MSBITFIELDS="-mms-bitfields" |
---|
| 3983 | MWINDOWS="-mwindows" |
---|
| 3984 | |
---|
| 3985 | # checking gl header |
---|
| 3986 | #done before loop |
---|
| 3987 | |
---|
| 3988 | # checking for Windows openGl library |
---|
[1971] | 3989 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 3990 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 3991 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 3992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3993 | else |
---|
| 3994 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3995 | LIBS="-lopengl32 $LIBS" |
---|
| 3996 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3997 | /* confdefs.h. */ |
---|
[1956] | 3998 | _ACEOF |
---|
[1959] | 3999 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4001 | /* end confdefs.h. */ |
---|
[1956] | 4002 | |
---|
[1971] | 4003 | |
---|
[1959] | 4004 | int |
---|
| 4005 | main () |
---|
| 4006 | { |
---|
[1971] | 4007 | main (); |
---|
[1959] | 4008 | ; |
---|
| 4009 | return 0; |
---|
| 4010 | } |
---|
| 4011 | _ACEOF |
---|
| 4012 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4014 | (eval $ac_link) 2>conftest.er1 |
---|
| 4015 | ac_status=$? |
---|
| 4016 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4017 | rm -f conftest.er1 |
---|
| 4018 | cat conftest.err >&5 |
---|
| 4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4020 | (exit $ac_status); } && |
---|
| 4021 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4022 | || test ! -s conftest.err' |
---|
| 4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4024 | (eval $ac_try) 2>&5 |
---|
| 4025 | ac_status=$? |
---|
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4027 | (exit $ac_status); }; } && |
---|
| 4028 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4030 | (eval $ac_try) 2>&5 |
---|
| 4031 | ac_status=$? |
---|
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4033 | (exit $ac_status); }; }; then |
---|
[1971] | 4034 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4035 | else |
---|
| 4036 | echo "$as_me: failed program was:" >&5 |
---|
| 4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4038 | |
---|
[1971] | 4039 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4040 | fi |
---|
[1959] | 4041 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4042 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4043 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4044 | fi |
---|
[1971] | 4045 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4046 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4047 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4048 | FOUND_opengl32=yes |
---|
| 4049 | else |
---|
| 4050 | "gl/gl.h" |
---|
[1959] | 4051 | fi |
---|
[1956] | 4052 | |
---|
[1971] | 4053 | if test "$FOUND_opengl32" = "yes" ; then |
---|
[1959] | 4054 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4055 | else |
---|
[1959] | 4056 | echo "------------------" |
---|
| 4057 | echo "opengl not found." |
---|
| 4058 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4059 | echo "------------------" |
---|
| 4060 | exit -1 |
---|
| 4061 | fi |
---|
| 4062 | |
---|
[2701] | 4063 | # cheking for GLU-header |
---|
[1971] | 4064 | |
---|
| 4065 | for ac_header in GL/glu.h |
---|
| 4066 | do |
---|
| 4067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4073 | fi |
---|
| 4074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4076 | else |
---|
| 4077 | # Is the header compilable? |
---|
| 4078 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4079 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4080 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4081 | /* confdefs.h. */ |
---|
| 4082 | _ACEOF |
---|
| 4083 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4084 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4085 | /* end confdefs.h. */ |
---|
| 4086 | $ac_includes_default |
---|
| 4087 | #include <$ac_header> |
---|
| 4088 | _ACEOF |
---|
| 4089 | rm -f conftest.$ac_objext |
---|
| 4090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4091 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4092 | ac_status=$? |
---|
| 4093 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4094 | rm -f conftest.er1 |
---|
| 4095 | cat conftest.err >&5 |
---|
| 4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4097 | (exit $ac_status); } && |
---|
| 4098 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4099 | || test ! -s conftest.err' |
---|
| 4100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4101 | (eval $ac_try) 2>&5 |
---|
| 4102 | ac_status=$? |
---|
| 4103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4104 | (exit $ac_status); }; } && |
---|
| 4105 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4107 | (eval $ac_try) 2>&5 |
---|
| 4108 | ac_status=$? |
---|
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4110 | (exit $ac_status); }; }; then |
---|
| 4111 | ac_header_compiler=yes |
---|
| 4112 | else |
---|
| 4113 | echo "$as_me: failed program was:" >&5 |
---|
| 4114 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4115 | |
---|
| 4116 | ac_header_compiler=no |
---|
| 4117 | fi |
---|
| 4118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4120 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4121 | |
---|
| 4122 | # Is the header present? |
---|
| 4123 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4125 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4126 | /* confdefs.h. */ |
---|
| 4127 | _ACEOF |
---|
| 4128 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4129 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4130 | /* end confdefs.h. */ |
---|
| 4131 | #include <$ac_header> |
---|
| 4132 | _ACEOF |
---|
| 4133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4135 | ac_status=$? |
---|
| 4136 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4137 | rm -f conftest.er1 |
---|
| 4138 | cat conftest.err >&5 |
---|
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4140 | (exit $ac_status); } >/dev/null; then |
---|
| 4141 | if test -s conftest.err; then |
---|
| 4142 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4144 | else |
---|
| 4145 | ac_cpp_err= |
---|
| 4146 | fi |
---|
| 4147 | else |
---|
| 4148 | ac_cpp_err=yes |
---|
| 4149 | fi |
---|
| 4150 | if test -z "$ac_cpp_err"; then |
---|
| 4151 | ac_header_preproc=yes |
---|
| 4152 | else |
---|
| 4153 | echo "$as_me: failed program was:" >&5 |
---|
| 4154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4155 | |
---|
| 4156 | ac_header_preproc=no |
---|
| 4157 | fi |
---|
| 4158 | rm -f conftest.err conftest.$ac_ext |
---|
| 4159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4160 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4161 | |
---|
| 4162 | # So? What about this header? |
---|
| 4163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4164 | yes:no: ) |
---|
| 4165 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4166 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4168 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4169 | ac_header_preproc=yes |
---|
| 4170 | ;; |
---|
| 4171 | no:yes:* ) |
---|
| 4172 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4173 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4174 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4175 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4176 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4177 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4178 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4179 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4181 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4182 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4183 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4184 | ( |
---|
| 4185 | cat <<\_ASBOX |
---|
| 4186 | ## ------------------------------------------- ## |
---|
| 4187 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4188 | ## ------------------------------------------- ## |
---|
| 4189 | _ASBOX |
---|
| 4190 | ) | |
---|
| 4191 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4192 | ;; |
---|
| 4193 | esac |
---|
| 4194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4198 | else |
---|
| 4199 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4200 | fi |
---|
| 4201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4202 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4203 | |
---|
| 4204 | fi |
---|
| 4205 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4206 | cat >>confdefs.h <<_ACEOF |
---|
| 4207 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4208 | _ACEOF |
---|
| 4209 | |
---|
| 4210 | else |
---|
| 4211 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4212 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4213 | { (exit 1); exit 1; }; } |
---|
| 4214 | fi |
---|
| 4215 | |
---|
| 4216 | done |
---|
| 4217 | |
---|
| 4218 | |
---|
[2701] | 4219 | # checking for libGLU |
---|
| 4220 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4221 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4222 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4224 | else |
---|
| 4225 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4226 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4227 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4228 | /* confdefs.h. */ |
---|
| 4229 | _ACEOF |
---|
| 4230 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4231 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4232 | /* end confdefs.h. */ |
---|
| 4233 | |
---|
[2701] | 4234 | |
---|
[1956] | 4235 | int |
---|
| 4236 | main () |
---|
| 4237 | { |
---|
[2701] | 4238 | main (); |
---|
[1956] | 4239 | ; |
---|
| 4240 | return 0; |
---|
| 4241 | } |
---|
| 4242 | _ACEOF |
---|
| 4243 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4245 | (eval $ac_link) 2>conftest.er1 |
---|
| 4246 | ac_status=$? |
---|
| 4247 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4248 | rm -f conftest.er1 |
---|
| 4249 | cat conftest.err >&5 |
---|
| 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4251 | (exit $ac_status); } && |
---|
| 4252 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4253 | || test ! -s conftest.err' |
---|
| 4254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4255 | (eval $ac_try) 2>&5 |
---|
| 4256 | ac_status=$? |
---|
| 4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4258 | (exit $ac_status); }; } && |
---|
| 4259 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4261 | (eval $ac_try) 2>&5 |
---|
| 4262 | ac_status=$? |
---|
| 4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4264 | (exit $ac_status); }; }; then |
---|
[2701] | 4265 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4266 | else |
---|
| 4267 | echo "$as_me: failed program was:" >&5 |
---|
| 4268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4269 | |
---|
[2701] | 4270 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4271 | fi |
---|
| 4272 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4273 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4274 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4275 | fi |
---|
[2701] | 4276 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4277 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4278 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4279 | FOUND_glu32=yes |
---|
[1959] | 4280 | fi |
---|
| 4281 | |
---|
[2701] | 4282 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4283 | LIBS="$LIBS -lGLU32" |
---|
| 4284 | else |
---|
| 4285 | echo "------------------" |
---|
| 4286 | echo "GLU library not found." |
---|
| 4287 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4288 | echo "------------------" |
---|
| 4289 | exit -1 |
---|
| 4290 | fi |
---|
| 4291 | |
---|
| 4292 | |
---|
| 4293 | # checking for mingw32 |
---|
| 4294 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4295 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4296 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4298 | else |
---|
| 4299 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4300 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4301 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4302 | /* confdefs.h. */ |
---|
[1956] | 4303 | _ACEOF |
---|
[1959] | 4304 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4305 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4306 | /* end confdefs.h. */ |
---|
[1956] | 4307 | |
---|
[1971] | 4308 | |
---|
[1959] | 4309 | int |
---|
| 4310 | main () |
---|
| 4311 | { |
---|
[1971] | 4312 | main (); |
---|
[1959] | 4313 | ; |
---|
| 4314 | return 0; |
---|
| 4315 | } |
---|
| 4316 | _ACEOF |
---|
| 4317 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4319 | (eval $ac_link) 2>conftest.er1 |
---|
| 4320 | ac_status=$? |
---|
| 4321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4322 | rm -f conftest.er1 |
---|
| 4323 | cat conftest.err >&5 |
---|
| 4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4325 | (exit $ac_status); } && |
---|
| 4326 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4327 | || test ! -s conftest.err' |
---|
| 4328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4329 | (eval $ac_try) 2>&5 |
---|
| 4330 | ac_status=$? |
---|
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4332 | (exit $ac_status); }; } && |
---|
| 4333 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4335 | (eval $ac_try) 2>&5 |
---|
| 4336 | ac_status=$? |
---|
| 4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4338 | (exit $ac_status); }; }; then |
---|
[2701] | 4339 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4340 | else |
---|
| 4341 | echo "$as_me: failed program was:" >&5 |
---|
| 4342 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4343 | |
---|
[2701] | 4344 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4345 | fi |
---|
[1959] | 4346 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4347 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4348 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4349 | fi |
---|
[2701] | 4350 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4351 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4352 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4353 | FOUND_mingw32=yes |
---|
[1959] | 4354 | fi |
---|
[1956] | 4355 | |
---|
[2701] | 4356 | if test $FOUND_mingw32 = "yes"; then |
---|
| 4357 | LIBS="$LIBS -lmingw32" |
---|
| 4358 | fi |
---|
| 4359 | # checking for SDL-headers |
---|
[1959] | 4360 | |
---|
[2701] | 4361 | for ac_header in SDL/SDL.h |
---|
| 4362 | do |
---|
| 4363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4365 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[1959] | 4369 | fi |
---|
[2701] | 4370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4372 | else |
---|
| 4373 | # Is the header compilable? |
---|
| 4374 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4375 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4376 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4377 | /* confdefs.h. */ |
---|
| 4378 | _ACEOF |
---|
| 4379 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4380 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4381 | /* end confdefs.h. */ |
---|
| 4382 | $ac_includes_default |
---|
| 4383 | #include <$ac_header> |
---|
| 4384 | _ACEOF |
---|
| 4385 | rm -f conftest.$ac_objext |
---|
| 4386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4387 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4388 | ac_status=$? |
---|
| 4389 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4390 | rm -f conftest.er1 |
---|
| 4391 | cat conftest.err >&5 |
---|
| 4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4393 | (exit $ac_status); } && |
---|
| 4394 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4395 | || test ! -s conftest.err' |
---|
| 4396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4397 | (eval $ac_try) 2>&5 |
---|
| 4398 | ac_status=$? |
---|
| 4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4400 | (exit $ac_status); }; } && |
---|
| 4401 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4403 | (eval $ac_try) 2>&5 |
---|
| 4404 | ac_status=$? |
---|
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4406 | (exit $ac_status); }; }; then |
---|
| 4407 | ac_header_compiler=yes |
---|
| 4408 | else |
---|
| 4409 | echo "$as_me: failed program was:" >&5 |
---|
| 4410 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1971] | 4411 | |
---|
[2701] | 4412 | ac_header_compiler=no |
---|
| 4413 | fi |
---|
| 4414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4415 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4416 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4417 | |
---|
[2701] | 4418 | # Is the header present? |
---|
| 4419 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4421 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4422 | /* confdefs.h. */ |
---|
| 4423 | _ACEOF |
---|
| 4424 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4425 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4426 | /* end confdefs.h. */ |
---|
| 4427 | #include <$ac_header> |
---|
| 4428 | _ACEOF |
---|
| 4429 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4430 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4431 | ac_status=$? |
---|
| 4432 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4433 | rm -f conftest.er1 |
---|
| 4434 | cat conftest.err >&5 |
---|
| 4435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4436 | (exit $ac_status); } >/dev/null; then |
---|
| 4437 | if test -s conftest.err; then |
---|
| 4438 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4439 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4440 | else |
---|
| 4441 | ac_cpp_err= |
---|
| 4442 | fi |
---|
| 4443 | else |
---|
| 4444 | ac_cpp_err=yes |
---|
| 4445 | fi |
---|
| 4446 | if test -z "$ac_cpp_err"; then |
---|
| 4447 | ac_header_preproc=yes |
---|
| 4448 | else |
---|
| 4449 | echo "$as_me: failed program was:" >&5 |
---|
| 4450 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4451 | |
---|
| 4452 | ac_header_preproc=no |
---|
| 4453 | fi |
---|
| 4454 | rm -f conftest.err conftest.$ac_ext |
---|
| 4455 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4456 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4457 | |
---|
| 4458 | # So? What about this header? |
---|
| 4459 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4460 | yes:no: ) |
---|
| 4461 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4462 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4463 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4464 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4465 | ac_header_preproc=yes |
---|
| 4466 | ;; |
---|
| 4467 | no:yes:* ) |
---|
| 4468 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4469 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4470 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4471 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4472 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4473 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4474 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4475 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4477 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4478 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4479 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4480 | ( |
---|
| 4481 | cat <<\_ASBOX |
---|
| 4482 | ## ------------------------------------------- ## |
---|
| 4483 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4484 | ## ------------------------------------------- ## |
---|
| 4485 | _ASBOX |
---|
| 4486 | ) | |
---|
| 4487 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4488 | ;; |
---|
| 4489 | esac |
---|
| 4490 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[1956] | 4493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4494 | else |
---|
[2701] | 4495 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4496 | fi |
---|
| 4497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4499 | |
---|
| 4500 | fi |
---|
| 4501 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4502 | cat >>confdefs.h <<_ACEOF |
---|
| 4503 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4504 | _ACEOF |
---|
| 4505 | |
---|
| 4506 | else |
---|
| 4507 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4508 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4509 | { (exit 1); exit 1; }; } |
---|
| 4510 | fi |
---|
| 4511 | |
---|
| 4512 | done |
---|
| 4513 | |
---|
| 4514 | |
---|
| 4515 | #checking for libSDL |
---|
| 4516 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4517 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4518 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4520 | else |
---|
[1956] | 4521 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4522 | LIBS="-lsdlmain $LIBS" |
---|
[1956] | 4523 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4524 | /* confdefs.h. */ |
---|
| 4525 | _ACEOF |
---|
| 4526 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4527 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4528 | /* end confdefs.h. */ |
---|
| 4529 | |
---|
| 4530 | |
---|
| 4531 | int |
---|
| 4532 | main () |
---|
| 4533 | { |
---|
| 4534 | main (); |
---|
| 4535 | ; |
---|
| 4536 | return 0; |
---|
| 4537 | } |
---|
| 4538 | _ACEOF |
---|
| 4539 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4541 | (eval $ac_link) 2>conftest.er1 |
---|
| 4542 | ac_status=$? |
---|
| 4543 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4544 | rm -f conftest.er1 |
---|
| 4545 | cat conftest.err >&5 |
---|
| 4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4547 | (exit $ac_status); } && |
---|
| 4548 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4549 | || test ! -s conftest.err' |
---|
| 4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4551 | (eval $ac_try) 2>&5 |
---|
| 4552 | ac_status=$? |
---|
| 4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4554 | (exit $ac_status); }; } && |
---|
| 4555 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4557 | (eval $ac_try) 2>&5 |
---|
| 4558 | ac_status=$? |
---|
| 4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4560 | (exit $ac_status); }; }; then |
---|
[2701] | 4561 | ac_cv_lib_sdlmain_main=yes |
---|
[1956] | 4562 | else |
---|
| 4563 | echo "$as_me: failed program was:" >&5 |
---|
| 4564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4565 | |
---|
[2701] | 4566 | ac_cv_lib_sdlmain_main=no |
---|
[1956] | 4567 | fi |
---|
| 4568 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4569 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4570 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4571 | fi |
---|
[2701] | 4572 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4573 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4574 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4575 | FOUND_sdlmain=yes |
---|
[1956] | 4576 | fi |
---|
| 4577 | |
---|
[2701] | 4578 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
| 4579 | LIBS="$LIBS -lsdlmain" |
---|
| 4580 | else |
---|
| 4581 | echo "------------------" |
---|
| 4582 | echo "SDL library not found." |
---|
| 4583 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4584 | echo "------------------" |
---|
| 4585 | exit 1 |
---|
| 4586 | fi |
---|
| 4587 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4588 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4589 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
[1956] | 4590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4591 | else |
---|
| 4592 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4593 | LIBS="-lsdl $LIBS" |
---|
[1956] | 4594 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4595 | /* confdefs.h. */ |
---|
| 4596 | _ACEOF |
---|
| 4597 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4598 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4599 | /* end confdefs.h. */ |
---|
| 4600 | |
---|
| 4601 | |
---|
| 4602 | int |
---|
| 4603 | main () |
---|
| 4604 | { |
---|
| 4605 | main (); |
---|
| 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 |
---|
[2701] | 4632 | ac_cv_lib_sdl_main=yes |
---|
[1956] | 4633 | else |
---|
| 4634 | echo "$as_me: failed program was:" >&5 |
---|
| 4635 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4636 | |
---|
[2701] | 4637 | ac_cv_lib_sdl_main=no |
---|
[1956] | 4638 | fi |
---|
| 4639 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4640 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4641 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4642 | fi |
---|
[2701] | 4643 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4644 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4645 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4646 | FOUND_sdl=yes |
---|
| 4647 | fi |
---|
[1956] | 4648 | |
---|
[2701] | 4649 | if test "$FOUND_sdl" = "yes" ; then |
---|
| 4650 | LIBS="$LIBS -lsdl" |
---|
| 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 |
---|
[1956] | 4658 | |
---|
[2701] | 4659 | ;; |
---|
[1956] | 4660 | |
---|
[2701] | 4661 | ### LINUX ### |
---|
| 4662 | *Linux*) |
---|
| 4663 | echo "Linux detected" |
---|
[1956] | 4664 | |
---|
[2701] | 4665 | Linux="yes" |
---|
| 4666 | |
---|
| 4667 | # checking gl header |
---|
| 4668 | #has been done befor linux-check |
---|
| 4669 | |
---|
| 4670 | # checking for Unix GL |
---|
| 4671 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 4672 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 4673 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
[1956] | 4674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4675 | else |
---|
| 4676 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4677 | LIBS="-lGL $LIBS" |
---|
[1956] | 4678 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4679 | /* confdefs.h. */ |
---|
| 4680 | _ACEOF |
---|
| 4681 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4682 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4683 | /* end confdefs.h. */ |
---|
| 4684 | |
---|
| 4685 | |
---|
| 4686 | int |
---|
| 4687 | main () |
---|
| 4688 | { |
---|
| 4689 | main (); |
---|
| 4690 | ; |
---|
| 4691 | return 0; |
---|
| 4692 | } |
---|
| 4693 | _ACEOF |
---|
| 4694 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4696 | (eval $ac_link) 2>conftest.er1 |
---|
| 4697 | ac_status=$? |
---|
| 4698 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4699 | rm -f conftest.er1 |
---|
| 4700 | cat conftest.err >&5 |
---|
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4702 | (exit $ac_status); } && |
---|
| 4703 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4704 | || test ! -s conftest.err' |
---|
| 4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4706 | (eval $ac_try) 2>&5 |
---|
| 4707 | ac_status=$? |
---|
| 4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4709 | (exit $ac_status); }; } && |
---|
| 4710 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4712 | (eval $ac_try) 2>&5 |
---|
| 4713 | ac_status=$? |
---|
| 4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4715 | (exit $ac_status); }; }; then |
---|
[2701] | 4716 | ac_cv_lib_GL_main=yes |
---|
[1956] | 4717 | else |
---|
| 4718 | echo "$as_me: failed program was:" >&5 |
---|
| 4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4720 | |
---|
[2701] | 4721 | ac_cv_lib_GL_main=no |
---|
[1956] | 4722 | fi |
---|
| 4723 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4724 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4725 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4726 | fi |
---|
[2701] | 4727 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 4728 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 4729 | if test $ac_cv_lib_GL_main = yes; then |
---|
| 4730 | FOUND_GL=yes |
---|
| 4731 | fi |
---|
| 4732 | |
---|
| 4733 | if test "$FOUND_GL" = "yes" ; then |
---|
| 4734 | LIBS="$LIBS -lGL" |
---|
| 4735 | else |
---|
| 4736 | echo "------------------" |
---|
| 4737 | echo "opengl not found." |
---|
| 4738 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4739 | echo "------------------" |
---|
| 4740 | exit -1 |
---|
| 4741 | fi |
---|
| 4742 | |
---|
| 4743 | # cheking for GLU-header |
---|
| 4744 | |
---|
| 4745 | for ac_header in GL/glu.h |
---|
| 4746 | do |
---|
| 4747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4749 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4753 | fi |
---|
| 4754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4756 | else |
---|
| 4757 | # Is the header compilable? |
---|
| 4758 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4759 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4760 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4761 | /* confdefs.h. */ |
---|
[1956] | 4762 | _ACEOF |
---|
[2701] | 4763 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4764 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4765 | /* end confdefs.h. */ |
---|
| 4766 | $ac_includes_default |
---|
| 4767 | #include <$ac_header> |
---|
| 4768 | _ACEOF |
---|
| 4769 | rm -f conftest.$ac_objext |
---|
| 4770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4771 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4772 | ac_status=$? |
---|
| 4773 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4774 | rm -f conftest.er1 |
---|
| 4775 | cat conftest.err >&5 |
---|
| 4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4777 | (exit $ac_status); } && |
---|
| 4778 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4779 | || test ! -s conftest.err' |
---|
| 4780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4781 | (eval $ac_try) 2>&5 |
---|
| 4782 | ac_status=$? |
---|
| 4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4784 | (exit $ac_status); }; } && |
---|
| 4785 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4787 | (eval $ac_try) 2>&5 |
---|
| 4788 | ac_status=$? |
---|
| 4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4790 | (exit $ac_status); }; }; then |
---|
| 4791 | ac_header_compiler=yes |
---|
| 4792 | else |
---|
| 4793 | echo "$as_me: failed program was:" >&5 |
---|
| 4794 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4795 | |
---|
[2701] | 4796 | ac_header_compiler=no |
---|
| 4797 | fi |
---|
| 4798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4800 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4801 | |
---|
[2701] | 4802 | # Is the header present? |
---|
| 4803 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4805 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4806 | /* confdefs.h. */ |
---|
| 4807 | _ACEOF |
---|
| 4808 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4809 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4810 | /* end confdefs.h. */ |
---|
| 4811 | #include <$ac_header> |
---|
| 4812 | _ACEOF |
---|
| 4813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4815 | ac_status=$? |
---|
| 4816 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4817 | rm -f conftest.er1 |
---|
| 4818 | cat conftest.err >&5 |
---|
| 4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4820 | (exit $ac_status); } >/dev/null; then |
---|
| 4821 | if test -s conftest.err; then |
---|
| 4822 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4823 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4824 | else |
---|
| 4825 | ac_cpp_err= |
---|
| 4826 | fi |
---|
| 4827 | else |
---|
| 4828 | ac_cpp_err=yes |
---|
[1956] | 4829 | fi |
---|
[2701] | 4830 | if test -z "$ac_cpp_err"; then |
---|
| 4831 | ac_header_preproc=yes |
---|
| 4832 | else |
---|
| 4833 | echo "$as_me: failed program was:" >&5 |
---|
| 4834 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4835 | |
---|
[2701] | 4836 | ac_header_preproc=no |
---|
| 4837 | fi |
---|
| 4838 | rm -f conftest.err conftest.$ac_ext |
---|
| 4839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4840 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 4841 | |
---|
[2701] | 4842 | # So? What about this header? |
---|
| 4843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4844 | yes:no: ) |
---|
| 4845 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4846 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4848 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4849 | ac_header_preproc=yes |
---|
| 4850 | ;; |
---|
| 4851 | no:yes:* ) |
---|
| 4852 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4853 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4854 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4855 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4856 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4857 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4858 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4859 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4862 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4863 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4864 | ( |
---|
| 4865 | cat <<\_ASBOX |
---|
| 4866 | ## ------------------------------------------- ## |
---|
| 4867 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4868 | ## ------------------------------------------- ## |
---|
| 4869 | _ASBOX |
---|
| 4870 | ) | |
---|
| 4871 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4872 | ;; |
---|
| 4873 | esac |
---|
| 4874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4878 | else |
---|
[2701] | 4879 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4880 | fi |
---|
| 4881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4883 | |
---|
| 4884 | fi |
---|
| 4885 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4886 | cat >>confdefs.h <<_ACEOF |
---|
| 4887 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4888 | _ACEOF |
---|
| 4889 | |
---|
| 4890 | else |
---|
| 4891 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4892 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4893 | { (exit 1); exit 1; }; } |
---|
| 4894 | fi |
---|
| 4895 | |
---|
| 4896 | done |
---|
| 4897 | |
---|
| 4898 | |
---|
| 4899 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 4900 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 4901 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4903 | else |
---|
[2190] | 4904 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4905 | LIBS="-lGLU $LIBS" |
---|
[2190] | 4906 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4907 | /* confdefs.h. */ |
---|
| 4908 | _ACEOF |
---|
| 4909 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4910 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4911 | /* end confdefs.h. */ |
---|
| 4912 | |
---|
[2701] | 4913 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4914 | #ifdef __cplusplus |
---|
| 4915 | extern "C" |
---|
| 4916 | #endif |
---|
| 4917 | /* We use char because int might match the return type of a gcc2 |
---|
| 4918 | builtin and then its argument prototype would still apply. */ |
---|
| 4919 | char gluProject (); |
---|
[2190] | 4920 | int |
---|
| 4921 | main () |
---|
| 4922 | { |
---|
[2701] | 4923 | gluProject (); |
---|
[2190] | 4924 | ; |
---|
| 4925 | return 0; |
---|
| 4926 | } |
---|
| 4927 | _ACEOF |
---|
| 4928 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4930 | (eval $ac_link) 2>conftest.er1 |
---|
| 4931 | ac_status=$? |
---|
| 4932 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4933 | rm -f conftest.er1 |
---|
| 4934 | cat conftest.err >&5 |
---|
| 4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4936 | (exit $ac_status); } && |
---|
| 4937 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4938 | || test ! -s conftest.err' |
---|
| 4939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4940 | (eval $ac_try) 2>&5 |
---|
| 4941 | ac_status=$? |
---|
| 4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4943 | (exit $ac_status); }; } && |
---|
| 4944 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4946 | (eval $ac_try) 2>&5 |
---|
| 4947 | ac_status=$? |
---|
| 4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4949 | (exit $ac_status); }; }; then |
---|
[2701] | 4950 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 4951 | else |
---|
| 4952 | echo "$as_me: failed program was:" >&5 |
---|
| 4953 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4954 | |
---|
[2701] | 4955 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 4956 | fi |
---|
| 4957 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4958 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4959 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4960 | fi |
---|
[2701] | 4961 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 4962 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 4963 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 4964 | FOUND_GLU=yes |
---|
[2190] | 4965 | fi |
---|
| 4966 | |
---|
[2701] | 4967 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 4968 | LIBS="$LIBS -lGLU" |
---|
| 4969 | else |
---|
| 4970 | echo "------------------" |
---|
| 4971 | echo "GLU library not found." |
---|
| 4972 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4973 | echo "------------------" |
---|
| 4974 | exit -1 |
---|
| 4975 | fi |
---|
[2190] | 4976 | |
---|
[2701] | 4977 | # checking for SDL-headers |
---|
[2190] | 4978 | |
---|
| 4979 | for ac_header in SDL/SDL.h |
---|
| 4980 | do |
---|
| 4981 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4983 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4987 | fi |
---|
| 4988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4989 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4990 | else |
---|
| 4991 | # Is the header compilable? |
---|
| 4992 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4993 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4994 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4995 | /* confdefs.h. */ |
---|
| 4996 | _ACEOF |
---|
| 4997 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4998 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4999 | /* end confdefs.h. */ |
---|
| 5000 | $ac_includes_default |
---|
| 5001 | #include <$ac_header> |
---|
| 5002 | _ACEOF |
---|
| 5003 | rm -f conftest.$ac_objext |
---|
| 5004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5005 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5006 | ac_status=$? |
---|
| 5007 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5008 | rm -f conftest.er1 |
---|
| 5009 | cat conftest.err >&5 |
---|
| 5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5011 | (exit $ac_status); } && |
---|
| 5012 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5013 | || test ! -s conftest.err' |
---|
| 5014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5015 | (eval $ac_try) 2>&5 |
---|
| 5016 | ac_status=$? |
---|
| 5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5018 | (exit $ac_status); }; } && |
---|
| 5019 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5021 | (eval $ac_try) 2>&5 |
---|
| 5022 | ac_status=$? |
---|
| 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5024 | (exit $ac_status); }; }; then |
---|
| 5025 | ac_header_compiler=yes |
---|
| 5026 | else |
---|
| 5027 | echo "$as_me: failed program was:" >&5 |
---|
| 5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5029 | |
---|
| 5030 | ac_header_compiler=no |
---|
| 5031 | fi |
---|
| 5032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5033 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5034 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5035 | |
---|
| 5036 | # Is the header present? |
---|
| 5037 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5038 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5039 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5040 | /* confdefs.h. */ |
---|
| 5041 | _ACEOF |
---|
| 5042 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5043 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5044 | /* end confdefs.h. */ |
---|
| 5045 | #include <$ac_header> |
---|
| 5046 | _ACEOF |
---|
| 5047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5049 | ac_status=$? |
---|
| 5050 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5051 | rm -f conftest.er1 |
---|
| 5052 | cat conftest.err >&5 |
---|
| 5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5054 | (exit $ac_status); } >/dev/null; then |
---|
| 5055 | if test -s conftest.err; then |
---|
| 5056 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5057 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5058 | else |
---|
| 5059 | ac_cpp_err= |
---|
| 5060 | fi |
---|
| 5061 | else |
---|
| 5062 | ac_cpp_err=yes |
---|
| 5063 | fi |
---|
| 5064 | if test -z "$ac_cpp_err"; then |
---|
| 5065 | ac_header_preproc=yes |
---|
| 5066 | else |
---|
| 5067 | echo "$as_me: failed program was:" >&5 |
---|
| 5068 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5069 | |
---|
| 5070 | ac_header_preproc=no |
---|
| 5071 | fi |
---|
| 5072 | rm -f conftest.err conftest.$ac_ext |
---|
| 5073 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5074 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5075 | |
---|
| 5076 | # So? What about this header? |
---|
| 5077 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5078 | yes:no: ) |
---|
| 5079 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5080 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5081 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5082 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5083 | ac_header_preproc=yes |
---|
| 5084 | ;; |
---|
| 5085 | no:yes:* ) |
---|
| 5086 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5087 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5088 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5089 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5090 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5091 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5092 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5093 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5094 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5095 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5096 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5097 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5098 | ( |
---|
| 5099 | cat <<\_ASBOX |
---|
| 5100 | ## ------------------------------------------- ## |
---|
| 5101 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5102 | ## ------------------------------------------- ## |
---|
| 5103 | _ASBOX |
---|
| 5104 | ) | |
---|
| 5105 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5106 | ;; |
---|
| 5107 | esac |
---|
| 5108 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5109 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5112 | else |
---|
| 5113 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5114 | fi |
---|
| 5115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5117 | |
---|
| 5118 | fi |
---|
| 5119 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5120 | cat >>confdefs.h <<_ACEOF |
---|
| 5121 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5122 | _ACEOF |
---|
| 5123 | |
---|
| 5124 | else |
---|
| 5125 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5126 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5127 | { (exit 1); exit 1; }; } |
---|
| 5128 | fi |
---|
| 5129 | |
---|
| 5130 | done |
---|
| 5131 | |
---|
[2701] | 5132 | |
---|
| 5133 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
[2190] | 5134 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5135 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5137 | else |
---|
| 5138 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5139 | LIBS="-lSDL $LIBS" |
---|
| 5140 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5141 | /* confdefs.h. */ |
---|
| 5142 | _ACEOF |
---|
| 5143 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5144 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5145 | /* end confdefs.h. */ |
---|
| 5146 | |
---|
| 5147 | |
---|
| 5148 | int |
---|
| 5149 | main () |
---|
| 5150 | { |
---|
| 5151 | main (); |
---|
| 5152 | ; |
---|
| 5153 | return 0; |
---|
| 5154 | } |
---|
| 5155 | _ACEOF |
---|
| 5156 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5158 | (eval $ac_link) 2>conftest.er1 |
---|
| 5159 | ac_status=$? |
---|
| 5160 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5161 | rm -f conftest.er1 |
---|
| 5162 | cat conftest.err >&5 |
---|
| 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5164 | (exit $ac_status); } && |
---|
| 5165 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5166 | || test ! -s conftest.err' |
---|
| 5167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5168 | (eval $ac_try) 2>&5 |
---|
| 5169 | ac_status=$? |
---|
| 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5171 | (exit $ac_status); }; } && |
---|
| 5172 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5174 | (eval $ac_try) 2>&5 |
---|
| 5175 | ac_status=$? |
---|
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5177 | (exit $ac_status); }; }; then |
---|
| 5178 | ac_cv_lib_SDL_main=yes |
---|
| 5179 | else |
---|
| 5180 | echo "$as_me: failed program was:" >&5 |
---|
| 5181 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5182 | |
---|
| 5183 | ac_cv_lib_SDL_main=no |
---|
| 5184 | fi |
---|
| 5185 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5186 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5187 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5188 | fi |
---|
| 5189 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5190 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5191 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5192 | FOUND_SDL=yes |
---|
| 5193 | fi |
---|
| 5194 | |
---|
[2701] | 5195 | if test "$FOUND_SDL" = "yes" ; then |
---|
| 5196 | LIBS="$LIBS -lSDL" |
---|
| 5197 | else |
---|
| 5198 | echo "------------------" |
---|
| 5199 | echo "SDL library not found." |
---|
| 5200 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5201 | echo "------------------" |
---|
| 5202 | exit -1 |
---|
| 5203 | fi |
---|
| 5204 | |
---|
| 5205 | ;; |
---|
| 5206 | *) |
---|
| 5207 | mingw="no" |
---|
| 5208 | ;; |
---|
| 5209 | esac |
---|
| 5210 | echo "$as_me:$LINENO: result: $mingw" >&5 |
---|
| 5211 | echo "${ECHO_T}$mingw" >&6 |
---|
| 5212 | |
---|
| 5213 | |
---|
| 5214 | #### Checking for LIBraries. |
---|
| 5215 | |
---|
| 5216 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
| 5217 | |
---|
| 5218 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
| 5219 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
| 5220 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
[2190] | 5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5222 | else |
---|
| 5223 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5224 | LIBS="-lOSMesa $LIBS" |
---|
[2190] | 5225 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5226 | /* confdefs.h. */ |
---|
| 5227 | _ACEOF |
---|
| 5228 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5229 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5230 | /* end confdefs.h. */ |
---|
| 5231 | |
---|
| 5232 | |
---|
| 5233 | int |
---|
| 5234 | main () |
---|
| 5235 | { |
---|
| 5236 | main (); |
---|
| 5237 | ; |
---|
| 5238 | return 0; |
---|
| 5239 | } |
---|
| 5240 | _ACEOF |
---|
| 5241 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5243 | (eval $ac_link) 2>conftest.er1 |
---|
| 5244 | ac_status=$? |
---|
| 5245 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5246 | rm -f conftest.er1 |
---|
| 5247 | cat conftest.err >&5 |
---|
| 5248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5249 | (exit $ac_status); } && |
---|
| 5250 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5251 | || test ! -s conftest.err' |
---|
| 5252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5253 | (eval $ac_try) 2>&5 |
---|
| 5254 | ac_status=$? |
---|
| 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5256 | (exit $ac_status); }; } && |
---|
| 5257 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5259 | (eval $ac_try) 2>&5 |
---|
| 5260 | ac_status=$? |
---|
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5262 | (exit $ac_status); }; }; then |
---|
[2701] | 5263 | ac_cv_lib_OSMesa_main=yes |
---|
[2190] | 5264 | else |
---|
| 5265 | echo "$as_me: failed program was:" >&5 |
---|
| 5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5267 | |
---|
[2701] | 5268 | ac_cv_lib_OSMesa_main=no |
---|
[2190] | 5269 | fi |
---|
| 5270 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5271 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5272 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5273 | fi |
---|
[2701] | 5274 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
| 5275 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
| 5276 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
| 5277 | cat >>confdefs.h <<_ACEOF |
---|
| 5278 | #define HAVE_LIBOSMESA 1 |
---|
| 5279 | _ACEOF |
---|
| 5280 | |
---|
| 5281 | LIBS="-lOSMesa $LIBS" |
---|
| 5282 | |
---|
[2190] | 5283 | fi |
---|
| 5284 | |
---|
[2701] | 5285 | # FIXME: Replace `main' with a function in `-lX11': |
---|
| 5286 | |
---|
| 5287 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
| 5288 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
| 5289 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
[2190] | 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5291 | else |
---|
| 5292 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5293 | LIBS="-lX11 $LIBS" |
---|
[2190] | 5294 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5295 | /* confdefs.h. */ |
---|
| 5296 | _ACEOF |
---|
| 5297 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5299 | /* end confdefs.h. */ |
---|
| 5300 | |
---|
| 5301 | |
---|
| 5302 | int |
---|
| 5303 | main () |
---|
| 5304 | { |
---|
| 5305 | main (); |
---|
| 5306 | ; |
---|
| 5307 | return 0; |
---|
| 5308 | } |
---|
| 5309 | _ACEOF |
---|
| 5310 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5312 | (eval $ac_link) 2>conftest.er1 |
---|
| 5313 | ac_status=$? |
---|
| 5314 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5315 | rm -f conftest.er1 |
---|
| 5316 | cat conftest.err >&5 |
---|
| 5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5318 | (exit $ac_status); } && |
---|
| 5319 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5320 | || test ! -s conftest.err' |
---|
| 5321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5322 | (eval $ac_try) 2>&5 |
---|
| 5323 | ac_status=$? |
---|
| 5324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5325 | (exit $ac_status); }; } && |
---|
| 5326 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5328 | (eval $ac_try) 2>&5 |
---|
| 5329 | ac_status=$? |
---|
| 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5331 | (exit $ac_status); }; }; then |
---|
[2701] | 5332 | ac_cv_lib_X11_main=yes |
---|
[2190] | 5333 | else |
---|
| 5334 | echo "$as_me: failed program was:" >&5 |
---|
| 5335 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5336 | |
---|
[2701] | 5337 | ac_cv_lib_X11_main=no |
---|
[2190] | 5338 | fi |
---|
| 5339 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5340 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5341 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5342 | fi |
---|
[2701] | 5343 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
| 5344 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
| 5345 | if test $ac_cv_lib_X11_main = yes; then |
---|
| 5346 | cat >>confdefs.h <<_ACEOF |
---|
| 5347 | #define HAVE_LIBX11 1 |
---|
| 5348 | _ACEOF |
---|
| 5349 | |
---|
| 5350 | LIBS="-lX11 $LIBS" |
---|
| 5351 | |
---|
[2190] | 5352 | fi |
---|
| 5353 | |
---|
[2701] | 5354 | # FIXME: Replace `main' with a function in `-lXt': |
---|
| 5355 | |
---|
| 5356 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
| 5357 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
| 5358 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
| 5359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5360 | else |
---|
| 5361 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5362 | LIBS="-lXt $LIBS" |
---|
| 5363 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5364 | /* confdefs.h. */ |
---|
| 5365 | _ACEOF |
---|
| 5366 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5367 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5368 | /* end confdefs.h. */ |
---|
| 5369 | |
---|
| 5370 | |
---|
| 5371 | int |
---|
| 5372 | main () |
---|
| 5373 | { |
---|
| 5374 | main (); |
---|
| 5375 | ; |
---|
| 5376 | return 0; |
---|
| 5377 | } |
---|
| 5378 | _ACEOF |
---|
| 5379 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5381 | (eval $ac_link) 2>conftest.er1 |
---|
| 5382 | ac_status=$? |
---|
| 5383 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5384 | rm -f conftest.er1 |
---|
| 5385 | cat conftest.err >&5 |
---|
| 5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5387 | (exit $ac_status); } && |
---|
| 5388 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5389 | || test ! -s conftest.err' |
---|
| 5390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5391 | (eval $ac_try) 2>&5 |
---|
| 5392 | ac_status=$? |
---|
| 5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5394 | (exit $ac_status); }; } && |
---|
| 5395 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5397 | (eval $ac_try) 2>&5 |
---|
| 5398 | ac_status=$? |
---|
| 5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5400 | (exit $ac_status); }; }; then |
---|
| 5401 | ac_cv_lib_Xt_main=yes |
---|
| 5402 | else |
---|
| 5403 | echo "$as_me: failed program was:" >&5 |
---|
| 5404 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5405 | |
---|
| 5406 | ac_cv_lib_Xt_main=no |
---|
[2190] | 5407 | fi |
---|
[2701] | 5408 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5409 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5410 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5411 | fi |
---|
| 5412 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
| 5413 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
| 5414 | if test $ac_cv_lib_Xt_main = yes; then |
---|
| 5415 | cat >>confdefs.h <<_ACEOF |
---|
| 5416 | #define HAVE_LIBXT 1 |
---|
| 5417 | _ACEOF |
---|
[2190] | 5418 | |
---|
[2701] | 5419 | LIBS="-lXt $LIBS" |
---|
| 5420 | |
---|
| 5421 | fi |
---|
| 5422 | |
---|
| 5423 | |
---|
| 5424 | |
---|
[2190] | 5425 | #checking for pthread libs |
---|
| 5426 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
| 5427 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 5428 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 5429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5430 | else |
---|
| 5431 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5432 | LIBS="-lpthread $LIBS" |
---|
| 5433 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5434 | /* confdefs.h. */ |
---|
| 5435 | _ACEOF |
---|
| 5436 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5437 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5438 | /* end confdefs.h. */ |
---|
| 5439 | |
---|
| 5440 | |
---|
| 5441 | int |
---|
| 5442 | main () |
---|
| 5443 | { |
---|
| 5444 | main (); |
---|
| 5445 | ; |
---|
| 5446 | return 0; |
---|
| 5447 | } |
---|
| 5448 | _ACEOF |
---|
| 5449 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5451 | (eval $ac_link) 2>conftest.er1 |
---|
| 5452 | ac_status=$? |
---|
| 5453 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5454 | rm -f conftest.er1 |
---|
| 5455 | cat conftest.err >&5 |
---|
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5457 | (exit $ac_status); } && |
---|
| 5458 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5459 | || test ! -s conftest.err' |
---|
| 5460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5461 | (eval $ac_try) 2>&5 |
---|
| 5462 | ac_status=$? |
---|
| 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5464 | (exit $ac_status); }; } && |
---|
| 5465 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5467 | (eval $ac_try) 2>&5 |
---|
| 5468 | ac_status=$? |
---|
| 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5470 | (exit $ac_status); }; }; then |
---|
| 5471 | ac_cv_lib_pthread_main=yes |
---|
| 5472 | else |
---|
| 5473 | echo "$as_me: failed program was:" >&5 |
---|
| 5474 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5475 | |
---|
| 5476 | ac_cv_lib_pthread_main=no |
---|
| 5477 | fi |
---|
| 5478 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5479 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5480 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5481 | fi |
---|
| 5482 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 5483 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 5484 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 5485 | FOUND_pthread=yes |
---|
| 5486 | fi |
---|
| 5487 | |
---|
| 5488 | if test "$FOUND_pthread" = "yes" ; then |
---|
| 5489 | LIBS="$LIBS -lpthread" |
---|
| 5490 | fi |
---|
| 5491 | |
---|
| 5492 | |
---|
| 5493 | |
---|
| 5494 | |
---|
[1956] | 5495 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 5496 | |
---|
| 5497 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 5498 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 5499 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5501 | else |
---|
| 5502 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5503 | LIBS="-lm $LIBS" |
---|
| 5504 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5505 | /* confdefs.h. */ |
---|
| 5506 | _ACEOF |
---|
| 5507 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5509 | /* end confdefs.h. */ |
---|
| 5510 | |
---|
| 5511 | |
---|
| 5512 | int |
---|
| 5513 | main () |
---|
| 5514 | { |
---|
| 5515 | main (); |
---|
| 5516 | ; |
---|
| 5517 | return 0; |
---|
| 5518 | } |
---|
| 5519 | _ACEOF |
---|
| 5520 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5522 | (eval $ac_link) 2>conftest.er1 |
---|
| 5523 | ac_status=$? |
---|
| 5524 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5525 | rm -f conftest.er1 |
---|
| 5526 | cat conftest.err >&5 |
---|
| 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5528 | (exit $ac_status); } && |
---|
| 5529 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5530 | || test ! -s conftest.err' |
---|
| 5531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5532 | (eval $ac_try) 2>&5 |
---|
| 5533 | ac_status=$? |
---|
| 5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5535 | (exit $ac_status); }; } && |
---|
| 5536 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5538 | (eval $ac_try) 2>&5 |
---|
| 5539 | ac_status=$? |
---|
| 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5541 | (exit $ac_status); }; }; then |
---|
| 5542 | ac_cv_lib_m_main=yes |
---|
| 5543 | else |
---|
| 5544 | echo "$as_me: failed program was:" >&5 |
---|
| 5545 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5546 | |
---|
| 5547 | ac_cv_lib_m_main=no |
---|
| 5548 | fi |
---|
| 5549 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5550 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5551 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5552 | fi |
---|
| 5553 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 5554 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 5555 | if test $ac_cv_lib_m_main = yes; then |
---|
| 5556 | cat >>confdefs.h <<_ACEOF |
---|
| 5557 | #define HAVE_LIBM 1 |
---|
| 5558 | _ACEOF |
---|
| 5559 | |
---|
| 5560 | LIBS="-lm $LIBS" |
---|
| 5561 | |
---|
| 5562 | fi |
---|
| 5563 | |
---|
| 5564 | |
---|
[2018] | 5565 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
| 5566 | |
---|
| 5567 | |
---|
[1956] | 5568 | # Checks for header files. |
---|
| 5569 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 5570 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 5571 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 5572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5573 | else |
---|
| 5574 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5575 | /* confdefs.h. */ |
---|
| 5576 | _ACEOF |
---|
| 5577 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5578 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5579 | /* end confdefs.h. */ |
---|
| 5580 | #include <stdlib.h> |
---|
| 5581 | #include <stdarg.h> |
---|
| 5582 | #include <string.h> |
---|
| 5583 | #include <float.h> |
---|
| 5584 | |
---|
| 5585 | int |
---|
| 5586 | main () |
---|
| 5587 | { |
---|
| 5588 | |
---|
| 5589 | ; |
---|
| 5590 | return 0; |
---|
| 5591 | } |
---|
| 5592 | _ACEOF |
---|
| 5593 | rm -f conftest.$ac_objext |
---|
| 5594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5595 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5596 | ac_status=$? |
---|
| 5597 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5598 | rm -f conftest.er1 |
---|
| 5599 | cat conftest.err >&5 |
---|
| 5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5601 | (exit $ac_status); } && |
---|
| 5602 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5603 | || test ! -s conftest.err' |
---|
| 5604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5605 | (eval $ac_try) 2>&5 |
---|
| 5606 | ac_status=$? |
---|
| 5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5608 | (exit $ac_status); }; } && |
---|
| 5609 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5611 | (eval $ac_try) 2>&5 |
---|
| 5612 | ac_status=$? |
---|
| 5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5614 | (exit $ac_status); }; }; then |
---|
| 5615 | ac_cv_header_stdc=yes |
---|
| 5616 | else |
---|
| 5617 | echo "$as_me: failed program was:" >&5 |
---|
| 5618 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5619 | |
---|
| 5620 | ac_cv_header_stdc=no |
---|
| 5621 | fi |
---|
| 5622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5623 | |
---|
| 5624 | if test $ac_cv_header_stdc = yes; then |
---|
| 5625 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 5626 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5627 | /* confdefs.h. */ |
---|
| 5628 | _ACEOF |
---|
| 5629 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5630 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5631 | /* end confdefs.h. */ |
---|
| 5632 | #include <string.h> |
---|
| 5633 | |
---|
| 5634 | _ACEOF |
---|
| 5635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5636 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 5637 | : |
---|
| 5638 | else |
---|
| 5639 | ac_cv_header_stdc=no |
---|
| 5640 | fi |
---|
| 5641 | rm -f conftest* |
---|
| 5642 | |
---|
| 5643 | fi |
---|
| 5644 | |
---|
| 5645 | if test $ac_cv_header_stdc = yes; then |
---|
| 5646 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 5647 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5648 | /* confdefs.h. */ |
---|
| 5649 | _ACEOF |
---|
| 5650 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5651 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5652 | /* end confdefs.h. */ |
---|
| 5653 | #include <stdlib.h> |
---|
| 5654 | |
---|
| 5655 | _ACEOF |
---|
| 5656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5657 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 5658 | : |
---|
| 5659 | else |
---|
| 5660 | ac_cv_header_stdc=no |
---|
| 5661 | fi |
---|
| 5662 | rm -f conftest* |
---|
| 5663 | |
---|
| 5664 | fi |
---|
| 5665 | |
---|
| 5666 | if test $ac_cv_header_stdc = yes; then |
---|
| 5667 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 5668 | if test "$cross_compiling" = yes; then |
---|
| 5669 | : |
---|
| 5670 | else |
---|
| 5671 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5672 | /* confdefs.h. */ |
---|
| 5673 | _ACEOF |
---|
| 5674 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5676 | /* end confdefs.h. */ |
---|
| 5677 | #include <ctype.h> |
---|
| 5678 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 5679 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 5680 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 5681 | #else |
---|
| 5682 | # define ISLOWER(c) \ |
---|
| 5683 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 5684 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 5685 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 5686 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 5687 | #endif |
---|
| 5688 | |
---|
| 5689 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 5690 | int |
---|
| 5691 | main () |
---|
| 5692 | { |
---|
| 5693 | int i; |
---|
| 5694 | for (i = 0; i < 256; i++) |
---|
| 5695 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 5696 | || toupper (i) != TOUPPER (i)) |
---|
| 5697 | exit(2); |
---|
| 5698 | exit (0); |
---|
| 5699 | } |
---|
| 5700 | _ACEOF |
---|
| 5701 | rm -f conftest$ac_exeext |
---|
| 5702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5703 | (eval $ac_link) 2>&5 |
---|
| 5704 | ac_status=$? |
---|
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5708 | (eval $ac_try) 2>&5 |
---|
| 5709 | ac_status=$? |
---|
| 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5711 | (exit $ac_status); }; }; then |
---|
| 5712 | : |
---|
| 5713 | else |
---|
| 5714 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5715 | echo "$as_me: failed program was:" >&5 |
---|
| 5716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5717 | |
---|
| 5718 | ( exit $ac_status ) |
---|
| 5719 | ac_cv_header_stdc=no |
---|
| 5720 | fi |
---|
| 5721 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5722 | fi |
---|
| 5723 | fi |
---|
| 5724 | fi |
---|
| 5725 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 5726 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 5727 | if test $ac_cv_header_stdc = yes; then |
---|
| 5728 | |
---|
| 5729 | cat >>confdefs.h <<\_ACEOF |
---|
| 5730 | #define STDC_HEADERS 1 |
---|
| 5731 | _ACEOF |
---|
| 5732 | |
---|
| 5733 | fi |
---|
| 5734 | |
---|
| 5735 | |
---|
| 5736 | |
---|
| 5737 | for ac_header in stdlib.h string.h |
---|
| 5738 | do |
---|
| 5739 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5741 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5745 | fi |
---|
| 5746 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5747 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5748 | else |
---|
| 5749 | # Is the header compilable? |
---|
| 5750 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5751 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5752 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5753 | /* confdefs.h. */ |
---|
| 5754 | _ACEOF |
---|
| 5755 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5756 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5757 | /* end confdefs.h. */ |
---|
| 5758 | $ac_includes_default |
---|
| 5759 | #include <$ac_header> |
---|
| 5760 | _ACEOF |
---|
| 5761 | rm -f conftest.$ac_objext |
---|
| 5762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5763 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5764 | ac_status=$? |
---|
| 5765 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5766 | rm -f conftest.er1 |
---|
| 5767 | cat conftest.err >&5 |
---|
| 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5769 | (exit $ac_status); } && |
---|
| 5770 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5771 | || test ! -s conftest.err' |
---|
| 5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5773 | (eval $ac_try) 2>&5 |
---|
| 5774 | ac_status=$? |
---|
| 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5776 | (exit $ac_status); }; } && |
---|
| 5777 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5779 | (eval $ac_try) 2>&5 |
---|
| 5780 | ac_status=$? |
---|
| 5781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5782 | (exit $ac_status); }; }; then |
---|
| 5783 | ac_header_compiler=yes |
---|
| 5784 | else |
---|
| 5785 | echo "$as_me: failed program was:" >&5 |
---|
| 5786 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5787 | |
---|
| 5788 | ac_header_compiler=no |
---|
| 5789 | fi |
---|
| 5790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5791 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5792 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5793 | |
---|
| 5794 | # Is the header present? |
---|
| 5795 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5796 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5797 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5798 | /* confdefs.h. */ |
---|
| 5799 | _ACEOF |
---|
| 5800 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5801 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5802 | /* end confdefs.h. */ |
---|
| 5803 | #include <$ac_header> |
---|
| 5804 | _ACEOF |
---|
| 5805 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5807 | ac_status=$? |
---|
| 5808 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5809 | rm -f conftest.er1 |
---|
| 5810 | cat conftest.err >&5 |
---|
| 5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5812 | (exit $ac_status); } >/dev/null; then |
---|
| 5813 | if test -s conftest.err; then |
---|
| 5814 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5815 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5816 | else |
---|
| 5817 | ac_cpp_err= |
---|
| 5818 | fi |
---|
| 5819 | else |
---|
| 5820 | ac_cpp_err=yes |
---|
| 5821 | fi |
---|
| 5822 | if test -z "$ac_cpp_err"; then |
---|
| 5823 | ac_header_preproc=yes |
---|
| 5824 | else |
---|
| 5825 | echo "$as_me: failed program was:" >&5 |
---|
| 5826 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5827 | |
---|
| 5828 | ac_header_preproc=no |
---|
| 5829 | fi |
---|
| 5830 | rm -f conftest.err conftest.$ac_ext |
---|
| 5831 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5832 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5833 | |
---|
| 5834 | # So? What about this header? |
---|
| 5835 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5836 | yes:no: ) |
---|
| 5837 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5838 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5840 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5841 | ac_header_preproc=yes |
---|
| 5842 | ;; |
---|
| 5843 | no:yes:* ) |
---|
| 5844 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5845 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5846 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5847 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5848 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5849 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5850 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5851 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5852 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5853 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5854 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5855 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5856 | ( |
---|
| 5857 | cat <<\_ASBOX |
---|
| 5858 | ## ------------------------------------------- ## |
---|
| 5859 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5860 | ## ------------------------------------------- ## |
---|
| 5861 | _ASBOX |
---|
| 5862 | ) | |
---|
| 5863 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5864 | ;; |
---|
| 5865 | esac |
---|
| 5866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5870 | else |
---|
| 5871 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5872 | fi |
---|
| 5873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5875 | |
---|
| 5876 | fi |
---|
| 5877 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5878 | cat >>confdefs.h <<_ACEOF |
---|
| 5879 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5880 | _ACEOF |
---|
| 5881 | |
---|
| 5882 | fi |
---|
| 5883 | |
---|
| 5884 | done |
---|
| 5885 | |
---|
| 5886 | |
---|
| 5887 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 5888 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 5889 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 5890 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 5891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5892 | else |
---|
| 5893 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5894 | /* confdefs.h. */ |
---|
| 5895 | _ACEOF |
---|
| 5896 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5897 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5898 | /* end confdefs.h. */ |
---|
| 5899 | |
---|
| 5900 | #include <stdbool.h> |
---|
| 5901 | #ifndef bool |
---|
| 5902 | # error bool is not defined |
---|
| 5903 | #endif |
---|
| 5904 | #ifndef false |
---|
| 5905 | # error false is not defined |
---|
| 5906 | #endif |
---|
| 5907 | #if false |
---|
| 5908 | # error false is not 0 |
---|
| 5909 | #endif |
---|
| 5910 | #ifndef true |
---|
| 5911 | # error true is not defined |
---|
| 5912 | #endif |
---|
| 5913 | #if true != 1 |
---|
| 5914 | # error true is not 1 |
---|
| 5915 | #endif |
---|
| 5916 | #ifndef __bool_true_false_are_defined |
---|
| 5917 | # error __bool_true_false_are_defined is not defined |
---|
| 5918 | #endif |
---|
| 5919 | |
---|
| 5920 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 5921 | |
---|
| 5922 | char a[true == 1 ? 1 : -1]; |
---|
| 5923 | char b[false == 0 ? 1 : -1]; |
---|
| 5924 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 5925 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 5926 | bool e = &s; |
---|
| 5927 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 5928 | char g[true]; |
---|
| 5929 | char h[sizeof (_Bool)]; |
---|
| 5930 | char i[sizeof s.t]; |
---|
| 5931 | |
---|
| 5932 | int |
---|
| 5933 | main () |
---|
| 5934 | { |
---|
| 5935 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 5936 | ; |
---|
| 5937 | return 0; |
---|
| 5938 | } |
---|
| 5939 | _ACEOF |
---|
| 5940 | rm -f conftest.$ac_objext |
---|
| 5941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5942 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5943 | ac_status=$? |
---|
| 5944 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5945 | rm -f conftest.er1 |
---|
| 5946 | cat conftest.err >&5 |
---|
| 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5948 | (exit $ac_status); } && |
---|
| 5949 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5950 | || test ! -s conftest.err' |
---|
| 5951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5952 | (eval $ac_try) 2>&5 |
---|
| 5953 | ac_status=$? |
---|
| 5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5955 | (exit $ac_status); }; } && |
---|
| 5956 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5958 | (eval $ac_try) 2>&5 |
---|
| 5959 | ac_status=$? |
---|
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5961 | (exit $ac_status); }; }; then |
---|
| 5962 | ac_cv_header_stdbool_h=yes |
---|
| 5963 | else |
---|
| 5964 | echo "$as_me: failed program was:" >&5 |
---|
| 5965 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5966 | |
---|
| 5967 | ac_cv_header_stdbool_h=no |
---|
| 5968 | fi |
---|
| 5969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5970 | fi |
---|
| 5971 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 5972 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 5973 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 5974 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 5975 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 5976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5977 | else |
---|
| 5978 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5979 | /* confdefs.h. */ |
---|
| 5980 | _ACEOF |
---|
| 5981 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5982 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5983 | /* end confdefs.h. */ |
---|
| 5984 | $ac_includes_default |
---|
| 5985 | int |
---|
| 5986 | main () |
---|
| 5987 | { |
---|
| 5988 | if ((_Bool *) 0) |
---|
| 5989 | return 0; |
---|
| 5990 | if (sizeof (_Bool)) |
---|
| 5991 | return 0; |
---|
| 5992 | ; |
---|
| 5993 | return 0; |
---|
| 5994 | } |
---|
| 5995 | _ACEOF |
---|
| 5996 | rm -f conftest.$ac_objext |
---|
| 5997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5998 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5999 | ac_status=$? |
---|
| 6000 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6001 | rm -f conftest.er1 |
---|
| 6002 | cat conftest.err >&5 |
---|
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6004 | (exit $ac_status); } && |
---|
| 6005 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6006 | || test ! -s conftest.err' |
---|
| 6007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6008 | (eval $ac_try) 2>&5 |
---|
| 6009 | ac_status=$? |
---|
| 6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6011 | (exit $ac_status); }; } && |
---|
| 6012 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6014 | (eval $ac_try) 2>&5 |
---|
| 6015 | ac_status=$? |
---|
| 6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6017 | (exit $ac_status); }; }; then |
---|
| 6018 | ac_cv_type__Bool=yes |
---|
| 6019 | else |
---|
| 6020 | echo "$as_me: failed program was:" >&5 |
---|
| 6021 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6022 | |
---|
| 6023 | ac_cv_type__Bool=no |
---|
| 6024 | fi |
---|
| 6025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6026 | fi |
---|
| 6027 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 6028 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 6029 | if test $ac_cv_type__Bool = yes; then |
---|
| 6030 | |
---|
| 6031 | cat >>confdefs.h <<_ACEOF |
---|
| 6032 | #define HAVE__BOOL 1 |
---|
| 6033 | _ACEOF |
---|
| 6034 | |
---|
| 6035 | |
---|
| 6036 | fi |
---|
| 6037 | |
---|
| 6038 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 6039 | |
---|
| 6040 | cat >>confdefs.h <<\_ACEOF |
---|
| 6041 | #define HAVE_STDBOOL_H 1 |
---|
| 6042 | _ACEOF |
---|
| 6043 | |
---|
| 6044 | fi |
---|
| 6045 | |
---|
| 6046 | |
---|
| 6047 | # Checks for library functions. |
---|
| 6048 | |
---|
| 6049 | for ac_header in stdlib.h |
---|
| 6050 | do |
---|
| 6051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6057 | fi |
---|
| 6058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6060 | else |
---|
| 6061 | # Is the header compilable? |
---|
| 6062 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6064 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6065 | /* confdefs.h. */ |
---|
| 6066 | _ACEOF |
---|
| 6067 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6069 | /* end confdefs.h. */ |
---|
| 6070 | $ac_includes_default |
---|
| 6071 | #include <$ac_header> |
---|
| 6072 | _ACEOF |
---|
| 6073 | rm -f conftest.$ac_objext |
---|
| 6074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6075 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6076 | ac_status=$? |
---|
| 6077 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6078 | rm -f conftest.er1 |
---|
| 6079 | cat conftest.err >&5 |
---|
| 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6081 | (exit $ac_status); } && |
---|
| 6082 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6083 | || test ! -s conftest.err' |
---|
| 6084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6085 | (eval $ac_try) 2>&5 |
---|
| 6086 | ac_status=$? |
---|
| 6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6088 | (exit $ac_status); }; } && |
---|
| 6089 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6091 | (eval $ac_try) 2>&5 |
---|
| 6092 | ac_status=$? |
---|
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6094 | (exit $ac_status); }; }; then |
---|
| 6095 | ac_header_compiler=yes |
---|
| 6096 | else |
---|
| 6097 | echo "$as_me: failed program was:" >&5 |
---|
| 6098 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6099 | |
---|
| 6100 | ac_header_compiler=no |
---|
| 6101 | fi |
---|
| 6102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6103 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6104 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6105 | |
---|
| 6106 | # Is the header present? |
---|
| 6107 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6109 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6110 | /* confdefs.h. */ |
---|
| 6111 | _ACEOF |
---|
| 6112 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6114 | /* end confdefs.h. */ |
---|
| 6115 | #include <$ac_header> |
---|
| 6116 | _ACEOF |
---|
| 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6119 | ac_status=$? |
---|
| 6120 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6121 | rm -f conftest.er1 |
---|
| 6122 | cat conftest.err >&5 |
---|
| 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6124 | (exit $ac_status); } >/dev/null; then |
---|
| 6125 | if test -s conftest.err; then |
---|
| 6126 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6127 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6128 | else |
---|
| 6129 | ac_cpp_err= |
---|
| 6130 | fi |
---|
| 6131 | else |
---|
| 6132 | ac_cpp_err=yes |
---|
| 6133 | fi |
---|
| 6134 | if test -z "$ac_cpp_err"; then |
---|
| 6135 | ac_header_preproc=yes |
---|
| 6136 | else |
---|
| 6137 | echo "$as_me: failed program was:" >&5 |
---|
| 6138 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6139 | |
---|
| 6140 | ac_header_preproc=no |
---|
| 6141 | fi |
---|
| 6142 | rm -f conftest.err conftest.$ac_ext |
---|
| 6143 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6144 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6145 | |
---|
| 6146 | # So? What about this header? |
---|
| 6147 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6148 | yes:no: ) |
---|
| 6149 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6150 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6151 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6152 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6153 | ac_header_preproc=yes |
---|
| 6154 | ;; |
---|
| 6155 | no:yes:* ) |
---|
| 6156 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6157 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6158 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6159 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6160 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6161 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6162 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6163 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6164 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6165 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6166 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6167 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6168 | ( |
---|
| 6169 | cat <<\_ASBOX |
---|
| 6170 | ## ------------------------------------------- ## |
---|
| 6171 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 6172 | ## ------------------------------------------- ## |
---|
| 6173 | _ASBOX |
---|
| 6174 | ) | |
---|
| 6175 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6176 | ;; |
---|
| 6177 | esac |
---|
| 6178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6182 | else |
---|
| 6183 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6184 | fi |
---|
| 6185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6187 | |
---|
| 6188 | fi |
---|
| 6189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6190 | cat >>confdefs.h <<_ACEOF |
---|
| 6191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6192 | _ACEOF |
---|
| 6193 | |
---|
| 6194 | fi |
---|
| 6195 | |
---|
| 6196 | done |
---|
| 6197 | |
---|
| 6198 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 6199 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 6200 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6202 | else |
---|
| 6203 | if test "$cross_compiling" = yes; then |
---|
| 6204 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6205 | else |
---|
| 6206 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6207 | /* confdefs.h. */ |
---|
| 6208 | _ACEOF |
---|
| 6209 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6210 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6211 | /* end confdefs.h. */ |
---|
| 6212 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 6213 | # include <stdlib.h> |
---|
| 6214 | #else |
---|
| 6215 | char *malloc (); |
---|
| 6216 | #endif |
---|
| 6217 | |
---|
| 6218 | int |
---|
| 6219 | main () |
---|
| 6220 | { |
---|
| 6221 | exit (malloc (0) ? 0 : 1); |
---|
| 6222 | ; |
---|
| 6223 | return 0; |
---|
| 6224 | } |
---|
| 6225 | _ACEOF |
---|
| 6226 | rm -f conftest$ac_exeext |
---|
| 6227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6228 | (eval $ac_link) 2>&5 |
---|
| 6229 | ac_status=$? |
---|
| 6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6233 | (eval $ac_try) 2>&5 |
---|
| 6234 | ac_status=$? |
---|
| 6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6236 | (exit $ac_status); }; }; then |
---|
| 6237 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 6238 | else |
---|
| 6239 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6240 | echo "$as_me: failed program was:" >&5 |
---|
| 6241 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6242 | |
---|
| 6243 | ( exit $ac_status ) |
---|
| 6244 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6245 | fi |
---|
| 6246 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 6247 | fi |
---|
| 6248 | fi |
---|
| 6249 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 6250 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 6251 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 6252 | |
---|
| 6253 | cat >>confdefs.h <<\_ACEOF |
---|
| 6254 | #define HAVE_MALLOC 1 |
---|
| 6255 | _ACEOF |
---|
| 6256 | |
---|
| 6257 | else |
---|
| 6258 | cat >>confdefs.h <<\_ACEOF |
---|
| 6259 | #define HAVE_MALLOC 0 |
---|
| 6260 | _ACEOF |
---|
| 6261 | |
---|
| 6262 | case $LIBOBJS in |
---|
| 6263 | "malloc.$ac_objext" | \ |
---|
| 6264 | *" malloc.$ac_objext" | \ |
---|
| 6265 | "malloc.$ac_objext "* | \ |
---|
| 6266 | *" malloc.$ac_objext "* ) ;; |
---|
| 6267 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 6268 | esac |
---|
| 6269 | |
---|
| 6270 | |
---|
| 6271 | cat >>confdefs.h <<\_ACEOF |
---|
| 6272 | #define malloc rpl_malloc |
---|
| 6273 | _ACEOF |
---|
| 6274 | |
---|
| 6275 | fi |
---|
| 6276 | |
---|
| 6277 | |
---|
| 6278 | |
---|
| 6279 | |
---|
| 6280 | |
---|
| 6281 | for ac_func in bzero sqrt |
---|
| 6282 | do |
---|
| 6283 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 6284 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 6285 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 6286 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 6287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6288 | else |
---|
| 6289 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6290 | /* confdefs.h. */ |
---|
| 6291 | _ACEOF |
---|
| 6292 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6293 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6294 | /* end confdefs.h. */ |
---|
| 6295 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 6296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 6297 | #define $ac_func innocuous_$ac_func |
---|
| 6298 | |
---|
| 6299 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 6300 | which can conflict with char $ac_func (); below. |
---|
| 6301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6302 | <limits.h> exists even on freestanding compilers. */ |
---|
| 6303 | |
---|
| 6304 | #ifdef __STDC__ |
---|
| 6305 | # include <limits.h> |
---|
| 6306 | #else |
---|
| 6307 | # include <assert.h> |
---|
| 6308 | #endif |
---|
| 6309 | |
---|
| 6310 | #undef $ac_func |
---|
| 6311 | |
---|
| 6312 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6313 | #ifdef __cplusplus |
---|
| 6314 | extern "C" |
---|
| 6315 | { |
---|
| 6316 | #endif |
---|
| 6317 | /* We use char because int might match the return type of a gcc2 |
---|
| 6318 | builtin and then its argument prototype would still apply. */ |
---|
| 6319 | char $ac_func (); |
---|
| 6320 | /* The GNU C library defines this for functions which it implements |
---|
| 6321 | to always fail with ENOSYS. Some functions are actually named |
---|
| 6322 | something starting with __ and the normal name is an alias. */ |
---|
| 6323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 6324 | choke me |
---|
| 6325 | #else |
---|
| 6326 | char (*f) () = $ac_func; |
---|
| 6327 | #endif |
---|
| 6328 | #ifdef __cplusplus |
---|
| 6329 | } |
---|
| 6330 | #endif |
---|
| 6331 | |
---|
| 6332 | int |
---|
| 6333 | main () |
---|
| 6334 | { |
---|
| 6335 | return f != $ac_func; |
---|
| 6336 | ; |
---|
| 6337 | return 0; |
---|
| 6338 | } |
---|
| 6339 | _ACEOF |
---|
| 6340 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6342 | (eval $ac_link) 2>conftest.er1 |
---|
| 6343 | ac_status=$? |
---|
| 6344 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6345 | rm -f conftest.er1 |
---|
| 6346 | cat conftest.err >&5 |
---|
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6348 | (exit $ac_status); } && |
---|
| 6349 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6350 | || test ! -s conftest.err' |
---|
| 6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6352 | (eval $ac_try) 2>&5 |
---|
| 6353 | ac_status=$? |
---|
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6355 | (exit $ac_status); }; } && |
---|
| 6356 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6358 | (eval $ac_try) 2>&5 |
---|
| 6359 | ac_status=$? |
---|
| 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6361 | (exit $ac_status); }; }; then |
---|
| 6362 | eval "$as_ac_var=yes" |
---|
| 6363 | else |
---|
| 6364 | echo "$as_me: failed program was:" >&5 |
---|
| 6365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6366 | |
---|
| 6367 | eval "$as_ac_var=no" |
---|
| 6368 | fi |
---|
| 6369 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6370 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6371 | fi |
---|
| 6372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 6373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 6374 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 6375 | cat >>confdefs.h <<_ACEOF |
---|
| 6376 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 6377 | _ACEOF |
---|
| 6378 | |
---|
| 6379 | fi |
---|
| 6380 | done |
---|
| 6381 | |
---|
| 6382 | |
---|
| 6383 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
| 6384 | |
---|
| 6385 | cat >confcache <<\_ACEOF |
---|
| 6386 | # This file is a shell script that caches the results of configure |
---|
| 6387 | # tests run on this system so they can be shared between configure |
---|
| 6388 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6389 | # It is not useful on other systems. If it contains results you don't |
---|
| 6390 | # want to keep, you may remove or edit it. |
---|
| 6391 | # |
---|
| 6392 | # config.status only pays attention to the cache file if you give it |
---|
| 6393 | # the --recheck option to rerun configure. |
---|
| 6394 | # |
---|
| 6395 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6396 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6397 | # following values. |
---|
| 6398 | |
---|
| 6399 | _ACEOF |
---|
| 6400 | |
---|
| 6401 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6402 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 6403 | # So, don't put newlines in cache variables' values. |
---|
| 6404 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6405 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 6406 | { |
---|
| 6407 | (set) 2>&1 | |
---|
| 6408 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 6409 | *ac_space=\ *) |
---|
| 6410 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6411 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6412 | sed -n \ |
---|
| 6413 | "s/'/'\\\\''/g; |
---|
| 6414 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 6415 | ;; |
---|
| 6416 | *) |
---|
| 6417 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 6418 | sed -n \ |
---|
| 6419 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 6420 | ;; |
---|
| 6421 | esac; |
---|
| 6422 | } | |
---|
| 6423 | sed ' |
---|
| 6424 | t clear |
---|
| 6425 | : clear |
---|
| 6426 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6427 | t end |
---|
| 6428 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6429 | : end' >>confcache |
---|
| 6430 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 6431 | if test -w $cache_file; then |
---|
| 6432 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 6433 | cat confcache >$cache_file |
---|
| 6434 | else |
---|
| 6435 | echo "not updating unwritable cache $cache_file" |
---|
| 6436 | fi |
---|
| 6437 | fi |
---|
| 6438 | rm -f confcache |
---|
| 6439 | |
---|
| 6440 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6441 | # Let make expand exec_prefix. |
---|
| 6442 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6443 | |
---|
| 6444 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6445 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6446 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6447 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6448 | if test "x$srcdir" = x.; then |
---|
| 6449 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 6450 | s/:*\$(srcdir):*/:/; |
---|
| 6451 | s/:*\${srcdir}:*/:/; |
---|
| 6452 | s/:*@srcdir@:*/:/; |
---|
| 6453 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 6454 | s/:*$//; |
---|
| 6455 | s/^[^=]*=[ ]*$//; |
---|
| 6456 | }' |
---|
| 6457 | fi |
---|
| 6458 | |
---|
| 6459 | DEFS=-DHAVE_CONFIG_H |
---|
| 6460 | |
---|
| 6461 | ac_libobjs= |
---|
| 6462 | ac_ltlibobjs= |
---|
| 6463 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6464 | # 1. Remove the extension, and $U if already installed. |
---|
| 6465 | ac_i=`echo "$ac_i" | |
---|
| 6466 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 6467 | # 2. Add them. |
---|
| 6468 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 6469 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 6470 | done |
---|
| 6471 | LIBOBJS=$ac_libobjs |
---|
| 6472 | |
---|
| 6473 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6474 | |
---|
| 6475 | |
---|
| 6476 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 6477 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 6478 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6479 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 6480 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6481 | { (exit 1); exit 1; }; } |
---|
| 6482 | fi |
---|
| 6483 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 6484 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6485 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6486 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6487 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6488 | { (exit 1); exit 1; }; } |
---|
| 6489 | fi |
---|
| 6490 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 6491 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6492 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6493 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6494 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6495 | { (exit 1); exit 1; }; } |
---|
| 6496 | fi |
---|
| 6497 | |
---|
| 6498 | : ${CONFIG_STATUS=./config.status} |
---|
| 6499 | ac_clean_files_save=$ac_clean_files |
---|
| 6500 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 6501 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6502 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6503 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 6504 | #! $SHELL |
---|
| 6505 | # Generated by $as_me. |
---|
| 6506 | # Run this file to recreate the current configuration. |
---|
| 6507 | # Compiler output produced by configure, useful for debugging |
---|
| 6508 | # configure, is in config.log if it exists. |
---|
| 6509 | |
---|
| 6510 | debug=false |
---|
| 6511 | ac_cs_recheck=false |
---|
| 6512 | ac_cs_silent=false |
---|
| 6513 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6514 | _ACEOF |
---|
| 6515 | |
---|
| 6516 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6517 | ## --------------------- ## |
---|
| 6518 | ## M4sh Initialization. ## |
---|
| 6519 | ## --------------------- ## |
---|
| 6520 | |
---|
| 6521 | # Be Bourne compatible |
---|
| 6522 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6523 | emulate sh |
---|
| 6524 | NULLCMD=: |
---|
| 6525 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 6526 | # is contrary to our usage. Disable this feature. |
---|
| 6527 | alias -g '${1+"$@"}'='"$@"' |
---|
| 6528 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 6529 | set -o posix |
---|
| 6530 | fi |
---|
| 6531 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 6532 | |
---|
| 6533 | # Support unset when possible. |
---|
| 6534 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 6535 | as_unset=unset |
---|
| 6536 | else |
---|
| 6537 | as_unset=false |
---|
| 6538 | fi |
---|
| 6539 | |
---|
| 6540 | |
---|
| 6541 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 6542 | $as_unset ENV MAIL MAILPATH |
---|
| 6543 | PS1='$ ' |
---|
| 6544 | PS2='> ' |
---|
| 6545 | PS4='+ ' |
---|
| 6546 | |
---|
| 6547 | # NLS nuisances. |
---|
| 6548 | for as_var in \ |
---|
| 6549 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 6550 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 6551 | LC_TELEPHONE LC_TIME |
---|
| 6552 | do |
---|
| 6553 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 6554 | eval $as_var=C; export $as_var |
---|
| 6555 | else |
---|
| 6556 | $as_unset $as_var |
---|
| 6557 | fi |
---|
| 6558 | done |
---|
| 6559 | |
---|
| 6560 | # Required to use basename. |
---|
| 6561 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6562 | as_expr=expr |
---|
| 6563 | else |
---|
| 6564 | as_expr=false |
---|
| 6565 | fi |
---|
| 6566 | |
---|
| 6567 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 6568 | as_basename=basename |
---|
| 6569 | else |
---|
| 6570 | as_basename=false |
---|
| 6571 | fi |
---|
| 6572 | |
---|
| 6573 | |
---|
| 6574 | # Name of the executable. |
---|
| 6575 | as_me=`$as_basename "$0" || |
---|
| 6576 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6577 | X"$0" : 'X\(//\)$' \| \ |
---|
| 6578 | X"$0" : 'X\(/\)$' \| \ |
---|
| 6579 | . : '\(.\)' 2>/dev/null || |
---|
| 6580 | echo X/"$0" | |
---|
| 6581 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 6582 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 6583 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 6584 | s/.*/./; q'` |
---|
| 6585 | |
---|
| 6586 | |
---|
| 6587 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 6588 | # Avoid depending upon Character Ranges. |
---|
| 6589 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6590 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6591 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6592 | as_cr_digits='0123456789' |
---|
| 6593 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6594 | |
---|
| 6595 | # The user is always right. |
---|
| 6596 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6597 | echo "#! /bin/sh" >conf$$.sh |
---|
| 6598 | echo "exit 0" >>conf$$.sh |
---|
| 6599 | chmod +x conf$$.sh |
---|
| 6600 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 6601 | PATH_SEPARATOR=';' |
---|
| 6602 | else |
---|
| 6603 | PATH_SEPARATOR=: |
---|
| 6604 | fi |
---|
| 6605 | rm -f conf$$.sh |
---|
| 6606 | fi |
---|
| 6607 | |
---|
| 6608 | |
---|
| 6609 | as_lineno_1=$LINENO |
---|
| 6610 | as_lineno_2=$LINENO |
---|
| 6611 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6612 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6613 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 6614 | # Find who we are. Look in the path if we contain no path at all |
---|
| 6615 | # relative or not. |
---|
| 6616 | case $0 in |
---|
| 6617 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6618 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6619 | for as_dir in $PATH |
---|
| 6620 | do |
---|
| 6621 | IFS=$as_save_IFS |
---|
| 6622 | test -z "$as_dir" && as_dir=. |
---|
| 6623 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6624 | done |
---|
| 6625 | |
---|
| 6626 | ;; |
---|
| 6627 | esac |
---|
| 6628 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6629 | # in which case we are not to be found in the path. |
---|
| 6630 | if test "x$as_myself" = x; then |
---|
| 6631 | as_myself=$0 |
---|
| 6632 | fi |
---|
| 6633 | if test ! -f "$as_myself"; then |
---|
| 6634 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 6635 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 6636 | { (exit 1); exit 1; }; } |
---|
| 6637 | fi |
---|
| 6638 | case $CONFIG_SHELL in |
---|
| 6639 | '') |
---|
| 6640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6641 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 6642 | do |
---|
| 6643 | IFS=$as_save_IFS |
---|
| 6644 | test -z "$as_dir" && as_dir=. |
---|
| 6645 | for as_base in sh bash ksh sh5; do |
---|
| 6646 | case $as_dir in |
---|
| 6647 | /*) |
---|
| 6648 | if ("$as_dir/$as_base" -c ' |
---|
| 6649 | as_lineno_1=$LINENO |
---|
| 6650 | as_lineno_2=$LINENO |
---|
| 6651 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6652 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6653 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 6654 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 6655 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 6656 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 6657 | export CONFIG_SHELL |
---|
| 6658 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 6659 | fi;; |
---|
| 6660 | esac |
---|
| 6661 | done |
---|
| 6662 | done |
---|
| 6663 | ;; |
---|
| 6664 | esac |
---|
| 6665 | |
---|
| 6666 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6667 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 6668 | # line-number line before each line; the second 'sed' does the real |
---|
| 6669 | # work. The second script uses 'N' to pair each line-number line |
---|
| 6670 | # with the numbered line, and appends trailing '-' during |
---|
| 6671 | # substitution so that $LINENO is not a special case at line end. |
---|
| 6672 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 6673 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 6674 | sed '=' <$as_myself | |
---|
| 6675 | sed ' |
---|
| 6676 | N |
---|
| 6677 | s,$,-, |
---|
| 6678 | : loop |
---|
| 6679 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 6680 | t loop |
---|
| 6681 | s,-$,, |
---|
| 6682 | s,^['$as_cr_digits']*\n,, |
---|
| 6683 | ' >$as_me.lineno && |
---|
| 6684 | chmod +x $as_me.lineno || |
---|
| 6685 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 6686 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 6687 | { (exit 1); exit 1; }; } |
---|
| 6688 | |
---|
| 6689 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6690 | # (the dirname of $[0] is not the place where we might find the |
---|
| 6691 | # original and so on. Autoconf is especially sensible to this). |
---|
| 6692 | . ./$as_me.lineno |
---|
| 6693 | # Exit status is that of the last command. |
---|
| 6694 | exit |
---|
| 6695 | } |
---|
| 6696 | |
---|
| 6697 | |
---|
| 6698 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 6699 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 6700 | ' ECHO_T=' ' ;; |
---|
| 6701 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 6702 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 6703 | esac |
---|
| 6704 | |
---|
| 6705 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6706 | as_expr=expr |
---|
| 6707 | else |
---|
| 6708 | as_expr=false |
---|
| 6709 | fi |
---|
| 6710 | |
---|
| 6711 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6712 | echo >conf$$.file |
---|
| 6713 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6714 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 6715 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 6716 | if test -f conf$$.exe; then |
---|
| 6717 | # Don't use ln at all; we don't have any links |
---|
| 6718 | as_ln_s='cp -p' |
---|
| 6719 | else |
---|
| 6720 | as_ln_s='ln -s' |
---|
| 6721 | fi |
---|
| 6722 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6723 | as_ln_s=ln |
---|
| 6724 | else |
---|
| 6725 | as_ln_s='cp -p' |
---|
| 6726 | fi |
---|
| 6727 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6728 | |
---|
| 6729 | if mkdir -p . 2>/dev/null; then |
---|
| 6730 | as_mkdir_p=: |
---|
| 6731 | else |
---|
| 6732 | test -d ./-p && rmdir ./-p |
---|
| 6733 | as_mkdir_p=false |
---|
| 6734 | fi |
---|
| 6735 | |
---|
| 6736 | as_executable_p="test -f" |
---|
| 6737 | |
---|
| 6738 | # Sed expression to map a string onto a valid CPP name. |
---|
| 6739 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6740 | |
---|
| 6741 | # Sed expression to map a string onto a valid variable name. |
---|
| 6742 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6743 | |
---|
| 6744 | |
---|
| 6745 | # IFS |
---|
| 6746 | # We need space, tab and new line, in precisely that order. |
---|
| 6747 | as_nl=' |
---|
| 6748 | ' |
---|
| 6749 | IFS=" $as_nl" |
---|
| 6750 | |
---|
| 6751 | # CDPATH. |
---|
| 6752 | $as_unset CDPATH |
---|
| 6753 | |
---|
| 6754 | exec 6>&1 |
---|
| 6755 | |
---|
| 6756 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 6757 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6758 | # values after options handling. Logging --version etc. is OK. |
---|
| 6759 | exec 5>>config.log |
---|
| 6760 | { |
---|
| 6761 | echo |
---|
| 6762 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6763 | ## Running $as_me. ## |
---|
| 6764 | _ASBOX |
---|
| 6765 | } >&5 |
---|
| 6766 | cat >&5 <<_CSEOF |
---|
| 6767 | |
---|
| 6768 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 6769 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 6770 | |
---|
| 6771 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6772 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6773 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6774 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6775 | $ $0 $@ |
---|
| 6776 | |
---|
| 6777 | _CSEOF |
---|
| 6778 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 6779 | echo >&5 |
---|
| 6780 | _ACEOF |
---|
| 6781 | |
---|
| 6782 | # Files that config.status was made for. |
---|
| 6783 | if test -n "$ac_config_files"; then |
---|
| 6784 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 6785 | fi |
---|
| 6786 | |
---|
| 6787 | if test -n "$ac_config_headers"; then |
---|
| 6788 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 6789 | fi |
---|
| 6790 | |
---|
| 6791 | if test -n "$ac_config_links"; then |
---|
| 6792 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 6793 | fi |
---|
| 6794 | |
---|
| 6795 | if test -n "$ac_config_commands"; then |
---|
| 6796 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 6797 | fi |
---|
| 6798 | |
---|
| 6799 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6800 | |
---|
| 6801 | ac_cs_usage="\ |
---|
| 6802 | \`$as_me' instantiates files from templates according to the |
---|
| 6803 | current configuration. |
---|
| 6804 | |
---|
| 6805 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 6806 | |
---|
| 6807 | -h, --help print this help, then exit |
---|
| 6808 | -V, --version print version number, then exit |
---|
| 6809 | -q, --quiet do not print progress messages |
---|
| 6810 | -d, --debug don't remove temporary files |
---|
| 6811 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6812 | --file=FILE[:TEMPLATE] |
---|
| 6813 | instantiate the configuration file FILE |
---|
| 6814 | --header=FILE[:TEMPLATE] |
---|
| 6815 | instantiate the configuration header FILE |
---|
| 6816 | |
---|
| 6817 | Configuration files: |
---|
| 6818 | $config_files |
---|
| 6819 | |
---|
| 6820 | Configuration headers: |
---|
| 6821 | $config_headers |
---|
| 6822 | |
---|
| 6823 | Configuration commands: |
---|
| 6824 | $config_commands |
---|
| 6825 | |
---|
| 6826 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 6827 | _ACEOF |
---|
| 6828 | |
---|
| 6829 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6830 | ac_cs_version="\\ |
---|
| 6831 | orxonox config.status 0.1-pre-alpha |
---|
| 6832 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 6833 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 6834 | |
---|
| 6835 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 6836 | This config.status script is free software; the Free Software Foundation |
---|
| 6837 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6838 | srcdir=$srcdir |
---|
| 6839 | INSTALL="$INSTALL" |
---|
| 6840 | _ACEOF |
---|
| 6841 | |
---|
| 6842 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6843 | # If no file are specified by the user, then we need to provide default |
---|
| 6844 | # value. By we need to know if files were specified by the user. |
---|
| 6845 | ac_need_defaults=: |
---|
| 6846 | while test $# != 0 |
---|
| 6847 | do |
---|
| 6848 | case $1 in |
---|
| 6849 | --*=*) |
---|
| 6850 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 6851 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 6852 | ac_shift=: |
---|
| 6853 | ;; |
---|
| 6854 | -*) |
---|
| 6855 | ac_option=$1 |
---|
| 6856 | ac_optarg=$2 |
---|
| 6857 | ac_shift=shift |
---|
| 6858 | ;; |
---|
| 6859 | *) # This is not an option, so the user has probably given explicit |
---|
| 6860 | # arguments. |
---|
| 6861 | ac_option=$1 |
---|
| 6862 | ac_need_defaults=false;; |
---|
| 6863 | esac |
---|
| 6864 | |
---|
| 6865 | case $ac_option in |
---|
| 6866 | # Handling of the options. |
---|
| 6867 | _ACEOF |
---|
| 6868 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6869 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6870 | ac_cs_recheck=: ;; |
---|
| 6871 | --version | --vers* | -V ) |
---|
| 6872 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 6873 | --he | --h) |
---|
| 6874 | # Conflict between --help and --header |
---|
| 6875 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 6876 | Try \`$0 --help' for more information." >&5 |
---|
| 6877 | echo "$as_me: error: ambiguous option: $1 |
---|
| 6878 | Try \`$0 --help' for more information." >&2;} |
---|
| 6879 | { (exit 1); exit 1; }; };; |
---|
| 6880 | --help | --hel | -h ) |
---|
| 6881 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 6882 | --debug | --d* | -d ) |
---|
| 6883 | debug=: ;; |
---|
| 6884 | --file | --fil | --fi | --f ) |
---|
| 6885 | $ac_shift |
---|
| 6886 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 6887 | ac_need_defaults=false;; |
---|
| 6888 | --header | --heade | --head | --hea ) |
---|
| 6889 | $ac_shift |
---|
| 6890 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 6891 | ac_need_defaults=false;; |
---|
| 6892 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6893 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6894 | ac_cs_silent=: ;; |
---|
| 6895 | |
---|
| 6896 | # This is an error. |
---|
| 6897 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 6898 | Try \`$0 --help' for more information." >&5 |
---|
| 6899 | echo "$as_me: error: unrecognized option: $1 |
---|
| 6900 | Try \`$0 --help' for more information." >&2;} |
---|
| 6901 | { (exit 1); exit 1; }; } ;; |
---|
| 6902 | |
---|
| 6903 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 6904 | |
---|
| 6905 | esac |
---|
| 6906 | shift |
---|
| 6907 | done |
---|
| 6908 | |
---|
| 6909 | ac_configure_extra_args= |
---|
| 6910 | |
---|
| 6911 | if $ac_cs_silent; then |
---|
| 6912 | exec 6>/dev/null |
---|
| 6913 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6914 | fi |
---|
| 6915 | |
---|
| 6916 | _ACEOF |
---|
| 6917 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6918 | if \$ac_cs_recheck; then |
---|
| 6919 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 6920 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6921 | fi |
---|
| 6922 | |
---|
| 6923 | _ACEOF |
---|
| 6924 | |
---|
| 6925 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6926 | # |
---|
| 6927 | # INIT-COMMANDS section. |
---|
| 6928 | # |
---|
| 6929 | |
---|
| 6930 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 6931 | |
---|
| 6932 | _ACEOF |
---|
| 6933 | |
---|
| 6934 | |
---|
| 6935 | |
---|
| 6936 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6937 | for ac_config_target in $ac_config_targets |
---|
| 6938 | do |
---|
| 6939 | case "$ac_config_target" in |
---|
| 6940 | # Handling of arguments. |
---|
| 6941 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 6942 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
| 6943 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
| 6944 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
| 6945 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 6946 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 6947 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6948 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6949 | { (exit 1); exit 1; }; };; |
---|
| 6950 | esac |
---|
| 6951 | done |
---|
| 6952 | |
---|
| 6953 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6954 | # then the envvar interface is used. Set only those that are not. |
---|
| 6955 | # We use the long form for the default assignment because of an extremely |
---|
| 6956 | # bizarre bug on SunOS 4.1.3. |
---|
| 6957 | if $ac_need_defaults; then |
---|
| 6958 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6959 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 6960 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 6961 | fi |
---|
| 6962 | |
---|
| 6963 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6964 | # simply because there is no reason to put it here, and in addition, |
---|
| 6965 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6966 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 6967 | $debug || |
---|
| 6968 | { |
---|
| 6969 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 6970 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6971 | } |
---|
| 6972 | |
---|
| 6973 | # Create a (secure) tmp directory for tmp files. |
---|
| 6974 | |
---|
| 6975 | { |
---|
| 6976 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 6977 | test -n "$tmp" && test -d "$tmp" |
---|
| 6978 | } || |
---|
| 6979 | { |
---|
| 6980 | tmp=./confstat$$-$RANDOM |
---|
| 6981 | (umask 077 && mkdir $tmp) |
---|
| 6982 | } || |
---|
| 6983 | { |
---|
| 6984 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6985 | { (exit 1); exit 1; } |
---|
| 6986 | } |
---|
| 6987 | |
---|
| 6988 | _ACEOF |
---|
| 6989 | |
---|
| 6990 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6991 | |
---|
| 6992 | # |
---|
| 6993 | # CONFIG_FILES section. |
---|
| 6994 | # |
---|
| 6995 | |
---|
| 6996 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6997 | # This happens for instance when ./config.status config.h |
---|
| 6998 | if test -n "\$CONFIG_FILES"; then |
---|
| 6999 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 7000 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 7001 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 7002 | s,@SHELL@,$SHELL,;t t |
---|
| 7003 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 7004 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 7005 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 7006 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 7007 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 7008 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 7009 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 7010 | s,@prefix@,$prefix,;t t |
---|
| 7011 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 7012 | s,@bindir@,$bindir,;t t |
---|
| 7013 | s,@sbindir@,$sbindir,;t t |
---|
| 7014 | s,@libexecdir@,$libexecdir,;t t |
---|
| 7015 | s,@datadir@,$datadir,;t t |
---|
| 7016 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 7017 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 7018 | s,@localstatedir@,$localstatedir,;t t |
---|
| 7019 | s,@libdir@,$libdir,;t t |
---|
| 7020 | s,@includedir@,$includedir,;t t |
---|
| 7021 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 7022 | s,@infodir@,$infodir,;t t |
---|
| 7023 | s,@mandir@,$mandir,;t t |
---|
| 7024 | s,@build_alias@,$build_alias,;t t |
---|
| 7025 | s,@host_alias@,$host_alias,;t t |
---|
| 7026 | s,@target_alias@,$target_alias,;t t |
---|
| 7027 | s,@DEFS@,$DEFS,;t t |
---|
| 7028 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 7029 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 7030 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 7031 | s,@LIBS@,$LIBS,;t t |
---|
| 7032 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 7033 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 7034 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 7035 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 7036 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 7037 | s,@VERSION@,$VERSION,;t t |
---|
| 7038 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 7039 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 7040 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 7041 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 7042 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 7043 | s,@AMTAR@,$AMTAR,;t t |
---|
| 7044 | s,@install_sh@,$install_sh,;t t |
---|
| 7045 | s,@STRIP@,$STRIP,;t t |
---|
| 7046 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 7047 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2705] | 7048 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 7049 | s,@AWK@,$AWK,;t t |
---|
| 7050 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 7051 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 7052 | s,@CXX@,$CXX,;t t |
---|
| 7053 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 7054 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 7055 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 7056 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 7057 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 7058 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 7059 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 7060 | s,@am__include@,$am__include,;t t |
---|
| 7061 | s,@am__quote@,$am__quote,;t t |
---|
| 7062 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 7063 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 7064 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 7065 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 7066 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 7067 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 7068 | s,@CC@,$CC,;t t |
---|
| 7069 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 7070 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 7071 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 7072 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 7073 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 7074 | s,@CPP@,$CPP,;t t |
---|
| 7075 | s,@EGREP@,$EGREP,;t t |
---|
[2701] | 7076 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[1956] | 7077 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 7078 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 7079 | CEOF |
---|
| 7080 | |
---|
| 7081 | _ACEOF |
---|
| 7082 | |
---|
| 7083 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7084 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 7085 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 7086 | ac_max_sed_lines=48 |
---|
| 7087 | ac_sed_frag=1 # Number of current file. |
---|
| 7088 | ac_beg=1 # First line for current file. |
---|
| 7089 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 7090 | ac_more_lines=: |
---|
| 7091 | ac_sed_cmds= |
---|
| 7092 | while $ac_more_lines; do |
---|
| 7093 | if test $ac_beg -gt 1; then |
---|
| 7094 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7095 | else |
---|
| 7096 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7097 | fi |
---|
| 7098 | if test ! -s $tmp/subs.frag; then |
---|
| 7099 | ac_more_lines=false |
---|
| 7100 | else |
---|
| 7101 | # The purpose of the label and of the branching condition is to |
---|
| 7102 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 7103 | # is no need to browse any of the substitutions). |
---|
| 7104 | # These are the two extra sed commands mentioned above. |
---|
| 7105 | (echo ':t |
---|
| 7106 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 7107 | if test -z "$ac_sed_cmds"; then |
---|
| 7108 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 7109 | else |
---|
| 7110 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 7111 | fi |
---|
| 7112 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 7113 | ac_beg=$ac_end |
---|
| 7114 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 7115 | fi |
---|
| 7116 | done |
---|
| 7117 | if test -z "$ac_sed_cmds"; then |
---|
| 7118 | ac_sed_cmds=cat |
---|
| 7119 | fi |
---|
| 7120 | fi # test -n "$CONFIG_FILES" |
---|
| 7121 | |
---|
| 7122 | _ACEOF |
---|
| 7123 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7124 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 7125 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7126 | case $ac_file in |
---|
| 7127 | - | *:- | *:-:* ) # input from stdin |
---|
| 7128 | cat >$tmp/stdin |
---|
| 7129 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7130 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7131 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7132 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7133 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7134 | esac |
---|
| 7135 | |
---|
| 7136 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 7137 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7138 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7139 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7140 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7141 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7142 | . : '\(.\)' 2>/dev/null || |
---|
| 7143 | echo X"$ac_file" | |
---|
| 7144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7145 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7146 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7147 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7148 | s/.*/./; q'` |
---|
| 7149 | { if $as_mkdir_p; then |
---|
| 7150 | mkdir -p "$ac_dir" |
---|
| 7151 | else |
---|
| 7152 | as_dir="$ac_dir" |
---|
| 7153 | as_dirs= |
---|
| 7154 | while test ! -d "$as_dir"; do |
---|
| 7155 | as_dirs="$as_dir $as_dirs" |
---|
| 7156 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7157 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7158 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7159 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7160 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7161 | . : '\(.\)' 2>/dev/null || |
---|
| 7162 | echo X"$as_dir" | |
---|
| 7163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7164 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7165 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7166 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7167 | s/.*/./; q'` |
---|
| 7168 | done |
---|
| 7169 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7170 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7171 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7172 | { (exit 1); exit 1; }; }; } |
---|
| 7173 | |
---|
| 7174 | ac_builddir=. |
---|
| 7175 | |
---|
| 7176 | if test "$ac_dir" != .; then |
---|
| 7177 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7178 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7179 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7180 | else |
---|
| 7181 | ac_dir_suffix= ac_top_builddir= |
---|
| 7182 | fi |
---|
| 7183 | |
---|
| 7184 | case $srcdir in |
---|
| 7185 | .) # No --srcdir option. We are building in place. |
---|
| 7186 | ac_srcdir=. |
---|
| 7187 | if test -z "$ac_top_builddir"; then |
---|
| 7188 | ac_top_srcdir=. |
---|
| 7189 | else |
---|
| 7190 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7191 | fi ;; |
---|
| 7192 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7193 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7194 | ac_top_srcdir=$srcdir ;; |
---|
| 7195 | *) # Relative path. |
---|
| 7196 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7197 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7198 | esac |
---|
| 7199 | |
---|
| 7200 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7201 | # the directories may not exist. |
---|
| 7202 | case `pwd` in |
---|
| 7203 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7204 | *) |
---|
| 7205 | case "$ac_dir" in |
---|
| 7206 | .) ac_abs_builddir=`pwd`;; |
---|
| 7207 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7208 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7209 | esac;; |
---|
| 7210 | esac |
---|
| 7211 | case $ac_abs_builddir in |
---|
| 7212 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7213 | *) |
---|
| 7214 | case ${ac_top_builddir}. in |
---|
| 7215 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7216 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7217 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7218 | esac;; |
---|
| 7219 | esac |
---|
| 7220 | case $ac_abs_builddir in |
---|
| 7221 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7222 | *) |
---|
| 7223 | case $ac_srcdir in |
---|
| 7224 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7225 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7226 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7227 | esac;; |
---|
| 7228 | esac |
---|
| 7229 | case $ac_abs_builddir in |
---|
| 7230 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7231 | *) |
---|
| 7232 | case $ac_top_srcdir in |
---|
| 7233 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7234 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7235 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7236 | esac;; |
---|
| 7237 | esac |
---|
| 7238 | |
---|
| 7239 | |
---|
| 7240 | case $INSTALL in |
---|
| 7241 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 7242 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 7243 | esac |
---|
| 7244 | |
---|
| 7245 | if test x"$ac_file" != x-; then |
---|
| 7246 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7247 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7248 | rm -f "$ac_file" |
---|
| 7249 | fi |
---|
| 7250 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7251 | # use $as_me), people would be surprised to read: |
---|
| 7252 | # /* config.h. Generated by config.status. */ |
---|
| 7253 | if test x"$ac_file" = x-; then |
---|
| 7254 | configure_input= |
---|
| 7255 | else |
---|
| 7256 | configure_input="$ac_file. " |
---|
| 7257 | fi |
---|
| 7258 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 7259 | sed 's,.*/,,'` by configure." |
---|
| 7260 | |
---|
| 7261 | # First look for the input files in the build tree, otherwise in the |
---|
| 7262 | # src tree. |
---|
| 7263 | ac_file_inputs=`IFS=: |
---|
| 7264 | for f in $ac_file_in; do |
---|
| 7265 | case $f in |
---|
| 7266 | -) echo $tmp/stdin ;; |
---|
| 7267 | [\\/$]*) |
---|
| 7268 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7269 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7270 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7271 | { (exit 1); exit 1; }; } |
---|
| 7272 | echo "$f";; |
---|
| 7273 | *) # Relative |
---|
| 7274 | if test -f "$f"; then |
---|
| 7275 | # Build tree |
---|
| 7276 | echo "$f" |
---|
| 7277 | elif test -f "$srcdir/$f"; then |
---|
| 7278 | # Source tree |
---|
| 7279 | echo "$srcdir/$f" |
---|
| 7280 | else |
---|
| 7281 | # /dev/null tree |
---|
| 7282 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7283 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7284 | { (exit 1); exit 1; }; } |
---|
| 7285 | fi;; |
---|
| 7286 | esac |
---|
| 7287 | done` || { (exit 1); exit 1; } |
---|
| 7288 | _ACEOF |
---|
| 7289 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7290 | sed "$ac_vpsub |
---|
| 7291 | $extrasub |
---|
| 7292 | _ACEOF |
---|
| 7293 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7294 | :t |
---|
| 7295 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 7296 | s,@configure_input@,$configure_input,;t t |
---|
| 7297 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 7298 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 7299 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 7300 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 7301 | s,@builddir@,$ac_builddir,;t t |
---|
| 7302 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 7303 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 7304 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 7305 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 7306 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 7307 | rm -f $tmp/stdin |
---|
| 7308 | if test x"$ac_file" != x-; then |
---|
| 7309 | mv $tmp/out $ac_file |
---|
| 7310 | else |
---|
| 7311 | cat $tmp/out |
---|
| 7312 | rm -f $tmp/out |
---|
| 7313 | fi |
---|
| 7314 | |
---|
| 7315 | done |
---|
| 7316 | _ACEOF |
---|
| 7317 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7318 | |
---|
| 7319 | # |
---|
| 7320 | # CONFIG_HEADER section. |
---|
| 7321 | # |
---|
| 7322 | |
---|
| 7323 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 7324 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 7325 | # |
---|
| 7326 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 7327 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 7328 | ac_dB='[ ].*$,\1#\2' |
---|
| 7329 | ac_dC=' ' |
---|
| 7330 | ac_dD=',;t' |
---|
| 7331 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 7332 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 7333 | ac_uB='$,\1#\2define\3' |
---|
| 7334 | ac_uC=' ' |
---|
| 7335 | ac_uD=',;t' |
---|
| 7336 | |
---|
| 7337 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 7338 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7339 | case $ac_file in |
---|
| 7340 | - | *:- | *:-:* ) # input from stdin |
---|
| 7341 | cat >$tmp/stdin |
---|
| 7342 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7343 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7344 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7345 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7346 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7347 | esac |
---|
| 7348 | |
---|
| 7349 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7350 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7351 | |
---|
| 7352 | # First look for the input files in the build tree, otherwise in the |
---|
| 7353 | # src tree. |
---|
| 7354 | ac_file_inputs=`IFS=: |
---|
| 7355 | for f in $ac_file_in; do |
---|
| 7356 | case $f in |
---|
| 7357 | -) echo $tmp/stdin ;; |
---|
| 7358 | [\\/$]*) |
---|
| 7359 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7360 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7361 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7362 | { (exit 1); exit 1; }; } |
---|
| 7363 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 7364 | echo "$f";; |
---|
| 7365 | *) # Relative |
---|
| 7366 | if test -f "$f"; then |
---|
| 7367 | # Build tree |
---|
| 7368 | echo "$f" |
---|
| 7369 | elif test -f "$srcdir/$f"; then |
---|
| 7370 | # Source tree |
---|
| 7371 | echo "$srcdir/$f" |
---|
| 7372 | else |
---|
| 7373 | # /dev/null tree |
---|
| 7374 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7375 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7376 | { (exit 1); exit 1; }; } |
---|
| 7377 | fi;; |
---|
| 7378 | esac |
---|
| 7379 | done` || { (exit 1); exit 1; } |
---|
| 7380 | # Remove the trailing spaces. |
---|
| 7381 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 7382 | |
---|
| 7383 | _ACEOF |
---|
| 7384 | |
---|
| 7385 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 7386 | # `conftest.undefs', that substitutes the proper values into |
---|
| 7387 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 7388 | # templates, and the second `#undef' templates. |
---|
| 7389 | # And first: Protect against being on the right side of a sed subst in |
---|
| 7390 | # config.status. Protect against being in an unquoted here document |
---|
| 7391 | # in config.status. |
---|
| 7392 | rm -f conftest.defines conftest.undefs |
---|
| 7393 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 7394 | # Putting comments in sed scripts is not portable. |
---|
| 7395 | # |
---|
| 7396 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 7397 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 7398 | # See the Autoconf documentation for `clear'. |
---|
| 7399 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 7400 | s/[\\&,]/\\&/g |
---|
| 7401 | s,[\\$`],\\&,g |
---|
| 7402 | t clear |
---|
| 7403 | : clear |
---|
| 7404 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 7405 | t end |
---|
| 7406 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 7407 | : end |
---|
| 7408 | _ACEOF |
---|
| 7409 | # If some macros were called several times there might be several times |
---|
| 7410 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 7411 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 7412 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 7413 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 7414 | rm -f confdef2sed.sed |
---|
| 7415 | |
---|
| 7416 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 7417 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7418 | # on some systems where configure will not decide to define it. |
---|
| 7419 | cat >>conftest.undefs <<\_ACEOF |
---|
| 7420 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 7421 | _ACEOF |
---|
| 7422 | |
---|
| 7423 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 7424 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7425 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 7426 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 7427 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 7428 | echo ' :' >>$CONFIG_STATUS |
---|
| 7429 | rm -f conftest.tail |
---|
| 7430 | while grep . conftest.defines >/dev/null |
---|
| 7431 | do |
---|
| 7432 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 7433 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7434 | # Speed up: don't consider the non `#define' lines. |
---|
| 7435 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 7436 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7437 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7438 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7439 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 7440 | echo 'CEOF |
---|
| 7441 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 7442 | rm -f $tmp/in |
---|
| 7443 | mv $tmp/out $tmp/in |
---|
| 7444 | ' >>$CONFIG_STATUS |
---|
| 7445 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 7446 | rm -f conftest.defines |
---|
| 7447 | mv conftest.tail conftest.defines |
---|
| 7448 | done |
---|
| 7449 | rm -f conftest.defines |
---|
| 7450 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 7451 | echo >>$CONFIG_STATUS |
---|
| 7452 | |
---|
| 7453 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 7454 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7455 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 7456 | rm -f conftest.tail |
---|
| 7457 | while grep . conftest.undefs >/dev/null |
---|
| 7458 | do |
---|
| 7459 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 7460 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7461 | # Speed up: don't consider the non `#undef' |
---|
| 7462 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 7463 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7464 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7465 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7466 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 7467 | echo 'CEOF |
---|
| 7468 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 7469 | rm -f $tmp/in |
---|
| 7470 | mv $tmp/out $tmp/in |
---|
| 7471 | ' >>$CONFIG_STATUS |
---|
| 7472 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 7473 | rm -f conftest.undefs |
---|
| 7474 | mv conftest.tail conftest.undefs |
---|
| 7475 | done |
---|
| 7476 | rm -f conftest.undefs |
---|
| 7477 | |
---|
| 7478 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7479 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7480 | # use $as_me), people would be surprised to read: |
---|
| 7481 | # /* config.h. Generated by config.status. */ |
---|
| 7482 | if test x"$ac_file" = x-; then |
---|
| 7483 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 7484 | else |
---|
| 7485 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 7486 | fi |
---|
| 7487 | cat $tmp/in >>$tmp/config.h |
---|
| 7488 | rm -f $tmp/in |
---|
| 7489 | if test x"$ac_file" != x-; then |
---|
| 7490 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 7491 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 7492 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 7493 | else |
---|
| 7494 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7495 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7496 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7497 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7498 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7499 | . : '\(.\)' 2>/dev/null || |
---|
| 7500 | echo X"$ac_file" | |
---|
| 7501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7502 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7503 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7504 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7505 | s/.*/./; q'` |
---|
| 7506 | { if $as_mkdir_p; then |
---|
| 7507 | mkdir -p "$ac_dir" |
---|
| 7508 | else |
---|
| 7509 | as_dir="$ac_dir" |
---|
| 7510 | as_dirs= |
---|
| 7511 | while test ! -d "$as_dir"; do |
---|
| 7512 | as_dirs="$as_dir $as_dirs" |
---|
| 7513 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7514 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7515 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7516 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7517 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7518 | . : '\(.\)' 2>/dev/null || |
---|
| 7519 | echo X"$as_dir" | |
---|
| 7520 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7521 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7522 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7523 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7524 | s/.*/./; q'` |
---|
| 7525 | done |
---|
| 7526 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7527 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7528 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7529 | { (exit 1); exit 1; }; }; } |
---|
| 7530 | |
---|
| 7531 | rm -f $ac_file |
---|
| 7532 | mv $tmp/config.h $ac_file |
---|
| 7533 | fi |
---|
| 7534 | else |
---|
| 7535 | cat $tmp/config.h |
---|
| 7536 | rm -f $tmp/config.h |
---|
| 7537 | fi |
---|
| 7538 | # Compute $ac_file's index in $config_headers. |
---|
| 7539 | _am_stamp_count=1 |
---|
| 7540 | for _am_header in $config_headers :; do |
---|
| 7541 | case $_am_header in |
---|
| 7542 | $ac_file | $ac_file:* ) |
---|
| 7543 | break ;; |
---|
| 7544 | * ) |
---|
| 7545 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 7546 | esac |
---|
| 7547 | done |
---|
| 7548 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 7549 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7550 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 7551 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 7552 | X$ac_file : 'X\(/\)' \| \ |
---|
| 7553 | . : '\(.\)' 2>/dev/null || |
---|
| 7554 | echo X$ac_file | |
---|
| 7555 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7556 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7557 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7558 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7559 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 7560 | done |
---|
| 7561 | _ACEOF |
---|
| 7562 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7563 | |
---|
| 7564 | # |
---|
| 7565 | # CONFIG_COMMANDS section. |
---|
| 7566 | # |
---|
| 7567 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 7568 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 7569 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7570 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 7571 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7572 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 7573 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 7574 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 7575 | . : '\(.\)' 2>/dev/null || |
---|
| 7576 | echo X"$ac_dest" | |
---|
| 7577 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7578 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7579 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7580 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7581 | s/.*/./; q'` |
---|
| 7582 | { if $as_mkdir_p; then |
---|
| 7583 | mkdir -p "$ac_dir" |
---|
| 7584 | else |
---|
| 7585 | as_dir="$ac_dir" |
---|
| 7586 | as_dirs= |
---|
| 7587 | while test ! -d "$as_dir"; do |
---|
| 7588 | as_dirs="$as_dir $as_dirs" |
---|
| 7589 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7590 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7591 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7592 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7593 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7594 | . : '\(.\)' 2>/dev/null || |
---|
| 7595 | echo X"$as_dir" | |
---|
| 7596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7597 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7598 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7599 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7600 | s/.*/./; q'` |
---|
| 7601 | done |
---|
| 7602 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7603 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7604 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7605 | { (exit 1); exit 1; }; }; } |
---|
| 7606 | |
---|
| 7607 | ac_builddir=. |
---|
| 7608 | |
---|
| 7609 | if test "$ac_dir" != .; then |
---|
| 7610 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7611 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7612 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7613 | else |
---|
| 7614 | ac_dir_suffix= ac_top_builddir= |
---|
| 7615 | fi |
---|
| 7616 | |
---|
| 7617 | case $srcdir in |
---|
| 7618 | .) # No --srcdir option. We are building in place. |
---|
| 7619 | ac_srcdir=. |
---|
| 7620 | if test -z "$ac_top_builddir"; then |
---|
| 7621 | ac_top_srcdir=. |
---|
| 7622 | else |
---|
| 7623 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7624 | fi ;; |
---|
| 7625 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7626 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7627 | ac_top_srcdir=$srcdir ;; |
---|
| 7628 | *) # Relative path. |
---|
| 7629 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7630 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7631 | esac |
---|
| 7632 | |
---|
| 7633 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7634 | # the directories may not exist. |
---|
| 7635 | case `pwd` in |
---|
| 7636 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7637 | *) |
---|
| 7638 | case "$ac_dir" in |
---|
| 7639 | .) ac_abs_builddir=`pwd`;; |
---|
| 7640 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7641 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7642 | esac;; |
---|
| 7643 | esac |
---|
| 7644 | case $ac_abs_builddir in |
---|
| 7645 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7646 | *) |
---|
| 7647 | case ${ac_top_builddir}. in |
---|
| 7648 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7649 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7650 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7651 | esac;; |
---|
| 7652 | esac |
---|
| 7653 | case $ac_abs_builddir in |
---|
| 7654 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7655 | *) |
---|
| 7656 | case $ac_srcdir in |
---|
| 7657 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7658 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7659 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7660 | esac;; |
---|
| 7661 | esac |
---|
| 7662 | case $ac_abs_builddir in |
---|
| 7663 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7664 | *) |
---|
| 7665 | case $ac_top_srcdir in |
---|
| 7666 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7667 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7668 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7669 | esac;; |
---|
| 7670 | esac |
---|
| 7671 | |
---|
| 7672 | |
---|
| 7673 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 7674 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 7675 | case $ac_dest in |
---|
| 7676 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 7677 | # Strip MF so we end up with the name of the file. |
---|
| 7678 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 7679 | # Check whether this is an Automake generated Makefile or not. |
---|
| 7680 | # We used to match only the files named `Makefile.in', but |
---|
| 7681 | # some people rename them; so instead we look at the file content. |
---|
| 7682 | # Grep'ing the first line is not enough: some people post-process |
---|
| 7683 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 7684 | # So let's grep whole file. |
---|
| 7685 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 7686 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 7687 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7688 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 7689 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 7690 | X"$mf" : 'X\(/\)' \| \ |
---|
| 7691 | . : '\(.\)' 2>/dev/null || |
---|
| 7692 | echo X"$mf" | |
---|
| 7693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7694 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7695 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7696 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7697 | s/.*/./; q'` |
---|
| 7698 | else |
---|
| 7699 | continue |
---|
| 7700 | fi |
---|
| 7701 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 7702 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 7703 | # running `make'. |
---|
[2705] | 7704 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 7705 | test -z "$DEPDIR" && continue |
---|
| 7706 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2705] | 7707 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 7708 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 7709 | # We invoke sed twice because it is the simplest approach to |
---|
| 7710 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2705] | 7711 | for file in `sed -n ' |
---|
[1956] | 7712 | /^DEP_FILES = .*\\\\$/ { |
---|
| 7713 | s/^DEP_FILES = // |
---|
| 7714 | :loop |
---|
| 7715 | s/\\\\$// |
---|
| 7716 | p |
---|
| 7717 | n |
---|
| 7718 | /\\\\$/ b loop |
---|
| 7719 | p |
---|
| 7720 | } |
---|
| 7721 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 7722 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 7723 | # Make sure the directory exists. |
---|
| 7724 | test -f "$dirpart/$file" && continue |
---|
| 7725 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 7726 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7727 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 7728 | X"$file" : 'X\(//\)$' \| \ |
---|
| 7729 | X"$file" : 'X\(/\)' \| \ |
---|
| 7730 | . : '\(.\)' 2>/dev/null || |
---|
| 7731 | echo X"$file" | |
---|
| 7732 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7733 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7734 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7735 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7736 | s/.*/./; q'` |
---|
| 7737 | { if $as_mkdir_p; then |
---|
| 7738 | mkdir -p $dirpart/$fdir |
---|
| 7739 | else |
---|
| 7740 | as_dir=$dirpart/$fdir |
---|
| 7741 | as_dirs= |
---|
| 7742 | while test ! -d "$as_dir"; do |
---|
| 7743 | as_dirs="$as_dir $as_dirs" |
---|
| 7744 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7745 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7746 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7747 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7748 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7749 | . : '\(.\)' 2>/dev/null || |
---|
| 7750 | echo X"$as_dir" | |
---|
| 7751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7752 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7753 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7754 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7755 | s/.*/./; q'` |
---|
| 7756 | done |
---|
| 7757 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7758 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 7759 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 7760 | { (exit 1); exit 1; }; }; } |
---|
| 7761 | |
---|
| 7762 | # echo "creating $dirpart/$file" |
---|
| 7763 | echo '# dummy' > "$dirpart/$file" |
---|
| 7764 | done |
---|
| 7765 | done |
---|
| 7766 | ;; |
---|
| 7767 | esac |
---|
| 7768 | done |
---|
| 7769 | _ACEOF |
---|
| 7770 | |
---|
| 7771 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7772 | |
---|
| 7773 | { (exit 0); exit 0; } |
---|
| 7774 | _ACEOF |
---|
| 7775 | chmod +x $CONFIG_STATUS |
---|
| 7776 | ac_clean_files=$ac_clean_files_save |
---|
| 7777 | |
---|
| 7778 | |
---|
| 7779 | # configure is writing to config.log, and then calls config.status. |
---|
| 7780 | # config.status does its own redirection, appending to config.log. |
---|
| 7781 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7782 | # by configure, so config.status won't be able to write to it; its |
---|
| 7783 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7784 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7785 | # appended to by config.status. When coming back to configure, we |
---|
| 7786 | # need to make the FD available again. |
---|
| 7787 | if test "$no_create" != yes; then |
---|
| 7788 | ac_cs_success=: |
---|
| 7789 | ac_config_status_args= |
---|
| 7790 | test "$silent" = yes && |
---|
| 7791 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7792 | exec 5>/dev/null |
---|
| 7793 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7794 | exec 5>>config.log |
---|
| 7795 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7796 | # would make configure fail if this is the last instruction. |
---|
| 7797 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 7798 | fi |
---|
| 7799 | |
---|