[1977] | 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 | |
---|
[1977] | 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 | |
---|
[1977] | 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 | |
---|
[1977] | 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
[1853] | 39 | |
---|
[1977] | 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 | |
---|
[1977] | 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 | |
---|
[1977] | 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 | |
---|
[1977] | 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 |
---|
[1977] | 199 | as_expr=false |
---|
[1853] | 200 | fi |
---|
| 201 | |
---|
[1977] | 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 |
---|
[1977] | 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[1853] | 219 | |
---|
[1977] | 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 | |
---|
[1977] | 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 | |
---|
[2015] | 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 AWK SET_MAKE am__leading_dot MSBITFIELDS 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 LIBOBJS LTLIBOBJS' |
---|
[1977] | 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 | |
---|
[1977] | 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 | |
---|
[1977] | 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 |
---|
| 699 | fi |
---|
| 700 | |
---|
| 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] |
---|
| 860 | --disable-dependency-tracking Speeds up one-time builds |
---|
| 861 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
| 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 | |
---|
| 1323 | am__api_version="1.7" |
---|
| 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 |
---|
[1977] | 1399 | done |
---|
| 1400 | done |
---|
| 1401 | ;; |
---|
| 1402 | esac |
---|
| 1403 | done |
---|
| 1404 | |
---|
| 1405 | |
---|
[1853] | 1406 | fi |
---|
[1977] | 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 |
---|
[1853] | 1419 | |
---|
[1977] | 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 | : |
---|
| 1464 | else |
---|
| 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; }; } |
---|
| 1470 | fi |
---|
| 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 |
---|
| 1485 | |
---|
| 1486 | |
---|
| 1487 | # expand $ac_aux_dir to an absolute path |
---|
| 1488 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1489 | |
---|
| 1490 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1491 | # Use eval to expand $SHELL |
---|
| 1492 | if eval "$MISSING --run true"; then |
---|
| 1493 | am_missing_run="$MISSING --run " |
---|
| 1494 | else |
---|
| 1495 | am_missing_run= |
---|
| 1496 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1497 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1498 | fi |
---|
| 1499 | |
---|
| 1500 | for ac_prog in gawk mawk nawk awk |
---|
| 1501 | do |
---|
| 1502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1503 | set dummy $ac_prog; ac_word=$2 |
---|
| 1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1506 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1508 | else |
---|
| 1509 | if test -n "$AWK"; then |
---|
| 1510 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1511 | else |
---|
| 1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1513 | for as_dir in $PATH |
---|
| 1514 | do |
---|
| 1515 | IFS=$as_save_IFS |
---|
| 1516 | test -z "$as_dir" && as_dir=. |
---|
| 1517 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1519 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1521 | break 2 |
---|
| 1522 | fi |
---|
| 1523 | done |
---|
| 1524 | done |
---|
| 1525 | |
---|
| 1526 | fi |
---|
| 1527 | fi |
---|
| 1528 | AWK=$ac_cv_prog_AWK |
---|
| 1529 | if test -n "$AWK"; then |
---|
| 1530 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1531 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1532 | else |
---|
| 1533 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1534 | echo "${ECHO_T}no" >&6 |
---|
| 1535 | fi |
---|
| 1536 | |
---|
| 1537 | test -n "$AWK" && break |
---|
| 1538 | done |
---|
| 1539 | |
---|
| 1540 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1541 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1542 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1543 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1545 | else |
---|
| 1546 | cat >conftest.make <<\_ACEOF |
---|
| 1547 | all: |
---|
| 1548 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1549 | _ACEOF |
---|
| 1550 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1551 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1552 | if test -n "$ac_maketemp"; then |
---|
| 1553 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1554 | else |
---|
| 1555 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1556 | fi |
---|
| 1557 | rm -f conftest.make |
---|
| 1558 | fi |
---|
| 1559 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1560 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1561 | echo "${ECHO_T}yes" >&6 |
---|
| 1562 | SET_MAKE= |
---|
| 1563 | else |
---|
| 1564 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1565 | echo "${ECHO_T}no" >&6 |
---|
| 1566 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1567 | fi |
---|
| 1568 | |
---|
| 1569 | rm -rf .tst 2>/dev/null |
---|
| 1570 | mkdir .tst 2>/dev/null |
---|
| 1571 | if test -d .tst; then |
---|
| 1572 | am__leading_dot=. |
---|
| 1573 | else |
---|
| 1574 | am__leading_dot=_ |
---|
| 1575 | fi |
---|
| 1576 | rmdir .tst 2>/dev/null |
---|
| 1577 | |
---|
| 1578 | # test to see if srcdir already configured |
---|
| 1579 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1580 | test -f $srcdir/config.status; then |
---|
| 1581 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1582 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1583 | { (exit 1); exit 1; }; } |
---|
| 1584 | fi |
---|
| 1585 | |
---|
| 1586 | # test whether we have cygpath |
---|
| 1587 | if test -z "$CYGPATH_W"; then |
---|
| 1588 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1589 | CYGPATH_W='cygpath -w' |
---|
| 1590 | else |
---|
| 1591 | CYGPATH_W=echo |
---|
| 1592 | fi |
---|
| 1593 | fi |
---|
| 1594 | |
---|
| 1595 | |
---|
| 1596 | # Define the identity of the package. |
---|
| 1597 | PACKAGE='orxonox' |
---|
| 1598 | VERSION='0.1-pre-alpha' |
---|
| 1599 | |
---|
| 1600 | |
---|
| 1601 | cat >>confdefs.h <<_ACEOF |
---|
| 1602 | #define PACKAGE "$PACKAGE" |
---|
| 1603 | _ACEOF |
---|
| 1604 | |
---|
| 1605 | |
---|
| 1606 | cat >>confdefs.h <<_ACEOF |
---|
| 1607 | #define VERSION "$VERSION" |
---|
| 1608 | _ACEOF |
---|
| 1609 | |
---|
| 1610 | # Some tools Automake needs. |
---|
| 1611 | |
---|
| 1612 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1613 | |
---|
| 1614 | |
---|
| 1615 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1616 | |
---|
| 1617 | |
---|
| 1618 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1619 | |
---|
| 1620 | |
---|
| 1621 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1622 | |
---|
| 1623 | |
---|
| 1624 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1625 | |
---|
| 1626 | |
---|
| 1627 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1628 | |
---|
| 1629 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1630 | |
---|
| 1631 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1632 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1633 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1634 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1635 | if test "$cross_compiling" != no; then |
---|
| 1636 | if test -n "$ac_tool_prefix"; then |
---|
| 1637 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1638 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1641 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1643 | else |
---|
| 1644 | if test -n "$STRIP"; then |
---|
| 1645 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1646 | else |
---|
| 1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1648 | for as_dir in $PATH |
---|
| 1649 | do |
---|
| 1650 | IFS=$as_save_IFS |
---|
| 1651 | test -z "$as_dir" && as_dir=. |
---|
| 1652 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1654 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1656 | break 2 |
---|
| 1657 | fi |
---|
| 1658 | done |
---|
| 1659 | done |
---|
| 1660 | |
---|
| 1661 | fi |
---|
| 1662 | fi |
---|
| 1663 | STRIP=$ac_cv_prog_STRIP |
---|
| 1664 | if test -n "$STRIP"; then |
---|
| 1665 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1666 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1667 | else |
---|
| 1668 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1669 | echo "${ECHO_T}no" >&6 |
---|
| 1670 | fi |
---|
| 1671 | |
---|
| 1672 | fi |
---|
| 1673 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1674 | ac_ct_STRIP=$STRIP |
---|
| 1675 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1676 | set dummy strip; ac_word=$2 |
---|
| 1677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1679 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1681 | else |
---|
| 1682 | if test -n "$ac_ct_STRIP"; then |
---|
| 1683 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1684 | else |
---|
| 1685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1686 | for as_dir in $PATH |
---|
| 1687 | do |
---|
| 1688 | IFS=$as_save_IFS |
---|
| 1689 | test -z "$as_dir" && as_dir=. |
---|
| 1690 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1692 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1694 | break 2 |
---|
| 1695 | fi |
---|
| 1696 | done |
---|
| 1697 | done |
---|
| 1698 | |
---|
| 1699 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1700 | fi |
---|
| 1701 | fi |
---|
| 1702 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1703 | if test -n "$ac_ct_STRIP"; then |
---|
| 1704 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1705 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1706 | else |
---|
| 1707 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1708 | echo "${ECHO_T}no" >&6 |
---|
| 1709 | fi |
---|
| 1710 | |
---|
| 1711 | STRIP=$ac_ct_STRIP |
---|
| 1712 | else |
---|
| 1713 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1714 | fi |
---|
| 1715 | |
---|
| 1716 | fi |
---|
| 1717 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1718 | |
---|
| 1719 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1720 | # some platforms. |
---|
| 1721 | |
---|
| 1722 | |
---|
| 1723 | |
---|
| 1724 | |
---|
| 1725 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1726 | |
---|
| 1727 | |
---|
[2015] | 1728 | echo "$as_me:$LINENO: checking for mingw" >&5 |
---|
| 1729 | echo $ECHO_N "checking for mingw... $ECHO_C" >&6 |
---|
| 1730 | case `uname` in |
---|
| 1731 | *MINGW*) |
---|
| 1732 | mingw=yes |
---|
| 1733 | MSBITFIELDS="-mms-bitfields" |
---|
| 1734 | ;; |
---|
| 1735 | *) |
---|
| 1736 | mingw=no |
---|
| 1737 | ;; |
---|
| 1738 | esac |
---|
| 1739 | echo "$as_me:$LINENO: result: $mingw" >&5 |
---|
| 1740 | echo "${ECHO_T}$mingw" >&6 |
---|
| 1741 | |
---|
| 1742 | |
---|
| 1743 | |
---|
[1977] | 1744 | # Checks for programs. |
---|
| 1745 | ac_ext=cc |
---|
| 1746 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1747 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1748 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1749 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1750 | if test -n "$ac_tool_prefix"; then |
---|
| 1751 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1752 | do |
---|
| 1753 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1754 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1757 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1759 | else |
---|
| 1760 | if test -n "$CXX"; then |
---|
| 1761 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1762 | else |
---|
| 1763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1764 | for as_dir in $PATH |
---|
| 1765 | do |
---|
| 1766 | IFS=$as_save_IFS |
---|
| 1767 | test -z "$as_dir" && as_dir=. |
---|
| 1768 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1770 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1772 | break 2 |
---|
| 1773 | fi |
---|
| 1774 | done |
---|
| 1775 | done |
---|
| 1776 | |
---|
| 1777 | fi |
---|
| 1778 | fi |
---|
| 1779 | CXX=$ac_cv_prog_CXX |
---|
| 1780 | if test -n "$CXX"; then |
---|
| 1781 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1782 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1783 | else |
---|
| 1784 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1785 | echo "${ECHO_T}no" >&6 |
---|
| 1786 | fi |
---|
| 1787 | |
---|
| 1788 | test -n "$CXX" && break |
---|
| 1789 | done |
---|
| 1790 | fi |
---|
| 1791 | if test -z "$CXX"; then |
---|
| 1792 | ac_ct_CXX=$CXX |
---|
| 1793 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1794 | do |
---|
| 1795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1796 | set dummy $ac_prog; ac_word=$2 |
---|
| 1797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1799 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1801 | else |
---|
| 1802 | if test -n "$ac_ct_CXX"; then |
---|
| 1803 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1804 | else |
---|
| 1805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1806 | for as_dir in $PATH |
---|
| 1807 | do |
---|
| 1808 | IFS=$as_save_IFS |
---|
| 1809 | test -z "$as_dir" && as_dir=. |
---|
| 1810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1812 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1814 | break 2 |
---|
| 1815 | fi |
---|
| 1816 | done |
---|
| 1817 | done |
---|
| 1818 | |
---|
| 1819 | fi |
---|
| 1820 | fi |
---|
| 1821 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1822 | if test -n "$ac_ct_CXX"; then |
---|
| 1823 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1824 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1825 | else |
---|
| 1826 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1827 | echo "${ECHO_T}no" >&6 |
---|
| 1828 | fi |
---|
| 1829 | |
---|
| 1830 | test -n "$ac_ct_CXX" && break |
---|
| 1831 | done |
---|
| 1832 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1833 | |
---|
| 1834 | CXX=$ac_ct_CXX |
---|
| 1835 | fi |
---|
| 1836 | |
---|
| 1837 | |
---|
| 1838 | # Provide some information about the compiler. |
---|
| 1839 | echo "$as_me:$LINENO:" \ |
---|
| 1840 | "checking for C++ compiler version" >&5 |
---|
| 1841 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1842 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1843 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1844 | ac_status=$? |
---|
| 1845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1846 | (exit $ac_status); } |
---|
| 1847 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1848 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1849 | ac_status=$? |
---|
| 1850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1851 | (exit $ac_status); } |
---|
| 1852 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1853 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1854 | ac_status=$? |
---|
| 1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1856 | (exit $ac_status); } |
---|
| 1857 | |
---|
| 1858 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1859 | /* confdefs.h. */ |
---|
| 1860 | _ACEOF |
---|
| 1861 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1862 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1863 | /* end confdefs.h. */ |
---|
| 1864 | |
---|
| 1865 | int |
---|
| 1866 | main () |
---|
| 1867 | { |
---|
| 1868 | |
---|
| 1869 | ; |
---|
| 1870 | return 0; |
---|
| 1871 | } |
---|
| 1872 | _ACEOF |
---|
| 1873 | ac_clean_files_save=$ac_clean_files |
---|
| 1874 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1875 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1876 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1877 | # of exeext. |
---|
| 1878 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1879 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1880 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1881 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1882 | (eval $ac_link_default) 2>&5 |
---|
| 1883 | ac_status=$? |
---|
| 1884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1885 | (exit $ac_status); }; then |
---|
| 1886 | # Find the output, starting from the most likely. This scheme is |
---|
| 1887 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1888 | # resort. |
---|
| 1889 | |
---|
| 1890 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1891 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1892 | ac_cv_exeext= |
---|
| 1893 | # b.out is created by i960 compilers. |
---|
| 1894 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1895 | do |
---|
| 1896 | test -f "$ac_file" || continue |
---|
| 1897 | case $ac_file in |
---|
| 1898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1899 | ;; |
---|
| 1900 | conftest.$ac_ext ) |
---|
| 1901 | # This is the source file. |
---|
| 1902 | ;; |
---|
| 1903 | [ab].out ) |
---|
| 1904 | # We found the default executable, but exeext='' is most |
---|
| 1905 | # certainly right. |
---|
| 1906 | break;; |
---|
| 1907 | *.* ) |
---|
| 1908 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1909 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1910 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1911 | # maintain Libtool? --akim. |
---|
| 1912 | export ac_cv_exeext |
---|
| 1913 | break;; |
---|
| 1914 | * ) |
---|
| 1915 | break;; |
---|
| 1916 | esac |
---|
| 1917 | done |
---|
| 1918 | else |
---|
| 1919 | echo "$as_me: failed program was:" >&5 |
---|
| 1920 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1921 | |
---|
| 1922 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1923 | See \`config.log' for more details." >&5 |
---|
| 1924 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1925 | See \`config.log' for more details." >&2;} |
---|
| 1926 | { (exit 77); exit 77; }; } |
---|
| 1927 | fi |
---|
| 1928 | |
---|
| 1929 | ac_exeext=$ac_cv_exeext |
---|
| 1930 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1931 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1932 | |
---|
| 1933 | # Check the compiler produces executables we can run. If not, either |
---|
| 1934 | # the compiler is broken, or we cross compile. |
---|
| 1935 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1936 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1937 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1938 | # If not cross compiling, check that we can run a simple program. |
---|
| 1939 | if test "$cross_compiling" != yes; then |
---|
| 1940 | if { ac_try='./$ac_file' |
---|
| 1941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1942 | (eval $ac_try) 2>&5 |
---|
| 1943 | ac_status=$? |
---|
| 1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1945 | (exit $ac_status); }; }; then |
---|
| 1946 | cross_compiling=no |
---|
| 1947 | else |
---|
| 1948 | if test "$cross_compiling" = maybe; then |
---|
| 1949 | cross_compiling=yes |
---|
| 1950 | else |
---|
| 1951 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 1952 | If you meant to cross compile, use \`--host'. |
---|
| 1953 | See \`config.log' for more details." >&5 |
---|
| 1954 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 1955 | If you meant to cross compile, use \`--host'. |
---|
| 1956 | See \`config.log' for more details." >&2;} |
---|
| 1957 | { (exit 1); exit 1; }; } |
---|
| 1958 | fi |
---|
| 1959 | fi |
---|
| 1960 | fi |
---|
| 1961 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1962 | echo "${ECHO_T}yes" >&6 |
---|
| 1963 | |
---|
| 1964 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1965 | ac_clean_files=$ac_clean_files_save |
---|
| 1966 | # Check the compiler produces executables we can run. If not, either |
---|
| 1967 | # the compiler is broken, or we cross compile. |
---|
| 1968 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1969 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1970 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1971 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1972 | |
---|
| 1973 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1974 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1976 | (eval $ac_link) 2>&5 |
---|
| 1977 | ac_status=$? |
---|
| 1978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1979 | (exit $ac_status); }; then |
---|
| 1980 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1981 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1982 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1983 | # `rm'. |
---|
| 1984 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1985 | test -f "$ac_file" || continue |
---|
| 1986 | case $ac_file in |
---|
| 1987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1988 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1989 | export ac_cv_exeext |
---|
| 1990 | break;; |
---|
| 1991 | * ) break;; |
---|
| 1992 | esac |
---|
| 1993 | done |
---|
| 1994 | else |
---|
| 1995 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1996 | See \`config.log' for more details." >&5 |
---|
| 1997 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1998 | See \`config.log' for more details." >&2;} |
---|
| 1999 | { (exit 1); exit 1; }; } |
---|
| 2000 | fi |
---|
| 2001 | |
---|
| 2002 | rm -f conftest$ac_cv_exeext |
---|
| 2003 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2004 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2005 | |
---|
| 2006 | rm -f conftest.$ac_ext |
---|
| 2007 | EXEEXT=$ac_cv_exeext |
---|
| 2008 | ac_exeext=$EXEEXT |
---|
| 2009 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2010 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2011 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2013 | else |
---|
| 2014 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2015 | /* confdefs.h. */ |
---|
| 2016 | _ACEOF |
---|
| 2017 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2018 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2019 | /* end confdefs.h. */ |
---|
| 2020 | |
---|
| 2021 | int |
---|
| 2022 | main () |
---|
| 2023 | { |
---|
| 2024 | |
---|
| 2025 | ; |
---|
| 2026 | return 0; |
---|
| 2027 | } |
---|
| 2028 | _ACEOF |
---|
| 2029 | rm -f conftest.o conftest.obj |
---|
| 2030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2031 | (eval $ac_compile) 2>&5 |
---|
| 2032 | ac_status=$? |
---|
| 2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2034 | (exit $ac_status); }; then |
---|
| 2035 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2036 | case $ac_file in |
---|
| 2037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2038 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2039 | break;; |
---|
| 2040 | esac |
---|
| 2041 | done |
---|
| 2042 | else |
---|
| 2043 | echo "$as_me: failed program was:" >&5 |
---|
| 2044 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2045 | |
---|
| 2046 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2047 | See \`config.log' for more details." >&5 |
---|
| 2048 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2049 | See \`config.log' for more details." >&2;} |
---|
| 2050 | { (exit 1); exit 1; }; } |
---|
| 2051 | fi |
---|
| 2052 | |
---|
| 2053 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2054 | fi |
---|
| 2055 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2056 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2057 | OBJEXT=$ac_cv_objext |
---|
| 2058 | ac_objext=$OBJEXT |
---|
| 2059 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2060 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2061 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2063 | else |
---|
| 2064 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2065 | /* confdefs.h. */ |
---|
| 2066 | _ACEOF |
---|
| 2067 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2069 | /* end confdefs.h. */ |
---|
| 2070 | |
---|
| 2071 | int |
---|
| 2072 | main () |
---|
| 2073 | { |
---|
| 2074 | #ifndef __GNUC__ |
---|
| 2075 | choke me |
---|
| 2076 | #endif |
---|
| 2077 | |
---|
| 2078 | ; |
---|
| 2079 | return 0; |
---|
| 2080 | } |
---|
| 2081 | _ACEOF |
---|
| 2082 | rm -f conftest.$ac_objext |
---|
| 2083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2084 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2085 | ac_status=$? |
---|
| 2086 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2087 | rm -f conftest.er1 |
---|
| 2088 | cat conftest.err >&5 |
---|
| 2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2090 | (exit $ac_status); } && |
---|
| 2091 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2092 | || test ! -s conftest.err' |
---|
| 2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2094 | (eval $ac_try) 2>&5 |
---|
| 2095 | ac_status=$? |
---|
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2097 | (exit $ac_status); }; } && |
---|
| 2098 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2100 | (eval $ac_try) 2>&5 |
---|
| 2101 | ac_status=$? |
---|
| 2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2103 | (exit $ac_status); }; }; then |
---|
| 2104 | ac_compiler_gnu=yes |
---|
| 2105 | else |
---|
| 2106 | echo "$as_me: failed program was:" >&5 |
---|
| 2107 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2108 | |
---|
| 2109 | ac_compiler_gnu=no |
---|
| 2110 | fi |
---|
| 2111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2112 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2113 | |
---|
| 2114 | fi |
---|
| 2115 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2116 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2117 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2118 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2119 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2120 | CXXFLAGS="-g" |
---|
| 2121 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2122 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2123 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2125 | else |
---|
| 2126 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2127 | /* confdefs.h. */ |
---|
| 2128 | _ACEOF |
---|
| 2129 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2131 | /* end confdefs.h. */ |
---|
| 2132 | |
---|
| 2133 | int |
---|
| 2134 | main () |
---|
| 2135 | { |
---|
| 2136 | |
---|
| 2137 | ; |
---|
| 2138 | return 0; |
---|
| 2139 | } |
---|
| 2140 | _ACEOF |
---|
| 2141 | rm -f conftest.$ac_objext |
---|
| 2142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2143 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2144 | ac_status=$? |
---|
| 2145 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2146 | rm -f conftest.er1 |
---|
| 2147 | cat conftest.err >&5 |
---|
| 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2149 | (exit $ac_status); } && |
---|
| 2150 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2151 | || test ! -s conftest.err' |
---|
| 2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2153 | (eval $ac_try) 2>&5 |
---|
| 2154 | ac_status=$? |
---|
| 2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2156 | (exit $ac_status); }; } && |
---|
| 2157 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2159 | (eval $ac_try) 2>&5 |
---|
| 2160 | ac_status=$? |
---|
| 2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2162 | (exit $ac_status); }; }; then |
---|
| 2163 | ac_cv_prog_cxx_g=yes |
---|
| 2164 | else |
---|
| 2165 | echo "$as_me: failed program was:" >&5 |
---|
| 2166 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2167 | |
---|
| 2168 | ac_cv_prog_cxx_g=no |
---|
| 2169 | fi |
---|
| 2170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2171 | fi |
---|
| 2172 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2173 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2174 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2175 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2176 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2177 | if test "$GXX" = yes; then |
---|
| 2178 | CXXFLAGS="-g -O2" |
---|
| 2179 | else |
---|
| 2180 | CXXFLAGS="-g" |
---|
| 2181 | fi |
---|
| 2182 | else |
---|
| 2183 | if test "$GXX" = yes; then |
---|
| 2184 | CXXFLAGS="-O2" |
---|
| 2185 | else |
---|
| 2186 | CXXFLAGS= |
---|
| 2187 | fi |
---|
| 2188 | fi |
---|
| 2189 | for ac_declaration in \ |
---|
| 2190 | '' \ |
---|
| 2191 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2192 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2193 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2194 | 'extern "C" void exit (int);' \ |
---|
| 2195 | 'void exit (int);' |
---|
| 2196 | do |
---|
| 2197 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2198 | /* confdefs.h. */ |
---|
| 2199 | _ACEOF |
---|
| 2200 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2202 | /* end confdefs.h. */ |
---|
| 2203 | $ac_declaration |
---|
| 2204 | #include <stdlib.h> |
---|
| 2205 | int |
---|
| 2206 | main () |
---|
| 2207 | { |
---|
| 2208 | exit (42); |
---|
| 2209 | ; |
---|
| 2210 | return 0; |
---|
| 2211 | } |
---|
| 2212 | _ACEOF |
---|
| 2213 | rm -f conftest.$ac_objext |
---|
| 2214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2215 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2216 | ac_status=$? |
---|
| 2217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2218 | rm -f conftest.er1 |
---|
| 2219 | cat conftest.err >&5 |
---|
| 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2221 | (exit $ac_status); } && |
---|
| 2222 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2223 | || test ! -s conftest.err' |
---|
| 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2225 | (eval $ac_try) 2>&5 |
---|
| 2226 | ac_status=$? |
---|
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2228 | (exit $ac_status); }; } && |
---|
| 2229 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2231 | (eval $ac_try) 2>&5 |
---|
| 2232 | ac_status=$? |
---|
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2234 | (exit $ac_status); }; }; then |
---|
| 2235 | : |
---|
| 2236 | else |
---|
| 2237 | echo "$as_me: failed program was:" >&5 |
---|
| 2238 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2239 | |
---|
| 2240 | continue |
---|
| 2241 | fi |
---|
| 2242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2243 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2244 | /* confdefs.h. */ |
---|
| 2245 | _ACEOF |
---|
| 2246 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2247 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2248 | /* end confdefs.h. */ |
---|
| 2249 | $ac_declaration |
---|
| 2250 | int |
---|
| 2251 | main () |
---|
| 2252 | { |
---|
| 2253 | exit (42); |
---|
| 2254 | ; |
---|
| 2255 | return 0; |
---|
| 2256 | } |
---|
| 2257 | _ACEOF |
---|
| 2258 | rm -f conftest.$ac_objext |
---|
| 2259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2260 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2261 | ac_status=$? |
---|
| 2262 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2263 | rm -f conftest.er1 |
---|
| 2264 | cat conftest.err >&5 |
---|
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2266 | (exit $ac_status); } && |
---|
| 2267 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2268 | || test ! -s conftest.err' |
---|
| 2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2270 | (eval $ac_try) 2>&5 |
---|
| 2271 | ac_status=$? |
---|
| 2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2273 | (exit $ac_status); }; } && |
---|
| 2274 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2276 | (eval $ac_try) 2>&5 |
---|
| 2277 | ac_status=$? |
---|
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2279 | (exit $ac_status); }; }; then |
---|
| 2280 | break |
---|
| 2281 | else |
---|
| 2282 | echo "$as_me: failed program was:" >&5 |
---|
| 2283 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2284 | |
---|
| 2285 | fi |
---|
| 2286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2287 | done |
---|
| 2288 | rm -f conftest* |
---|
| 2289 | if test -n "$ac_declaration"; then |
---|
| 2290 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2291 | echo $ac_declaration >>confdefs.h |
---|
| 2292 | echo '#endif' >>confdefs.h |
---|
| 2293 | fi |
---|
| 2294 | |
---|
| 2295 | ac_ext=c |
---|
| 2296 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2300 | DEPDIR="${am__leading_dot}deps" |
---|
| 2301 | |
---|
| 2302 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2303 | |
---|
| 2304 | |
---|
| 2305 | am_make=${MAKE-make} |
---|
| 2306 | cat > confinc << 'END' |
---|
| 2307 | am__doit: |
---|
| 2308 | @echo done |
---|
| 2309 | .PHONY: am__doit |
---|
| 2310 | END |
---|
| 2311 | # If we don't find an include directive, just comment out the code. |
---|
| 2312 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2313 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2314 | am__include="#" |
---|
| 2315 | am__quote= |
---|
| 2316 | _am_result=none |
---|
| 2317 | # First try GNU make style include. |
---|
| 2318 | echo "include confinc" > confmf |
---|
| 2319 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2320 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2321 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2322 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2323 | # case it prints its new name instead of `make'. |
---|
| 2324 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2325 | am__include=include |
---|
| 2326 | am__quote= |
---|
| 2327 | _am_result=GNU |
---|
| 2328 | fi |
---|
| 2329 | # Now try BSD make style include. |
---|
| 2330 | if test "$am__include" = "#"; then |
---|
| 2331 | echo '.include "confinc"' > confmf |
---|
| 2332 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2333 | am__include=.include |
---|
| 2334 | am__quote="\"" |
---|
| 2335 | _am_result=BSD |
---|
| 2336 | fi |
---|
| 2337 | fi |
---|
| 2338 | |
---|
| 2339 | |
---|
| 2340 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2341 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2342 | rm -f confinc confmf |
---|
| 2343 | |
---|
| 2344 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2345 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2346 | enableval="$enable_dependency_tracking" |
---|
| 2347 | |
---|
| 2348 | fi; |
---|
| 2349 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2350 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2351 | AMDEPBACKSLASH='\' |
---|
| 2352 | fi |
---|
| 2353 | |
---|
| 2354 | |
---|
| 2355 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2356 | AMDEP_TRUE= |
---|
| 2357 | AMDEP_FALSE='#' |
---|
| 2358 | else |
---|
| 2359 | AMDEP_TRUE='#' |
---|
| 2360 | AMDEP_FALSE= |
---|
| 2361 | fi |
---|
| 2362 | |
---|
| 2363 | |
---|
| 2364 | |
---|
| 2365 | |
---|
| 2366 | depcc="$CXX" am_compiler_list= |
---|
| 2367 | |
---|
| 2368 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2369 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2370 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2372 | else |
---|
| 2373 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2374 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2375 | # making bogus files that we don't know about and never remove. For |
---|
| 2376 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2377 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2378 | # in D'. |
---|
| 2379 | mkdir conftest.dir |
---|
| 2380 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2381 | # using a relative directory. |
---|
| 2382 | cp "$am_depcomp" conftest.dir |
---|
| 2383 | cd conftest.dir |
---|
| 2384 | # We will build objects and dependencies in a subdirectory because |
---|
| 2385 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2386 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2387 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2388 | # the current directory while Tru64 will put them in the object |
---|
| 2389 | # directory. |
---|
| 2390 | mkdir sub |
---|
| 2391 | |
---|
| 2392 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2393 | if test "$am_compiler_list" = ""; then |
---|
| 2394 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2395 | fi |
---|
| 2396 | for depmode in $am_compiler_list; do |
---|
| 2397 | # Setup a source with many dependencies, because some compilers |
---|
| 2398 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2399 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2400 | # |
---|
| 2401 | # We need to recreate these files for each test, as the compiler may |
---|
| 2402 | # overwrite some of them when testing with obscure command lines. |
---|
| 2403 | # This happens at least with the AIX C compiler. |
---|
| 2404 | : > sub/conftest.c |
---|
| 2405 | for i in 1 2 3 4 5 6; do |
---|
| 2406 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
| 2407 | : > sub/conftst$i.h |
---|
| 2408 | done |
---|
| 2409 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2410 | |
---|
| 2411 | case $depmode in |
---|
| 2412 | nosideeffect) |
---|
| 2413 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2414 | # only be used when explicitly requested |
---|
| 2415 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2416 | continue |
---|
| 2417 | else |
---|
| 2418 | break |
---|
| 2419 | fi |
---|
| 2420 | ;; |
---|
| 2421 | none) break ;; |
---|
| 2422 | esac |
---|
| 2423 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2424 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2425 | # handle `-M -o', and we need to detect this. |
---|
| 2426 | if depmode=$depmode \ |
---|
| 2427 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2428 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2429 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2430 | >/dev/null 2>conftest.err && |
---|
| 2431 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2432 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2433 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2434 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
| 2435 | # (even with -Werror). So we grep stderr for any message |
---|
| 2436 | # that says an option was ignored. |
---|
| 2437 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
| 2438 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2439 | break |
---|
| 2440 | fi |
---|
| 2441 | fi |
---|
| 2442 | done |
---|
| 2443 | |
---|
| 2444 | cd .. |
---|
| 2445 | rm -rf conftest.dir |
---|
| 2446 | else |
---|
| 2447 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2448 | fi |
---|
| 2449 | |
---|
| 2450 | fi |
---|
| 2451 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2452 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2453 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2454 | |
---|
| 2455 | |
---|
| 2456 | |
---|
| 2457 | if |
---|
| 2458 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2459 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2460 | am__fastdepCXX_TRUE= |
---|
| 2461 | am__fastdepCXX_FALSE='#' |
---|
| 2462 | else |
---|
| 2463 | am__fastdepCXX_TRUE='#' |
---|
| 2464 | am__fastdepCXX_FALSE= |
---|
| 2465 | fi |
---|
| 2466 | |
---|
| 2467 | |
---|
| 2468 | ac_ext=c |
---|
| 2469 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2473 | if test -n "$ac_tool_prefix"; then |
---|
| 2474 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2475 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2478 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2480 | else |
---|
| 2481 | if test -n "$CC"; then |
---|
| 2482 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2483 | else |
---|
| 2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2485 | for as_dir in $PATH |
---|
| 2486 | do |
---|
| 2487 | IFS=$as_save_IFS |
---|
| 2488 | test -z "$as_dir" && as_dir=. |
---|
| 2489 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2491 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2493 | break 2 |
---|
| 2494 | fi |
---|
| 2495 | done |
---|
| 2496 | done |
---|
| 2497 | |
---|
| 2498 | fi |
---|
| 2499 | fi |
---|
| 2500 | CC=$ac_cv_prog_CC |
---|
| 2501 | if test -n "$CC"; then |
---|
| 2502 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2503 | echo "${ECHO_T}$CC" >&6 |
---|
| 2504 | else |
---|
| 2505 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2506 | echo "${ECHO_T}no" >&6 |
---|
| 2507 | fi |
---|
| 2508 | |
---|
| 2509 | fi |
---|
| 2510 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2511 | ac_ct_CC=$CC |
---|
| 2512 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2513 | set dummy gcc; ac_word=$2 |
---|
| 2514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2516 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2518 | else |
---|
| 2519 | if test -n "$ac_ct_CC"; then |
---|
| 2520 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2521 | else |
---|
| 2522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2523 | for as_dir in $PATH |
---|
| 2524 | do |
---|
| 2525 | IFS=$as_save_IFS |
---|
| 2526 | test -z "$as_dir" && as_dir=. |
---|
| 2527 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2529 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2531 | break 2 |
---|
| 2532 | fi |
---|
| 2533 | done |
---|
| 2534 | done |
---|
| 2535 | |
---|
| 2536 | fi |
---|
| 2537 | fi |
---|
| 2538 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2539 | if test -n "$ac_ct_CC"; then |
---|
| 2540 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2541 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2542 | else |
---|
| 2543 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2544 | echo "${ECHO_T}no" >&6 |
---|
| 2545 | fi |
---|
| 2546 | |
---|
| 2547 | CC=$ac_ct_CC |
---|
| 2548 | else |
---|
| 2549 | CC="$ac_cv_prog_CC" |
---|
| 2550 | fi |
---|
| 2551 | |
---|
| 2552 | if test -z "$CC"; then |
---|
| 2553 | if test -n "$ac_tool_prefix"; then |
---|
| 2554 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2555 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2558 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2560 | else |
---|
| 2561 | if test -n "$CC"; then |
---|
| 2562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2563 | else |
---|
| 2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2565 | for as_dir in $PATH |
---|
| 2566 | do |
---|
| 2567 | IFS=$as_save_IFS |
---|
| 2568 | test -z "$as_dir" && as_dir=. |
---|
| 2569 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2571 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2573 | break 2 |
---|
| 2574 | fi |
---|
| 2575 | done |
---|
| 2576 | done |
---|
| 2577 | |
---|
| 2578 | fi |
---|
| 2579 | fi |
---|
| 2580 | CC=$ac_cv_prog_CC |
---|
| 2581 | if test -n "$CC"; then |
---|
| 2582 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2583 | echo "${ECHO_T}$CC" >&6 |
---|
| 2584 | else |
---|
| 2585 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2586 | echo "${ECHO_T}no" >&6 |
---|
| 2587 | fi |
---|
| 2588 | |
---|
| 2589 | fi |
---|
| 2590 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2591 | ac_ct_CC=$CC |
---|
| 2592 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2593 | set dummy cc; ac_word=$2 |
---|
| 2594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2596 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2598 | else |
---|
| 2599 | if test -n "$ac_ct_CC"; then |
---|
| 2600 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2601 | else |
---|
| 2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2603 | for as_dir in $PATH |
---|
| 2604 | do |
---|
| 2605 | IFS=$as_save_IFS |
---|
| 2606 | test -z "$as_dir" && as_dir=. |
---|
| 2607 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2609 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2611 | break 2 |
---|
| 2612 | fi |
---|
| 2613 | done |
---|
| 2614 | done |
---|
| 2615 | |
---|
| 2616 | fi |
---|
| 2617 | fi |
---|
| 2618 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2619 | if test -n "$ac_ct_CC"; then |
---|
| 2620 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2621 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2622 | else |
---|
| 2623 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2624 | echo "${ECHO_T}no" >&6 |
---|
| 2625 | fi |
---|
| 2626 | |
---|
| 2627 | CC=$ac_ct_CC |
---|
| 2628 | else |
---|
| 2629 | CC="$ac_cv_prog_CC" |
---|
| 2630 | fi |
---|
| 2631 | |
---|
| 2632 | fi |
---|
| 2633 | if test -z "$CC"; then |
---|
| 2634 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2635 | set dummy cc; ac_word=$2 |
---|
| 2636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2638 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2640 | else |
---|
| 2641 | if test -n "$CC"; then |
---|
| 2642 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2643 | else |
---|
| 2644 | ac_prog_rejected=no |
---|
| 2645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2646 | for as_dir in $PATH |
---|
| 2647 | do |
---|
| 2648 | IFS=$as_save_IFS |
---|
| 2649 | test -z "$as_dir" && as_dir=. |
---|
| 2650 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2652 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2653 | ac_prog_rejected=yes |
---|
| 2654 | continue |
---|
| 2655 | fi |
---|
| 2656 | ac_cv_prog_CC="cc" |
---|
| 2657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2658 | break 2 |
---|
| 2659 | fi |
---|
| 2660 | done |
---|
| 2661 | done |
---|
| 2662 | |
---|
| 2663 | if test $ac_prog_rejected = yes; then |
---|
| 2664 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2665 | set dummy $ac_cv_prog_CC |
---|
| 2666 | shift |
---|
| 2667 | if test $# != 0; then |
---|
| 2668 | # We chose a different compiler from the bogus one. |
---|
| 2669 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2670 | # first if we set CC to just the basename; use the full file name. |
---|
| 2671 | shift |
---|
| 2672 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2673 | fi |
---|
| 2674 | fi |
---|
| 2675 | fi |
---|
| 2676 | fi |
---|
| 2677 | CC=$ac_cv_prog_CC |
---|
| 2678 | if test -n "$CC"; then |
---|
| 2679 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2680 | echo "${ECHO_T}$CC" >&6 |
---|
| 2681 | else |
---|
| 2682 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2683 | echo "${ECHO_T}no" >&6 |
---|
| 2684 | fi |
---|
| 2685 | |
---|
| 2686 | fi |
---|
| 2687 | if test -z "$CC"; then |
---|
| 2688 | if test -n "$ac_tool_prefix"; then |
---|
| 2689 | for ac_prog in cl |
---|
| 2690 | do |
---|
| 2691 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2692 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2695 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2697 | else |
---|
| 2698 | if test -n "$CC"; then |
---|
| 2699 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2700 | else |
---|
| 2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2702 | for as_dir in $PATH |
---|
| 2703 | do |
---|
| 2704 | IFS=$as_save_IFS |
---|
| 2705 | test -z "$as_dir" && as_dir=. |
---|
| 2706 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2708 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2710 | break 2 |
---|
| 2711 | fi |
---|
| 2712 | done |
---|
| 2713 | done |
---|
| 2714 | |
---|
| 2715 | fi |
---|
| 2716 | fi |
---|
| 2717 | CC=$ac_cv_prog_CC |
---|
| 2718 | if test -n "$CC"; then |
---|
| 2719 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2720 | echo "${ECHO_T}$CC" >&6 |
---|
| 2721 | else |
---|
| 2722 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2723 | echo "${ECHO_T}no" >&6 |
---|
| 2724 | fi |
---|
| 2725 | |
---|
| 2726 | test -n "$CC" && break |
---|
| 2727 | done |
---|
| 2728 | fi |
---|
| 2729 | if test -z "$CC"; then |
---|
| 2730 | ac_ct_CC=$CC |
---|
| 2731 | for ac_prog in cl |
---|
| 2732 | do |
---|
| 2733 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2734 | set dummy $ac_prog; ac_word=$2 |
---|
| 2735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2737 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2739 | else |
---|
| 2740 | if test -n "$ac_ct_CC"; then |
---|
| 2741 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2742 | else |
---|
| 2743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2744 | for as_dir in $PATH |
---|
| 2745 | do |
---|
| 2746 | IFS=$as_save_IFS |
---|
| 2747 | test -z "$as_dir" && as_dir=. |
---|
| 2748 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2750 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2752 | break 2 |
---|
| 2753 | fi |
---|
| 2754 | done |
---|
| 2755 | done |
---|
| 2756 | |
---|
| 2757 | fi |
---|
| 2758 | fi |
---|
| 2759 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2760 | if test -n "$ac_ct_CC"; then |
---|
| 2761 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2762 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2763 | else |
---|
| 2764 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2765 | echo "${ECHO_T}no" >&6 |
---|
| 2766 | fi |
---|
| 2767 | |
---|
| 2768 | test -n "$ac_ct_CC" && break |
---|
| 2769 | done |
---|
| 2770 | |
---|
| 2771 | CC=$ac_ct_CC |
---|
| 2772 | fi |
---|
| 2773 | |
---|
| 2774 | fi |
---|
| 2775 | |
---|
| 2776 | |
---|
| 2777 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2778 | See \`config.log' for more details." >&5 |
---|
| 2779 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2780 | See \`config.log' for more details." >&2;} |
---|
| 2781 | { (exit 1); exit 1; }; } |
---|
| 2782 | |
---|
| 2783 | # Provide some information about the compiler. |
---|
| 2784 | echo "$as_me:$LINENO:" \ |
---|
| 2785 | "checking for C compiler version" >&5 |
---|
| 2786 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2787 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2788 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2789 | ac_status=$? |
---|
| 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2791 | (exit $ac_status); } |
---|
| 2792 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2793 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2794 | ac_status=$? |
---|
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2796 | (exit $ac_status); } |
---|
| 2797 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2798 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2799 | ac_status=$? |
---|
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2801 | (exit $ac_status); } |
---|
| 2802 | |
---|
| 2803 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2804 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2805 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2807 | else |
---|
| 2808 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2809 | /* confdefs.h. */ |
---|
| 2810 | _ACEOF |
---|
| 2811 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2812 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2813 | /* end confdefs.h. */ |
---|
| 2814 | |
---|
| 2815 | int |
---|
| 2816 | main () |
---|
| 2817 | { |
---|
| 2818 | #ifndef __GNUC__ |
---|
| 2819 | choke me |
---|
| 2820 | #endif |
---|
| 2821 | |
---|
| 2822 | ; |
---|
| 2823 | return 0; |
---|
| 2824 | } |
---|
| 2825 | _ACEOF |
---|
| 2826 | rm -f conftest.$ac_objext |
---|
| 2827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2828 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2829 | ac_status=$? |
---|
| 2830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2831 | rm -f conftest.er1 |
---|
| 2832 | cat conftest.err >&5 |
---|
| 2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2834 | (exit $ac_status); } && |
---|
| 2835 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2836 | || test ! -s conftest.err' |
---|
| 2837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2838 | (eval $ac_try) 2>&5 |
---|
| 2839 | ac_status=$? |
---|
| 2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2841 | (exit $ac_status); }; } && |
---|
| 2842 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2844 | (eval $ac_try) 2>&5 |
---|
| 2845 | ac_status=$? |
---|
| 2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2847 | (exit $ac_status); }; }; then |
---|
| 2848 | ac_compiler_gnu=yes |
---|
| 2849 | else |
---|
| 2850 | echo "$as_me: failed program was:" >&5 |
---|
| 2851 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2852 | |
---|
| 2853 | ac_compiler_gnu=no |
---|
| 2854 | fi |
---|
| 2855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2856 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2857 | |
---|
| 2858 | fi |
---|
| 2859 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2860 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2861 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2862 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2863 | ac_save_CFLAGS=$CFLAGS |
---|
| 2864 | CFLAGS="-g" |
---|
| 2865 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2866 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2867 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2869 | else |
---|
| 2870 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2871 | /* confdefs.h. */ |
---|
| 2872 | _ACEOF |
---|
| 2873 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2875 | /* end confdefs.h. */ |
---|
| 2876 | |
---|
| 2877 | int |
---|
| 2878 | main () |
---|
| 2879 | { |
---|
| 2880 | |
---|
| 2881 | ; |
---|
| 2882 | return 0; |
---|
| 2883 | } |
---|
| 2884 | _ACEOF |
---|
| 2885 | rm -f conftest.$ac_objext |
---|
| 2886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2887 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2888 | ac_status=$? |
---|
| 2889 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2890 | rm -f conftest.er1 |
---|
| 2891 | cat conftest.err >&5 |
---|
| 2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2893 | (exit $ac_status); } && |
---|
| 2894 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2895 | || test ! -s conftest.err' |
---|
| 2896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2897 | (eval $ac_try) 2>&5 |
---|
| 2898 | ac_status=$? |
---|
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2900 | (exit $ac_status); }; } && |
---|
| 2901 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2903 | (eval $ac_try) 2>&5 |
---|
| 2904 | ac_status=$? |
---|
| 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2906 | (exit $ac_status); }; }; then |
---|
| 2907 | ac_cv_prog_cc_g=yes |
---|
| 2908 | else |
---|
| 2909 | echo "$as_me: failed program was:" >&5 |
---|
| 2910 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2911 | |
---|
| 2912 | ac_cv_prog_cc_g=no |
---|
| 2913 | fi |
---|
| 2914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2915 | fi |
---|
| 2916 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2917 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2918 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2919 | CFLAGS=$ac_save_CFLAGS |
---|
| 2920 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2921 | if test "$GCC" = yes; then |
---|
| 2922 | CFLAGS="-g -O2" |
---|
| 2923 | else |
---|
| 2924 | CFLAGS="-g" |
---|
| 2925 | fi |
---|
| 2926 | else |
---|
| 2927 | if test "$GCC" = yes; then |
---|
| 2928 | CFLAGS="-O2" |
---|
| 2929 | else |
---|
| 2930 | CFLAGS= |
---|
| 2931 | fi |
---|
| 2932 | fi |
---|
| 2933 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2934 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2935 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2937 | else |
---|
| 2938 | ac_cv_prog_cc_stdc=no |
---|
| 2939 | ac_save_CC=$CC |
---|
| 2940 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2941 | /* confdefs.h. */ |
---|
| 2942 | _ACEOF |
---|
| 2943 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2944 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2945 | /* end confdefs.h. */ |
---|
| 2946 | #include <stdarg.h> |
---|
| 2947 | #include <stdio.h> |
---|
| 2948 | #include <sys/types.h> |
---|
| 2949 | #include <sys/stat.h> |
---|
| 2950 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2951 | struct buf { int x; }; |
---|
| 2952 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2953 | static char *e (p, i) |
---|
| 2954 | char **p; |
---|
| 2955 | int i; |
---|
| 2956 | { |
---|
| 2957 | return p[i]; |
---|
| 2958 | } |
---|
| 2959 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2960 | { |
---|
| 2961 | char *s; |
---|
| 2962 | va_list v; |
---|
| 2963 | va_start (v,p); |
---|
| 2964 | s = g (p, va_arg (v,int)); |
---|
| 2965 | va_end (v); |
---|
| 2966 | return s; |
---|
| 2967 | } |
---|
| 2968 | |
---|
| 2969 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2970 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2971 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2972 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2973 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2974 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2975 | that's true only with -std1. */ |
---|
| 2976 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2977 | |
---|
| 2978 | int test (int i, double x); |
---|
| 2979 | struct s1 {int (*f) (int a);}; |
---|
| 2980 | struct s2 {int (*f) (double a);}; |
---|
| 2981 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2982 | int argc; |
---|
| 2983 | char **argv; |
---|
| 2984 | int |
---|
| 2985 | main () |
---|
| 2986 | { |
---|
| 2987 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2988 | ; |
---|
| 2989 | return 0; |
---|
| 2990 | } |
---|
| 2991 | _ACEOF |
---|
| 2992 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2993 | # breaks some systems' header files. |
---|
| 2994 | # AIX -qlanglvl=ansi |
---|
| 2995 | # Ultrix and OSF/1 -std1 |
---|
| 2996 | # HP-UX 10.20 and later -Ae |
---|
| 2997 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2998 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2999 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3000 | do |
---|
| 3001 | CC="$ac_save_CC $ac_arg" |
---|
| 3002 | rm -f conftest.$ac_objext |
---|
| 3003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3004 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3005 | ac_status=$? |
---|
| 3006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3007 | rm -f conftest.er1 |
---|
| 3008 | cat conftest.err >&5 |
---|
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3010 | (exit $ac_status); } && |
---|
| 3011 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3012 | || test ! -s conftest.err' |
---|
| 3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3014 | (eval $ac_try) 2>&5 |
---|
| 3015 | ac_status=$? |
---|
| 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3017 | (exit $ac_status); }; } && |
---|
| 3018 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3020 | (eval $ac_try) 2>&5 |
---|
| 3021 | ac_status=$? |
---|
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3023 | (exit $ac_status); }; }; then |
---|
| 3024 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3025 | break |
---|
| 3026 | else |
---|
| 3027 | echo "$as_me: failed program was:" >&5 |
---|
| 3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3029 | |
---|
| 3030 | fi |
---|
| 3031 | rm -f conftest.err conftest.$ac_objext |
---|
| 3032 | done |
---|
| 3033 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3034 | CC=$ac_save_CC |
---|
| 3035 | |
---|
| 3036 | fi |
---|
| 3037 | |
---|
| 3038 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3039 | x|xno) |
---|
| 3040 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3041 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3042 | *) |
---|
| 3043 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3044 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3045 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3046 | esac |
---|
| 3047 | |
---|
| 3048 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3049 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3050 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3051 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3052 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3053 | #ifndef __cplusplus |
---|
| 3054 | choke me |
---|
| 3055 | #endif |
---|
| 3056 | _ACEOF |
---|
| 3057 | rm -f conftest.$ac_objext |
---|
| 3058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3059 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3060 | ac_status=$? |
---|
| 3061 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3062 | rm -f conftest.er1 |
---|
| 3063 | cat conftest.err >&5 |
---|
| 3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3065 | (exit $ac_status); } && |
---|
| 3066 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3067 | || test ! -s conftest.err' |
---|
| 3068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3069 | (eval $ac_try) 2>&5 |
---|
| 3070 | ac_status=$? |
---|
| 3071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3072 | (exit $ac_status); }; } && |
---|
| 3073 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3075 | (eval $ac_try) 2>&5 |
---|
| 3076 | ac_status=$? |
---|
| 3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3078 | (exit $ac_status); }; }; then |
---|
| 3079 | for ac_declaration in \ |
---|
| 3080 | '' \ |
---|
| 3081 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3082 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3083 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3084 | 'extern "C" void exit (int);' \ |
---|
| 3085 | 'void exit (int);' |
---|
| 3086 | do |
---|
| 3087 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3088 | /* confdefs.h. */ |
---|
| 3089 | _ACEOF |
---|
| 3090 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3091 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3092 | /* end confdefs.h. */ |
---|
| 3093 | $ac_declaration |
---|
| 3094 | #include <stdlib.h> |
---|
| 3095 | int |
---|
| 3096 | main () |
---|
| 3097 | { |
---|
| 3098 | exit (42); |
---|
| 3099 | ; |
---|
| 3100 | return 0; |
---|
| 3101 | } |
---|
| 3102 | _ACEOF |
---|
| 3103 | rm -f conftest.$ac_objext |
---|
| 3104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3105 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3106 | ac_status=$? |
---|
| 3107 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3108 | rm -f conftest.er1 |
---|
| 3109 | cat conftest.err >&5 |
---|
| 3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3111 | (exit $ac_status); } && |
---|
| 3112 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3113 | || test ! -s conftest.err' |
---|
| 3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3115 | (eval $ac_try) 2>&5 |
---|
| 3116 | ac_status=$? |
---|
| 3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3118 | (exit $ac_status); }; } && |
---|
| 3119 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3121 | (eval $ac_try) 2>&5 |
---|
| 3122 | ac_status=$? |
---|
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3124 | (exit $ac_status); }; }; then |
---|
| 3125 | : |
---|
| 3126 | else |
---|
| 3127 | echo "$as_me: failed program was:" >&5 |
---|
| 3128 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3129 | |
---|
| 3130 | continue |
---|
| 3131 | fi |
---|
| 3132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3133 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3134 | /* confdefs.h. */ |
---|
| 3135 | _ACEOF |
---|
| 3136 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3137 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3138 | /* end confdefs.h. */ |
---|
| 3139 | $ac_declaration |
---|
| 3140 | int |
---|
| 3141 | main () |
---|
| 3142 | { |
---|
| 3143 | exit (42); |
---|
| 3144 | ; |
---|
| 3145 | return 0; |
---|
| 3146 | } |
---|
| 3147 | _ACEOF |
---|
| 3148 | rm -f conftest.$ac_objext |
---|
| 3149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3150 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3151 | ac_status=$? |
---|
| 3152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3153 | rm -f conftest.er1 |
---|
| 3154 | cat conftest.err >&5 |
---|
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3156 | (exit $ac_status); } && |
---|
| 3157 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3158 | || test ! -s conftest.err' |
---|
| 3159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3160 | (eval $ac_try) 2>&5 |
---|
| 3161 | ac_status=$? |
---|
| 3162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3163 | (exit $ac_status); }; } && |
---|
| 3164 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3166 | (eval $ac_try) 2>&5 |
---|
| 3167 | ac_status=$? |
---|
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3169 | (exit $ac_status); }; }; then |
---|
| 3170 | break |
---|
| 3171 | else |
---|
| 3172 | echo "$as_me: failed program was:" >&5 |
---|
| 3173 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3174 | |
---|
| 3175 | fi |
---|
| 3176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3177 | done |
---|
| 3178 | rm -f conftest* |
---|
| 3179 | if test -n "$ac_declaration"; then |
---|
| 3180 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3181 | echo $ac_declaration >>confdefs.h |
---|
| 3182 | echo '#endif' >>confdefs.h |
---|
| 3183 | fi |
---|
| 3184 | |
---|
| 3185 | else |
---|
| 3186 | echo "$as_me: failed program was:" >&5 |
---|
| 3187 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3188 | |
---|
| 3189 | fi |
---|
| 3190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3191 | ac_ext=c |
---|
| 3192 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3196 | |
---|
| 3197 | depcc="$CC" am_compiler_list= |
---|
| 3198 | |
---|
| 3199 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3200 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3201 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3203 | else |
---|
| 3204 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3205 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3206 | # making bogus files that we don't know about and never remove. For |
---|
| 3207 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3208 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3209 | # in D'. |
---|
| 3210 | mkdir conftest.dir |
---|
| 3211 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3212 | # using a relative directory. |
---|
| 3213 | cp "$am_depcomp" conftest.dir |
---|
| 3214 | cd conftest.dir |
---|
| 3215 | # We will build objects and dependencies in a subdirectory because |
---|
| 3216 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3217 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3218 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3219 | # the current directory while Tru64 will put them in the object |
---|
| 3220 | # directory. |
---|
| 3221 | mkdir sub |
---|
| 3222 | |
---|
| 3223 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3224 | if test "$am_compiler_list" = ""; then |
---|
| 3225 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3226 | fi |
---|
| 3227 | for depmode in $am_compiler_list; do |
---|
| 3228 | # Setup a source with many dependencies, because some compilers |
---|
| 3229 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3230 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3231 | # |
---|
| 3232 | # We need to recreate these files for each test, as the compiler may |
---|
| 3233 | # overwrite some of them when testing with obscure command lines. |
---|
| 3234 | # This happens at least with the AIX C compiler. |
---|
| 3235 | : > sub/conftest.c |
---|
| 3236 | for i in 1 2 3 4 5 6; do |
---|
| 3237 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
| 3238 | : > sub/conftst$i.h |
---|
| 3239 | done |
---|
| 3240 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3241 | |
---|
| 3242 | case $depmode in |
---|
| 3243 | nosideeffect) |
---|
| 3244 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3245 | # only be used when explicitly requested |
---|
| 3246 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3247 | continue |
---|
| 3248 | else |
---|
| 3249 | break |
---|
| 3250 | fi |
---|
| 3251 | ;; |
---|
| 3252 | none) break ;; |
---|
| 3253 | esac |
---|
| 3254 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3255 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3256 | # handle `-M -o', and we need to detect this. |
---|
| 3257 | if depmode=$depmode \ |
---|
| 3258 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3259 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3260 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3261 | >/dev/null 2>conftest.err && |
---|
| 3262 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3263 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3264 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3265 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
| 3266 | # (even with -Werror). So we grep stderr for any message |
---|
| 3267 | # that says an option was ignored. |
---|
| 3268 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
| 3269 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3270 | break |
---|
| 3271 | fi |
---|
| 3272 | fi |
---|
| 3273 | done |
---|
| 3274 | |
---|
| 3275 | cd .. |
---|
| 3276 | rm -rf conftest.dir |
---|
| 3277 | else |
---|
| 3278 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3279 | fi |
---|
| 3280 | |
---|
| 3281 | fi |
---|
| 3282 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3283 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3284 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3285 | |
---|
| 3286 | |
---|
| 3287 | |
---|
| 3288 | if |
---|
| 3289 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3290 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3291 | am__fastdepCC_TRUE= |
---|
| 3292 | am__fastdepCC_FALSE='#' |
---|
| 3293 | else |
---|
| 3294 | am__fastdepCC_TRUE='#' |
---|
| 3295 | am__fastdepCC_FALSE= |
---|
| 3296 | fi |
---|
| 3297 | |
---|
| 3298 | |
---|
| 3299 | |
---|
| 3300 | # Checks for libraries. |
---|
| 3301 | |
---|
| 3302 | # cheking for libGL |
---|
| 3303 | |
---|
| 3304 | ac_ext=c |
---|
| 3305 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3309 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3310 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3311 | # On Suns, sometimes $CPP names a directory. |
---|
| 3312 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3313 | CPP= |
---|
| 3314 | fi |
---|
| 3315 | if test -z "$CPP"; then |
---|
| 3316 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 3317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3318 | else |
---|
| 3319 | # Double quotes because CPP needs to be expanded |
---|
| 3320 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3321 | do |
---|
| 3322 | ac_preproc_ok=false |
---|
| 3323 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3324 | do |
---|
| 3325 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3326 | # with a fresh cross-compiler works. |
---|
| 3327 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3328 | # <limits.h> exists even on freestanding compilers. |
---|
| 3329 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3330 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3331 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3332 | /* confdefs.h. */ |
---|
| 3333 | _ACEOF |
---|
| 3334 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3336 | /* end confdefs.h. */ |
---|
| 3337 | #ifdef __STDC__ |
---|
| 3338 | # include <limits.h> |
---|
| 3339 | #else |
---|
| 3340 | # include <assert.h> |
---|
| 3341 | #endif |
---|
| 3342 | Syntax error |
---|
| 3343 | _ACEOF |
---|
| 3344 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3345 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3346 | ac_status=$? |
---|
| 3347 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3348 | rm -f conftest.er1 |
---|
| 3349 | cat conftest.err >&5 |
---|
| 3350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3351 | (exit $ac_status); } >/dev/null; then |
---|
| 3352 | if test -s conftest.err; then |
---|
| 3353 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3354 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3355 | else |
---|
| 3356 | ac_cpp_err= |
---|
| 3357 | fi |
---|
| 3358 | else |
---|
| 3359 | ac_cpp_err=yes |
---|
| 3360 | fi |
---|
| 3361 | if test -z "$ac_cpp_err"; then |
---|
| 3362 | : |
---|
| 3363 | else |
---|
| 3364 | echo "$as_me: failed program was:" >&5 |
---|
| 3365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3366 | |
---|
| 3367 | # Broken: fails on valid input. |
---|
| 3368 | continue |
---|
| 3369 | fi |
---|
| 3370 | rm -f conftest.err conftest.$ac_ext |
---|
| 3371 | |
---|
| 3372 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3373 | # can be detected and how. |
---|
| 3374 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3375 | /* confdefs.h. */ |
---|
| 3376 | _ACEOF |
---|
| 3377 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3378 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3379 | /* end confdefs.h. */ |
---|
| 3380 | #include <ac_nonexistent.h> |
---|
| 3381 | _ACEOF |
---|
| 3382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3384 | ac_status=$? |
---|
| 3385 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3386 | rm -f conftest.er1 |
---|
| 3387 | cat conftest.err >&5 |
---|
| 3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3389 | (exit $ac_status); } >/dev/null; then |
---|
| 3390 | if test -s conftest.err; then |
---|
| 3391 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3392 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3393 | else |
---|
| 3394 | ac_cpp_err= |
---|
| 3395 | fi |
---|
| 3396 | else |
---|
| 3397 | ac_cpp_err=yes |
---|
| 3398 | fi |
---|
| 3399 | if test -z "$ac_cpp_err"; then |
---|
| 3400 | # Broken: success on invalid input. |
---|
| 3401 | continue |
---|
| 3402 | else |
---|
| 3403 | echo "$as_me: failed program was:" >&5 |
---|
| 3404 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3405 | |
---|
| 3406 | # Passes both tests. |
---|
| 3407 | ac_preproc_ok=: |
---|
| 3408 | break |
---|
| 3409 | fi |
---|
| 3410 | rm -f conftest.err conftest.$ac_ext |
---|
| 3411 | |
---|
| 3412 | done |
---|
| 3413 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3414 | rm -f conftest.err conftest.$ac_ext |
---|
| 3415 | if $ac_preproc_ok; then |
---|
| 3416 | break |
---|
| 3417 | fi |
---|
| 3418 | |
---|
| 3419 | done |
---|
| 3420 | ac_cv_prog_CPP=$CPP |
---|
| 3421 | |
---|
| 3422 | fi |
---|
| 3423 | CPP=$ac_cv_prog_CPP |
---|
| 3424 | else |
---|
| 3425 | ac_cv_prog_CPP=$CPP |
---|
| 3426 | fi |
---|
| 3427 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3428 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3429 | ac_preproc_ok=false |
---|
| 3430 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3431 | do |
---|
| 3432 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3433 | # with a fresh cross-compiler works. |
---|
| 3434 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3435 | # <limits.h> exists even on freestanding compilers. |
---|
| 3436 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3437 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3438 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3439 | /* confdefs.h. */ |
---|
| 3440 | _ACEOF |
---|
| 3441 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3442 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3443 | /* end confdefs.h. */ |
---|
| 3444 | #ifdef __STDC__ |
---|
| 3445 | # include <limits.h> |
---|
| 3446 | #else |
---|
| 3447 | # include <assert.h> |
---|
| 3448 | #endif |
---|
| 3449 | Syntax error |
---|
| 3450 | _ACEOF |
---|
| 3451 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3452 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3453 | ac_status=$? |
---|
| 3454 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3455 | rm -f conftest.er1 |
---|
| 3456 | cat conftest.err >&5 |
---|
| 3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3458 | (exit $ac_status); } >/dev/null; then |
---|
| 3459 | if test -s conftest.err; then |
---|
| 3460 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3461 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3462 | else |
---|
| 3463 | ac_cpp_err= |
---|
| 3464 | fi |
---|
| 3465 | else |
---|
| 3466 | ac_cpp_err=yes |
---|
| 3467 | fi |
---|
| 3468 | if test -z "$ac_cpp_err"; then |
---|
| 3469 | : |
---|
| 3470 | else |
---|
| 3471 | echo "$as_me: failed program was:" >&5 |
---|
| 3472 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3473 | |
---|
| 3474 | # Broken: fails on valid input. |
---|
| 3475 | continue |
---|
| 3476 | fi |
---|
| 3477 | rm -f conftest.err conftest.$ac_ext |
---|
| 3478 | |
---|
| 3479 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3480 | # can be detected and how. |
---|
| 3481 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3482 | /* confdefs.h. */ |
---|
| 3483 | _ACEOF |
---|
| 3484 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3485 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3486 | /* end confdefs.h. */ |
---|
| 3487 | #include <ac_nonexistent.h> |
---|
| 3488 | _ACEOF |
---|
| 3489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3491 | ac_status=$? |
---|
| 3492 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3493 | rm -f conftest.er1 |
---|
| 3494 | cat conftest.err >&5 |
---|
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3496 | (exit $ac_status); } >/dev/null; then |
---|
| 3497 | if test -s conftest.err; then |
---|
| 3498 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3500 | else |
---|
| 3501 | ac_cpp_err= |
---|
| 3502 | fi |
---|
| 3503 | else |
---|
| 3504 | ac_cpp_err=yes |
---|
| 3505 | fi |
---|
| 3506 | if test -z "$ac_cpp_err"; then |
---|
| 3507 | # Broken: success on invalid input. |
---|
| 3508 | continue |
---|
| 3509 | else |
---|
| 3510 | echo "$as_me: failed program was:" >&5 |
---|
| 3511 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3512 | |
---|
| 3513 | # Passes both tests. |
---|
| 3514 | ac_preproc_ok=: |
---|
| 3515 | break |
---|
| 3516 | fi |
---|
| 3517 | rm -f conftest.err conftest.$ac_ext |
---|
| 3518 | |
---|
| 3519 | done |
---|
| 3520 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3521 | rm -f conftest.err conftest.$ac_ext |
---|
| 3522 | if $ac_preproc_ok; then |
---|
| 3523 | : |
---|
| 3524 | else |
---|
| 3525 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3526 | See \`config.log' for more details." >&5 |
---|
| 3527 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3528 | See \`config.log' for more details." >&2;} |
---|
| 3529 | { (exit 1); exit 1; }; } |
---|
| 3530 | fi |
---|
| 3531 | |
---|
| 3532 | ac_ext=c |
---|
| 3533 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3537 | |
---|
| 3538 | |
---|
| 3539 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3540 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3541 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3543 | else |
---|
| 3544 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3545 | then ac_cv_prog_egrep='grep -E' |
---|
| 3546 | else ac_cv_prog_egrep='egrep' |
---|
| 3547 | fi |
---|
| 3548 | fi |
---|
| 3549 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3550 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3551 | EGREP=$ac_cv_prog_egrep |
---|
| 3552 | |
---|
| 3553 | |
---|
| 3554 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3555 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3556 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3558 | else |
---|
| 3559 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3560 | /* confdefs.h. */ |
---|
| 3561 | _ACEOF |
---|
| 3562 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3563 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3564 | /* end confdefs.h. */ |
---|
| 3565 | #include <stdlib.h> |
---|
| 3566 | #include <stdarg.h> |
---|
| 3567 | #include <string.h> |
---|
| 3568 | #include <float.h> |
---|
| 3569 | |
---|
| 3570 | int |
---|
| 3571 | main () |
---|
| 3572 | { |
---|
| 3573 | |
---|
| 3574 | ; |
---|
| 3575 | return 0; |
---|
| 3576 | } |
---|
| 3577 | _ACEOF |
---|
| 3578 | rm -f conftest.$ac_objext |
---|
| 3579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3580 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3581 | ac_status=$? |
---|
| 3582 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3583 | rm -f conftest.er1 |
---|
| 3584 | cat conftest.err >&5 |
---|
| 3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3586 | (exit $ac_status); } && |
---|
| 3587 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3588 | || test ! -s conftest.err' |
---|
| 3589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3590 | (eval $ac_try) 2>&5 |
---|
| 3591 | ac_status=$? |
---|
| 3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3593 | (exit $ac_status); }; } && |
---|
| 3594 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3596 | (eval $ac_try) 2>&5 |
---|
| 3597 | ac_status=$? |
---|
| 3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3599 | (exit $ac_status); }; }; then |
---|
| 3600 | ac_cv_header_stdc=yes |
---|
| 3601 | else |
---|
| 3602 | echo "$as_me: failed program was:" >&5 |
---|
| 3603 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3604 | |
---|
| 3605 | ac_cv_header_stdc=no |
---|
| 3606 | fi |
---|
| 3607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3608 | |
---|
| 3609 | if test $ac_cv_header_stdc = yes; then |
---|
| 3610 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3611 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3612 | /* confdefs.h. */ |
---|
| 3613 | _ACEOF |
---|
| 3614 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3615 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3616 | /* end confdefs.h. */ |
---|
| 3617 | #include <string.h> |
---|
| 3618 | |
---|
| 3619 | _ACEOF |
---|
| 3620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3621 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3622 | : |
---|
| 3623 | else |
---|
| 3624 | ac_cv_header_stdc=no |
---|
| 3625 | fi |
---|
| 3626 | rm -f conftest* |
---|
| 3627 | |
---|
| 3628 | fi |
---|
| 3629 | |
---|
| 3630 | if test $ac_cv_header_stdc = yes; then |
---|
| 3631 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3632 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3633 | /* confdefs.h. */ |
---|
| 3634 | _ACEOF |
---|
| 3635 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3636 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3637 | /* end confdefs.h. */ |
---|
| 3638 | #include <stdlib.h> |
---|
| 3639 | |
---|
| 3640 | _ACEOF |
---|
| 3641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3642 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3643 | : |
---|
| 3644 | else |
---|
| 3645 | ac_cv_header_stdc=no |
---|
| 3646 | fi |
---|
| 3647 | rm -f conftest* |
---|
| 3648 | |
---|
| 3649 | fi |
---|
| 3650 | |
---|
| 3651 | if test $ac_cv_header_stdc = yes; then |
---|
| 3652 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3653 | if test "$cross_compiling" = yes; then |
---|
| 3654 | : |
---|
| 3655 | else |
---|
| 3656 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3657 | /* confdefs.h. */ |
---|
| 3658 | _ACEOF |
---|
| 3659 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3660 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3661 | /* end confdefs.h. */ |
---|
| 3662 | #include <ctype.h> |
---|
| 3663 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3664 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3665 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3666 | #else |
---|
| 3667 | # define ISLOWER(c) \ |
---|
| 3668 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3669 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3670 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3671 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3672 | #endif |
---|
| 3673 | |
---|
| 3674 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3675 | int |
---|
| 3676 | main () |
---|
| 3677 | { |
---|
| 3678 | int i; |
---|
| 3679 | for (i = 0; i < 256; i++) |
---|
| 3680 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3681 | || toupper (i) != TOUPPER (i)) |
---|
| 3682 | exit(2); |
---|
| 3683 | exit (0); |
---|
| 3684 | } |
---|
| 3685 | _ACEOF |
---|
| 3686 | rm -f conftest$ac_exeext |
---|
| 3687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3688 | (eval $ac_link) 2>&5 |
---|
| 3689 | ac_status=$? |
---|
| 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3693 | (eval $ac_try) 2>&5 |
---|
| 3694 | ac_status=$? |
---|
| 3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3696 | (exit $ac_status); }; }; then |
---|
| 3697 | : |
---|
| 3698 | else |
---|
| 3699 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3700 | echo "$as_me: failed program was:" >&5 |
---|
| 3701 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3702 | |
---|
| 3703 | ( exit $ac_status ) |
---|
| 3704 | ac_cv_header_stdc=no |
---|
| 3705 | fi |
---|
| 3706 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3707 | fi |
---|
| 3708 | fi |
---|
| 3709 | fi |
---|
| 3710 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3711 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3712 | if test $ac_cv_header_stdc = yes; then |
---|
| 3713 | |
---|
| 3714 | cat >>confdefs.h <<\_ACEOF |
---|
| 3715 | #define STDC_HEADERS 1 |
---|
| 3716 | _ACEOF |
---|
| 3717 | |
---|
| 3718 | fi |
---|
| 3719 | |
---|
| 3720 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3721 | |
---|
| 3722 | |
---|
| 3723 | |
---|
| 3724 | |
---|
| 3725 | |
---|
| 3726 | |
---|
| 3727 | |
---|
| 3728 | |
---|
| 3729 | |
---|
| 3730 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3731 | inttypes.h stdint.h unistd.h |
---|
| 3732 | do |
---|
| 3733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3738 | else |
---|
| 3739 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3740 | /* confdefs.h. */ |
---|
| 3741 | _ACEOF |
---|
| 3742 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3743 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3744 | /* end confdefs.h. */ |
---|
| 3745 | $ac_includes_default |
---|
| 3746 | |
---|
| 3747 | #include <$ac_header> |
---|
| 3748 | _ACEOF |
---|
| 3749 | rm -f conftest.$ac_objext |
---|
| 3750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3751 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3752 | ac_status=$? |
---|
| 3753 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3754 | rm -f conftest.er1 |
---|
| 3755 | cat conftest.err >&5 |
---|
| 3756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3757 | (exit $ac_status); } && |
---|
| 3758 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3759 | || test ! -s conftest.err' |
---|
| 3760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3761 | (eval $ac_try) 2>&5 |
---|
| 3762 | ac_status=$? |
---|
| 3763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3764 | (exit $ac_status); }; } && |
---|
| 3765 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3767 | (eval $ac_try) 2>&5 |
---|
| 3768 | ac_status=$? |
---|
| 3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3770 | (exit $ac_status); }; }; then |
---|
| 3771 | eval "$as_ac_Header=yes" |
---|
| 3772 | else |
---|
| 3773 | echo "$as_me: failed program was:" >&5 |
---|
| 3774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3775 | |
---|
| 3776 | eval "$as_ac_Header=no" |
---|
| 3777 | fi |
---|
| 3778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3779 | fi |
---|
| 3780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3782 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3783 | cat >>confdefs.h <<_ACEOF |
---|
| 3784 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3785 | _ACEOF |
---|
| 3786 | |
---|
| 3787 | fi |
---|
| 3788 | |
---|
| 3789 | done |
---|
| 3790 | |
---|
| 3791 | |
---|
| 3792 | |
---|
| 3793 | for ac_header in GL/gl.h |
---|
| 3794 | do |
---|
| 3795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3801 | fi |
---|
| 3802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3804 | else |
---|
| 3805 | # Is the header compilable? |
---|
| 3806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3808 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3809 | /* confdefs.h. */ |
---|
| 3810 | _ACEOF |
---|
| 3811 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3812 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3813 | /* end confdefs.h. */ |
---|
| 3814 | $ac_includes_default |
---|
| 3815 | #include <$ac_header> |
---|
| 3816 | _ACEOF |
---|
| 3817 | rm -f conftest.$ac_objext |
---|
| 3818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3819 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3820 | ac_status=$? |
---|
| 3821 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3822 | rm -f conftest.er1 |
---|
| 3823 | cat conftest.err >&5 |
---|
| 3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3825 | (exit $ac_status); } && |
---|
| 3826 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3827 | || test ! -s conftest.err' |
---|
| 3828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3829 | (eval $ac_try) 2>&5 |
---|
| 3830 | ac_status=$? |
---|
| 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3832 | (exit $ac_status); }; } && |
---|
| 3833 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3835 | (eval $ac_try) 2>&5 |
---|
| 3836 | ac_status=$? |
---|
| 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3838 | (exit $ac_status); }; }; then |
---|
| 3839 | ac_header_compiler=yes |
---|
| 3840 | else |
---|
| 3841 | echo "$as_me: failed program was:" >&5 |
---|
| 3842 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3843 | |
---|
| 3844 | ac_header_compiler=no |
---|
| 3845 | fi |
---|
| 3846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3847 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3848 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3849 | |
---|
| 3850 | # Is the header present? |
---|
| 3851 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3852 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3853 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3854 | /* confdefs.h. */ |
---|
| 3855 | _ACEOF |
---|
| 3856 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3857 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3858 | /* end confdefs.h. */ |
---|
| 3859 | #include <$ac_header> |
---|
| 3860 | _ACEOF |
---|
| 3861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3863 | ac_status=$? |
---|
| 3864 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3865 | rm -f conftest.er1 |
---|
| 3866 | cat conftest.err >&5 |
---|
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3868 | (exit $ac_status); } >/dev/null; then |
---|
| 3869 | if test -s conftest.err; then |
---|
| 3870 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3872 | else |
---|
| 3873 | ac_cpp_err= |
---|
| 3874 | fi |
---|
| 3875 | else |
---|
| 3876 | ac_cpp_err=yes |
---|
| 3877 | fi |
---|
| 3878 | if test -z "$ac_cpp_err"; then |
---|
| 3879 | ac_header_preproc=yes |
---|
| 3880 | else |
---|
| 3881 | echo "$as_me: failed program was:" >&5 |
---|
| 3882 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3883 | |
---|
| 3884 | ac_header_preproc=no |
---|
| 3885 | fi |
---|
| 3886 | rm -f conftest.err conftest.$ac_ext |
---|
| 3887 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3888 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3889 | |
---|
| 3890 | # So? What about this header? |
---|
| 3891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 3892 | yes:no: ) |
---|
| 3893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 3895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 3896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 3897 | ac_header_preproc=yes |
---|
| 3898 | ;; |
---|
| 3899 | no:yes:* ) |
---|
| 3900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 3902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 3905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 3906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 3907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 3908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 3911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 3912 | ( |
---|
| 3913 | cat <<\_ASBOX |
---|
| 3914 | ## ------------------------------------------- ## |
---|
| 3915 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 3916 | ## ------------------------------------------- ## |
---|
| 3917 | _ASBOX |
---|
| 3918 | ) | |
---|
| 3919 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3920 | ;; |
---|
| 3921 | esac |
---|
| 3922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3926 | else |
---|
| 3927 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 3928 | fi |
---|
| 3929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3931 | |
---|
| 3932 | fi |
---|
| 3933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3934 | cat >>confdefs.h <<_ACEOF |
---|
| 3935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3936 | _ACEOF |
---|
| 3937 | |
---|
| 3938 | else |
---|
| 3939 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 3940 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 3941 | { (exit 1); exit 1; }; } |
---|
| 3942 | fi |
---|
| 3943 | |
---|
| 3944 | done |
---|
| 3945 | |
---|
| 3946 | |
---|
| 3947 | # checking for Unix GL |
---|
| 3948 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 3949 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 3950 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
| 3951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3952 | else |
---|
| 3953 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3954 | LIBS="-lGL $LIBS" |
---|
| 3955 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3956 | /* confdefs.h. */ |
---|
| 3957 | _ACEOF |
---|
| 3958 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3960 | /* end confdefs.h. */ |
---|
| 3961 | |
---|
| 3962 | |
---|
| 3963 | int |
---|
| 3964 | main () |
---|
| 3965 | { |
---|
| 3966 | main (); |
---|
| 3967 | ; |
---|
| 3968 | return 0; |
---|
| 3969 | } |
---|
| 3970 | _ACEOF |
---|
| 3971 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3973 | (eval $ac_link) 2>conftest.er1 |
---|
| 3974 | ac_status=$? |
---|
| 3975 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3976 | rm -f conftest.er1 |
---|
| 3977 | cat conftest.err >&5 |
---|
| 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3979 | (exit $ac_status); } && |
---|
| 3980 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3981 | || test ! -s conftest.err' |
---|
| 3982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3983 | (eval $ac_try) 2>&5 |
---|
| 3984 | ac_status=$? |
---|
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3986 | (exit $ac_status); }; } && |
---|
| 3987 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3989 | (eval $ac_try) 2>&5 |
---|
| 3990 | ac_status=$? |
---|
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3992 | (exit $ac_status); }; }; then |
---|
| 3993 | ac_cv_lib_GL_main=yes |
---|
| 3994 | else |
---|
| 3995 | echo "$as_me: failed program was:" >&5 |
---|
| 3996 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3997 | |
---|
| 3998 | ac_cv_lib_GL_main=no |
---|
| 3999 | fi |
---|
| 4000 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4001 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4002 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4003 | fi |
---|
| 4004 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 4005 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 4006 | if test $ac_cv_lib_GL_main = yes; then |
---|
| 4007 | FOUND_GL=yes |
---|
| 4008 | fi |
---|
| 4009 | |
---|
| 4010 | if test "$FOUND_GL" = "yes" ; then |
---|
| 4011 | LIBS="$LIBS -lGL" |
---|
| 4012 | # checking for Windows openGl library |
---|
| 4013 | else |
---|
| 4014 | echo "We did not find the Linux opengl Library. Checking for Windows Library" |
---|
| 4015 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4016 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4017 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
| 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4019 | else |
---|
| 4020 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4021 | LIBS="-lopengl32 $LIBS" |
---|
| 4022 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4023 | /* confdefs.h. */ |
---|
| 4024 | _ACEOF |
---|
| 4025 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4026 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4027 | /* end confdefs.h. */ |
---|
| 4028 | |
---|
| 4029 | |
---|
| 4030 | int |
---|
| 4031 | main () |
---|
| 4032 | { |
---|
| 4033 | main (); |
---|
| 4034 | ; |
---|
| 4035 | return 0; |
---|
| 4036 | } |
---|
| 4037 | _ACEOF |
---|
| 4038 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4040 | (eval $ac_link) 2>conftest.er1 |
---|
| 4041 | ac_status=$? |
---|
| 4042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4043 | rm -f conftest.er1 |
---|
| 4044 | cat conftest.err >&5 |
---|
| 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4046 | (exit $ac_status); } && |
---|
| 4047 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4048 | || test ! -s conftest.err' |
---|
| 4049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4050 | (eval $ac_try) 2>&5 |
---|
| 4051 | ac_status=$? |
---|
| 4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4053 | (exit $ac_status); }; } && |
---|
| 4054 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4056 | (eval $ac_try) 2>&5 |
---|
| 4057 | ac_status=$? |
---|
| 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4059 | (exit $ac_status); }; }; then |
---|
| 4060 | ac_cv_lib_opengl32_main=yes |
---|
| 4061 | else |
---|
| 4062 | echo "$as_me: failed program was:" >&5 |
---|
| 4063 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4064 | |
---|
| 4065 | ac_cv_lib_opengl32_main=no |
---|
| 4066 | fi |
---|
| 4067 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4068 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4069 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4070 | fi |
---|
| 4071 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4072 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4073 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4074 | FOUND_opengl32=yes |
---|
| 4075 | else |
---|
| 4076 | "gl/gl.h" |
---|
| 4077 | fi |
---|
| 4078 | |
---|
| 4079 | if test "$FOUND_opengl32" = "yes" ; then |
---|
| 4080 | LIBS="$LIBS -lopengl32" |
---|
| 4081 | |
---|
| 4082 | else |
---|
| 4083 | echo "------------------" |
---|
| 4084 | echo "opengl not found." |
---|
| 4085 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4086 | echo "------------------" |
---|
| 4087 | exit -1 |
---|
| 4088 | fi |
---|
| 4089 | fi |
---|
| 4090 | |
---|
| 4091 | # cheking for libGLU |
---|
| 4092 | |
---|
| 4093 | for ac_header in GL/glu.h |
---|
| 4094 | do |
---|
| 4095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4101 | fi |
---|
| 4102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4104 | else |
---|
| 4105 | # Is the header compilable? |
---|
| 4106 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4109 | /* confdefs.h. */ |
---|
| 4110 | _ACEOF |
---|
| 4111 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4112 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4113 | /* end confdefs.h. */ |
---|
| 4114 | $ac_includes_default |
---|
| 4115 | #include <$ac_header> |
---|
| 4116 | _ACEOF |
---|
| 4117 | rm -f conftest.$ac_objext |
---|
| 4118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4119 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4120 | ac_status=$? |
---|
| 4121 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4122 | rm -f conftest.er1 |
---|
| 4123 | cat conftest.err >&5 |
---|
| 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4125 | (exit $ac_status); } && |
---|
| 4126 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4127 | || test ! -s conftest.err' |
---|
| 4128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4129 | (eval $ac_try) 2>&5 |
---|
| 4130 | ac_status=$? |
---|
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4132 | (exit $ac_status); }; } && |
---|
| 4133 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4135 | (eval $ac_try) 2>&5 |
---|
| 4136 | ac_status=$? |
---|
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4138 | (exit $ac_status); }; }; then |
---|
| 4139 | ac_header_compiler=yes |
---|
| 4140 | else |
---|
| 4141 | echo "$as_me: failed program was:" >&5 |
---|
| 4142 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4143 | |
---|
| 4144 | ac_header_compiler=no |
---|
| 4145 | fi |
---|
| 4146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4148 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4149 | |
---|
| 4150 | # Is the header present? |
---|
| 4151 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4153 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4154 | /* confdefs.h. */ |
---|
| 4155 | _ACEOF |
---|
| 4156 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4157 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4158 | /* end confdefs.h. */ |
---|
| 4159 | #include <$ac_header> |
---|
| 4160 | _ACEOF |
---|
| 4161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4163 | ac_status=$? |
---|
| 4164 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4165 | rm -f conftest.er1 |
---|
| 4166 | cat conftest.err >&5 |
---|
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4168 | (exit $ac_status); } >/dev/null; then |
---|
| 4169 | if test -s conftest.err; then |
---|
| 4170 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4172 | else |
---|
| 4173 | ac_cpp_err= |
---|
| 4174 | fi |
---|
| 4175 | else |
---|
| 4176 | ac_cpp_err=yes |
---|
| 4177 | fi |
---|
| 4178 | if test -z "$ac_cpp_err"; then |
---|
| 4179 | ac_header_preproc=yes |
---|
| 4180 | else |
---|
| 4181 | echo "$as_me: failed program was:" >&5 |
---|
| 4182 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4183 | |
---|
| 4184 | ac_header_preproc=no |
---|
| 4185 | fi |
---|
| 4186 | rm -f conftest.err conftest.$ac_ext |
---|
| 4187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4188 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4189 | |
---|
| 4190 | # So? What about this header? |
---|
| 4191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4192 | yes:no: ) |
---|
| 4193 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4194 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4196 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4197 | ac_header_preproc=yes |
---|
| 4198 | ;; |
---|
| 4199 | no:yes:* ) |
---|
| 4200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4204 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4205 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4206 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4207 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4209 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4210 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4211 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4212 | ( |
---|
| 4213 | cat <<\_ASBOX |
---|
| 4214 | ## ------------------------------------------- ## |
---|
| 4215 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4216 | ## ------------------------------------------- ## |
---|
| 4217 | _ASBOX |
---|
| 4218 | ) | |
---|
| 4219 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4220 | ;; |
---|
| 4221 | esac |
---|
| 4222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4226 | else |
---|
| 4227 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4228 | fi |
---|
| 4229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4230 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4231 | |
---|
| 4232 | fi |
---|
| 4233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4234 | cat >>confdefs.h <<_ACEOF |
---|
| 4235 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4236 | _ACEOF |
---|
| 4237 | |
---|
| 4238 | else |
---|
| 4239 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4240 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4241 | { (exit 1); exit 1; }; } |
---|
| 4242 | fi |
---|
| 4243 | |
---|
| 4244 | done |
---|
| 4245 | |
---|
| 4246 | |
---|
| 4247 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 4248 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 4249 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 4250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4251 | else |
---|
| 4252 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4253 | LIBS="-lGLU $LIBS" |
---|
| 4254 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4255 | /* confdefs.h. */ |
---|
| 4256 | _ACEOF |
---|
| 4257 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4258 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4259 | /* end confdefs.h. */ |
---|
| 4260 | |
---|
| 4261 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4262 | #ifdef __cplusplus |
---|
| 4263 | extern "C" |
---|
| 4264 | #endif |
---|
| 4265 | /* We use char because int might match the return type of a gcc2 |
---|
| 4266 | builtin and then its argument prototype would still apply. */ |
---|
| 4267 | char gluProject (); |
---|
| 4268 | int |
---|
| 4269 | main () |
---|
| 4270 | { |
---|
| 4271 | gluProject (); |
---|
| 4272 | ; |
---|
| 4273 | return 0; |
---|
| 4274 | } |
---|
| 4275 | _ACEOF |
---|
| 4276 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4278 | (eval $ac_link) 2>conftest.er1 |
---|
| 4279 | ac_status=$? |
---|
| 4280 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4281 | rm -f conftest.er1 |
---|
| 4282 | cat conftest.err >&5 |
---|
| 4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4284 | (exit $ac_status); } && |
---|
| 4285 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4286 | || test ! -s conftest.err' |
---|
| 4287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4288 | (eval $ac_try) 2>&5 |
---|
| 4289 | ac_status=$? |
---|
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4291 | (exit $ac_status); }; } && |
---|
| 4292 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4294 | (eval $ac_try) 2>&5 |
---|
| 4295 | ac_status=$? |
---|
| 4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4297 | (exit $ac_status); }; }; then |
---|
| 4298 | ac_cv_lib_GLU_gluProject=yes |
---|
| 4299 | else |
---|
| 4300 | echo "$as_me: failed program was:" >&5 |
---|
| 4301 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4302 | |
---|
| 4303 | ac_cv_lib_GLU_gluProject=no |
---|
| 4304 | fi |
---|
| 4305 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4306 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4307 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4308 | fi |
---|
| 4309 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 4310 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 4311 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 4312 | FOUND_GLU=yes |
---|
| 4313 | fi |
---|
| 4314 | |
---|
| 4315 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 4316 | LIBS="$LIBS -lGLU" |
---|
| 4317 | # checking for Windows GLU32 library |
---|
| 4318 | else |
---|
| 4319 | echo "We did not find the Linux GLU Library. Checking for Windows Library" |
---|
| 4320 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4321 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4322 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
| 4323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4324 | else |
---|
| 4325 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4326 | LIBS="-lglu32 $LIBS" |
---|
| 4327 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4328 | /* confdefs.h. */ |
---|
| 4329 | _ACEOF |
---|
| 4330 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4331 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4332 | /* end confdefs.h. */ |
---|
| 4333 | |
---|
| 4334 | |
---|
| 4335 | int |
---|
| 4336 | main () |
---|
| 4337 | { |
---|
| 4338 | main (); |
---|
| 4339 | ; |
---|
| 4340 | return 0; |
---|
| 4341 | } |
---|
| 4342 | _ACEOF |
---|
| 4343 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4345 | (eval $ac_link) 2>conftest.er1 |
---|
| 4346 | ac_status=$? |
---|
| 4347 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4348 | rm -f conftest.er1 |
---|
| 4349 | cat conftest.err >&5 |
---|
| 4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4351 | (exit $ac_status); } && |
---|
| 4352 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4353 | || test ! -s conftest.err' |
---|
| 4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4355 | (eval $ac_try) 2>&5 |
---|
| 4356 | ac_status=$? |
---|
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4358 | (exit $ac_status); }; } && |
---|
| 4359 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4361 | (eval $ac_try) 2>&5 |
---|
| 4362 | ac_status=$? |
---|
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4364 | (exit $ac_status); }; }; then |
---|
| 4365 | ac_cv_lib_glu32_main=yes |
---|
| 4366 | else |
---|
| 4367 | echo "$as_me: failed program was:" >&5 |
---|
| 4368 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4369 | |
---|
| 4370 | ac_cv_lib_glu32_main=no |
---|
| 4371 | fi |
---|
| 4372 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4373 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4374 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4375 | fi |
---|
| 4376 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4377 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4378 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4379 | FOUND_glu32=yes |
---|
| 4380 | fi |
---|
| 4381 | |
---|
| 4382 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4383 | LIBS="$LIBS -lGLU32" |
---|
| 4384 | |
---|
[1853] | 4385 | else |
---|
[1977] | 4386 | echo "------------------" |
---|
| 4387 | echo "GLU library not found." |
---|
| 4388 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4389 | echo "------------------" |
---|
| 4390 | exit -1 |
---|
| 4391 | fi |
---|
[1853] | 4392 | fi |
---|
[1977] | 4393 | |
---|
| 4394 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
| 4395 | |
---|
| 4396 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
| 4397 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
| 4398 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
| 4399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[1853] | 4400 | else |
---|
[1977] | 4401 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4402 | LIBS="-lOSMesa $LIBS" |
---|
| 4403 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4404 | /* confdefs.h. */ |
---|
| 4405 | _ACEOF |
---|
| 4406 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4407 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4408 | /* end confdefs.h. */ |
---|
| 4409 | |
---|
| 4410 | |
---|
| 4411 | int |
---|
| 4412 | main () |
---|
| 4413 | { |
---|
| 4414 | main (); |
---|
| 4415 | ; |
---|
| 4416 | return 0; |
---|
| 4417 | } |
---|
| 4418 | _ACEOF |
---|
| 4419 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4421 | (eval $ac_link) 2>conftest.er1 |
---|
| 4422 | ac_status=$? |
---|
| 4423 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4424 | rm -f conftest.er1 |
---|
| 4425 | cat conftest.err >&5 |
---|
| 4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4427 | (exit $ac_status); } && |
---|
| 4428 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4429 | || test ! -s conftest.err' |
---|
| 4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4431 | (eval $ac_try) 2>&5 |
---|
| 4432 | ac_status=$? |
---|
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4434 | (exit $ac_status); }; } && |
---|
| 4435 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4437 | (eval $ac_try) 2>&5 |
---|
| 4438 | ac_status=$? |
---|
| 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4440 | (exit $ac_status); }; }; then |
---|
| 4441 | ac_cv_lib_OSMesa_main=yes |
---|
| 4442 | else |
---|
| 4443 | echo "$as_me: failed program was:" >&5 |
---|
| 4444 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4445 | |
---|
| 4446 | ac_cv_lib_OSMesa_main=no |
---|
[1853] | 4447 | fi |
---|
[1977] | 4448 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4449 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4450 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4451 | fi |
---|
| 4452 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
| 4453 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
| 4454 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
| 4455 | cat >>confdefs.h <<_ACEOF |
---|
| 4456 | #define HAVE_LIBOSMESA 1 |
---|
| 4457 | _ACEOF |
---|
[1853] | 4458 | |
---|
[1977] | 4459 | LIBS="-lOSMesa $LIBS" |
---|
| 4460 | |
---|
| 4461 | fi |
---|
| 4462 | |
---|
| 4463 | # FIXME: Replace `main' with a function in `-lX11': |
---|
| 4464 | |
---|
| 4465 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
| 4466 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
| 4467 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
| 4468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4469 | else |
---|
| 4470 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4471 | LIBS="-lX11 $LIBS" |
---|
| 4472 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4473 | /* confdefs.h. */ |
---|
| 4474 | _ACEOF |
---|
| 4475 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4476 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4477 | /* end confdefs.h. */ |
---|
| 4478 | |
---|
| 4479 | |
---|
| 4480 | int |
---|
| 4481 | main () |
---|
| 4482 | { |
---|
| 4483 | main (); |
---|
| 4484 | ; |
---|
| 4485 | return 0; |
---|
| 4486 | } |
---|
| 4487 | _ACEOF |
---|
| 4488 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4490 | (eval $ac_link) 2>conftest.er1 |
---|
| 4491 | ac_status=$? |
---|
| 4492 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4493 | rm -f conftest.er1 |
---|
| 4494 | cat conftest.err >&5 |
---|
| 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4496 | (exit $ac_status); } && |
---|
| 4497 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4498 | || test ! -s conftest.err' |
---|
| 4499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4500 | (eval $ac_try) 2>&5 |
---|
| 4501 | ac_status=$? |
---|
| 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4503 | (exit $ac_status); }; } && |
---|
| 4504 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4506 | (eval $ac_try) 2>&5 |
---|
| 4507 | ac_status=$? |
---|
| 4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4509 | (exit $ac_status); }; }; then |
---|
| 4510 | ac_cv_lib_X11_main=yes |
---|
| 4511 | else |
---|
| 4512 | echo "$as_me: failed program was:" >&5 |
---|
| 4513 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4514 | |
---|
| 4515 | ac_cv_lib_X11_main=no |
---|
| 4516 | fi |
---|
| 4517 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4518 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4519 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4520 | fi |
---|
| 4521 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
| 4522 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
| 4523 | if test $ac_cv_lib_X11_main = yes; then |
---|
| 4524 | cat >>confdefs.h <<_ACEOF |
---|
| 4525 | #define HAVE_LIBX11 1 |
---|
| 4526 | _ACEOF |
---|
| 4527 | |
---|
| 4528 | LIBS="-lX11 $LIBS" |
---|
| 4529 | |
---|
| 4530 | fi |
---|
| 4531 | |
---|
| 4532 | # FIXME: Replace `main' with a function in `-lXt': |
---|
| 4533 | |
---|
| 4534 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
| 4535 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
| 4536 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
| 4537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4538 | else |
---|
| 4539 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4540 | LIBS="-lXt $LIBS" |
---|
| 4541 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4542 | /* confdefs.h. */ |
---|
| 4543 | _ACEOF |
---|
| 4544 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4545 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4546 | /* end confdefs.h. */ |
---|
| 4547 | |
---|
| 4548 | |
---|
| 4549 | int |
---|
| 4550 | main () |
---|
| 4551 | { |
---|
| 4552 | main (); |
---|
| 4553 | ; |
---|
| 4554 | return 0; |
---|
| 4555 | } |
---|
| 4556 | _ACEOF |
---|
| 4557 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4559 | (eval $ac_link) 2>conftest.er1 |
---|
| 4560 | ac_status=$? |
---|
| 4561 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4562 | rm -f conftest.er1 |
---|
| 4563 | cat conftest.err >&5 |
---|
| 4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4565 | (exit $ac_status); } && |
---|
| 4566 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4567 | || test ! -s conftest.err' |
---|
| 4568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4569 | (eval $ac_try) 2>&5 |
---|
| 4570 | ac_status=$? |
---|
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4572 | (exit $ac_status); }; } && |
---|
| 4573 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4575 | (eval $ac_try) 2>&5 |
---|
| 4576 | ac_status=$? |
---|
| 4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4578 | (exit $ac_status); }; }; then |
---|
| 4579 | ac_cv_lib_Xt_main=yes |
---|
| 4580 | else |
---|
| 4581 | echo "$as_me: failed program was:" >&5 |
---|
| 4582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4583 | |
---|
| 4584 | ac_cv_lib_Xt_main=no |
---|
| 4585 | fi |
---|
| 4586 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4587 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4588 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4589 | fi |
---|
| 4590 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
| 4591 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
| 4592 | if test $ac_cv_lib_Xt_main = yes; then |
---|
| 4593 | cat >>confdefs.h <<_ACEOF |
---|
| 4594 | #define HAVE_LIBXT 1 |
---|
| 4595 | _ACEOF |
---|
| 4596 | |
---|
| 4597 | LIBS="-lXt $LIBS" |
---|
| 4598 | |
---|
| 4599 | fi |
---|
| 4600 | |
---|
| 4601 | |
---|
| 4602 | # cheking for libglut32 |
---|
| 4603 | |
---|
| 4604 | for ac_header in GL/glut.h |
---|
| 4605 | do |
---|
| 4606 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4612 | fi |
---|
| 4613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4614 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4615 | else |
---|
| 4616 | # Is the header compilable? |
---|
| 4617 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4618 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4619 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4620 | /* confdefs.h. */ |
---|
| 4621 | _ACEOF |
---|
| 4622 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4623 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4624 | /* end confdefs.h. */ |
---|
| 4625 | $ac_includes_default |
---|
| 4626 | #include <$ac_header> |
---|
| 4627 | _ACEOF |
---|
| 4628 | rm -f conftest.$ac_objext |
---|
| 4629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4630 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4631 | ac_status=$? |
---|
| 4632 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4633 | rm -f conftest.er1 |
---|
| 4634 | cat conftest.err >&5 |
---|
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4636 | (exit $ac_status); } && |
---|
| 4637 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4638 | || test ! -s conftest.err' |
---|
| 4639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4640 | (eval $ac_try) 2>&5 |
---|
| 4641 | ac_status=$? |
---|
| 4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4643 | (exit $ac_status); }; } && |
---|
| 4644 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4646 | (eval $ac_try) 2>&5 |
---|
| 4647 | ac_status=$? |
---|
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4649 | (exit $ac_status); }; }; then |
---|
| 4650 | ac_header_compiler=yes |
---|
| 4651 | else |
---|
| 4652 | echo "$as_me: failed program was:" >&5 |
---|
| 4653 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4654 | |
---|
| 4655 | ac_header_compiler=no |
---|
| 4656 | fi |
---|
| 4657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4658 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4659 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4660 | |
---|
| 4661 | # Is the header present? |
---|
| 4662 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4663 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4664 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4665 | /* confdefs.h. */ |
---|
| 4666 | _ACEOF |
---|
| 4667 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4668 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4669 | /* end confdefs.h. */ |
---|
| 4670 | #include <$ac_header> |
---|
| 4671 | _ACEOF |
---|
| 4672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4674 | ac_status=$? |
---|
| 4675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4676 | rm -f conftest.er1 |
---|
| 4677 | cat conftest.err >&5 |
---|
| 4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4679 | (exit $ac_status); } >/dev/null; then |
---|
| 4680 | if test -s conftest.err; then |
---|
| 4681 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4683 | else |
---|
| 4684 | ac_cpp_err= |
---|
| 4685 | fi |
---|
| 4686 | else |
---|
| 4687 | ac_cpp_err=yes |
---|
| 4688 | fi |
---|
| 4689 | if test -z "$ac_cpp_err"; then |
---|
| 4690 | ac_header_preproc=yes |
---|
| 4691 | else |
---|
| 4692 | echo "$as_me: failed program was:" >&5 |
---|
| 4693 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4694 | |
---|
| 4695 | ac_header_preproc=no |
---|
| 4696 | fi |
---|
| 4697 | rm -f conftest.err conftest.$ac_ext |
---|
| 4698 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4699 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4700 | |
---|
| 4701 | # So? What about this header? |
---|
| 4702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4703 | yes:no: ) |
---|
| 4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4708 | ac_header_preproc=yes |
---|
| 4709 | ;; |
---|
| 4710 | no:yes:* ) |
---|
| 4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4723 | ( |
---|
| 4724 | cat <<\_ASBOX |
---|
| 4725 | ## ------------------------------------------- ## |
---|
| 4726 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4727 | ## ------------------------------------------- ## |
---|
| 4728 | _ASBOX |
---|
| 4729 | ) | |
---|
| 4730 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4731 | ;; |
---|
| 4732 | esac |
---|
| 4733 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4734 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4735 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4737 | else |
---|
| 4738 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4739 | fi |
---|
| 4740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4742 | |
---|
| 4743 | fi |
---|
| 4744 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4745 | cat >>confdefs.h <<_ACEOF |
---|
| 4746 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4747 | _ACEOF |
---|
| 4748 | |
---|
| 4749 | else |
---|
| 4750 | { { echo "$as_me:$LINENO: error: cannot find glut headers" >&5 |
---|
| 4751 | echo "$as_me: error: cannot find glut headers" >&2;} |
---|
| 4752 | { (exit 1); exit 1; }; } |
---|
| 4753 | fi |
---|
| 4754 | |
---|
| 4755 | done |
---|
| 4756 | |
---|
| 4757 | echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5 |
---|
| 4758 | echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6 |
---|
| 4759 | if test "${ac_cv_lib_glut_glutInit+set}" = set; then |
---|
| 4760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4761 | else |
---|
| 4762 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4763 | LIBS="-lglut $LIBS" |
---|
| 4764 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4765 | /* confdefs.h. */ |
---|
| 4766 | _ACEOF |
---|
| 4767 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4768 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4769 | /* end confdefs.h. */ |
---|
| 4770 | |
---|
| 4771 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4772 | #ifdef __cplusplus |
---|
| 4773 | extern "C" |
---|
| 4774 | #endif |
---|
| 4775 | /* We use char because int might match the return type of a gcc2 |
---|
| 4776 | builtin and then its argument prototype would still apply. */ |
---|
| 4777 | char glutInit (); |
---|
| 4778 | int |
---|
| 4779 | main () |
---|
| 4780 | { |
---|
| 4781 | glutInit (); |
---|
| 4782 | ; |
---|
| 4783 | return 0; |
---|
| 4784 | } |
---|
| 4785 | _ACEOF |
---|
| 4786 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4788 | (eval $ac_link) 2>conftest.er1 |
---|
| 4789 | ac_status=$? |
---|
| 4790 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4791 | rm -f conftest.er1 |
---|
| 4792 | cat conftest.err >&5 |
---|
| 4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4794 | (exit $ac_status); } && |
---|
| 4795 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4796 | || test ! -s conftest.err' |
---|
| 4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4798 | (eval $ac_try) 2>&5 |
---|
| 4799 | ac_status=$? |
---|
| 4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4801 | (exit $ac_status); }; } && |
---|
| 4802 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4804 | (eval $ac_try) 2>&5 |
---|
| 4805 | ac_status=$? |
---|
| 4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4807 | (exit $ac_status); }; }; then |
---|
| 4808 | ac_cv_lib_glut_glutInit=yes |
---|
| 4809 | else |
---|
| 4810 | echo "$as_me: failed program was:" >&5 |
---|
| 4811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4812 | |
---|
| 4813 | ac_cv_lib_glut_glutInit=no |
---|
| 4814 | fi |
---|
| 4815 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4816 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4817 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4818 | fi |
---|
| 4819 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5 |
---|
| 4820 | echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6 |
---|
| 4821 | if test $ac_cv_lib_glut_glutInit = yes; then |
---|
| 4822 | FOUND_glut=yes |
---|
| 4823 | fi |
---|
| 4824 | |
---|
| 4825 | if test "$FOUND_glut" = "yes" ; then |
---|
| 4826 | LIBS="$LIBS -lglut" |
---|
| 4827 | # checking for Windows glut32 library |
---|
| 4828 | else |
---|
| 4829 | echo "We did not find the Linux glut Library. Checking for Windows Library" |
---|
| 4830 | echo "$as_me:$LINENO: checking for main in -lglut32" >&5 |
---|
| 4831 | echo $ECHO_N "checking for main in -lglut32... $ECHO_C" >&6 |
---|
| 4832 | if test "${ac_cv_lib_glut32_main+set}" = set; then |
---|
| 4833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4834 | else |
---|
| 4835 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4836 | LIBS="-lglut32 $LIBS" |
---|
| 4837 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4838 | /* confdefs.h. */ |
---|
| 4839 | _ACEOF |
---|
| 4840 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4841 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4842 | /* end confdefs.h. */ |
---|
| 4843 | |
---|
| 4844 | |
---|
| 4845 | int |
---|
| 4846 | main () |
---|
| 4847 | { |
---|
| 4848 | main (); |
---|
| 4849 | ; |
---|
| 4850 | return 0; |
---|
| 4851 | } |
---|
| 4852 | _ACEOF |
---|
| 4853 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4855 | (eval $ac_link) 2>conftest.er1 |
---|
| 4856 | ac_status=$? |
---|
| 4857 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4858 | rm -f conftest.er1 |
---|
| 4859 | cat conftest.err >&5 |
---|
| 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4861 | (exit $ac_status); } && |
---|
| 4862 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4863 | || test ! -s conftest.err' |
---|
| 4864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4865 | (eval $ac_try) 2>&5 |
---|
| 4866 | ac_status=$? |
---|
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4868 | (exit $ac_status); }; } && |
---|
| 4869 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4871 | (eval $ac_try) 2>&5 |
---|
| 4872 | ac_status=$? |
---|
| 4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4874 | (exit $ac_status); }; }; then |
---|
| 4875 | ac_cv_lib_glut32_main=yes |
---|
| 4876 | else |
---|
| 4877 | echo "$as_me: failed program was:" >&5 |
---|
| 4878 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4879 | |
---|
| 4880 | ac_cv_lib_glut32_main=no |
---|
| 4881 | fi |
---|
| 4882 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4883 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4884 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4885 | fi |
---|
| 4886 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_main" >&5 |
---|
| 4887 | echo "${ECHO_T}$ac_cv_lib_glut32_main" >&6 |
---|
| 4888 | if test $ac_cv_lib_glut32_main = yes; then |
---|
| 4889 | FOUND_glut32=yes |
---|
| 4890 | fi |
---|
| 4891 | |
---|
| 4892 | if test "$FOUND_glut32" = "yes" ; then |
---|
| 4893 | LIBS="$LIBS -lglut32" |
---|
| 4894 | else |
---|
| 4895 | echo "------------------" |
---|
| 4896 | echo "glut library not found." |
---|
| 4897 | echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html" |
---|
| 4898 | echo "------------------" |
---|
| 4899 | exit -1 |
---|
| 4900 | fi |
---|
| 4901 | fi |
---|
| 4902 | |
---|
| 4903 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 4904 | |
---|
| 4905 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 4906 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 4907 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4909 | else |
---|
| 4910 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4911 | LIBS="-lm $LIBS" |
---|
| 4912 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4913 | /* confdefs.h. */ |
---|
| 4914 | _ACEOF |
---|
| 4915 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4916 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4917 | /* end confdefs.h. */ |
---|
| 4918 | |
---|
| 4919 | |
---|
| 4920 | int |
---|
| 4921 | main () |
---|
| 4922 | { |
---|
| 4923 | main (); |
---|
| 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 |
---|
| 4950 | ac_cv_lib_m_main=yes |
---|
| 4951 | else |
---|
| 4952 | echo "$as_me: failed program was:" >&5 |
---|
| 4953 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4954 | |
---|
| 4955 | ac_cv_lib_m_main=no |
---|
| 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 |
---|
| 4961 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 4962 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 4963 | if test $ac_cv_lib_m_main = yes; then |
---|
| 4964 | cat >>confdefs.h <<_ACEOF |
---|
| 4965 | #define HAVE_LIBM 1 |
---|
| 4966 | _ACEOF |
---|
| 4967 | |
---|
| 4968 | LIBS="-lm $LIBS" |
---|
| 4969 | |
---|
| 4970 | fi |
---|
| 4971 | |
---|
| 4972 | |
---|
[2015] | 4973 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
| 4974 | |
---|
| 4975 | |
---|
[1977] | 4976 | # Checks for header files. |
---|
| 4977 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 4978 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 4979 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4981 | else |
---|
| 4982 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4983 | /* confdefs.h. */ |
---|
| 4984 | _ACEOF |
---|
| 4985 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4986 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4987 | /* end confdefs.h. */ |
---|
| 4988 | #include <stdlib.h> |
---|
| 4989 | #include <stdarg.h> |
---|
| 4990 | #include <string.h> |
---|
| 4991 | #include <float.h> |
---|
| 4992 | |
---|
| 4993 | int |
---|
| 4994 | main () |
---|
| 4995 | { |
---|
| 4996 | |
---|
| 4997 | ; |
---|
| 4998 | return 0; |
---|
| 4999 | } |
---|
| 5000 | _ACEOF |
---|
| 5001 | rm -f conftest.$ac_objext |
---|
| 5002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5003 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5004 | ac_status=$? |
---|
| 5005 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5006 | rm -f conftest.er1 |
---|
| 5007 | cat conftest.err >&5 |
---|
| 5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5009 | (exit $ac_status); } && |
---|
| 5010 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5011 | || test ! -s conftest.err' |
---|
| 5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5013 | (eval $ac_try) 2>&5 |
---|
| 5014 | ac_status=$? |
---|
| 5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5016 | (exit $ac_status); }; } && |
---|
| 5017 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5019 | (eval $ac_try) 2>&5 |
---|
| 5020 | ac_status=$? |
---|
| 5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5022 | (exit $ac_status); }; }; then |
---|
| 5023 | ac_cv_header_stdc=yes |
---|
| 5024 | else |
---|
| 5025 | echo "$as_me: failed program was:" >&5 |
---|
| 5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5027 | |
---|
| 5028 | ac_cv_header_stdc=no |
---|
| 5029 | fi |
---|
| 5030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5031 | |
---|
| 5032 | if test $ac_cv_header_stdc = yes; then |
---|
| 5033 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 5034 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5035 | /* confdefs.h. */ |
---|
| 5036 | _ACEOF |
---|
| 5037 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5038 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5039 | /* end confdefs.h. */ |
---|
| 5040 | #include <string.h> |
---|
| 5041 | |
---|
| 5042 | _ACEOF |
---|
| 5043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5044 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 5045 | : |
---|
| 5046 | else |
---|
| 5047 | ac_cv_header_stdc=no |
---|
| 5048 | fi |
---|
| 5049 | rm -f conftest* |
---|
| 5050 | |
---|
| 5051 | fi |
---|
| 5052 | |
---|
| 5053 | if test $ac_cv_header_stdc = yes; then |
---|
| 5054 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 5055 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5056 | /* confdefs.h. */ |
---|
| 5057 | _ACEOF |
---|
| 5058 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5060 | /* end confdefs.h. */ |
---|
| 5061 | #include <stdlib.h> |
---|
| 5062 | |
---|
| 5063 | _ACEOF |
---|
| 5064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5065 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 5066 | : |
---|
| 5067 | else |
---|
| 5068 | ac_cv_header_stdc=no |
---|
| 5069 | fi |
---|
| 5070 | rm -f conftest* |
---|
| 5071 | |
---|
| 5072 | fi |
---|
| 5073 | |
---|
| 5074 | if test $ac_cv_header_stdc = yes; then |
---|
| 5075 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 5076 | if test "$cross_compiling" = yes; then |
---|
| 5077 | : |
---|
| 5078 | else |
---|
| 5079 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5080 | /* confdefs.h. */ |
---|
| 5081 | _ACEOF |
---|
| 5082 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5083 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5084 | /* end confdefs.h. */ |
---|
| 5085 | #include <ctype.h> |
---|
| 5086 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 5087 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 5088 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 5089 | #else |
---|
| 5090 | # define ISLOWER(c) \ |
---|
| 5091 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 5092 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 5093 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 5094 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 5095 | #endif |
---|
| 5096 | |
---|
| 5097 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 5098 | int |
---|
| 5099 | main () |
---|
| 5100 | { |
---|
| 5101 | int i; |
---|
| 5102 | for (i = 0; i < 256; i++) |
---|
| 5103 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 5104 | || toupper (i) != TOUPPER (i)) |
---|
| 5105 | exit(2); |
---|
| 5106 | exit (0); |
---|
| 5107 | } |
---|
| 5108 | _ACEOF |
---|
| 5109 | rm -f conftest$ac_exeext |
---|
| 5110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5111 | (eval $ac_link) 2>&5 |
---|
| 5112 | ac_status=$? |
---|
| 5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5116 | (eval $ac_try) 2>&5 |
---|
| 5117 | ac_status=$? |
---|
| 5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5119 | (exit $ac_status); }; }; then |
---|
| 5120 | : |
---|
| 5121 | else |
---|
| 5122 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5123 | echo "$as_me: failed program was:" >&5 |
---|
| 5124 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5125 | |
---|
| 5126 | ( exit $ac_status ) |
---|
| 5127 | ac_cv_header_stdc=no |
---|
| 5128 | fi |
---|
| 5129 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5130 | fi |
---|
| 5131 | fi |
---|
| 5132 | fi |
---|
| 5133 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 5134 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 5135 | if test $ac_cv_header_stdc = yes; then |
---|
| 5136 | |
---|
| 5137 | cat >>confdefs.h <<\_ACEOF |
---|
| 5138 | #define STDC_HEADERS 1 |
---|
| 5139 | _ACEOF |
---|
| 5140 | |
---|
| 5141 | fi |
---|
| 5142 | |
---|
| 5143 | |
---|
| 5144 | |
---|
| 5145 | for ac_header in stdlib.h string.h |
---|
| 5146 | do |
---|
| 5147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5153 | fi |
---|
| 5154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5155 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5156 | else |
---|
| 5157 | # Is the header compilable? |
---|
| 5158 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5160 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5161 | /* confdefs.h. */ |
---|
| 5162 | _ACEOF |
---|
| 5163 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5164 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5165 | /* end confdefs.h. */ |
---|
| 5166 | $ac_includes_default |
---|
| 5167 | #include <$ac_header> |
---|
| 5168 | _ACEOF |
---|
| 5169 | rm -f conftest.$ac_objext |
---|
| 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5171 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5172 | ac_status=$? |
---|
| 5173 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5174 | rm -f conftest.er1 |
---|
| 5175 | cat conftest.err >&5 |
---|
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5177 | (exit $ac_status); } && |
---|
| 5178 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5179 | || test ! -s conftest.err' |
---|
| 5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5181 | (eval $ac_try) 2>&5 |
---|
| 5182 | ac_status=$? |
---|
| 5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5184 | (exit $ac_status); }; } && |
---|
| 5185 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5187 | (eval $ac_try) 2>&5 |
---|
| 5188 | ac_status=$? |
---|
| 5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5190 | (exit $ac_status); }; }; then |
---|
| 5191 | ac_header_compiler=yes |
---|
| 5192 | else |
---|
| 5193 | echo "$as_me: failed program was:" >&5 |
---|
| 5194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5195 | |
---|
| 5196 | ac_header_compiler=no |
---|
| 5197 | fi |
---|
| 5198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5199 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5200 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5201 | |
---|
| 5202 | # Is the header present? |
---|
| 5203 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5204 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5205 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5206 | /* confdefs.h. */ |
---|
| 5207 | _ACEOF |
---|
| 5208 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5210 | /* end confdefs.h. */ |
---|
| 5211 | #include <$ac_header> |
---|
| 5212 | _ACEOF |
---|
| 5213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5215 | ac_status=$? |
---|
| 5216 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5217 | rm -f conftest.er1 |
---|
| 5218 | cat conftest.err >&5 |
---|
| 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5220 | (exit $ac_status); } >/dev/null; then |
---|
| 5221 | if test -s conftest.err; then |
---|
| 5222 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5224 | else |
---|
| 5225 | ac_cpp_err= |
---|
| 5226 | fi |
---|
| 5227 | else |
---|
| 5228 | ac_cpp_err=yes |
---|
| 5229 | fi |
---|
| 5230 | if test -z "$ac_cpp_err"; then |
---|
| 5231 | ac_header_preproc=yes |
---|
| 5232 | else |
---|
| 5233 | echo "$as_me: failed program was:" >&5 |
---|
| 5234 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5235 | |
---|
| 5236 | ac_header_preproc=no |
---|
| 5237 | fi |
---|
| 5238 | rm -f conftest.err conftest.$ac_ext |
---|
| 5239 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5240 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5241 | |
---|
| 5242 | # So? What about this header? |
---|
| 5243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5244 | yes:no: ) |
---|
| 5245 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5246 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5248 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5249 | ac_header_preproc=yes |
---|
| 5250 | ;; |
---|
| 5251 | no:yes:* ) |
---|
| 5252 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5253 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5254 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5255 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5256 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5257 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5258 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5259 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5261 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5262 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5263 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5264 | ( |
---|
| 5265 | cat <<\_ASBOX |
---|
| 5266 | ## ------------------------------------------- ## |
---|
| 5267 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5268 | ## ------------------------------------------- ## |
---|
| 5269 | _ASBOX |
---|
| 5270 | ) | |
---|
| 5271 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5272 | ;; |
---|
| 5273 | esac |
---|
| 5274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5278 | else |
---|
| 5279 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5280 | fi |
---|
| 5281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5283 | |
---|
| 5284 | fi |
---|
| 5285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5286 | cat >>confdefs.h <<_ACEOF |
---|
| 5287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5288 | _ACEOF |
---|
| 5289 | |
---|
| 5290 | fi |
---|
| 5291 | |
---|
| 5292 | done |
---|
| 5293 | |
---|
| 5294 | |
---|
| 5295 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 5296 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 5297 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 5298 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 5299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5300 | else |
---|
| 5301 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5302 | /* confdefs.h. */ |
---|
| 5303 | _ACEOF |
---|
| 5304 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5305 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5306 | /* end confdefs.h. */ |
---|
| 5307 | |
---|
| 5308 | #include <stdbool.h> |
---|
| 5309 | #ifndef bool |
---|
| 5310 | # error bool is not defined |
---|
| 5311 | #endif |
---|
| 5312 | #ifndef false |
---|
| 5313 | # error false is not defined |
---|
| 5314 | #endif |
---|
| 5315 | #if false |
---|
| 5316 | # error false is not 0 |
---|
| 5317 | #endif |
---|
| 5318 | #ifndef true |
---|
| 5319 | # error true is not defined |
---|
| 5320 | #endif |
---|
| 5321 | #if true != 1 |
---|
| 5322 | # error true is not 1 |
---|
| 5323 | #endif |
---|
| 5324 | #ifndef __bool_true_false_are_defined |
---|
| 5325 | # error __bool_true_false_are_defined is not defined |
---|
| 5326 | #endif |
---|
| 5327 | |
---|
| 5328 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 5329 | |
---|
| 5330 | char a[true == 1 ? 1 : -1]; |
---|
| 5331 | char b[false == 0 ? 1 : -1]; |
---|
| 5332 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 5333 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 5334 | bool e = &s; |
---|
| 5335 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 5336 | char g[true]; |
---|
| 5337 | char h[sizeof (_Bool)]; |
---|
| 5338 | char i[sizeof s.t]; |
---|
| 5339 | |
---|
| 5340 | int |
---|
| 5341 | main () |
---|
| 5342 | { |
---|
| 5343 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 5344 | ; |
---|
| 5345 | return 0; |
---|
| 5346 | } |
---|
| 5347 | _ACEOF |
---|
| 5348 | rm -f conftest.$ac_objext |
---|
| 5349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5350 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5351 | ac_status=$? |
---|
| 5352 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5353 | rm -f conftest.er1 |
---|
| 5354 | cat conftest.err >&5 |
---|
| 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5356 | (exit $ac_status); } && |
---|
| 5357 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5358 | || test ! -s conftest.err' |
---|
| 5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5360 | (eval $ac_try) 2>&5 |
---|
| 5361 | ac_status=$? |
---|
| 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5363 | (exit $ac_status); }; } && |
---|
| 5364 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5366 | (eval $ac_try) 2>&5 |
---|
| 5367 | ac_status=$? |
---|
| 5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5369 | (exit $ac_status); }; }; then |
---|
| 5370 | ac_cv_header_stdbool_h=yes |
---|
| 5371 | else |
---|
| 5372 | echo "$as_me: failed program was:" >&5 |
---|
| 5373 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5374 | |
---|
| 5375 | ac_cv_header_stdbool_h=no |
---|
| 5376 | fi |
---|
| 5377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5378 | fi |
---|
| 5379 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 5380 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 5381 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 5382 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 5383 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 5384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5385 | else |
---|
| 5386 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5387 | /* confdefs.h. */ |
---|
| 5388 | _ACEOF |
---|
| 5389 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5390 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5391 | /* end confdefs.h. */ |
---|
| 5392 | $ac_includes_default |
---|
| 5393 | int |
---|
| 5394 | main () |
---|
| 5395 | { |
---|
| 5396 | if ((_Bool *) 0) |
---|
| 5397 | return 0; |
---|
| 5398 | if (sizeof (_Bool)) |
---|
| 5399 | return 0; |
---|
| 5400 | ; |
---|
| 5401 | return 0; |
---|
| 5402 | } |
---|
| 5403 | _ACEOF |
---|
| 5404 | rm -f conftest.$ac_objext |
---|
| 5405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5406 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5407 | ac_status=$? |
---|
| 5408 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5409 | rm -f conftest.er1 |
---|
| 5410 | cat conftest.err >&5 |
---|
| 5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5412 | (exit $ac_status); } && |
---|
| 5413 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5414 | || test ! -s conftest.err' |
---|
| 5415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5416 | (eval $ac_try) 2>&5 |
---|
| 5417 | ac_status=$? |
---|
| 5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5419 | (exit $ac_status); }; } && |
---|
| 5420 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5422 | (eval $ac_try) 2>&5 |
---|
| 5423 | ac_status=$? |
---|
| 5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5425 | (exit $ac_status); }; }; then |
---|
| 5426 | ac_cv_type__Bool=yes |
---|
| 5427 | else |
---|
| 5428 | echo "$as_me: failed program was:" >&5 |
---|
| 5429 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5430 | |
---|
| 5431 | ac_cv_type__Bool=no |
---|
| 5432 | fi |
---|
| 5433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5434 | fi |
---|
| 5435 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 5436 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 5437 | if test $ac_cv_type__Bool = yes; then |
---|
| 5438 | |
---|
| 5439 | cat >>confdefs.h <<_ACEOF |
---|
| 5440 | #define HAVE__BOOL 1 |
---|
| 5441 | _ACEOF |
---|
| 5442 | |
---|
| 5443 | |
---|
| 5444 | fi |
---|
| 5445 | |
---|
| 5446 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 5447 | |
---|
| 5448 | cat >>confdefs.h <<\_ACEOF |
---|
| 5449 | #define HAVE_STDBOOL_H 1 |
---|
| 5450 | _ACEOF |
---|
| 5451 | |
---|
| 5452 | fi |
---|
| 5453 | |
---|
| 5454 | |
---|
| 5455 | # Checks for library functions. |
---|
| 5456 | |
---|
| 5457 | for ac_header in stdlib.h |
---|
| 5458 | do |
---|
| 5459 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5461 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5465 | fi |
---|
| 5466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5467 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5468 | else |
---|
| 5469 | # Is the header compilable? |
---|
| 5470 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5471 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5472 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5473 | /* confdefs.h. */ |
---|
| 5474 | _ACEOF |
---|
| 5475 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5476 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5477 | /* end confdefs.h. */ |
---|
| 5478 | $ac_includes_default |
---|
| 5479 | #include <$ac_header> |
---|
| 5480 | _ACEOF |
---|
| 5481 | rm -f conftest.$ac_objext |
---|
| 5482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5483 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5484 | ac_status=$? |
---|
| 5485 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5486 | rm -f conftest.er1 |
---|
| 5487 | cat conftest.err >&5 |
---|
| 5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5489 | (exit $ac_status); } && |
---|
| 5490 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5491 | || test ! -s conftest.err' |
---|
| 5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5493 | (eval $ac_try) 2>&5 |
---|
| 5494 | ac_status=$? |
---|
| 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5496 | (exit $ac_status); }; } && |
---|
| 5497 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5499 | (eval $ac_try) 2>&5 |
---|
| 5500 | ac_status=$? |
---|
| 5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5502 | (exit $ac_status); }; }; then |
---|
| 5503 | ac_header_compiler=yes |
---|
| 5504 | else |
---|
| 5505 | echo "$as_me: failed program was:" >&5 |
---|
| 5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5507 | |
---|
| 5508 | ac_header_compiler=no |
---|
| 5509 | fi |
---|
| 5510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5511 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5512 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5513 | |
---|
| 5514 | # Is the header present? |
---|
| 5515 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5516 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5517 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5518 | /* confdefs.h. */ |
---|
| 5519 | _ACEOF |
---|
| 5520 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5521 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5522 | /* end confdefs.h. */ |
---|
| 5523 | #include <$ac_header> |
---|
| 5524 | _ACEOF |
---|
| 5525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5527 | ac_status=$? |
---|
| 5528 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5529 | rm -f conftest.er1 |
---|
| 5530 | cat conftest.err >&5 |
---|
| 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5532 | (exit $ac_status); } >/dev/null; then |
---|
| 5533 | if test -s conftest.err; then |
---|
| 5534 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5535 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5536 | else |
---|
| 5537 | ac_cpp_err= |
---|
| 5538 | fi |
---|
| 5539 | else |
---|
| 5540 | ac_cpp_err=yes |
---|
| 5541 | fi |
---|
| 5542 | if test -z "$ac_cpp_err"; then |
---|
| 5543 | ac_header_preproc=yes |
---|
| 5544 | else |
---|
| 5545 | echo "$as_me: failed program was:" >&5 |
---|
| 5546 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5547 | |
---|
| 5548 | ac_header_preproc=no |
---|
| 5549 | fi |
---|
| 5550 | rm -f conftest.err conftest.$ac_ext |
---|
| 5551 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5552 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5553 | |
---|
| 5554 | # So? What about this header? |
---|
| 5555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5556 | yes:no: ) |
---|
| 5557 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5558 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5560 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5561 | ac_header_preproc=yes |
---|
| 5562 | ;; |
---|
| 5563 | no:yes:* ) |
---|
| 5564 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5565 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5566 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5567 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5568 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5569 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5570 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5571 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5574 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5575 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5576 | ( |
---|
| 5577 | cat <<\_ASBOX |
---|
| 5578 | ## ------------------------------------------- ## |
---|
| 5579 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5580 | ## ------------------------------------------- ## |
---|
| 5581 | _ASBOX |
---|
| 5582 | ) | |
---|
| 5583 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5584 | ;; |
---|
| 5585 | esac |
---|
| 5586 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5588 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5590 | else |
---|
| 5591 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5592 | fi |
---|
| 5593 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5594 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5595 | |
---|
| 5596 | fi |
---|
| 5597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5598 | cat >>confdefs.h <<_ACEOF |
---|
| 5599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5600 | _ACEOF |
---|
| 5601 | |
---|
| 5602 | fi |
---|
| 5603 | |
---|
| 5604 | done |
---|
| 5605 | |
---|
| 5606 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 5607 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 5608 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 5609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5610 | else |
---|
| 5611 | if test "$cross_compiling" = yes; then |
---|
| 5612 | ac_cv_func_malloc_0_nonnull=no |
---|
| 5613 | else |
---|
| 5614 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5615 | /* confdefs.h. */ |
---|
| 5616 | _ACEOF |
---|
| 5617 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5618 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5619 | /* end confdefs.h. */ |
---|
| 5620 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 5621 | # include <stdlib.h> |
---|
| 5622 | #else |
---|
| 5623 | char *malloc (); |
---|
| 5624 | #endif |
---|
| 5625 | |
---|
| 5626 | int |
---|
| 5627 | main () |
---|
| 5628 | { |
---|
| 5629 | exit (malloc (0) ? 0 : 1); |
---|
| 5630 | ; |
---|
| 5631 | return 0; |
---|
| 5632 | } |
---|
| 5633 | _ACEOF |
---|
| 5634 | rm -f conftest$ac_exeext |
---|
| 5635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5636 | (eval $ac_link) 2>&5 |
---|
| 5637 | ac_status=$? |
---|
| 5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5641 | (eval $ac_try) 2>&5 |
---|
| 5642 | ac_status=$? |
---|
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5644 | (exit $ac_status); }; }; then |
---|
| 5645 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 5646 | else |
---|
| 5647 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5648 | echo "$as_me: failed program was:" >&5 |
---|
| 5649 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5650 | |
---|
| 5651 | ( exit $ac_status ) |
---|
| 5652 | ac_cv_func_malloc_0_nonnull=no |
---|
| 5653 | fi |
---|
| 5654 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5655 | fi |
---|
| 5656 | fi |
---|
| 5657 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 5658 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 5659 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 5660 | |
---|
| 5661 | cat >>confdefs.h <<\_ACEOF |
---|
| 5662 | #define HAVE_MALLOC 1 |
---|
| 5663 | _ACEOF |
---|
| 5664 | |
---|
| 5665 | else |
---|
| 5666 | cat >>confdefs.h <<\_ACEOF |
---|
| 5667 | #define HAVE_MALLOC 0 |
---|
| 5668 | _ACEOF |
---|
| 5669 | |
---|
| 5670 | case $LIBOBJS in |
---|
| 5671 | "malloc.$ac_objext" | \ |
---|
| 5672 | *" malloc.$ac_objext" | \ |
---|
| 5673 | "malloc.$ac_objext "* | \ |
---|
| 5674 | *" malloc.$ac_objext "* ) ;; |
---|
| 5675 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 5676 | esac |
---|
| 5677 | |
---|
| 5678 | |
---|
| 5679 | cat >>confdefs.h <<\_ACEOF |
---|
| 5680 | #define malloc rpl_malloc |
---|
| 5681 | _ACEOF |
---|
| 5682 | |
---|
| 5683 | fi |
---|
| 5684 | |
---|
| 5685 | |
---|
| 5686 | |
---|
| 5687 | |
---|
| 5688 | |
---|
| 5689 | for ac_func in bzero sqrt |
---|
| 5690 | do |
---|
| 5691 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 5692 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 5693 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 5694 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5696 | else |
---|
| 5697 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5698 | /* confdefs.h. */ |
---|
| 5699 | _ACEOF |
---|
| 5700 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5701 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5702 | /* end confdefs.h. */ |
---|
| 5703 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 5704 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 5705 | #define $ac_func innocuous_$ac_func |
---|
| 5706 | |
---|
| 5707 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 5708 | which can conflict with char $ac_func (); below. |
---|
| 5709 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 5710 | <limits.h> exists even on freestanding compilers. */ |
---|
| 5711 | |
---|
| 5712 | #ifdef __STDC__ |
---|
| 5713 | # include <limits.h> |
---|
| 5714 | #else |
---|
| 5715 | # include <assert.h> |
---|
| 5716 | #endif |
---|
| 5717 | |
---|
| 5718 | #undef $ac_func |
---|
| 5719 | |
---|
| 5720 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5721 | #ifdef __cplusplus |
---|
| 5722 | extern "C" |
---|
| 5723 | { |
---|
| 5724 | #endif |
---|
| 5725 | /* We use char because int might match the return type of a gcc2 |
---|
| 5726 | builtin and then its argument prototype would still apply. */ |
---|
| 5727 | char $ac_func (); |
---|
| 5728 | /* The GNU C library defines this for functions which it implements |
---|
| 5729 | to always fail with ENOSYS. Some functions are actually named |
---|
| 5730 | something starting with __ and the normal name is an alias. */ |
---|
| 5731 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 5732 | choke me |
---|
| 5733 | #else |
---|
| 5734 | char (*f) () = $ac_func; |
---|
| 5735 | #endif |
---|
| 5736 | #ifdef __cplusplus |
---|
| 5737 | } |
---|
| 5738 | #endif |
---|
| 5739 | |
---|
| 5740 | int |
---|
| 5741 | main () |
---|
| 5742 | { |
---|
| 5743 | return f != $ac_func; |
---|
| 5744 | ; |
---|
| 5745 | return 0; |
---|
| 5746 | } |
---|
| 5747 | _ACEOF |
---|
| 5748 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5750 | (eval $ac_link) 2>conftest.er1 |
---|
| 5751 | ac_status=$? |
---|
| 5752 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5753 | rm -f conftest.er1 |
---|
| 5754 | cat conftest.err >&5 |
---|
| 5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5756 | (exit $ac_status); } && |
---|
| 5757 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5758 | || test ! -s conftest.err' |
---|
| 5759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5760 | (eval $ac_try) 2>&5 |
---|
| 5761 | ac_status=$? |
---|
| 5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5763 | (exit $ac_status); }; } && |
---|
| 5764 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5766 | (eval $ac_try) 2>&5 |
---|
| 5767 | ac_status=$? |
---|
| 5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5769 | (exit $ac_status); }; }; then |
---|
| 5770 | eval "$as_ac_var=yes" |
---|
| 5771 | else |
---|
| 5772 | echo "$as_me: failed program was:" >&5 |
---|
| 5773 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5774 | |
---|
| 5775 | eval "$as_ac_var=no" |
---|
| 5776 | fi |
---|
| 5777 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5778 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5779 | fi |
---|
| 5780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 5781 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 5782 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 5783 | cat >>confdefs.h <<_ACEOF |
---|
| 5784 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 5785 | _ACEOF |
---|
| 5786 | |
---|
| 5787 | fi |
---|
| 5788 | done |
---|
| 5789 | |
---|
| 5790 | |
---|
| 5791 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile guicc/Makefile src/Makefile" |
---|
| 5792 | |
---|
| 5793 | cat >confcache <<\_ACEOF |
---|
| 5794 | # This file is a shell script that caches the results of configure |
---|
| 5795 | # tests run on this system so they can be shared between configure |
---|
| 5796 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 5797 | # It is not useful on other systems. If it contains results you don't |
---|
| 5798 | # want to keep, you may remove or edit it. |
---|
| 5799 | # |
---|
| 5800 | # config.status only pays attention to the cache file if you give it |
---|
| 5801 | # the --recheck option to rerun configure. |
---|
| 5802 | # |
---|
| 5803 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 5804 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 5805 | # following values. |
---|
| 5806 | |
---|
| 5807 | _ACEOF |
---|
| 5808 | |
---|
| 5809 | # The following way of writing the cache mishandles newlines in values, |
---|
| 5810 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 5811 | # So, don't put newlines in cache variables' values. |
---|
| 5812 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 5813 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 5814 | { |
---|
| 5815 | (set) 2>&1 | |
---|
| 5816 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 5817 | *ac_space=\ *) |
---|
| 5818 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 5819 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 5820 | sed -n \ |
---|
| 5821 | "s/'/'\\\\''/g; |
---|
| 5822 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 5823 | ;; |
---|
| 5824 | *) |
---|
| 5825 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 5826 | sed -n \ |
---|
| 5827 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 5828 | ;; |
---|
| 5829 | esac; |
---|
| 5830 | } | |
---|
| 5831 | sed ' |
---|
| 5832 | t clear |
---|
| 5833 | : clear |
---|
| 5834 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 5835 | t end |
---|
| 5836 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 5837 | : end' >>confcache |
---|
| 5838 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 5839 | if test -w $cache_file; then |
---|
| 5840 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 5841 | cat confcache >$cache_file |
---|
| 5842 | else |
---|
| 5843 | echo "not updating unwritable cache $cache_file" |
---|
| 5844 | fi |
---|
| 5845 | fi |
---|
| 5846 | rm -f confcache |
---|
| 5847 | |
---|
| 5848 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 5849 | # Let make expand exec_prefix. |
---|
| 5850 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 5851 | |
---|
| 5852 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 5853 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 5854 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 5855 | # (actually we leave an empty line to preserve line numbers). |
---|
| 5856 | if test "x$srcdir" = x.; then |
---|
| 5857 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 5858 | s/:*\$(srcdir):*/:/; |
---|
| 5859 | s/:*\${srcdir}:*/:/; |
---|
| 5860 | s/:*@srcdir@:*/:/; |
---|
| 5861 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 5862 | s/:*$//; |
---|
| 5863 | s/^[^=]*=[ ]*$//; |
---|
| 5864 | }' |
---|
| 5865 | fi |
---|
| 5866 | |
---|
| 5867 | DEFS=-DHAVE_CONFIG_H |
---|
| 5868 | |
---|
| 5869 | ac_libobjs= |
---|
| 5870 | ac_ltlibobjs= |
---|
| 5871 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 5872 | # 1. Remove the extension, and $U if already installed. |
---|
| 5873 | ac_i=`echo "$ac_i" | |
---|
| 5874 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 5875 | # 2. Add them. |
---|
| 5876 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 5877 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 5878 | done |
---|
| 5879 | LIBOBJS=$ac_libobjs |
---|
| 5880 | |
---|
| 5881 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 5882 | |
---|
| 5883 | |
---|
| 5884 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 5885 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 5886 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 5887 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 5888 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 5889 | { (exit 1); exit 1; }; } |
---|
| 5890 | fi |
---|
| 5891 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 5892 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 5893 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 5894 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 5895 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 5896 | { (exit 1); exit 1; }; } |
---|
| 5897 | fi |
---|
| 5898 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 5899 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 5900 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 5901 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 5902 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 5903 | { (exit 1); exit 1; }; } |
---|
| 5904 | fi |
---|
| 5905 | |
---|
| 5906 | : ${CONFIG_STATUS=./config.status} |
---|
| 5907 | ac_clean_files_save=$ac_clean_files |
---|
| 5908 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 5909 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 5910 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 5911 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 5912 | #! $SHELL |
---|
| 5913 | # Generated by $as_me. |
---|
| 5914 | # Run this file to recreate the current configuration. |
---|
| 5915 | # Compiler output produced by configure, useful for debugging |
---|
| 5916 | # configure, is in config.log if it exists. |
---|
| 5917 | |
---|
| 5918 | debug=false |
---|
| 5919 | ac_cs_recheck=false |
---|
| 5920 | ac_cs_silent=false |
---|
| 5921 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 5922 | _ACEOF |
---|
| 5923 | |
---|
| 5924 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5925 | ## --------------------- ## |
---|
| 5926 | ## M4sh Initialization. ## |
---|
| 5927 | ## --------------------- ## |
---|
| 5928 | |
---|
| 5929 | # Be Bourne compatible |
---|
| 5930 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 5931 | emulate sh |
---|
| 5932 | NULLCMD=: |
---|
| 5933 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 5934 | # is contrary to our usage. Disable this feature. |
---|
| 5935 | alias -g '${1+"$@"}'='"$@"' |
---|
| 5936 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 5937 | set -o posix |
---|
| 5938 | fi |
---|
| 5939 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 5940 | |
---|
| 5941 | # Support unset when possible. |
---|
| 5942 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 5943 | as_unset=unset |
---|
| 5944 | else |
---|
| 5945 | as_unset=false |
---|
| 5946 | fi |
---|
| 5947 | |
---|
| 5948 | |
---|
| 5949 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 5950 | $as_unset ENV MAIL MAILPATH |
---|
| 5951 | PS1='$ ' |
---|
| 5952 | PS2='> ' |
---|
| 5953 | PS4='+ ' |
---|
| 5954 | |
---|
| 5955 | # NLS nuisances. |
---|
| 5956 | for as_var in \ |
---|
| 5957 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 5958 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 5959 | LC_TELEPHONE LC_TIME |
---|
| 5960 | do |
---|
| 5961 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 5962 | eval $as_var=C; export $as_var |
---|
| 5963 | else |
---|
| 5964 | $as_unset $as_var |
---|
| 5965 | fi |
---|
| 5966 | done |
---|
| 5967 | |
---|
| 5968 | # Required to use basename. |
---|
| 5969 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 5970 | as_expr=expr |
---|
| 5971 | else |
---|
| 5972 | as_expr=false |
---|
| 5973 | fi |
---|
| 5974 | |
---|
| 5975 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 5976 | as_basename=basename |
---|
| 5977 | else |
---|
| 5978 | as_basename=false |
---|
| 5979 | fi |
---|
| 5980 | |
---|
| 5981 | |
---|
| 5982 | # Name of the executable. |
---|
| 5983 | as_me=`$as_basename "$0" || |
---|
| 5984 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5985 | X"$0" : 'X\(//\)$' \| \ |
---|
| 5986 | X"$0" : 'X\(/\)$' \| \ |
---|
| 5987 | . : '\(.\)' 2>/dev/null || |
---|
| 5988 | echo X/"$0" | |
---|
| 5989 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 5990 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 5991 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 5992 | s/.*/./; q'` |
---|
| 5993 | |
---|
| 5994 | |
---|
| 5995 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 5996 | # Avoid depending upon Character Ranges. |
---|
| 5997 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 5998 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 5999 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6000 | as_cr_digits='0123456789' |
---|
| 6001 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6002 | |
---|
| 6003 | # The user is always right. |
---|
| 6004 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6005 | echo "#! /bin/sh" >conf$$.sh |
---|
| 6006 | echo "exit 0" >>conf$$.sh |
---|
| 6007 | chmod +x conf$$.sh |
---|
| 6008 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 6009 | PATH_SEPARATOR=';' |
---|
| 6010 | else |
---|
| 6011 | PATH_SEPARATOR=: |
---|
| 6012 | fi |
---|
| 6013 | rm -f conf$$.sh |
---|
| 6014 | fi |
---|
| 6015 | |
---|
| 6016 | |
---|
| 6017 | as_lineno_1=$LINENO |
---|
| 6018 | as_lineno_2=$LINENO |
---|
| 6019 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6020 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6021 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 6022 | # Find who we are. Look in the path if we contain no path at all |
---|
| 6023 | # relative or not. |
---|
| 6024 | case $0 in |
---|
| 6025 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6026 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6027 | for as_dir in $PATH |
---|
| 6028 | do |
---|
| 6029 | IFS=$as_save_IFS |
---|
| 6030 | test -z "$as_dir" && as_dir=. |
---|
| 6031 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6032 | done |
---|
| 6033 | |
---|
| 6034 | ;; |
---|
| 6035 | esac |
---|
| 6036 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6037 | # in which case we are not to be found in the path. |
---|
| 6038 | if test "x$as_myself" = x; then |
---|
| 6039 | as_myself=$0 |
---|
| 6040 | fi |
---|
| 6041 | if test ! -f "$as_myself"; then |
---|
| 6042 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 6043 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 6044 | { (exit 1); exit 1; }; } |
---|
| 6045 | fi |
---|
| 6046 | case $CONFIG_SHELL in |
---|
| 6047 | '') |
---|
| 6048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6049 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 6050 | do |
---|
| 6051 | IFS=$as_save_IFS |
---|
| 6052 | test -z "$as_dir" && as_dir=. |
---|
| 6053 | for as_base in sh bash ksh sh5; do |
---|
| 6054 | case $as_dir in |
---|
| 6055 | /*) |
---|
| 6056 | if ("$as_dir/$as_base" -c ' |
---|
| 6057 | as_lineno_1=$LINENO |
---|
| 6058 | as_lineno_2=$LINENO |
---|
| 6059 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6060 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6061 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 6062 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 6063 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 6064 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 6065 | export CONFIG_SHELL |
---|
| 6066 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 6067 | fi;; |
---|
| 6068 | esac |
---|
| 6069 | done |
---|
| 6070 | done |
---|
| 6071 | ;; |
---|
| 6072 | esac |
---|
| 6073 | |
---|
| 6074 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6075 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 6076 | # line-number line before each line; the second 'sed' does the real |
---|
| 6077 | # work. The second script uses 'N' to pair each line-number line |
---|
| 6078 | # with the numbered line, and appends trailing '-' during |
---|
| 6079 | # substitution so that $LINENO is not a special case at line end. |
---|
| 6080 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 6081 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 6082 | sed '=' <$as_myself | |
---|
| 6083 | sed ' |
---|
| 6084 | N |
---|
| 6085 | s,$,-, |
---|
| 6086 | : loop |
---|
| 6087 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 6088 | t loop |
---|
| 6089 | s,-$,, |
---|
| 6090 | s,^['$as_cr_digits']*\n,, |
---|
| 6091 | ' >$as_me.lineno && |
---|
| 6092 | chmod +x $as_me.lineno || |
---|
| 6093 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 6094 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 6095 | { (exit 1); exit 1; }; } |
---|
| 6096 | |
---|
| 6097 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6098 | # (the dirname of $[0] is not the place where we might find the |
---|
| 6099 | # original and so on. Autoconf is especially sensible to this). |
---|
| 6100 | . ./$as_me.lineno |
---|
| 6101 | # Exit status is that of the last command. |
---|
| 6102 | exit |
---|
| 6103 | } |
---|
| 6104 | |
---|
| 6105 | |
---|
| 6106 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 6107 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 6108 | ' ECHO_T=' ' ;; |
---|
| 6109 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 6110 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 6111 | esac |
---|
| 6112 | |
---|
| 6113 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6114 | as_expr=expr |
---|
| 6115 | else |
---|
| 6116 | as_expr=false |
---|
| 6117 | fi |
---|
| 6118 | |
---|
| 6119 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6120 | echo >conf$$.file |
---|
| 6121 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6122 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 6123 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 6124 | if test -f conf$$.exe; then |
---|
| 6125 | # Don't use ln at all; we don't have any links |
---|
| 6126 | as_ln_s='cp -p' |
---|
| 6127 | else |
---|
| 6128 | as_ln_s='ln -s' |
---|
| 6129 | fi |
---|
| 6130 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6131 | as_ln_s=ln |
---|
| 6132 | else |
---|
| 6133 | as_ln_s='cp -p' |
---|
| 6134 | fi |
---|
| 6135 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6136 | |
---|
| 6137 | if mkdir -p . 2>/dev/null; then |
---|
| 6138 | as_mkdir_p=: |
---|
| 6139 | else |
---|
| 6140 | test -d ./-p && rmdir ./-p |
---|
| 6141 | as_mkdir_p=false |
---|
| 6142 | fi |
---|
| 6143 | |
---|
| 6144 | as_executable_p="test -f" |
---|
| 6145 | |
---|
| 6146 | # Sed expression to map a string onto a valid CPP name. |
---|
| 6147 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6148 | |
---|
| 6149 | # Sed expression to map a string onto a valid variable name. |
---|
| 6150 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6151 | |
---|
| 6152 | |
---|
| 6153 | # IFS |
---|
| 6154 | # We need space, tab and new line, in precisely that order. |
---|
| 6155 | as_nl=' |
---|
| 6156 | ' |
---|
| 6157 | IFS=" $as_nl" |
---|
| 6158 | |
---|
| 6159 | # CDPATH. |
---|
| 6160 | $as_unset CDPATH |
---|
| 6161 | |
---|
| 6162 | exec 6>&1 |
---|
| 6163 | |
---|
| 6164 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 6165 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6166 | # values after options handling. Logging --version etc. is OK. |
---|
| 6167 | exec 5>>config.log |
---|
| 6168 | { |
---|
| 6169 | echo |
---|
| 6170 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6171 | ## Running $as_me. ## |
---|
| 6172 | _ASBOX |
---|
| 6173 | } >&5 |
---|
| 6174 | cat >&5 <<_CSEOF |
---|
| 6175 | |
---|
| 6176 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 6177 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 6178 | |
---|
| 6179 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6180 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6181 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6182 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6183 | $ $0 $@ |
---|
| 6184 | |
---|
| 6185 | _CSEOF |
---|
| 6186 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 6187 | echo >&5 |
---|
| 6188 | _ACEOF |
---|
| 6189 | |
---|
| 6190 | # Files that config.status was made for. |
---|
| 6191 | if test -n "$ac_config_files"; then |
---|
| 6192 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 6193 | fi |
---|
| 6194 | |
---|
| 6195 | if test -n "$ac_config_headers"; then |
---|
| 6196 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 6197 | fi |
---|
| 6198 | |
---|
| 6199 | if test -n "$ac_config_links"; then |
---|
| 6200 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 6201 | fi |
---|
| 6202 | |
---|
| 6203 | if test -n "$ac_config_commands"; then |
---|
| 6204 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 6205 | fi |
---|
| 6206 | |
---|
| 6207 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6208 | |
---|
| 6209 | ac_cs_usage="\ |
---|
| 6210 | \`$as_me' instantiates files from templates according to the |
---|
| 6211 | current configuration. |
---|
| 6212 | |
---|
| 6213 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 6214 | |
---|
| 6215 | -h, --help print this help, then exit |
---|
| 6216 | -V, --version print version number, then exit |
---|
| 6217 | -q, --quiet do not print progress messages |
---|
| 6218 | -d, --debug don't remove temporary files |
---|
| 6219 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6220 | --file=FILE[:TEMPLATE] |
---|
| 6221 | instantiate the configuration file FILE |
---|
| 6222 | --header=FILE[:TEMPLATE] |
---|
| 6223 | instantiate the configuration header FILE |
---|
| 6224 | |
---|
| 6225 | Configuration files: |
---|
| 6226 | $config_files |
---|
| 6227 | |
---|
| 6228 | Configuration headers: |
---|
| 6229 | $config_headers |
---|
| 6230 | |
---|
| 6231 | Configuration commands: |
---|
| 6232 | $config_commands |
---|
| 6233 | |
---|
| 6234 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 6235 | _ACEOF |
---|
| 6236 | |
---|
| 6237 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6238 | ac_cs_version="\\ |
---|
| 6239 | orxonox config.status 0.1-pre-alpha |
---|
| 6240 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 6241 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 6242 | |
---|
| 6243 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 6244 | This config.status script is free software; the Free Software Foundation |
---|
| 6245 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6246 | srcdir=$srcdir |
---|
| 6247 | INSTALL="$INSTALL" |
---|
| 6248 | _ACEOF |
---|
| 6249 | |
---|
| 6250 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6251 | # If no file are specified by the user, then we need to provide default |
---|
| 6252 | # value. By we need to know if files were specified by the user. |
---|
| 6253 | ac_need_defaults=: |
---|
| 6254 | while test $# != 0 |
---|
| 6255 | do |
---|
| 6256 | case $1 in |
---|
| 6257 | --*=*) |
---|
| 6258 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 6259 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 6260 | ac_shift=: |
---|
| 6261 | ;; |
---|
| 6262 | -*) |
---|
| 6263 | ac_option=$1 |
---|
| 6264 | ac_optarg=$2 |
---|
| 6265 | ac_shift=shift |
---|
| 6266 | ;; |
---|
| 6267 | *) # This is not an option, so the user has probably given explicit |
---|
| 6268 | # arguments. |
---|
| 6269 | ac_option=$1 |
---|
| 6270 | ac_need_defaults=false;; |
---|
| 6271 | esac |
---|
| 6272 | |
---|
| 6273 | case $ac_option in |
---|
| 6274 | # Handling of the options. |
---|
| 6275 | _ACEOF |
---|
| 6276 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6277 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6278 | ac_cs_recheck=: ;; |
---|
| 6279 | --version | --vers* | -V ) |
---|
| 6280 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 6281 | --he | --h) |
---|
| 6282 | # Conflict between --help and --header |
---|
| 6283 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 6284 | Try \`$0 --help' for more information." >&5 |
---|
| 6285 | echo "$as_me: error: ambiguous option: $1 |
---|
| 6286 | Try \`$0 --help' for more information." >&2;} |
---|
| 6287 | { (exit 1); exit 1; }; };; |
---|
| 6288 | --help | --hel | -h ) |
---|
| 6289 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 6290 | --debug | --d* | -d ) |
---|
| 6291 | debug=: ;; |
---|
| 6292 | --file | --fil | --fi | --f ) |
---|
| 6293 | $ac_shift |
---|
| 6294 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 6295 | ac_need_defaults=false;; |
---|
| 6296 | --header | --heade | --head | --hea ) |
---|
| 6297 | $ac_shift |
---|
| 6298 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 6299 | ac_need_defaults=false;; |
---|
| 6300 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6301 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6302 | ac_cs_silent=: ;; |
---|
| 6303 | |
---|
| 6304 | # This is an error. |
---|
| 6305 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 6306 | Try \`$0 --help' for more information." >&5 |
---|
| 6307 | echo "$as_me: error: unrecognized option: $1 |
---|
| 6308 | Try \`$0 --help' for more information." >&2;} |
---|
| 6309 | { (exit 1); exit 1; }; } ;; |
---|
| 6310 | |
---|
| 6311 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 6312 | |
---|
| 6313 | esac |
---|
| 6314 | shift |
---|
| 6315 | done |
---|
| 6316 | |
---|
| 6317 | ac_configure_extra_args= |
---|
| 6318 | |
---|
| 6319 | if $ac_cs_silent; then |
---|
| 6320 | exec 6>/dev/null |
---|
| 6321 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6322 | fi |
---|
| 6323 | |
---|
| 6324 | _ACEOF |
---|
| 6325 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6326 | if \$ac_cs_recheck; then |
---|
| 6327 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 6328 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6329 | fi |
---|
| 6330 | |
---|
| 6331 | _ACEOF |
---|
| 6332 | |
---|
| 6333 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6334 | # |
---|
| 6335 | # INIT-COMMANDS section. |
---|
| 6336 | # |
---|
| 6337 | |
---|
| 6338 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 6339 | |
---|
| 6340 | _ACEOF |
---|
| 6341 | |
---|
| 6342 | |
---|
| 6343 | |
---|
| 6344 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6345 | for ac_config_target in $ac_config_targets |
---|
| 6346 | do |
---|
| 6347 | case "$ac_config_target" in |
---|
| 6348 | # Handling of arguments. |
---|
| 6349 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 6350 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
| 6351 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
| 6352 | "guicc/Makefile" ) CONFIG_FILES="$CONFIG_FILES guicc/Makefile" ;; |
---|
| 6353 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
| 6354 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 6355 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 6356 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6357 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6358 | { (exit 1); exit 1; }; };; |
---|
| 6359 | esac |
---|
| 6360 | done |
---|
| 6361 | |
---|
| 6362 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6363 | # then the envvar interface is used. Set only those that are not. |
---|
| 6364 | # We use the long form for the default assignment because of an extremely |
---|
| 6365 | # bizarre bug on SunOS 4.1.3. |
---|
| 6366 | if $ac_need_defaults; then |
---|
| 6367 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6368 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 6369 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 6370 | fi |
---|
| 6371 | |
---|
| 6372 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6373 | # simply because there is no reason to put it here, and in addition, |
---|
| 6374 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6375 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 6376 | $debug || |
---|
| 6377 | { |
---|
| 6378 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 6379 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6380 | } |
---|
| 6381 | |
---|
| 6382 | # Create a (secure) tmp directory for tmp files. |
---|
| 6383 | |
---|
| 6384 | { |
---|
| 6385 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 6386 | test -n "$tmp" && test -d "$tmp" |
---|
| 6387 | } || |
---|
| 6388 | { |
---|
| 6389 | tmp=./confstat$$-$RANDOM |
---|
| 6390 | (umask 077 && mkdir $tmp) |
---|
| 6391 | } || |
---|
| 6392 | { |
---|
| 6393 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6394 | { (exit 1); exit 1; } |
---|
| 6395 | } |
---|
| 6396 | |
---|
| 6397 | _ACEOF |
---|
| 6398 | |
---|
| 6399 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6400 | |
---|
| 6401 | # |
---|
| 6402 | # CONFIG_FILES section. |
---|
| 6403 | # |
---|
| 6404 | |
---|
| 6405 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6406 | # This happens for instance when ./config.status config.h |
---|
| 6407 | if test -n "\$CONFIG_FILES"; then |
---|
| 6408 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 6409 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 6410 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 6411 | s,@SHELL@,$SHELL,;t t |
---|
| 6412 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 6413 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 6414 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 6415 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 6416 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 6417 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 6418 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 6419 | s,@prefix@,$prefix,;t t |
---|
| 6420 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 6421 | s,@bindir@,$bindir,;t t |
---|
| 6422 | s,@sbindir@,$sbindir,;t t |
---|
| 6423 | s,@libexecdir@,$libexecdir,;t t |
---|
| 6424 | s,@datadir@,$datadir,;t t |
---|
| 6425 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 6426 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 6427 | s,@localstatedir@,$localstatedir,;t t |
---|
| 6428 | s,@libdir@,$libdir,;t t |
---|
| 6429 | s,@includedir@,$includedir,;t t |
---|
| 6430 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 6431 | s,@infodir@,$infodir,;t t |
---|
| 6432 | s,@mandir@,$mandir,;t t |
---|
| 6433 | s,@build_alias@,$build_alias,;t t |
---|
| 6434 | s,@host_alias@,$host_alias,;t t |
---|
| 6435 | s,@target_alias@,$target_alias,;t t |
---|
| 6436 | s,@DEFS@,$DEFS,;t t |
---|
| 6437 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 6438 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 6439 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 6440 | s,@LIBS@,$LIBS,;t t |
---|
| 6441 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 6442 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 6443 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 6444 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 6445 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 6446 | s,@VERSION@,$VERSION,;t t |
---|
| 6447 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 6448 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 6449 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 6450 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 6451 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 6452 | s,@AMTAR@,$AMTAR,;t t |
---|
| 6453 | s,@install_sh@,$install_sh,;t t |
---|
| 6454 | s,@STRIP@,$STRIP,;t t |
---|
| 6455 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 6456 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
| 6457 | s,@AWK@,$AWK,;t t |
---|
| 6458 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 6459 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
[2015] | 6460 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[1977] | 6461 | s,@CXX@,$CXX,;t t |
---|
| 6462 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 6463 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 6464 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 6465 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 6466 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 6467 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 6468 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 6469 | s,@am__include@,$am__include,;t t |
---|
| 6470 | s,@am__quote@,$am__quote,;t t |
---|
| 6471 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 6472 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 6473 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 6474 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 6475 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 6476 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 6477 | s,@CC@,$CC,;t t |
---|
| 6478 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 6479 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 6480 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 6481 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 6482 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 6483 | s,@CPP@,$CPP,;t t |
---|
| 6484 | s,@EGREP@,$EGREP,;t t |
---|
| 6485 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 6486 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 6487 | CEOF |
---|
| 6488 | |
---|
| 6489 | _ACEOF |
---|
| 6490 | |
---|
| 6491 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6492 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 6493 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 6494 | ac_max_sed_lines=48 |
---|
| 6495 | ac_sed_frag=1 # Number of current file. |
---|
| 6496 | ac_beg=1 # First line for current file. |
---|
| 6497 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 6498 | ac_more_lines=: |
---|
| 6499 | ac_sed_cmds= |
---|
| 6500 | while $ac_more_lines; do |
---|
| 6501 | if test $ac_beg -gt 1; then |
---|
| 6502 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6503 | else |
---|
| 6504 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6505 | fi |
---|
| 6506 | if test ! -s $tmp/subs.frag; then |
---|
| 6507 | ac_more_lines=false |
---|
| 6508 | else |
---|
| 6509 | # The purpose of the label and of the branching condition is to |
---|
| 6510 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 6511 | # is no need to browse any of the substitutions). |
---|
| 6512 | # These are the two extra sed commands mentioned above. |
---|
| 6513 | (echo ':t |
---|
| 6514 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 6515 | if test -z "$ac_sed_cmds"; then |
---|
| 6516 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 6517 | else |
---|
| 6518 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 6519 | fi |
---|
| 6520 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 6521 | ac_beg=$ac_end |
---|
| 6522 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 6523 | fi |
---|
| 6524 | done |
---|
| 6525 | if test -z "$ac_sed_cmds"; then |
---|
| 6526 | ac_sed_cmds=cat |
---|
| 6527 | fi |
---|
| 6528 | fi # test -n "$CONFIG_FILES" |
---|
| 6529 | |
---|
| 6530 | _ACEOF |
---|
| 6531 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6532 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 6533 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 6534 | case $ac_file in |
---|
| 6535 | - | *:- | *:-:* ) # input from stdin |
---|
| 6536 | cat >$tmp/stdin |
---|
| 6537 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6538 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6539 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6540 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6541 | * ) ac_file_in=$ac_file.in ;; |
---|
| 6542 | esac |
---|
| 6543 | |
---|
| 6544 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 6545 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 6546 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6547 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6548 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6549 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 6550 | . : '\(.\)' 2>/dev/null || |
---|
| 6551 | echo X"$ac_file" | |
---|
| 6552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6553 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6554 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6555 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6556 | s/.*/./; q'` |
---|
| 6557 | { if $as_mkdir_p; then |
---|
| 6558 | mkdir -p "$ac_dir" |
---|
| 6559 | else |
---|
| 6560 | as_dir="$ac_dir" |
---|
| 6561 | as_dirs= |
---|
| 6562 | while test ! -d "$as_dir"; do |
---|
| 6563 | as_dirs="$as_dir $as_dirs" |
---|
| 6564 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6565 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6566 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6567 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6568 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 6569 | . : '\(.\)' 2>/dev/null || |
---|
| 6570 | echo X"$as_dir" | |
---|
| 6571 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6572 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6573 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6574 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6575 | s/.*/./; q'` |
---|
| 6576 | done |
---|
| 6577 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 6578 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 6579 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 6580 | { (exit 1); exit 1; }; }; } |
---|
| 6581 | |
---|
| 6582 | ac_builddir=. |
---|
| 6583 | |
---|
| 6584 | if test "$ac_dir" != .; then |
---|
| 6585 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 6586 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 6587 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 6588 | else |
---|
| 6589 | ac_dir_suffix= ac_top_builddir= |
---|
| 6590 | fi |
---|
| 6591 | |
---|
| 6592 | case $srcdir in |
---|
| 6593 | .) # No --srcdir option. We are building in place. |
---|
| 6594 | ac_srcdir=. |
---|
| 6595 | if test -z "$ac_top_builddir"; then |
---|
| 6596 | ac_top_srcdir=. |
---|
| 6597 | else |
---|
| 6598 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 6599 | fi ;; |
---|
| 6600 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 6601 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6602 | ac_top_srcdir=$srcdir ;; |
---|
| 6603 | *) # Relative path. |
---|
| 6604 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 6605 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 6606 | esac |
---|
| 6607 | |
---|
| 6608 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 6609 | # the directories may not exist. |
---|
| 6610 | case `pwd` in |
---|
| 6611 | .) ac_abs_builddir="$ac_dir";; |
---|
| 6612 | *) |
---|
| 6613 | case "$ac_dir" in |
---|
| 6614 | .) ac_abs_builddir=`pwd`;; |
---|
| 6615 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 6616 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 6617 | esac;; |
---|
| 6618 | esac |
---|
| 6619 | case $ac_abs_builddir in |
---|
| 6620 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 6621 | *) |
---|
| 6622 | case ${ac_top_builddir}. in |
---|
| 6623 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 6624 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 6625 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 6626 | esac;; |
---|
| 6627 | esac |
---|
| 6628 | case $ac_abs_builddir in |
---|
| 6629 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 6630 | *) |
---|
| 6631 | case $ac_srcdir in |
---|
| 6632 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 6633 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 6634 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 6635 | esac;; |
---|
| 6636 | esac |
---|
| 6637 | case $ac_abs_builddir in |
---|
| 6638 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 6639 | *) |
---|
| 6640 | case $ac_top_srcdir in |
---|
| 6641 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 6642 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 6643 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 6644 | esac;; |
---|
| 6645 | esac |
---|
| 6646 | |
---|
| 6647 | |
---|
| 6648 | case $INSTALL in |
---|
| 6649 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 6650 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 6651 | esac |
---|
| 6652 | |
---|
| 6653 | if test x"$ac_file" != x-; then |
---|
| 6654 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6655 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6656 | rm -f "$ac_file" |
---|
| 6657 | fi |
---|
| 6658 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6659 | # use $as_me), people would be surprised to read: |
---|
| 6660 | # /* config.h. Generated by config.status. */ |
---|
| 6661 | if test x"$ac_file" = x-; then |
---|
| 6662 | configure_input= |
---|
| 6663 | else |
---|
| 6664 | configure_input="$ac_file. " |
---|
| 6665 | fi |
---|
| 6666 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 6667 | sed 's,.*/,,'` by configure." |
---|
| 6668 | |
---|
| 6669 | # First look for the input files in the build tree, otherwise in the |
---|
| 6670 | # src tree. |
---|
| 6671 | ac_file_inputs=`IFS=: |
---|
| 6672 | for f in $ac_file_in; do |
---|
| 6673 | case $f in |
---|
| 6674 | -) echo $tmp/stdin ;; |
---|
| 6675 | [\\/$]*) |
---|
| 6676 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 6677 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6678 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6679 | { (exit 1); exit 1; }; } |
---|
| 6680 | echo "$f";; |
---|
| 6681 | *) # Relative |
---|
| 6682 | if test -f "$f"; then |
---|
| 6683 | # Build tree |
---|
| 6684 | echo "$f" |
---|
| 6685 | elif test -f "$srcdir/$f"; then |
---|
| 6686 | # Source tree |
---|
| 6687 | echo "$srcdir/$f" |
---|
| 6688 | else |
---|
| 6689 | # /dev/null tree |
---|
| 6690 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6691 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6692 | { (exit 1); exit 1; }; } |
---|
| 6693 | fi;; |
---|
| 6694 | esac |
---|
| 6695 | done` || { (exit 1); exit 1; } |
---|
| 6696 | _ACEOF |
---|
| 6697 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6698 | sed "$ac_vpsub |
---|
| 6699 | $extrasub |
---|
| 6700 | _ACEOF |
---|
| 6701 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6702 | :t |
---|
| 6703 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6704 | s,@configure_input@,$configure_input,;t t |
---|
| 6705 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 6706 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 6707 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 6708 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 6709 | s,@builddir@,$ac_builddir,;t t |
---|
| 6710 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 6711 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 6712 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 6713 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 6714 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 6715 | rm -f $tmp/stdin |
---|
| 6716 | if test x"$ac_file" != x-; then |
---|
| 6717 | mv $tmp/out $ac_file |
---|
| 6718 | else |
---|
| 6719 | cat $tmp/out |
---|
| 6720 | rm -f $tmp/out |
---|
| 6721 | fi |
---|
| 6722 | |
---|
| 6723 | done |
---|
| 6724 | _ACEOF |
---|
| 6725 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6726 | |
---|
| 6727 | # |
---|
| 6728 | # CONFIG_HEADER section. |
---|
| 6729 | # |
---|
| 6730 | |
---|
| 6731 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 6732 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 6733 | # |
---|
| 6734 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 6735 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 6736 | ac_dB='[ ].*$,\1#\2' |
---|
| 6737 | ac_dC=' ' |
---|
| 6738 | ac_dD=',;t' |
---|
| 6739 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 6740 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 6741 | ac_uB='$,\1#\2define\3' |
---|
| 6742 | ac_uC=' ' |
---|
| 6743 | ac_uD=',;t' |
---|
| 6744 | |
---|
| 6745 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 6746 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 6747 | case $ac_file in |
---|
| 6748 | - | *:- | *:-:* ) # input from stdin |
---|
| 6749 | cat >$tmp/stdin |
---|
| 6750 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6751 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6752 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6753 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6754 | * ) ac_file_in=$ac_file.in ;; |
---|
| 6755 | esac |
---|
| 6756 | |
---|
| 6757 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6758 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6759 | |
---|
| 6760 | # First look for the input files in the build tree, otherwise in the |
---|
| 6761 | # src tree. |
---|
| 6762 | ac_file_inputs=`IFS=: |
---|
| 6763 | for f in $ac_file_in; do |
---|
| 6764 | case $f in |
---|
| 6765 | -) echo $tmp/stdin ;; |
---|
| 6766 | [\\/$]*) |
---|
| 6767 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 6768 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6769 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6770 | { (exit 1); exit 1; }; } |
---|
| 6771 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 6772 | echo "$f";; |
---|
| 6773 | *) # Relative |
---|
| 6774 | if test -f "$f"; then |
---|
| 6775 | # Build tree |
---|
| 6776 | echo "$f" |
---|
| 6777 | elif test -f "$srcdir/$f"; then |
---|
| 6778 | # Source tree |
---|
| 6779 | echo "$srcdir/$f" |
---|
| 6780 | else |
---|
| 6781 | # /dev/null tree |
---|
| 6782 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6783 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6784 | { (exit 1); exit 1; }; } |
---|
| 6785 | fi;; |
---|
| 6786 | esac |
---|
| 6787 | done` || { (exit 1); exit 1; } |
---|
| 6788 | # Remove the trailing spaces. |
---|
| 6789 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 6790 | |
---|
| 6791 | _ACEOF |
---|
| 6792 | |
---|
| 6793 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 6794 | # `conftest.undefs', that substitutes the proper values into |
---|
| 6795 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 6796 | # templates, and the second `#undef' templates. |
---|
| 6797 | # And first: Protect against being on the right side of a sed subst in |
---|
| 6798 | # config.status. Protect against being in an unquoted here document |
---|
| 6799 | # in config.status. |
---|
| 6800 | rm -f conftest.defines conftest.undefs |
---|
| 6801 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 6802 | # Putting comments in sed scripts is not portable. |
---|
| 6803 | # |
---|
| 6804 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 6805 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 6806 | # See the Autoconf documentation for `clear'. |
---|
| 6807 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 6808 | s/[\\&,]/\\&/g |
---|
| 6809 | s,[\\$`],\\&,g |
---|
| 6810 | t clear |
---|
| 6811 | : clear |
---|
| 6812 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 6813 | t end |
---|
| 6814 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 6815 | : end |
---|
| 6816 | _ACEOF |
---|
| 6817 | # If some macros were called several times there might be several times |
---|
| 6818 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 6819 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 6820 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 6821 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 6822 | rm -f confdef2sed.sed |
---|
| 6823 | |
---|
| 6824 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 6825 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 6826 | # on some systems where configure will not decide to define it. |
---|
| 6827 | cat >>conftest.undefs <<\_ACEOF |
---|
| 6828 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 6829 | _ACEOF |
---|
| 6830 | |
---|
| 6831 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 6832 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 6833 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 6834 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 6835 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 6836 | echo ' :' >>$CONFIG_STATUS |
---|
| 6837 | rm -f conftest.tail |
---|
| 6838 | while grep . conftest.defines >/dev/null |
---|
| 6839 | do |
---|
| 6840 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 6841 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 6842 | # Speed up: don't consider the non `#define' lines. |
---|
| 6843 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 6844 | # Work around the forget-to-reset-the-flag bug. |
---|
| 6845 | echo 't clr' >>$CONFIG_STATUS |
---|
| 6846 | echo ': clr' >>$CONFIG_STATUS |
---|
| 6847 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 6848 | echo 'CEOF |
---|
| 6849 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 6850 | rm -f $tmp/in |
---|
| 6851 | mv $tmp/out $tmp/in |
---|
| 6852 | ' >>$CONFIG_STATUS |
---|
| 6853 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 6854 | rm -f conftest.defines |
---|
| 6855 | mv conftest.tail conftest.defines |
---|
| 6856 | done |
---|
| 6857 | rm -f conftest.defines |
---|
| 6858 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 6859 | echo >>$CONFIG_STATUS |
---|
| 6860 | |
---|
| 6861 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 6862 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 6863 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 6864 | rm -f conftest.tail |
---|
| 6865 | while grep . conftest.undefs >/dev/null |
---|
| 6866 | do |
---|
| 6867 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 6868 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 6869 | # Speed up: don't consider the non `#undef' |
---|
| 6870 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 6871 | # Work around the forget-to-reset-the-flag bug. |
---|
| 6872 | echo 't clr' >>$CONFIG_STATUS |
---|
| 6873 | echo ': clr' >>$CONFIG_STATUS |
---|
| 6874 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 6875 | echo 'CEOF |
---|
| 6876 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 6877 | rm -f $tmp/in |
---|
| 6878 | mv $tmp/out $tmp/in |
---|
| 6879 | ' >>$CONFIG_STATUS |
---|
| 6880 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 6881 | rm -f conftest.undefs |
---|
| 6882 | mv conftest.tail conftest.undefs |
---|
| 6883 | done |
---|
| 6884 | rm -f conftest.undefs |
---|
| 6885 | |
---|
| 6886 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6887 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6888 | # use $as_me), people would be surprised to read: |
---|
| 6889 | # /* config.h. Generated by config.status. */ |
---|
| 6890 | if test x"$ac_file" = x-; then |
---|
| 6891 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 6892 | else |
---|
| 6893 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 6894 | fi |
---|
| 6895 | cat $tmp/in >>$tmp/config.h |
---|
| 6896 | rm -f $tmp/in |
---|
| 6897 | if test x"$ac_file" != x-; then |
---|
| 6898 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 6899 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 6900 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 6901 | else |
---|
| 6902 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 6903 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6904 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6905 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6906 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 6907 | . : '\(.\)' 2>/dev/null || |
---|
| 6908 | echo X"$ac_file" | |
---|
| 6909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6910 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6911 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6912 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6913 | s/.*/./; q'` |
---|
| 6914 | { if $as_mkdir_p; then |
---|
| 6915 | mkdir -p "$ac_dir" |
---|
| 6916 | else |
---|
| 6917 | as_dir="$ac_dir" |
---|
| 6918 | as_dirs= |
---|
| 6919 | while test ! -d "$as_dir"; do |
---|
| 6920 | as_dirs="$as_dir $as_dirs" |
---|
| 6921 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6922 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6923 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6924 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6925 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 6926 | . : '\(.\)' 2>/dev/null || |
---|
| 6927 | echo X"$as_dir" | |
---|
| 6928 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6929 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6930 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6931 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6932 | s/.*/./; q'` |
---|
| 6933 | done |
---|
| 6934 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 6935 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 6936 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 6937 | { (exit 1); exit 1; }; }; } |
---|
| 6938 | |
---|
| 6939 | rm -f $ac_file |
---|
| 6940 | mv $tmp/config.h $ac_file |
---|
| 6941 | fi |
---|
| 6942 | else |
---|
| 6943 | cat $tmp/config.h |
---|
| 6944 | rm -f $tmp/config.h |
---|
| 6945 | fi |
---|
| 6946 | # Compute $ac_file's index in $config_headers. |
---|
| 6947 | _am_stamp_count=1 |
---|
| 6948 | for _am_header in $config_headers :; do |
---|
| 6949 | case $_am_header in |
---|
| 6950 | $ac_file | $ac_file:* ) |
---|
| 6951 | break ;; |
---|
| 6952 | * ) |
---|
| 6953 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 6954 | esac |
---|
| 6955 | done |
---|
| 6956 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 6957 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6958 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 6959 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 6960 | X$ac_file : 'X\(/\)' \| \ |
---|
| 6961 | . : '\(.\)' 2>/dev/null || |
---|
| 6962 | echo X$ac_file | |
---|
| 6963 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6964 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6965 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6966 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6967 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 6968 | done |
---|
| 6969 | _ACEOF |
---|
| 6970 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6971 | |
---|
| 6972 | # |
---|
| 6973 | # CONFIG_COMMANDS section. |
---|
| 6974 | # |
---|
| 6975 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 6976 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 6977 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6978 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 6979 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6980 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 6981 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 6982 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 6983 | . : '\(.\)' 2>/dev/null || |
---|
| 6984 | echo X"$ac_dest" | |
---|
| 6985 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6986 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6987 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6988 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6989 | s/.*/./; q'` |
---|
| 6990 | { if $as_mkdir_p; then |
---|
| 6991 | mkdir -p "$ac_dir" |
---|
| 6992 | else |
---|
| 6993 | as_dir="$ac_dir" |
---|
| 6994 | as_dirs= |
---|
| 6995 | while test ! -d "$as_dir"; do |
---|
| 6996 | as_dirs="$as_dir $as_dirs" |
---|
| 6997 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6998 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6999 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7000 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7001 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7002 | . : '\(.\)' 2>/dev/null || |
---|
| 7003 | echo X"$as_dir" | |
---|
| 7004 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7005 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7006 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7007 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7008 | s/.*/./; q'` |
---|
| 7009 | done |
---|
| 7010 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7011 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7012 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7013 | { (exit 1); exit 1; }; }; } |
---|
| 7014 | |
---|
| 7015 | ac_builddir=. |
---|
| 7016 | |
---|
| 7017 | if test "$ac_dir" != .; then |
---|
| 7018 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7019 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7020 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7021 | else |
---|
| 7022 | ac_dir_suffix= ac_top_builddir= |
---|
| 7023 | fi |
---|
| 7024 | |
---|
| 7025 | case $srcdir in |
---|
| 7026 | .) # No --srcdir option. We are building in place. |
---|
| 7027 | ac_srcdir=. |
---|
| 7028 | if test -z "$ac_top_builddir"; then |
---|
| 7029 | ac_top_srcdir=. |
---|
| 7030 | else |
---|
| 7031 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7032 | fi ;; |
---|
| 7033 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7034 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7035 | ac_top_srcdir=$srcdir ;; |
---|
| 7036 | *) # Relative path. |
---|
| 7037 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7038 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7039 | esac |
---|
| 7040 | |
---|
| 7041 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7042 | # the directories may not exist. |
---|
| 7043 | case `pwd` in |
---|
| 7044 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7045 | *) |
---|
| 7046 | case "$ac_dir" in |
---|
| 7047 | .) ac_abs_builddir=`pwd`;; |
---|
| 7048 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7049 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7050 | esac;; |
---|
| 7051 | esac |
---|
| 7052 | case $ac_abs_builddir in |
---|
| 7053 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7054 | *) |
---|
| 7055 | case ${ac_top_builddir}. in |
---|
| 7056 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7057 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7058 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7059 | esac;; |
---|
| 7060 | esac |
---|
| 7061 | case $ac_abs_builddir in |
---|
| 7062 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7063 | *) |
---|
| 7064 | case $ac_srcdir in |
---|
| 7065 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7066 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7067 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7068 | esac;; |
---|
| 7069 | esac |
---|
| 7070 | case $ac_abs_builddir in |
---|
| 7071 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7072 | *) |
---|
| 7073 | case $ac_top_srcdir in |
---|
| 7074 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7075 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7076 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7077 | esac;; |
---|
| 7078 | esac |
---|
| 7079 | |
---|
| 7080 | |
---|
| 7081 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 7082 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 7083 | case $ac_dest in |
---|
| 7084 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 7085 | # Strip MF so we end up with the name of the file. |
---|
| 7086 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 7087 | # Check whether this is an Automake generated Makefile or not. |
---|
| 7088 | # We used to match only the files named `Makefile.in', but |
---|
| 7089 | # some people rename them; so instead we look at the file content. |
---|
| 7090 | # Grep'ing the first line is not enough: some people post-process |
---|
| 7091 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 7092 | # So let's grep whole file. |
---|
| 7093 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 7094 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 7095 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7096 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 7097 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 7098 | X"$mf" : 'X\(/\)' \| \ |
---|
| 7099 | . : '\(.\)' 2>/dev/null || |
---|
| 7100 | echo X"$mf" | |
---|
| 7101 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7102 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7103 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7104 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7105 | s/.*/./; q'` |
---|
| 7106 | else |
---|
| 7107 | continue |
---|
| 7108 | fi |
---|
| 7109 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 7110 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 7111 | # running `make'. |
---|
| 7112 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
| 7113 | test -z "$DEPDIR" && continue |
---|
| 7114 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
| 7115 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
| 7116 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 7117 | # We invoke sed twice because it is the simplest approach to |
---|
| 7118 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
| 7119 | for file in `sed -n -e ' |
---|
| 7120 | /^DEP_FILES = .*\\\\$/ { |
---|
| 7121 | s/^DEP_FILES = // |
---|
| 7122 | :loop |
---|
| 7123 | s/\\\\$// |
---|
| 7124 | p |
---|
| 7125 | n |
---|
| 7126 | /\\\\$/ b loop |
---|
| 7127 | p |
---|
| 7128 | } |
---|
| 7129 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 7130 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 7131 | # Make sure the directory exists. |
---|
| 7132 | test -f "$dirpart/$file" && continue |
---|
| 7133 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 7134 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7135 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 7136 | X"$file" : 'X\(//\)$' \| \ |
---|
| 7137 | X"$file" : 'X\(/\)' \| \ |
---|
| 7138 | . : '\(.\)' 2>/dev/null || |
---|
| 7139 | echo X"$file" | |
---|
| 7140 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7141 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7142 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7143 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7144 | s/.*/./; q'` |
---|
| 7145 | { if $as_mkdir_p; then |
---|
| 7146 | mkdir -p $dirpart/$fdir |
---|
| 7147 | else |
---|
| 7148 | as_dir=$dirpart/$fdir |
---|
| 7149 | as_dirs= |
---|
| 7150 | while test ! -d "$as_dir"; do |
---|
| 7151 | as_dirs="$as_dir $as_dirs" |
---|
| 7152 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7153 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7154 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7155 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7156 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7157 | . : '\(.\)' 2>/dev/null || |
---|
| 7158 | echo X"$as_dir" | |
---|
| 7159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7160 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7161 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7162 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7163 | s/.*/./; q'` |
---|
| 7164 | done |
---|
| 7165 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7166 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 7167 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 7168 | { (exit 1); exit 1; }; }; } |
---|
| 7169 | |
---|
| 7170 | # echo "creating $dirpart/$file" |
---|
| 7171 | echo '# dummy' > "$dirpart/$file" |
---|
| 7172 | done |
---|
| 7173 | done |
---|
| 7174 | ;; |
---|
| 7175 | esac |
---|
| 7176 | done |
---|
| 7177 | _ACEOF |
---|
| 7178 | |
---|
| 7179 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7180 | |
---|
| 7181 | { (exit 0); exit 0; } |
---|
| 7182 | _ACEOF |
---|
| 7183 | chmod +x $CONFIG_STATUS |
---|
| 7184 | ac_clean_files=$ac_clean_files_save |
---|
| 7185 | |
---|
| 7186 | |
---|
| 7187 | # configure is writing to config.log, and then calls config.status. |
---|
| 7188 | # config.status does its own redirection, appending to config.log. |
---|
| 7189 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7190 | # by configure, so config.status won't be able to write to it; its |
---|
| 7191 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7192 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7193 | # appended to by config.status. When coming back to configure, we |
---|
| 7194 | # need to make the FD available again. |
---|
| 7195 | if test "$no_create" != yes; then |
---|
| 7196 | ac_cs_success=: |
---|
| 7197 | ac_config_status_args= |
---|
| 7198 | test "$silent" = yes && |
---|
| 7199 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7200 | exec 5>/dev/null |
---|
| 7201 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7202 | exec 5>>config.log |
---|
| 7203 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7204 | # would make configure fail if this is the last instruction. |
---|
| 7205 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 7206 | fi |
---|
| 7207 | |
---|