[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3995] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.3-pre-alpha. |
---|
[1956] | 4 | # |
---|
[3240] | 5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 6 | # |
---|
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
[1853] | 13 | |
---|
[1956] | 14 | # Be Bourne compatible |
---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 22 | set -o posix |
---|
| 23 | fi |
---|
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[1853] | 25 | |
---|
[1956] | 26 | # Support unset when possible. |
---|
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
[1853] | 32 | |
---|
| 33 | |
---|
[1956] | 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
[1853] | 39 | |
---|
[1956] | 40 | # NLS nuisances. |
---|
| 41 | for as_var in \ |
---|
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 44 | LC_TELEPHONE LC_TIME |
---|
| 45 | do |
---|
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 47 | eval $as_var=C; export $as_var |
---|
| 48 | else |
---|
| 49 | $as_unset $as_var |
---|
| 50 | fi |
---|
| 51 | done |
---|
[1853] | 52 | |
---|
[1956] | 53 | # Required to use basename. |
---|
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 55 | as_expr=expr |
---|
| 56 | else |
---|
| 57 | as_expr=false |
---|
| 58 | fi |
---|
[1853] | 59 | |
---|
[1956] | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 61 | as_basename=basename |
---|
| 62 | else |
---|
| 63 | as_basename=false |
---|
| 64 | fi |
---|
[1853] | 65 | |
---|
[1956] | 66 | |
---|
| 67 | # Name of the executable. |
---|
| 68 | as_me=`$as_basename "$0" || |
---|
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 70 | X"$0" : 'X\(//\)$' \| \ |
---|
| 71 | X"$0" : 'X\(/\)$' \| \ |
---|
| 72 | . : '\(.\)' 2>/dev/null || |
---|
| 73 | echo X/"$0" | |
---|
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 77 | s/.*/./; q'` |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 81 | # Avoid depending upon Character Ranges. |
---|
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 85 | as_cr_digits='0123456789' |
---|
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 87 | |
---|
| 88 | # The user is always right. |
---|
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 90 | echo "#! /bin/sh" >conf$$.sh |
---|
| 91 | echo "exit 0" >>conf$$.sh |
---|
| 92 | chmod +x conf$$.sh |
---|
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 94 | PATH_SEPARATOR=';' |
---|
| 95 | else |
---|
| 96 | PATH_SEPARATOR=: |
---|
| 97 | fi |
---|
| 98 | rm -f conf$$.sh |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | as_lineno_1=$LINENO |
---|
| 103 | as_lineno_2=$LINENO |
---|
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 107 | # Find who we are. Look in the path if we contain no path at all |
---|
| 108 | # relative or not. |
---|
| 109 | case $0 in |
---|
| 110 | *[\\/]* ) as_myself=$0 ;; |
---|
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 112 | for as_dir in $PATH |
---|
| 113 | do |
---|
| 114 | IFS=$as_save_IFS |
---|
| 115 | test -z "$as_dir" && as_dir=. |
---|
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 117 | done |
---|
| 118 | |
---|
| 119 | ;; |
---|
| 120 | esac |
---|
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 122 | # in which case we are not to be found in the path. |
---|
| 123 | if test "x$as_myself" = x; then |
---|
| 124 | as_myself=$0 |
---|
| 125 | fi |
---|
| 126 | if test ! -f "$as_myself"; then |
---|
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 128 | { (exit 1); exit 1; }; } |
---|
| 129 | fi |
---|
| 130 | case $CONFIG_SHELL in |
---|
| 131 | '') |
---|
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 134 | do |
---|
| 135 | IFS=$as_save_IFS |
---|
| 136 | test -z "$as_dir" && as_dir=. |
---|
| 137 | for as_base in sh bash ksh sh5; do |
---|
| 138 | case $as_dir in |
---|
| 139 | /*) |
---|
| 140 | if ("$as_dir/$as_base" -c ' |
---|
| 141 | as_lineno_1=$LINENO |
---|
| 142 | as_lineno_2=$LINENO |
---|
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 148 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 149 | export CONFIG_SHELL |
---|
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 151 | fi;; |
---|
| 152 | esac |
---|
| 153 | done |
---|
| 154 | done |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 160 | # line-number line before each line; the second 'sed' does the real |
---|
| 161 | # work. The second script uses 'N' to pair each line-number line |
---|
| 162 | # with the numbered line, and appends trailing '-' during |
---|
| 163 | # substitution so that $LINENO is not a special case at line end. |
---|
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 166 | sed '=' <$as_myself | |
---|
| 167 | sed ' |
---|
| 168 | N |
---|
| 169 | s,$,-, |
---|
| 170 | : loop |
---|
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 172 | t loop |
---|
| 173 | s,-$,, |
---|
| 174 | s,^['$as_cr_digits']*\n,, |
---|
| 175 | ' >$as_me.lineno && |
---|
| 176 | chmod +x $as_me.lineno || |
---|
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 178 | { (exit 1); exit 1; }; } |
---|
| 179 | |
---|
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 181 | # (the dirname of $[0] is not the place where we might find the |
---|
| 182 | # original and so on. Autoconf is especially sensible to this). |
---|
| 183 | . ./$as_me.lineno |
---|
| 184 | # Exit status is that of the last command. |
---|
| 185 | exit |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 191 | ' ECHO_T=' ' ;; |
---|
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 194 | esac |
---|
| 195 | |
---|
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 197 | as_expr=expr |
---|
[1853] | 198 | else |
---|
[1956] | 199 | as_expr=false |
---|
[1853] | 200 | fi |
---|
| 201 | |
---|
[1956] | 202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 203 | echo >conf$$.file |
---|
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 207 | if test -f conf$$.exe; then |
---|
| 208 | # Don't use ln at all; we don't have any links |
---|
| 209 | as_ln_s='cp -p' |
---|
| 210 | else |
---|
| 211 | as_ln_s='ln -s' |
---|
| 212 | fi |
---|
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 214 | as_ln_s=ln |
---|
| 215 | else |
---|
| 216 | as_ln_s='cp -p' |
---|
[1853] | 217 | fi |
---|
[1956] | 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[1853] | 219 | |
---|
[1956] | 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
| 223 | test -d ./-p && rmdir ./-p |
---|
| 224 | as_mkdir_p=false |
---|
| 225 | fi |
---|
[1853] | 226 | |
---|
[1956] | 227 | as_executable_p="test -f" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
---|
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 231 | |
---|
| 232 | # Sed expression to map a string onto a valid variable name. |
---|
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | # IFS |
---|
| 237 | # We need space, tab and new line, in precisely that order. |
---|
| 238 | as_nl=' |
---|
| 239 | ' |
---|
| 240 | IFS=" $as_nl" |
---|
| 241 | |
---|
| 242 | # CDPATH. |
---|
| 243 | $as_unset CDPATH |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | # Name of the host. |
---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 248 | # so uname gets run too. |
---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 250 | |
---|
| 251 | exec 6>&1 |
---|
| 252 | |
---|
| 253 | # |
---|
| 254 | # Initializations. |
---|
| 255 | # |
---|
| 256 | ac_default_prefix=/usr/local |
---|
| 257 | ac_config_libobj_dir=. |
---|
| 258 | cross_compiling=no |
---|
| 259 | subdirs= |
---|
| 260 | MFLAGS= |
---|
| 261 | MAKEFLAGS= |
---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 263 | |
---|
| 264 | # Maximum number of lines to put in a shell here document. |
---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
---|
| 266 | # only ac_max_sed_lines should be used. |
---|
| 267 | : ${ac_max_here_lines=38} |
---|
| 268 | |
---|
| 269 | # Identity of this package. |
---|
| 270 | PACKAGE_NAME='orxonox' |
---|
| 271 | PACKAGE_TARNAME='orxonox' |
---|
[3995] | 272 | PACKAGE_VERSION='0.2.3-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.3-pre-alpha' |
---|
[3240] | 274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
[1956] | 275 | |
---|
| 276 | ac_unique_file="." |
---|
| 277 | # Factoring default headers for most tests. |
---|
| 278 | ac_includes_default="\ |
---|
| 279 | #include <stdio.h> |
---|
| 280 | #if HAVE_SYS_TYPES_H |
---|
| 281 | # include <sys/types.h> |
---|
| 282 | #endif |
---|
| 283 | #if HAVE_SYS_STAT_H |
---|
| 284 | # include <sys/stat.h> |
---|
| 285 | #endif |
---|
| 286 | #if STDC_HEADERS |
---|
| 287 | # include <stdlib.h> |
---|
| 288 | # include <stddef.h> |
---|
| 289 | #else |
---|
| 290 | # if HAVE_STDLIB_H |
---|
| 291 | # include <stdlib.h> |
---|
| 292 | # endif |
---|
| 293 | #endif |
---|
| 294 | #if HAVE_STRING_H |
---|
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 296 | # include <memory.h> |
---|
| 297 | # endif |
---|
| 298 | # include <string.h> |
---|
| 299 | #endif |
---|
| 300 | #if HAVE_STRINGS_H |
---|
| 301 | # include <strings.h> |
---|
| 302 | #endif |
---|
| 303 | #if HAVE_INTTYPES_H |
---|
| 304 | # include <inttypes.h> |
---|
| 305 | #else |
---|
| 306 | # if HAVE_STDINT_H |
---|
| 307 | # include <stdint.h> |
---|
| 308 | # endif |
---|
| 309 | #endif |
---|
| 310 | #if HAVE_UNISTD_H |
---|
| 311 | # include <unistd.h> |
---|
| 312 | #endif" |
---|
| 313 | |
---|
[4130] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS' |
---|
[1956] | 315 | ac_subst_files='' |
---|
| 316 | |
---|
| 317 | # Initialize some variables set by options. |
---|
| 318 | ac_init_help= |
---|
| 319 | ac_init_version=false |
---|
| 320 | # The variables have the same names as the options, with |
---|
| 321 | # dashes changed to underlines. |
---|
| 322 | cache_file=/dev/null |
---|
| 323 | exec_prefix=NONE |
---|
| 324 | no_create= |
---|
| 325 | no_recursion= |
---|
| 326 | prefix=NONE |
---|
| 327 | program_prefix=NONE |
---|
| 328 | program_suffix=NONE |
---|
| 329 | program_transform_name=s,x,x, |
---|
| 330 | silent= |
---|
| 331 | site= |
---|
| 332 | srcdir= |
---|
| 333 | verbose= |
---|
| 334 | x_includes=NONE |
---|
| 335 | x_libraries=NONE |
---|
| 336 | |
---|
| 337 | # Installation directory options. |
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 340 | # by default will actually change. |
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 342 | bindir='${exec_prefix}/bin' |
---|
| 343 | sbindir='${exec_prefix}/sbin' |
---|
| 344 | libexecdir='${exec_prefix}/libexec' |
---|
| 345 | datadir='${prefix}/share' |
---|
| 346 | sysconfdir='${prefix}/etc' |
---|
| 347 | sharedstatedir='${prefix}/com' |
---|
| 348 | localstatedir='${prefix}/var' |
---|
| 349 | libdir='${exec_prefix}/lib' |
---|
| 350 | includedir='${prefix}/include' |
---|
| 351 | oldincludedir='/usr/include' |
---|
| 352 | infodir='${prefix}/info' |
---|
| 353 | mandir='${prefix}/man' |
---|
| 354 | |
---|
| 355 | ac_prev= |
---|
| 356 | for ac_option |
---|
| 357 | do |
---|
| 358 | # If the previous option needs an argument, assign it. |
---|
| 359 | if test -n "$ac_prev"; then |
---|
| 360 | eval "$ac_prev=\$ac_option" |
---|
| 361 | ac_prev= |
---|
| 362 | continue |
---|
| 363 | fi |
---|
| 364 | |
---|
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 366 | |
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 368 | |
---|
| 369 | case $ac_option in |
---|
| 370 | |
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 372 | ac_prev=bindir ;; |
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 374 | bindir=$ac_optarg ;; |
---|
| 375 | |
---|
| 376 | -build | --build | --buil | --bui | --bu) |
---|
| 377 | ac_prev=build_alias ;; |
---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 379 | build_alias=$ac_optarg ;; |
---|
| 380 | |
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 383 | ac_prev=cache_file ;; |
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 386 | cache_file=$ac_optarg ;; |
---|
| 387 | |
---|
| 388 | --config-cache | -C) |
---|
| 389 | cache_file=config.cache ;; |
---|
| 390 | |
---|
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 392 | ac_prev=datadir ;; |
---|
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 394 | | --da=*) |
---|
| 395 | datadir=$ac_optarg ;; |
---|
| 396 | |
---|
| 397 | -disable-* | --disable-*) |
---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 399 | # Reject names that are not valid shell variable names. |
---|
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 402 | { (exit 1); exit 1; }; } |
---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 404 | eval "enable_$ac_feature=no" ;; |
---|
| 405 | |
---|
| 406 | -enable-* | --enable-*) |
---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 408 | # Reject names that are not valid shell variable names. |
---|
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 411 | { (exit 1); exit 1; }; } |
---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 413 | case $ac_option in |
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 415 | *) ac_optarg=yes ;; |
---|
| 416 | esac |
---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 418 | |
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 421 | | --exec | --exe | --ex) |
---|
| 422 | ac_prev=exec_prefix ;; |
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 425 | | --exec=* | --exe=* | --ex=*) |
---|
| 426 | exec_prefix=$ac_optarg ;; |
---|
| 427 | |
---|
| 428 | -gas | --gas | --ga | --g) |
---|
| 429 | # Obsolete; use --with-gas. |
---|
| 430 | with_gas=yes ;; |
---|
| 431 | |
---|
| 432 | -help | --help | --hel | --he | -h) |
---|
| 433 | ac_init_help=long ;; |
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 435 | ac_init_help=recursive ;; |
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 437 | ac_init_help=short ;; |
---|
| 438 | |
---|
| 439 | -host | --host | --hos | --ho) |
---|
| 440 | ac_prev=host_alias ;; |
---|
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 442 | host_alias=$ac_optarg ;; |
---|
| 443 | |
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 445 | | --includ | --inclu | --incl | --inc) |
---|
| 446 | ac_prev=includedir ;; |
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 449 | includedir=$ac_optarg ;; |
---|
| 450 | |
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 452 | ac_prev=infodir ;; |
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 454 | infodir=$ac_optarg ;; |
---|
| 455 | |
---|
| 456 | -libdir | --libdir | --libdi | --libd) |
---|
| 457 | ac_prev=libdir ;; |
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 459 | libdir=$ac_optarg ;; |
---|
| 460 | |
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 462 | | --libexe | --libex | --libe) |
---|
| 463 | ac_prev=libexecdir ;; |
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 465 | | --libexe=* | --libex=* | --libe=*) |
---|
| 466 | libexecdir=$ac_optarg ;; |
---|
| 467 | |
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 469 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 470 | | --locals | --local | --loca | --loc | --lo) |
---|
| 471 | ac_prev=localstatedir ;; |
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 475 | localstatedir=$ac_optarg ;; |
---|
| 476 | |
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 478 | ac_prev=mandir ;; |
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 480 | mandir=$ac_optarg ;; |
---|
| 481 | |
---|
| 482 | -nfp | --nfp | --nf) |
---|
| 483 | # Obsolete; use --without-fp. |
---|
| 484 | with_fp=no ;; |
---|
| 485 | |
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 487 | | --no-cr | --no-c | -n) |
---|
| 488 | no_create=yes ;; |
---|
| 489 | |
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 492 | no_recursion=yes ;; |
---|
| 493 | |
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 496 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 497 | ac_prev=oldincludedir ;; |
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 501 | oldincludedir=$ac_optarg ;; |
---|
| 502 | |
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 504 | ac_prev=prefix ;; |
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 506 | prefix=$ac_optarg ;; |
---|
| 507 | |
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 509 | | --program-pre | --program-pr | --program-p) |
---|
| 510 | ac_prev=program_prefix ;; |
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 513 | program_prefix=$ac_optarg ;; |
---|
| 514 | |
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 516 | | --program-suf | --program-su | --program-s) |
---|
| 517 | ac_prev=program_suffix ;; |
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 520 | program_suffix=$ac_optarg ;; |
---|
| 521 | |
---|
| 522 | -program-transform-name | --program-transform-name \ |
---|
| 523 | | --program-transform-nam | --program-transform-na \ |
---|
| 524 | | --program-transform-n | --program-transform- \ |
---|
| 525 | | --program-transform | --program-transfor \ |
---|
| 526 | | --program-transfo | --program-transf \ |
---|
| 527 | | --program-trans | --program-tran \ |
---|
| 528 | | --progr-tra | --program-tr | --program-t) |
---|
| 529 | ac_prev=program_transform_name ;; |
---|
| 530 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 532 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 533 | | --program-transform=* | --program-transfor=* \ |
---|
| 534 | | --program-transfo=* | --program-transf=* \ |
---|
| 535 | | --program-trans=* | --program-tran=* \ |
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 537 | program_transform_name=$ac_optarg ;; |
---|
| 538 | |
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 540 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 541 | silent=yes ;; |
---|
| 542 | |
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 544 | ac_prev=sbindir ;; |
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 546 | | --sbi=* | --sb=*) |
---|
| 547 | sbindir=$ac_optarg ;; |
---|
| 548 | |
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 552 | | --sha | --sh) |
---|
| 553 | ac_prev=sharedstatedir ;; |
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 557 | | --sha=* | --sh=*) |
---|
| 558 | sharedstatedir=$ac_optarg ;; |
---|
| 559 | |
---|
| 560 | -site | --site | --sit) |
---|
| 561 | ac_prev=site ;; |
---|
| 562 | -site=* | --site=* | --sit=*) |
---|
| 563 | site=$ac_optarg ;; |
---|
| 564 | |
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 566 | ac_prev=srcdir ;; |
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 568 | srcdir=$ac_optarg ;; |
---|
| 569 | |
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 572 | ac_prev=sysconfdir ;; |
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 575 | sysconfdir=$ac_optarg ;; |
---|
| 576 | |
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 578 | ac_prev=target_alias ;; |
---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 580 | target_alias=$ac_optarg ;; |
---|
| 581 | |
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 583 | verbose=yes ;; |
---|
| 584 | |
---|
| 585 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 586 | ac_init_version=: ;; |
---|
| 587 | |
---|
| 588 | -with-* | --with-*) |
---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 590 | # Reject names that are not valid shell variable names. |
---|
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 593 | { (exit 1); exit 1; }; } |
---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 595 | case $ac_option in |
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 597 | *) ac_optarg=yes ;; |
---|
| 598 | esac |
---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 600 | |
---|
| 601 | -without-* | --without-*) |
---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 603 | # Reject names that are not valid shell variable names. |
---|
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 606 | { (exit 1); exit 1; }; } |
---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 608 | eval "with_$ac_package=no" ;; |
---|
| 609 | |
---|
| 610 | --x) |
---|
| 611 | # Obsolete; use --with-x. |
---|
| 612 | with_x=yes ;; |
---|
| 613 | |
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 616 | ac_prev=x_includes ;; |
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 619 | x_includes=$ac_optarg ;; |
---|
| 620 | |
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 623 | ac_prev=x_libraries ;; |
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 626 | x_libraries=$ac_optarg ;; |
---|
| 627 | |
---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 629 | Try \`$0 --help' for more information." >&2 |
---|
| 630 | { (exit 1); exit 1; }; } |
---|
| 631 | ;; |
---|
| 632 | |
---|
| 633 | *=*) |
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 635 | # Reject names that are not valid shell variable names. |
---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 638 | { (exit 1); exit 1; }; } |
---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 640 | eval "$ac_envvar='$ac_optarg'" |
---|
| 641 | export $ac_envvar ;; |
---|
| 642 | |
---|
| 643 | *) |
---|
| 644 | # FIXME: should be removed in autoconf 3.0. |
---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 649 | ;; |
---|
| 650 | |
---|
| 651 | esac |
---|
| 652 | done |
---|
| 653 | |
---|
| 654 | if test -n "$ac_prev"; then |
---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 657 | { (exit 1); exit 1; }; } |
---|
[1853] | 658 | fi |
---|
| 659 | |
---|
[1956] | 660 | # Be sure to have absolute paths. |
---|
| 661 | for ac_var in exec_prefix prefix |
---|
| 662 | do |
---|
| 663 | eval ac_val=$`echo $ac_var` |
---|
| 664 | case $ac_val in |
---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 667 | { (exit 1); exit 1; }; };; |
---|
| 668 | esac |
---|
| 669 | done |
---|
[1853] | 670 | |
---|
[1956] | 671 | # Be sure to have absolute paths. |
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 674 | do |
---|
| 675 | eval ac_val=$`echo $ac_var` |
---|
| 676 | case $ac_val in |
---|
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 679 | { (exit 1); exit 1; }; };; |
---|
| 680 | esac |
---|
| 681 | done |
---|
| 682 | |
---|
| 683 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 684 | # used to hold the argument of --host etc. |
---|
| 685 | # FIXME: To remove some day. |
---|
| 686 | build=$build_alias |
---|
| 687 | host=$host_alias |
---|
| 688 | target=$target_alias |
---|
| 689 | |
---|
| 690 | # FIXME: To remove some day. |
---|
| 691 | if test "x$host_alias" != x; then |
---|
| 692 | if test "x$build_alias" = x; then |
---|
| 693 | cross_compiling=maybe |
---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 697 | cross_compiling=yes |
---|
| 698 | fi |
---|
[1853] | 699 | fi |
---|
| 700 | |
---|
[1956] | 701 | ac_tool_prefix= |
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 703 | |
---|
| 704 | test "$silent" = yes && exec 6>/dev/null |
---|
| 705 | |
---|
| 706 | |
---|
| 707 | # Find the source files, if location was not specified. |
---|
| 708 | if test -z "$srcdir"; then |
---|
| 709 | ac_srcdir_defaulted=yes |
---|
| 710 | # Try the directory containing this script, then its parent. |
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 714 | X"$0" : 'X\(//\)$' \| \ |
---|
| 715 | X"$0" : 'X\(/\)' \| \ |
---|
| 716 | . : '\(.\)' 2>/dev/null || |
---|
| 717 | echo X"$0" | |
---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 722 | s/.*/./; q'` |
---|
| 723 | srcdir=$ac_confdir |
---|
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 725 | srcdir=.. |
---|
| 726 | fi |
---|
| 727 | else |
---|
| 728 | ac_srcdir_defaulted=no |
---|
| 729 | fi |
---|
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 733 | { (exit 1); exit 1; }; } |
---|
| 734 | else |
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 736 | { (exit 1); exit 1; }; } |
---|
| 737 | fi |
---|
| 738 | fi |
---|
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 741 | { (exit 1); exit 1; }; } |
---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 743 | ac_env_build_alias_set=${build_alias+set} |
---|
| 744 | ac_env_build_alias_value=$build_alias |
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 746 | ac_cv_env_build_alias_value=$build_alias |
---|
| 747 | ac_env_host_alias_set=${host_alias+set} |
---|
| 748 | ac_env_host_alias_value=$host_alias |
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 750 | ac_cv_env_host_alias_value=$host_alias |
---|
| 751 | ac_env_target_alias_set=${target_alias+set} |
---|
| 752 | ac_env_target_alias_value=$target_alias |
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 754 | ac_cv_env_target_alias_value=$target_alias |
---|
| 755 | ac_env_CXX_set=${CXX+set} |
---|
| 756 | ac_env_CXX_value=$CXX |
---|
| 757 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 758 | ac_cv_env_CXX_value=$CXX |
---|
| 759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 771 | ac_env_CC_set=${CC+set} |
---|
| 772 | ac_env_CC_value=$CC |
---|
| 773 | ac_cv_env_CC_set=${CC+set} |
---|
| 774 | ac_cv_env_CC_value=$CC |
---|
| 775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 776 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 779 | ac_env_CPP_set=${CPP+set} |
---|
| 780 | ac_env_CPP_value=$CPP |
---|
| 781 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 782 | ac_cv_env_CPP_value=$CPP |
---|
| 783 | |
---|
| 784 | # |
---|
| 785 | # Report the --help message. |
---|
| 786 | # |
---|
| 787 | if test "$ac_init_help" = "long"; then |
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 790 | cat <<_ACEOF |
---|
[3995] | 791 | \`configure' configures orxonox 0.2.3-pre-alpha to adapt to many kinds of systems. |
---|
[1956] | 792 | |
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 794 | |
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 797 | |
---|
| 798 | Defaults for the options are specified in brackets. |
---|
| 799 | |
---|
| 800 | Configuration: |
---|
| 801 | -h, --help display this help and exit |
---|
| 802 | --help=short display options specific to this package |
---|
| 803 | --help=recursive display the short help of all the included packages |
---|
| 804 | -V, --version display version information and exit |
---|
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 808 | -n, --no-create do not create output files |
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 810 | |
---|
| 811 | _ACEOF |
---|
| 812 | |
---|
| 813 | cat <<_ACEOF |
---|
| 814 | Installation directories: |
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 816 | [$ac_default_prefix] |
---|
| 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 818 | [PREFIX] |
---|
| 819 | |
---|
| 820 | By default, \`make install' will install all the files in |
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 823 | for instance \`--prefix=\$HOME'. |
---|
| 824 | |
---|
| 825 | For better control, use the options below. |
---|
| 826 | |
---|
| 827 | Fine tuning of the installation directories: |
---|
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 836 | --includedir=DIR C header files [PREFIX/include] |
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 838 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 839 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 840 | _ACEOF |
---|
| 841 | |
---|
| 842 | cat <<\_ACEOF |
---|
| 843 | |
---|
| 844 | Program names: |
---|
| 845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
[2980] | 848 | |
---|
| 849 | System types: |
---|
| 850 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
[1956] | 853 | _ACEOF |
---|
| 854 | fi |
---|
| 855 | |
---|
| 856 | if test -n "$ac_init_help"; then |
---|
| 857 | case $ac_init_help in |
---|
[3995] | 858 | short | recursive ) echo "Configuration of orxonox 0.2.3-pre-alpha:";; |
---|
[1956] | 859 | esac |
---|
| 860 | cat <<\_ACEOF |
---|
| 861 | |
---|
| 862 | Optional Features: |
---|
| 863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 865 | --disable-dependency-tracking speeds up one-time build |
---|
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[3205] | 867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
| 868 | game. |
---|
[3592] | 869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
| 870 | differently on the many modules of orxonox. |
---|
[3424] | 871 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[3788] | 872 | --enable-profile builds orxonox with profiling support |
---|
[3863] | 873 | --enable-efence builds orxonox with efence support |
---|
[3558] | 874 | --enable-documentation also builds the sDocumentation while make from |
---|
| 875 | srcdir |
---|
[1956] | 876 | |
---|
[3173] | 877 | Optional Packages: |
---|
| 878 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 879 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 880 | --without-gtk Prevents GTK from being loaded |
---|
[3423] | 881 | --without-curl Prevents libcURL from being loaded |
---|
[3173] | 882 | |
---|
[1956] | 883 | Some influential environment variables: |
---|
| 884 | CXX C++ compiler command |
---|
| 885 | CXXFLAGS C++ compiler flags |
---|
| 886 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 887 | nonstandard directory <lib dir> |
---|
| 888 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 889 | headers in a nonstandard directory <include dir> |
---|
| 890 | CC C compiler command |
---|
| 891 | CFLAGS C compiler flags |
---|
| 892 | CPP C preprocessor |
---|
| 893 | |
---|
| 894 | Use these variables to override the choices made by `configure' or to help |
---|
| 895 | it to find libraries and programs with nonstandard names/locations. |
---|
| 896 | |
---|
[3240] | 897 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 898 | _ACEOF |
---|
| 899 | fi |
---|
| 900 | |
---|
| 901 | if test "$ac_init_help" = "recursive"; then |
---|
| 902 | # If there are subdirs, report their specific --help. |
---|
| 903 | ac_popdir=`pwd` |
---|
| 904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 905 | test -d $ac_dir || continue |
---|
| 906 | ac_builddir=. |
---|
| 907 | |
---|
| 908 | if test "$ac_dir" != .; then |
---|
| 909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 910 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 912 | else |
---|
| 913 | ac_dir_suffix= ac_top_builddir= |
---|
| 914 | fi |
---|
| 915 | |
---|
| 916 | case $srcdir in |
---|
| 917 | .) # No --srcdir option. We are building in place. |
---|
| 918 | ac_srcdir=. |
---|
| 919 | if test -z "$ac_top_builddir"; then |
---|
| 920 | ac_top_srcdir=. |
---|
| 921 | else |
---|
| 922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 923 | fi ;; |
---|
| 924 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 925 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 926 | ac_top_srcdir=$srcdir ;; |
---|
| 927 | *) # Relative path. |
---|
| 928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 930 | esac |
---|
| 931 | |
---|
| 932 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 933 | # the directories may not exist. |
---|
| 934 | case `pwd` in |
---|
| 935 | .) ac_abs_builddir="$ac_dir";; |
---|
| 936 | *) |
---|
| 937 | case "$ac_dir" in |
---|
| 938 | .) ac_abs_builddir=`pwd`;; |
---|
| 939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 941 | esac;; |
---|
| 942 | esac |
---|
| 943 | case $ac_abs_builddir in |
---|
| 944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 945 | *) |
---|
| 946 | case ${ac_top_builddir}. in |
---|
| 947 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 950 | esac;; |
---|
| 951 | esac |
---|
| 952 | case $ac_abs_builddir in |
---|
| 953 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 954 | *) |
---|
| 955 | case $ac_srcdir in |
---|
| 956 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 959 | esac;; |
---|
| 960 | esac |
---|
| 961 | case $ac_abs_builddir in |
---|
| 962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 963 | *) |
---|
| 964 | case $ac_top_srcdir in |
---|
| 965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 968 | esac;; |
---|
| 969 | esac |
---|
| 970 | |
---|
| 971 | cd $ac_dir |
---|
| 972 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 973 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 974 | echo |
---|
| 975 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 976 | elif test -f $ac_srcdir/configure; then |
---|
| 977 | echo |
---|
| 978 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 979 | elif test -f $ac_srcdir/configure.ac || |
---|
| 980 | test -f $ac_srcdir/configure.in; then |
---|
| 981 | echo |
---|
| 982 | $ac_configure --help |
---|
| 983 | else |
---|
| 984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 985 | fi |
---|
| 986 | cd $ac_popdir |
---|
| 987 | done |
---|
| 988 | fi |
---|
| 989 | |
---|
| 990 | test -n "$ac_init_help" && exit 0 |
---|
| 991 | if $ac_init_version; then |
---|
| 992 | cat <<\_ACEOF |
---|
[3995] | 993 | orxonox configure 0.2.3-pre-alpha |
---|
[1956] | 994 | generated by GNU Autoconf 2.59 |
---|
| 995 | |
---|
| 996 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 997 | This configure script is free software; the Free Software Foundation |
---|
| 998 | gives unlimited permission to copy, distribute and modify it. |
---|
| 999 | _ACEOF |
---|
| 1000 | exit 0 |
---|
| 1001 | fi |
---|
| 1002 | exec 5>config.log |
---|
| 1003 | cat >&5 <<_ACEOF |
---|
| 1004 | This file contains any messages produced by compilers while |
---|
| 1005 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1006 | |
---|
[3995] | 1007 | It was created by orxonox $as_me 0.2.3-pre-alpha, which was |
---|
[1956] | 1008 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1009 | |
---|
| 1010 | $ $0 $@ |
---|
| 1011 | |
---|
| 1012 | _ACEOF |
---|
| 1013 | { |
---|
| 1014 | cat <<_ASUNAME |
---|
| 1015 | ## --------- ## |
---|
| 1016 | ## Platform. ## |
---|
| 1017 | ## --------- ## |
---|
| 1018 | |
---|
| 1019 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1020 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1021 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1022 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1023 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1024 | |
---|
| 1025 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1026 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1027 | |
---|
| 1028 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1029 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1030 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1031 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1032 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1033 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1034 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1035 | |
---|
| 1036 | _ASUNAME |
---|
| 1037 | |
---|
| 1038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1039 | for as_dir in $PATH |
---|
| 1040 | do |
---|
| 1041 | IFS=$as_save_IFS |
---|
| 1042 | test -z "$as_dir" && as_dir=. |
---|
| 1043 | echo "PATH: $as_dir" |
---|
| 1044 | done |
---|
| 1045 | |
---|
| 1046 | } >&5 |
---|
| 1047 | |
---|
| 1048 | cat >&5 <<_ACEOF |
---|
| 1049 | |
---|
| 1050 | |
---|
| 1051 | ## ----------- ## |
---|
| 1052 | ## Core tests. ## |
---|
| 1053 | ## ----------- ## |
---|
| 1054 | |
---|
| 1055 | _ACEOF |
---|
| 1056 | |
---|
| 1057 | |
---|
| 1058 | # Keep a trace of the command line. |
---|
| 1059 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1060 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1061 | # Also quote any args containing shell meta-characters. |
---|
| 1062 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1063 | ac_configure_args= |
---|
| 1064 | ac_configure_args0= |
---|
| 1065 | ac_configure_args1= |
---|
| 1066 | ac_sep= |
---|
| 1067 | ac_must_keep_next=false |
---|
| 1068 | for ac_pass in 1 2 |
---|
| 1069 | do |
---|
| 1070 | for ac_arg |
---|
| 1071 | do |
---|
| 1072 | case $ac_arg in |
---|
| 1073 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1074 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1075 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1076 | continue ;; |
---|
| 1077 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1078 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1079 | esac |
---|
| 1080 | case $ac_pass in |
---|
| 1081 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1082 | 2) |
---|
| 1083 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1084 | if test $ac_must_keep_next = true; then |
---|
| 1085 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1086 | else |
---|
| 1087 | case $ac_arg in |
---|
| 1088 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1089 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1090 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1091 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1092 | case "$ac_configure_args0 " in |
---|
| 1093 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1094 | esac |
---|
| 1095 | ;; |
---|
| 1096 | -* ) ac_must_keep_next=true ;; |
---|
| 1097 | esac |
---|
| 1098 | fi |
---|
| 1099 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1100 | # Get rid of the leading space. |
---|
| 1101 | ac_sep=" " |
---|
| 1102 | ;; |
---|
| 1103 | esac |
---|
| 1104 | done |
---|
| 1105 | done |
---|
| 1106 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1107 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1108 | |
---|
| 1109 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1110 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1111 | # would cause problems or look ugly. |
---|
| 1112 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1113 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1114 | trap 'exit_status=$? |
---|
| 1115 | # Save into config.log some information that might help in debugging. |
---|
| 1116 | { |
---|
| 1117 | echo |
---|
| 1118 | |
---|
| 1119 | cat <<\_ASBOX |
---|
| 1120 | ## ---------------- ## |
---|
| 1121 | ## Cache variables. ## |
---|
| 1122 | ## ---------------- ## |
---|
| 1123 | _ASBOX |
---|
| 1124 | echo |
---|
| 1125 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1126 | { |
---|
| 1127 | (set) 2>&1 | |
---|
| 1128 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1129 | *ac_space=\ *) |
---|
| 1130 | sed -n \ |
---|
| 1131 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1132 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1133 | ;; |
---|
| 1134 | *) |
---|
| 1135 | sed -n \ |
---|
| 1136 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1137 | ;; |
---|
| 1138 | esac; |
---|
| 1139 | } |
---|
| 1140 | echo |
---|
| 1141 | |
---|
| 1142 | cat <<\_ASBOX |
---|
| 1143 | ## ----------------- ## |
---|
| 1144 | ## Output variables. ## |
---|
| 1145 | ## ----------------- ## |
---|
| 1146 | _ASBOX |
---|
| 1147 | echo |
---|
| 1148 | for ac_var in $ac_subst_vars |
---|
| 1149 | do |
---|
| 1150 | eval ac_val=$`echo $ac_var` |
---|
| 1151 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1152 | done | sort |
---|
| 1153 | echo |
---|
| 1154 | |
---|
| 1155 | if test -n "$ac_subst_files"; then |
---|
| 1156 | cat <<\_ASBOX |
---|
| 1157 | ## ------------- ## |
---|
| 1158 | ## Output files. ## |
---|
| 1159 | ## ------------- ## |
---|
| 1160 | _ASBOX |
---|
| 1161 | echo |
---|
| 1162 | for ac_var in $ac_subst_files |
---|
| 1163 | do |
---|
| 1164 | eval ac_val=$`echo $ac_var` |
---|
| 1165 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1166 | done | sort |
---|
| 1167 | echo |
---|
| 1168 | fi |
---|
| 1169 | |
---|
| 1170 | if test -s confdefs.h; then |
---|
| 1171 | cat <<\_ASBOX |
---|
| 1172 | ## ----------- ## |
---|
| 1173 | ## confdefs.h. ## |
---|
| 1174 | ## ----------- ## |
---|
| 1175 | _ASBOX |
---|
| 1176 | echo |
---|
| 1177 | sed "/^$/d" confdefs.h | sort |
---|
| 1178 | echo |
---|
| 1179 | fi |
---|
| 1180 | test "$ac_signal" != 0 && |
---|
| 1181 | echo "$as_me: caught signal $ac_signal" |
---|
| 1182 | echo "$as_me: exit $exit_status" |
---|
| 1183 | } >&5 |
---|
| 1184 | rm -f core *.core && |
---|
| 1185 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1186 | exit $exit_status |
---|
| 1187 | ' 0 |
---|
| 1188 | for ac_signal in 1 2 13 15; do |
---|
| 1189 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1190 | done |
---|
| 1191 | ac_signal=0 |
---|
| 1192 | |
---|
| 1193 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1194 | rm -rf conftest* confdefs.h |
---|
| 1195 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1196 | echo >confdefs.h |
---|
| 1197 | |
---|
| 1198 | # Predefined preprocessor variables. |
---|
| 1199 | |
---|
| 1200 | cat >>confdefs.h <<_ACEOF |
---|
| 1201 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1202 | _ACEOF |
---|
| 1203 | |
---|
| 1204 | |
---|
| 1205 | cat >>confdefs.h <<_ACEOF |
---|
| 1206 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1207 | _ACEOF |
---|
| 1208 | |
---|
| 1209 | |
---|
| 1210 | cat >>confdefs.h <<_ACEOF |
---|
| 1211 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1212 | _ACEOF |
---|
| 1213 | |
---|
| 1214 | |
---|
| 1215 | cat >>confdefs.h <<_ACEOF |
---|
| 1216 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1217 | _ACEOF |
---|
| 1218 | |
---|
| 1219 | |
---|
| 1220 | cat >>confdefs.h <<_ACEOF |
---|
| 1221 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1222 | _ACEOF |
---|
| 1223 | |
---|
| 1224 | |
---|
| 1225 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1226 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1227 | if test -z "$CONFIG_SITE"; then |
---|
| 1228 | if test "x$prefix" != xNONE; then |
---|
| 1229 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1230 | else |
---|
| 1231 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1232 | fi |
---|
| 1233 | fi |
---|
| 1234 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1235 | if test -r "$ac_site_file"; then |
---|
| 1236 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1237 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1238 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1239 | . "$ac_site_file" |
---|
| 1240 | fi |
---|
| 1241 | done |
---|
| 1242 | |
---|
| 1243 | if test -r "$cache_file"; then |
---|
| 1244 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1245 | # files actually), so we avoid doing that. |
---|
| 1246 | if test -f "$cache_file"; then |
---|
| 1247 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1248 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1249 | case $cache_file in |
---|
| 1250 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1251 | *) . ./$cache_file;; |
---|
| 1252 | esac |
---|
| 1253 | fi |
---|
| 1254 | else |
---|
| 1255 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1256 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1257 | >$cache_file |
---|
| 1258 | fi |
---|
| 1259 | |
---|
| 1260 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1261 | # value. |
---|
| 1262 | ac_cache_corrupted=false |
---|
| 1263 | for ac_var in `(set) 2>&1 | |
---|
| 1264 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1265 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1266 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1267 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1268 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1269 | case $ac_old_set,$ac_new_set in |
---|
| 1270 | set,) |
---|
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1272 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1273 | ac_cache_corrupted=: ;; |
---|
| 1274 | ,set) |
---|
| 1275 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1276 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1277 | ac_cache_corrupted=: ;; |
---|
| 1278 | ,);; |
---|
| 1279 | *) |
---|
| 1280 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1281 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1282 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1283 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1284 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1285 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1286 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1287 | ac_cache_corrupted=: |
---|
| 1288 | fi;; |
---|
| 1289 | esac |
---|
| 1290 | # Pass precious variables to config.status. |
---|
| 1291 | if test "$ac_new_set" = set; then |
---|
| 1292 | case $ac_new_val in |
---|
| 1293 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1294 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1295 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1296 | esac |
---|
| 1297 | case " $ac_configure_args " in |
---|
| 1298 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1299 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1300 | esac |
---|
| 1301 | fi |
---|
| 1302 | done |
---|
| 1303 | if $ac_cache_corrupted; then |
---|
| 1304 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1305 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1306 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1307 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1308 | { (exit 1); exit 1; }; } |
---|
| 1309 | fi |
---|
| 1310 | |
---|
| 1311 | ac_ext=c |
---|
| 1312 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | |
---|
| 1341 | |
---|
| 1342 | |
---|
[2980] | 1343 | |
---|
[3424] | 1344 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1345 | ac_aux_dir= |
---|
| 1346 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1347 | if test -f $ac_dir/install-sh; then |
---|
| 1348 | ac_aux_dir=$ac_dir |
---|
| 1349 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1350 | break |
---|
| 1351 | elif test -f $ac_dir/install.sh; then |
---|
| 1352 | ac_aux_dir=$ac_dir |
---|
| 1353 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1354 | break |
---|
| 1355 | elif test -f $ac_dir/shtool; then |
---|
| 1356 | ac_aux_dir=$ac_dir |
---|
| 1357 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1358 | break |
---|
| 1359 | fi |
---|
| 1360 | done |
---|
| 1361 | if test -z "$ac_aux_dir"; then |
---|
| 1362 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1363 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1364 | { (exit 1); exit 1; }; } |
---|
| 1365 | fi |
---|
| 1366 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1367 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1368 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1369 | |
---|
[2980] | 1370 | # Make sure we can run config.sub. |
---|
| 1371 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1372 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1373 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1374 | { (exit 1); exit 1; }; } |
---|
| 1375 | |
---|
| 1376 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1377 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1378 | if test "${ac_cv_build+set}" = set; then |
---|
| 1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1380 | else |
---|
| 1381 | ac_cv_build_alias=$build_alias |
---|
| 1382 | test -z "$ac_cv_build_alias" && |
---|
| 1383 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1384 | test -z "$ac_cv_build_alias" && |
---|
| 1385 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1386 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1387 | { (exit 1); exit 1; }; } |
---|
| 1388 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1389 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1390 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1391 | { (exit 1); exit 1; }; } |
---|
| 1392 | |
---|
| 1393 | fi |
---|
| 1394 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1395 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1396 | build=$ac_cv_build |
---|
| 1397 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1398 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1399 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1400 | |
---|
| 1401 | |
---|
| 1402 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1403 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1404 | if test "${ac_cv_host+set}" = set; then |
---|
| 1405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1406 | else |
---|
| 1407 | ac_cv_host_alias=$host_alias |
---|
| 1408 | test -z "$ac_cv_host_alias" && |
---|
| 1409 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1410 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1411 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1412 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1413 | { (exit 1); exit 1; }; } |
---|
| 1414 | |
---|
| 1415 | fi |
---|
| 1416 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1417 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1418 | host=$ac_cv_host |
---|
| 1419 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1420 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1421 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1422 | |
---|
| 1423 | |
---|
| 1424 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1425 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1426 | if test "${ac_cv_target+set}" = set; then |
---|
| 1427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1428 | else |
---|
| 1429 | ac_cv_target_alias=$target_alias |
---|
| 1430 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1431 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1432 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1433 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1434 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1435 | { (exit 1); exit 1; }; } |
---|
| 1436 | |
---|
| 1437 | fi |
---|
| 1438 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1439 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1440 | target=$ac_cv_target |
---|
| 1441 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1442 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1443 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1444 | |
---|
| 1445 | |
---|
| 1446 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1447 | # will get canonicalized. |
---|
| 1448 | test -n "$target_alias" && |
---|
| 1449 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1450 | NONENONEs,x,x, && |
---|
| 1451 | program_prefix=${target_alias}- |
---|
| 1452 | |
---|
| 1453 | am__api_version="1.8" |
---|
[1956] | 1454 | # Find a good install program. We prefer a C program (faster), |
---|
| 1455 | # so one script is as good as another. But avoid the broken or |
---|
| 1456 | # incompatible versions: |
---|
| 1457 | # SysV /etc/install, /usr/sbin/install |
---|
| 1458 | # SunOS /usr/etc/install |
---|
| 1459 | # IRIX /sbin/install |
---|
| 1460 | # AIX /bin/install |
---|
| 1461 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1462 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1463 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1464 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1465 | # OS/2's system install, which has a completely different semantic |
---|
| 1466 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1467 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1468 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1469 | if test -z "$INSTALL"; then |
---|
| 1470 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1472 | else |
---|
| 1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1474 | for as_dir in $PATH |
---|
| 1475 | do |
---|
| 1476 | IFS=$as_save_IFS |
---|
| 1477 | test -z "$as_dir" && as_dir=. |
---|
| 1478 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1479 | case $as_dir/ in |
---|
| 1480 | ./ | .// | /cC/* | \ |
---|
| 1481 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1482 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1483 | /usr/ucb/* ) ;; |
---|
| 1484 | *) |
---|
| 1485 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1486 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1487 | # by default. |
---|
| 1488 | for ac_prog in ginstall scoinst install; do |
---|
| 1489 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1490 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1491 | if test $ac_prog = install && |
---|
| 1492 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1493 | # AIX install. It has an incompatible calling convention. |
---|
| 1494 | : |
---|
| 1495 | elif test $ac_prog = install && |
---|
| 1496 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1497 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1498 | : |
---|
| 1499 | else |
---|
| 1500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1501 | break 3 |
---|
| 1502 | fi |
---|
[1853] | 1503 | fi |
---|
[1956] | 1504 | done |
---|
| 1505 | done |
---|
| 1506 | ;; |
---|
| 1507 | esac |
---|
| 1508 | done |
---|
| 1509 | |
---|
| 1510 | |
---|
[1853] | 1511 | fi |
---|
[1956] | 1512 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1513 | INSTALL=$ac_cv_path_install |
---|
| 1514 | else |
---|
| 1515 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1516 | # path for INSTALL within a source directory, because that will |
---|
| 1517 | # break other packages using the cache if that directory is |
---|
| 1518 | # removed, or if the path is relative. |
---|
| 1519 | INSTALL=$ac_install_sh |
---|
| 1520 | fi |
---|
| 1521 | fi |
---|
| 1522 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1523 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1524 | |
---|
| 1525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1526 | # It thinks the first close brace ends the variable substitution. |
---|
| 1527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1528 | |
---|
| 1529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1530 | |
---|
| 1531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1532 | |
---|
| 1533 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1534 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1535 | # Just in case |
---|
| 1536 | sleep 1 |
---|
| 1537 | echo timestamp > conftest.file |
---|
| 1538 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1539 | # arguments. Must try -L first in case configure is actually a |
---|
| 1540 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1541 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1542 | # directory). |
---|
| 1543 | if ( |
---|
| 1544 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1545 | if test "$*" = "X"; then |
---|
| 1546 | # -L didn't work. |
---|
| 1547 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1548 | fi |
---|
| 1549 | rm -f conftest.file |
---|
| 1550 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1551 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1552 | |
---|
| 1553 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1554 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1555 | # broken ls alias from the environment. This has actually |
---|
| 1556 | # happened. Such a system could not be considered "sane". |
---|
| 1557 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1558 | alias in your environment" >&5 |
---|
| 1559 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1560 | alias in your environment" >&2;} |
---|
| 1561 | { (exit 1); exit 1; }; } |
---|
| 1562 | fi |
---|
| 1563 | |
---|
| 1564 | test "$2" = conftest.file |
---|
| 1565 | ) |
---|
| 1566 | then |
---|
| 1567 | # Ok. |
---|
| 1568 | : |
---|
[1853] | 1569 | else |
---|
[1956] | 1570 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1571 | Check your system clock" >&5 |
---|
| 1572 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1573 | Check your system clock" >&2;} |
---|
| 1574 | { (exit 1); exit 1; }; } |
---|
[1853] | 1575 | fi |
---|
[1956] | 1576 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1577 | echo "${ECHO_T}yes" >&6 |
---|
| 1578 | test "$program_prefix" != NONE && |
---|
| 1579 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1580 | # Use a double $ so make ignores it. |
---|
| 1581 | test "$program_suffix" != NONE && |
---|
| 1582 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1583 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1584 | # By default was `s,x,x', remove it if useless. |
---|
| 1585 | cat <<\_ACEOF >conftest.sed |
---|
| 1586 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1587 | _ACEOF |
---|
| 1588 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1589 | rm conftest.sed |
---|
[1853] | 1590 | |
---|
[1956] | 1591 | # expand $ac_aux_dir to an absolute path |
---|
| 1592 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1593 | |
---|
| 1594 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1595 | # Use eval to expand $SHELL |
---|
| 1596 | if eval "$MISSING --run true"; then |
---|
| 1597 | am_missing_run="$MISSING --run " |
---|
| 1598 | else |
---|
| 1599 | am_missing_run= |
---|
| 1600 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1601 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1602 | fi |
---|
| 1603 | |
---|
[4054] | 1604 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1605 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1606 | # argument. Indeed, we sometimes output rules like |
---|
| 1607 | # $(mkdir_p) $(somedir) |
---|
| 1608 | # where $(somedir) is conditionally defined. |
---|
| 1609 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1610 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1611 | mkdir_p='mkdir -p -- .' |
---|
| 1612 | else |
---|
| 1613 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1614 | # recognize any option. It will interpret all options as |
---|
| 1615 | # directories to create, and then abort because `.' already |
---|
| 1616 | # exists. |
---|
[4054] | 1617 | for d in ./-p ./--version; |
---|
[2706] | 1618 | do |
---|
| 1619 | test -d $d && rmdir $d |
---|
| 1620 | done |
---|
| 1621 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1622 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1623 | mkdir_p='$(mkinstalldirs)' |
---|
| 1624 | else |
---|
| 1625 | mkdir_p='$(install_sh) -d' |
---|
| 1626 | fi |
---|
| 1627 | fi |
---|
| 1628 | |
---|
[1956] | 1629 | for ac_prog in gawk mawk nawk awk |
---|
| 1630 | do |
---|
| 1631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1632 | set dummy $ac_prog; ac_word=$2 |
---|
| 1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1635 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1637 | else |
---|
| 1638 | if test -n "$AWK"; then |
---|
| 1639 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1640 | else |
---|
| 1641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1642 | for as_dir in $PATH |
---|
| 1643 | do |
---|
| 1644 | IFS=$as_save_IFS |
---|
| 1645 | test -z "$as_dir" && as_dir=. |
---|
| 1646 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1648 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1650 | break 2 |
---|
| 1651 | fi |
---|
| 1652 | done |
---|
| 1653 | done |
---|
| 1654 | |
---|
| 1655 | fi |
---|
| 1656 | fi |
---|
| 1657 | AWK=$ac_cv_prog_AWK |
---|
| 1658 | if test -n "$AWK"; then |
---|
| 1659 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1660 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1661 | else |
---|
| 1662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1663 | echo "${ECHO_T}no" >&6 |
---|
| 1664 | fi |
---|
| 1665 | |
---|
| 1666 | test -n "$AWK" && break |
---|
| 1667 | done |
---|
| 1668 | |
---|
| 1669 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1670 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1671 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1672 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1674 | else |
---|
| 1675 | cat >conftest.make <<\_ACEOF |
---|
| 1676 | all: |
---|
| 1677 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1678 | _ACEOF |
---|
| 1679 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1680 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1681 | if test -n "$ac_maketemp"; then |
---|
| 1682 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1683 | else |
---|
| 1684 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1685 | fi |
---|
| 1686 | rm -f conftest.make |
---|
| 1687 | fi |
---|
| 1688 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1689 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1690 | echo "${ECHO_T}yes" >&6 |
---|
| 1691 | SET_MAKE= |
---|
| 1692 | else |
---|
| 1693 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1694 | echo "${ECHO_T}no" >&6 |
---|
| 1695 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1696 | fi |
---|
| 1697 | |
---|
| 1698 | rm -rf .tst 2>/dev/null |
---|
| 1699 | mkdir .tst 2>/dev/null |
---|
| 1700 | if test -d .tst; then |
---|
| 1701 | am__leading_dot=. |
---|
| 1702 | else |
---|
| 1703 | am__leading_dot=_ |
---|
| 1704 | fi |
---|
| 1705 | rmdir .tst 2>/dev/null |
---|
| 1706 | |
---|
[2706] | 1707 | # test to see if srcdir already configured |
---|
[1956] | 1708 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1709 | test -f $srcdir/config.status; then |
---|
| 1710 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1711 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1712 | { (exit 1); exit 1; }; } |
---|
| 1713 | fi |
---|
| 1714 | |
---|
| 1715 | # test whether we have cygpath |
---|
| 1716 | if test -z "$CYGPATH_W"; then |
---|
| 1717 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1718 | CYGPATH_W='cygpath -w' |
---|
| 1719 | else |
---|
| 1720 | CYGPATH_W=echo |
---|
| 1721 | fi |
---|
| 1722 | fi |
---|
| 1723 | |
---|
| 1724 | |
---|
| 1725 | # Define the identity of the package. |
---|
| 1726 | PACKAGE='orxonox' |
---|
[3995] | 1727 | VERSION='0.2.3-pre-alpha' |
---|
[1956] | 1728 | |
---|
| 1729 | |
---|
| 1730 | cat >>confdefs.h <<_ACEOF |
---|
| 1731 | #define PACKAGE "$PACKAGE" |
---|
| 1732 | _ACEOF |
---|
| 1733 | |
---|
| 1734 | |
---|
| 1735 | cat >>confdefs.h <<_ACEOF |
---|
| 1736 | #define VERSION "$VERSION" |
---|
| 1737 | _ACEOF |
---|
| 1738 | |
---|
| 1739 | # Some tools Automake needs. |
---|
| 1740 | |
---|
| 1741 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1742 | |
---|
| 1743 | |
---|
| 1744 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1748 | |
---|
| 1749 | |
---|
| 1750 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1751 | |
---|
| 1752 | |
---|
| 1753 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1754 | |
---|
| 1755 | |
---|
| 1756 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1757 | |
---|
| 1758 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1759 | |
---|
| 1760 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1761 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1762 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1763 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1764 | if test "$cross_compiling" != no; then |
---|
| 1765 | if test -n "$ac_tool_prefix"; then |
---|
| 1766 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1767 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1770 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1772 | else |
---|
| 1773 | if test -n "$STRIP"; then |
---|
| 1774 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1775 | else |
---|
| 1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1777 | for as_dir in $PATH |
---|
| 1778 | do |
---|
| 1779 | IFS=$as_save_IFS |
---|
| 1780 | test -z "$as_dir" && as_dir=. |
---|
| 1781 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1783 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1785 | break 2 |
---|
| 1786 | fi |
---|
| 1787 | done |
---|
| 1788 | done |
---|
| 1789 | |
---|
| 1790 | fi |
---|
| 1791 | fi |
---|
| 1792 | STRIP=$ac_cv_prog_STRIP |
---|
| 1793 | if test -n "$STRIP"; then |
---|
| 1794 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1795 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1796 | else |
---|
| 1797 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1798 | echo "${ECHO_T}no" >&6 |
---|
| 1799 | fi |
---|
| 1800 | |
---|
| 1801 | fi |
---|
| 1802 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1803 | ac_ct_STRIP=$STRIP |
---|
| 1804 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1805 | set dummy strip; ac_word=$2 |
---|
| 1806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1808 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1810 | else |
---|
| 1811 | if test -n "$ac_ct_STRIP"; then |
---|
| 1812 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1813 | else |
---|
| 1814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1815 | for as_dir in $PATH |
---|
| 1816 | do |
---|
| 1817 | IFS=$as_save_IFS |
---|
| 1818 | test -z "$as_dir" && as_dir=. |
---|
| 1819 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1821 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1823 | break 2 |
---|
| 1824 | fi |
---|
| 1825 | done |
---|
| 1826 | done |
---|
| 1827 | |
---|
| 1828 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1829 | fi |
---|
| 1830 | fi |
---|
| 1831 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1832 | if test -n "$ac_ct_STRIP"; then |
---|
| 1833 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1834 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1835 | else |
---|
| 1836 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1837 | echo "${ECHO_T}no" >&6 |
---|
| 1838 | fi |
---|
| 1839 | |
---|
| 1840 | STRIP=$ac_ct_STRIP |
---|
| 1841 | else |
---|
| 1842 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1843 | fi |
---|
| 1844 | |
---|
| 1845 | fi |
---|
| 1846 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1847 | |
---|
| 1848 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1849 | # some platforms. |
---|
| 1850 | |
---|
| 1851 | |
---|
| 1852 | |
---|
| 1853 | |
---|
[2627] | 1854 | |
---|
[1959] | 1855 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1856 | |
---|
| 1857 | |
---|
[3424] | 1858 | ######################### |
---|
| 1859 | ## Checks for programs ## |
---|
| 1860 | ######################### |
---|
[1956] | 1861 | ac_ext=cc |
---|
| 1862 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1866 | if test -n "$ac_tool_prefix"; then |
---|
| 1867 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1868 | do |
---|
| 1869 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1870 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1873 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1875 | else |
---|
| 1876 | if test -n "$CXX"; then |
---|
| 1877 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1878 | else |
---|
| 1879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1880 | for as_dir in $PATH |
---|
| 1881 | do |
---|
| 1882 | IFS=$as_save_IFS |
---|
| 1883 | test -z "$as_dir" && as_dir=. |
---|
| 1884 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1886 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1888 | break 2 |
---|
| 1889 | fi |
---|
| 1890 | done |
---|
| 1891 | done |
---|
| 1892 | |
---|
| 1893 | fi |
---|
| 1894 | fi |
---|
| 1895 | CXX=$ac_cv_prog_CXX |
---|
| 1896 | if test -n "$CXX"; then |
---|
| 1897 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1898 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1899 | else |
---|
| 1900 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1901 | echo "${ECHO_T}no" >&6 |
---|
| 1902 | fi |
---|
| 1903 | |
---|
| 1904 | test -n "$CXX" && break |
---|
| 1905 | done |
---|
| 1906 | fi |
---|
| 1907 | if test -z "$CXX"; then |
---|
| 1908 | ac_ct_CXX=$CXX |
---|
| 1909 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1910 | do |
---|
| 1911 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1912 | set dummy $ac_prog; ac_word=$2 |
---|
| 1913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1915 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1917 | else |
---|
| 1918 | if test -n "$ac_ct_CXX"; then |
---|
| 1919 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1920 | else |
---|
| 1921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1922 | for as_dir in $PATH |
---|
| 1923 | do |
---|
| 1924 | IFS=$as_save_IFS |
---|
| 1925 | test -z "$as_dir" && as_dir=. |
---|
| 1926 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1928 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1930 | break 2 |
---|
| 1931 | fi |
---|
| 1932 | done |
---|
| 1933 | done |
---|
| 1934 | |
---|
| 1935 | fi |
---|
| 1936 | fi |
---|
| 1937 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1938 | if test -n "$ac_ct_CXX"; then |
---|
| 1939 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1940 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1941 | else |
---|
| 1942 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1943 | echo "${ECHO_T}no" >&6 |
---|
| 1944 | fi |
---|
| 1945 | |
---|
| 1946 | test -n "$ac_ct_CXX" && break |
---|
| 1947 | done |
---|
| 1948 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1949 | |
---|
| 1950 | CXX=$ac_ct_CXX |
---|
| 1951 | fi |
---|
| 1952 | |
---|
| 1953 | |
---|
| 1954 | # Provide some information about the compiler. |
---|
| 1955 | echo "$as_me:$LINENO:" \ |
---|
| 1956 | "checking for C++ compiler version" >&5 |
---|
| 1957 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1958 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1959 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1960 | ac_status=$? |
---|
| 1961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1962 | (exit $ac_status); } |
---|
| 1963 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1964 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1965 | ac_status=$? |
---|
| 1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1967 | (exit $ac_status); } |
---|
| 1968 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1969 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1970 | ac_status=$? |
---|
| 1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1972 | (exit $ac_status); } |
---|
| 1973 | |
---|
| 1974 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1975 | /* confdefs.h. */ |
---|
| 1976 | _ACEOF |
---|
| 1977 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1978 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1979 | /* end confdefs.h. */ |
---|
| 1980 | |
---|
| 1981 | int |
---|
| 1982 | main () |
---|
| 1983 | { |
---|
| 1984 | |
---|
| 1985 | ; |
---|
| 1986 | return 0; |
---|
| 1987 | } |
---|
| 1988 | _ACEOF |
---|
| 1989 | ac_clean_files_save=$ac_clean_files |
---|
| 1990 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1991 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1992 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1993 | # of exeext. |
---|
| 1994 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1995 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1996 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1997 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1998 | (eval $ac_link_default) 2>&5 |
---|
| 1999 | ac_status=$? |
---|
| 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2001 | (exit $ac_status); }; then |
---|
| 2002 | # Find the output, starting from the most likely. This scheme is |
---|
| 2003 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2004 | # resort. |
---|
| 2005 | |
---|
| 2006 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2007 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2008 | ac_cv_exeext= |
---|
| 2009 | # b.out is created by i960 compilers. |
---|
| 2010 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2011 | do |
---|
| 2012 | test -f "$ac_file" || continue |
---|
| 2013 | case $ac_file in |
---|
| 2014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2015 | ;; |
---|
| 2016 | conftest.$ac_ext ) |
---|
| 2017 | # This is the source file. |
---|
| 2018 | ;; |
---|
| 2019 | [ab].out ) |
---|
| 2020 | # We found the default executable, but exeext='' is most |
---|
| 2021 | # certainly right. |
---|
| 2022 | break;; |
---|
| 2023 | *.* ) |
---|
| 2024 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2025 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2026 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2027 | # maintain Libtool? --akim. |
---|
| 2028 | export ac_cv_exeext |
---|
| 2029 | break;; |
---|
| 2030 | * ) |
---|
| 2031 | break;; |
---|
| 2032 | esac |
---|
| 2033 | done |
---|
| 2034 | else |
---|
| 2035 | echo "$as_me: failed program was:" >&5 |
---|
| 2036 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2037 | |
---|
| 2038 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2039 | See \`config.log' for more details." >&5 |
---|
| 2040 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2041 | See \`config.log' for more details." >&2;} |
---|
| 2042 | { (exit 77); exit 77; }; } |
---|
| 2043 | fi |
---|
| 2044 | |
---|
| 2045 | ac_exeext=$ac_cv_exeext |
---|
| 2046 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2047 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2048 | |
---|
| 2049 | # Check the compiler produces executables we can run. If not, either |
---|
| 2050 | # the compiler is broken, or we cross compile. |
---|
| 2051 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2052 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2053 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2054 | # If not cross compiling, check that we can run a simple program. |
---|
| 2055 | if test "$cross_compiling" != yes; then |
---|
| 2056 | if { ac_try='./$ac_file' |
---|
| 2057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2058 | (eval $ac_try) 2>&5 |
---|
| 2059 | ac_status=$? |
---|
| 2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2061 | (exit $ac_status); }; }; then |
---|
| 2062 | cross_compiling=no |
---|
| 2063 | else |
---|
| 2064 | if test "$cross_compiling" = maybe; then |
---|
| 2065 | cross_compiling=yes |
---|
| 2066 | else |
---|
| 2067 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2068 | If you meant to cross compile, use \`--host'. |
---|
| 2069 | See \`config.log' for more details." >&5 |
---|
| 2070 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2071 | If you meant to cross compile, use \`--host'. |
---|
| 2072 | See \`config.log' for more details." >&2;} |
---|
| 2073 | { (exit 1); exit 1; }; } |
---|
| 2074 | fi |
---|
| 2075 | fi |
---|
| 2076 | fi |
---|
| 2077 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2078 | echo "${ECHO_T}yes" >&6 |
---|
| 2079 | |
---|
| 2080 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2081 | ac_clean_files=$ac_clean_files_save |
---|
| 2082 | # Check the compiler produces executables we can run. If not, either |
---|
| 2083 | # the compiler is broken, or we cross compile. |
---|
| 2084 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2085 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2086 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2087 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2088 | |
---|
| 2089 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2090 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2092 | (eval $ac_link) 2>&5 |
---|
| 2093 | ac_status=$? |
---|
| 2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2095 | (exit $ac_status); }; then |
---|
| 2096 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2097 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2098 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2099 | # `rm'. |
---|
| 2100 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2101 | test -f "$ac_file" || continue |
---|
| 2102 | case $ac_file in |
---|
| 2103 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2104 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2105 | export ac_cv_exeext |
---|
| 2106 | break;; |
---|
| 2107 | * ) break;; |
---|
| 2108 | esac |
---|
| 2109 | done |
---|
| 2110 | else |
---|
| 2111 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2112 | See \`config.log' for more details." >&5 |
---|
| 2113 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2114 | See \`config.log' for more details." >&2;} |
---|
| 2115 | { (exit 1); exit 1; }; } |
---|
| 2116 | fi |
---|
| 2117 | |
---|
| 2118 | rm -f conftest$ac_cv_exeext |
---|
| 2119 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2120 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2121 | |
---|
| 2122 | rm -f conftest.$ac_ext |
---|
| 2123 | EXEEXT=$ac_cv_exeext |
---|
| 2124 | ac_exeext=$EXEEXT |
---|
| 2125 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2126 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2127 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2129 | else |
---|
| 2130 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2131 | /* confdefs.h. */ |
---|
| 2132 | _ACEOF |
---|
| 2133 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2134 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2135 | /* end confdefs.h. */ |
---|
| 2136 | |
---|
| 2137 | int |
---|
| 2138 | main () |
---|
| 2139 | { |
---|
| 2140 | |
---|
| 2141 | ; |
---|
| 2142 | return 0; |
---|
| 2143 | } |
---|
| 2144 | _ACEOF |
---|
| 2145 | rm -f conftest.o conftest.obj |
---|
| 2146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2147 | (eval $ac_compile) 2>&5 |
---|
| 2148 | ac_status=$? |
---|
| 2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2150 | (exit $ac_status); }; then |
---|
| 2151 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2152 | case $ac_file in |
---|
| 2153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2154 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2155 | break;; |
---|
| 2156 | esac |
---|
| 2157 | done |
---|
| 2158 | else |
---|
| 2159 | echo "$as_me: failed program was:" >&5 |
---|
| 2160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2161 | |
---|
| 2162 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2163 | See \`config.log' for more details." >&5 |
---|
| 2164 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2165 | See \`config.log' for more details." >&2;} |
---|
| 2166 | { (exit 1); exit 1; }; } |
---|
| 2167 | fi |
---|
| 2168 | |
---|
| 2169 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2170 | fi |
---|
| 2171 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2172 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2173 | OBJEXT=$ac_cv_objext |
---|
| 2174 | ac_objext=$OBJEXT |
---|
| 2175 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2176 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2177 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2179 | else |
---|
| 2180 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2181 | /* confdefs.h. */ |
---|
| 2182 | _ACEOF |
---|
| 2183 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2184 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2185 | /* end confdefs.h. */ |
---|
| 2186 | |
---|
| 2187 | int |
---|
| 2188 | main () |
---|
| 2189 | { |
---|
| 2190 | #ifndef __GNUC__ |
---|
| 2191 | choke me |
---|
| 2192 | #endif |
---|
| 2193 | |
---|
| 2194 | ; |
---|
| 2195 | return 0; |
---|
| 2196 | } |
---|
| 2197 | _ACEOF |
---|
| 2198 | rm -f conftest.$ac_objext |
---|
| 2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2200 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2201 | ac_status=$? |
---|
| 2202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2203 | rm -f conftest.er1 |
---|
| 2204 | cat conftest.err >&5 |
---|
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2206 | (exit $ac_status); } && |
---|
| 2207 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2208 | || test ! -s conftest.err' |
---|
| 2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2210 | (eval $ac_try) 2>&5 |
---|
| 2211 | ac_status=$? |
---|
| 2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2213 | (exit $ac_status); }; } && |
---|
| 2214 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2216 | (eval $ac_try) 2>&5 |
---|
| 2217 | ac_status=$? |
---|
| 2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2219 | (exit $ac_status); }; }; then |
---|
| 2220 | ac_compiler_gnu=yes |
---|
| 2221 | else |
---|
| 2222 | echo "$as_me: failed program was:" >&5 |
---|
| 2223 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2224 | |
---|
| 2225 | ac_compiler_gnu=no |
---|
| 2226 | fi |
---|
| 2227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2228 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2229 | |
---|
| 2230 | fi |
---|
| 2231 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2232 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2233 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2234 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2235 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2236 | CXXFLAGS="-g" |
---|
| 2237 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2238 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2239 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2241 | else |
---|
| 2242 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2243 | /* confdefs.h. */ |
---|
| 2244 | _ACEOF |
---|
| 2245 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2247 | /* end confdefs.h. */ |
---|
| 2248 | |
---|
| 2249 | int |
---|
| 2250 | main () |
---|
| 2251 | { |
---|
| 2252 | |
---|
| 2253 | ; |
---|
| 2254 | return 0; |
---|
| 2255 | } |
---|
| 2256 | _ACEOF |
---|
| 2257 | rm -f conftest.$ac_objext |
---|
| 2258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2259 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2260 | ac_status=$? |
---|
| 2261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2262 | rm -f conftest.er1 |
---|
| 2263 | cat conftest.err >&5 |
---|
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2265 | (exit $ac_status); } && |
---|
| 2266 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2267 | || test ! -s conftest.err' |
---|
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2269 | (eval $ac_try) 2>&5 |
---|
| 2270 | ac_status=$? |
---|
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2272 | (exit $ac_status); }; } && |
---|
| 2273 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2275 | (eval $ac_try) 2>&5 |
---|
| 2276 | ac_status=$? |
---|
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2278 | (exit $ac_status); }; }; then |
---|
| 2279 | ac_cv_prog_cxx_g=yes |
---|
| 2280 | else |
---|
| 2281 | echo "$as_me: failed program was:" >&5 |
---|
| 2282 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2283 | |
---|
| 2284 | ac_cv_prog_cxx_g=no |
---|
| 2285 | fi |
---|
| 2286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2287 | fi |
---|
| 2288 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2289 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2290 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2291 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2292 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2293 | if test "$GXX" = yes; then |
---|
| 2294 | CXXFLAGS="-g -O2" |
---|
| 2295 | else |
---|
| 2296 | CXXFLAGS="-g" |
---|
| 2297 | fi |
---|
| 2298 | else |
---|
| 2299 | if test "$GXX" = yes; then |
---|
| 2300 | CXXFLAGS="-O2" |
---|
| 2301 | else |
---|
| 2302 | CXXFLAGS= |
---|
| 2303 | fi |
---|
| 2304 | fi |
---|
| 2305 | for ac_declaration in \ |
---|
| 2306 | '' \ |
---|
| 2307 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2308 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2309 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2310 | 'extern "C" void exit (int);' \ |
---|
| 2311 | 'void exit (int);' |
---|
| 2312 | do |
---|
| 2313 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2314 | /* confdefs.h. */ |
---|
| 2315 | _ACEOF |
---|
| 2316 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2318 | /* end confdefs.h. */ |
---|
| 2319 | $ac_declaration |
---|
| 2320 | #include <stdlib.h> |
---|
| 2321 | int |
---|
| 2322 | main () |
---|
| 2323 | { |
---|
| 2324 | exit (42); |
---|
| 2325 | ; |
---|
| 2326 | return 0; |
---|
| 2327 | } |
---|
| 2328 | _ACEOF |
---|
| 2329 | rm -f conftest.$ac_objext |
---|
| 2330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2331 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2332 | ac_status=$? |
---|
| 2333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2334 | rm -f conftest.er1 |
---|
| 2335 | cat conftest.err >&5 |
---|
| 2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2337 | (exit $ac_status); } && |
---|
| 2338 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2339 | || test ! -s conftest.err' |
---|
| 2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2341 | (eval $ac_try) 2>&5 |
---|
| 2342 | ac_status=$? |
---|
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2344 | (exit $ac_status); }; } && |
---|
| 2345 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2347 | (eval $ac_try) 2>&5 |
---|
| 2348 | ac_status=$? |
---|
| 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2350 | (exit $ac_status); }; }; then |
---|
| 2351 | : |
---|
| 2352 | else |
---|
| 2353 | echo "$as_me: failed program was:" >&5 |
---|
| 2354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2355 | |
---|
| 2356 | continue |
---|
| 2357 | fi |
---|
| 2358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2359 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2360 | /* confdefs.h. */ |
---|
| 2361 | _ACEOF |
---|
| 2362 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2363 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2364 | /* end confdefs.h. */ |
---|
| 2365 | $ac_declaration |
---|
| 2366 | int |
---|
| 2367 | main () |
---|
| 2368 | { |
---|
| 2369 | exit (42); |
---|
| 2370 | ; |
---|
| 2371 | return 0; |
---|
| 2372 | } |
---|
| 2373 | _ACEOF |
---|
| 2374 | rm -f conftest.$ac_objext |
---|
| 2375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2376 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2377 | ac_status=$? |
---|
| 2378 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2379 | rm -f conftest.er1 |
---|
| 2380 | cat conftest.err >&5 |
---|
| 2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2382 | (exit $ac_status); } && |
---|
| 2383 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2384 | || test ! -s conftest.err' |
---|
| 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2386 | (eval $ac_try) 2>&5 |
---|
| 2387 | ac_status=$? |
---|
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2389 | (exit $ac_status); }; } && |
---|
| 2390 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2392 | (eval $ac_try) 2>&5 |
---|
| 2393 | ac_status=$? |
---|
| 2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2395 | (exit $ac_status); }; }; then |
---|
| 2396 | break |
---|
| 2397 | else |
---|
| 2398 | echo "$as_me: failed program was:" >&5 |
---|
| 2399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2400 | |
---|
| 2401 | fi |
---|
| 2402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2403 | done |
---|
| 2404 | rm -f conftest* |
---|
| 2405 | if test -n "$ac_declaration"; then |
---|
| 2406 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2407 | echo $ac_declaration >>confdefs.h |
---|
| 2408 | echo '#endif' >>confdefs.h |
---|
| 2409 | fi |
---|
| 2410 | |
---|
| 2411 | ac_ext=c |
---|
| 2412 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2416 | DEPDIR="${am__leading_dot}deps" |
---|
| 2417 | |
---|
| 2418 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2419 | |
---|
| 2420 | |
---|
| 2421 | am_make=${MAKE-make} |
---|
| 2422 | cat > confinc << 'END' |
---|
| 2423 | am__doit: |
---|
| 2424 | @echo done |
---|
| 2425 | .PHONY: am__doit |
---|
| 2426 | END |
---|
| 2427 | # If we don't find an include directive, just comment out the code. |
---|
| 2428 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2429 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2430 | am__include="#" |
---|
| 2431 | am__quote= |
---|
| 2432 | _am_result=none |
---|
| 2433 | # First try GNU make style include. |
---|
| 2434 | echo "include confinc" > confmf |
---|
| 2435 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2436 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2437 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2438 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2439 | # case it prints its new name instead of `make'. |
---|
| 2440 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2441 | am__include=include |
---|
| 2442 | am__quote= |
---|
| 2443 | _am_result=GNU |
---|
| 2444 | fi |
---|
| 2445 | # Now try BSD make style include. |
---|
| 2446 | if test "$am__include" = "#"; then |
---|
| 2447 | echo '.include "confinc"' > confmf |
---|
| 2448 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2449 | am__include=.include |
---|
| 2450 | am__quote="\"" |
---|
| 2451 | _am_result=BSD |
---|
| 2452 | fi |
---|
| 2453 | fi |
---|
| 2454 | |
---|
| 2455 | |
---|
| 2456 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2457 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2458 | rm -f confinc confmf |
---|
| 2459 | |
---|
| 2460 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2461 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2462 | enableval="$enable_dependency_tracking" |
---|
| 2463 | |
---|
| 2464 | fi; |
---|
| 2465 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2466 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2467 | AMDEPBACKSLASH='\' |
---|
| 2468 | fi |
---|
| 2469 | |
---|
| 2470 | |
---|
| 2471 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2472 | AMDEP_TRUE= |
---|
| 2473 | AMDEP_FALSE='#' |
---|
| 2474 | else |
---|
| 2475 | AMDEP_TRUE='#' |
---|
| 2476 | AMDEP_FALSE= |
---|
| 2477 | fi |
---|
| 2478 | |
---|
| 2479 | |
---|
| 2480 | |
---|
| 2481 | |
---|
| 2482 | depcc="$CXX" am_compiler_list= |
---|
| 2483 | |
---|
| 2484 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2485 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2486 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2488 | else |
---|
| 2489 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2490 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2491 | # making bogus files that we don't know about and never remove. For |
---|
| 2492 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2493 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2494 | # in D'. |
---|
| 2495 | mkdir conftest.dir |
---|
| 2496 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2497 | # using a relative directory. |
---|
| 2498 | cp "$am_depcomp" conftest.dir |
---|
| 2499 | cd conftest.dir |
---|
| 2500 | # We will build objects and dependencies in a subdirectory because |
---|
| 2501 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2502 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2503 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2504 | # the current directory while Tru64 will put them in the object |
---|
| 2505 | # directory. |
---|
| 2506 | mkdir sub |
---|
| 2507 | |
---|
| 2508 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2509 | if test "$am_compiler_list" = ""; then |
---|
| 2510 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2511 | fi |
---|
| 2512 | for depmode in $am_compiler_list; do |
---|
| 2513 | # Setup a source with many dependencies, because some compilers |
---|
| 2514 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2515 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2516 | # |
---|
| 2517 | # We need to recreate these files for each test, as the compiler may |
---|
| 2518 | # overwrite some of them when testing with obscure command lines. |
---|
| 2519 | # This happens at least with the AIX C compiler. |
---|
| 2520 | : > sub/conftest.c |
---|
| 2521 | for i in 1 2 3 4 5 6; do |
---|
| 2522 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[4054] | 2523 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2524 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2525 | touch sub/conftst$i.h |
---|
[1956] | 2526 | done |
---|
| 2527 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2528 | |
---|
| 2529 | case $depmode in |
---|
| 2530 | nosideeffect) |
---|
| 2531 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2532 | # only be used when explicitly requested |
---|
| 2533 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2534 | continue |
---|
| 2535 | else |
---|
| 2536 | break |
---|
| 2537 | fi |
---|
| 2538 | ;; |
---|
| 2539 | none) break ;; |
---|
| 2540 | esac |
---|
| 2541 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2542 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2543 | # handle `-M -o', and we need to detect this. |
---|
| 2544 | if depmode=$depmode \ |
---|
| 2545 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2546 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2547 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2548 | >/dev/null 2>conftest.err && |
---|
| 2549 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2550 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2551 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2552 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[4054] | 2553 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2554 | # that says an option was ignored or not supported. |
---|
| 2555 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2556 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2557 | # The diagnosis changed in icc 8.0: |
---|
| 2558 | # icc: Command line remark: option '-MP' not supported |
---|
| 2559 | if (grep 'ignoring option' conftest.err || |
---|
| 2560 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2561 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2562 | break |
---|
| 2563 | fi |
---|
| 2564 | fi |
---|
| 2565 | done |
---|
| 2566 | |
---|
| 2567 | cd .. |
---|
| 2568 | rm -rf conftest.dir |
---|
| 2569 | else |
---|
| 2570 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2571 | fi |
---|
| 2572 | |
---|
| 2573 | fi |
---|
| 2574 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2575 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2576 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2577 | |
---|
| 2578 | |
---|
| 2579 | |
---|
| 2580 | if |
---|
| 2581 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2582 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2583 | am__fastdepCXX_TRUE= |
---|
| 2584 | am__fastdepCXX_FALSE='#' |
---|
| 2585 | else |
---|
| 2586 | am__fastdepCXX_TRUE='#' |
---|
| 2587 | am__fastdepCXX_FALSE= |
---|
| 2588 | fi |
---|
| 2589 | |
---|
| 2590 | |
---|
[4054] | 2591 | if test -n "$ac_tool_prefix"; then |
---|
| 2592 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2593 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 2594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2596 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 2597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2598 | else |
---|
| 2599 | if test -n "$RANLIB"; then |
---|
| 2600 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2601 | else |
---|
| 2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2603 | for as_dir in $PATH |
---|
| 2604 | do |
---|
| 2605 | IFS=$as_save_IFS |
---|
| 2606 | test -z "$as_dir" && as_dir=. |
---|
| 2607 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2609 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2611 | break 2 |
---|
| 2612 | fi |
---|
| 2613 | done |
---|
| 2614 | done |
---|
| 2615 | |
---|
| 2616 | fi |
---|
| 2617 | fi |
---|
| 2618 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2619 | if test -n "$RANLIB"; then |
---|
| 2620 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2621 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 2622 | else |
---|
| 2623 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2624 | echo "${ECHO_T}no" >&6 |
---|
| 2625 | fi |
---|
| 2626 | |
---|
| 2627 | fi |
---|
| 2628 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2629 | ac_ct_RANLIB=$RANLIB |
---|
| 2630 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2631 | set dummy ranlib; ac_word=$2 |
---|
| 2632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2634 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2636 | else |
---|
| 2637 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2638 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2639 | else |
---|
| 2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2641 | for as_dir in $PATH |
---|
| 2642 | do |
---|
| 2643 | IFS=$as_save_IFS |
---|
| 2644 | test -z "$as_dir" && as_dir=. |
---|
| 2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2647 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2649 | break 2 |
---|
| 2650 | fi |
---|
| 2651 | done |
---|
| 2652 | done |
---|
| 2653 | |
---|
| 2654 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 2655 | fi |
---|
| 2656 | fi |
---|
| 2657 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2658 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2659 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 2660 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 2661 | else |
---|
| 2662 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2663 | echo "${ECHO_T}no" >&6 |
---|
| 2664 | fi |
---|
| 2665 | |
---|
| 2666 | RANLIB=$ac_ct_RANLIB |
---|
| 2667 | else |
---|
| 2668 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2669 | fi |
---|
| 2670 | |
---|
[1956] | 2671 | ac_ext=c |
---|
| 2672 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2676 | if test -n "$ac_tool_prefix"; then |
---|
| 2677 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2678 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2681 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2683 | else |
---|
| 2684 | if test -n "$CC"; then |
---|
| 2685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2686 | else |
---|
| 2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2688 | for as_dir in $PATH |
---|
| 2689 | do |
---|
| 2690 | IFS=$as_save_IFS |
---|
| 2691 | test -z "$as_dir" && as_dir=. |
---|
| 2692 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2694 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2696 | break 2 |
---|
| 2697 | fi |
---|
| 2698 | done |
---|
| 2699 | done |
---|
| 2700 | |
---|
| 2701 | fi |
---|
| 2702 | fi |
---|
| 2703 | CC=$ac_cv_prog_CC |
---|
| 2704 | if test -n "$CC"; then |
---|
| 2705 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2706 | echo "${ECHO_T}$CC" >&6 |
---|
| 2707 | else |
---|
| 2708 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2709 | echo "${ECHO_T}no" >&6 |
---|
| 2710 | fi |
---|
| 2711 | |
---|
| 2712 | fi |
---|
| 2713 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2714 | ac_ct_CC=$CC |
---|
| 2715 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2716 | set dummy gcc; ac_word=$2 |
---|
| 2717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2721 | else |
---|
| 2722 | if test -n "$ac_ct_CC"; then |
---|
| 2723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2724 | else |
---|
| 2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2726 | for as_dir in $PATH |
---|
| 2727 | do |
---|
| 2728 | IFS=$as_save_IFS |
---|
| 2729 | test -z "$as_dir" && as_dir=. |
---|
| 2730 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2732 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2734 | break 2 |
---|
| 2735 | fi |
---|
| 2736 | done |
---|
| 2737 | done |
---|
| 2738 | |
---|
| 2739 | fi |
---|
| 2740 | fi |
---|
| 2741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2742 | if test -n "$ac_ct_CC"; then |
---|
| 2743 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2744 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2745 | else |
---|
| 2746 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2747 | echo "${ECHO_T}no" >&6 |
---|
| 2748 | fi |
---|
| 2749 | |
---|
| 2750 | CC=$ac_ct_CC |
---|
| 2751 | else |
---|
| 2752 | CC="$ac_cv_prog_CC" |
---|
| 2753 | fi |
---|
| 2754 | |
---|
| 2755 | if test -z "$CC"; then |
---|
| 2756 | if test -n "$ac_tool_prefix"; then |
---|
| 2757 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2758 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2761 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2763 | else |
---|
| 2764 | if test -n "$CC"; then |
---|
| 2765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2766 | else |
---|
| 2767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2768 | for as_dir in $PATH |
---|
| 2769 | do |
---|
| 2770 | IFS=$as_save_IFS |
---|
| 2771 | test -z "$as_dir" && as_dir=. |
---|
| 2772 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2774 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2776 | break 2 |
---|
| 2777 | fi |
---|
| 2778 | done |
---|
| 2779 | done |
---|
| 2780 | |
---|
| 2781 | fi |
---|
| 2782 | fi |
---|
| 2783 | CC=$ac_cv_prog_CC |
---|
| 2784 | if test -n "$CC"; then |
---|
| 2785 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2786 | echo "${ECHO_T}$CC" >&6 |
---|
| 2787 | else |
---|
| 2788 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2789 | echo "${ECHO_T}no" >&6 |
---|
| 2790 | fi |
---|
| 2791 | |
---|
| 2792 | fi |
---|
| 2793 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2794 | ac_ct_CC=$CC |
---|
| 2795 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2796 | set dummy cc; ac_word=$2 |
---|
| 2797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2799 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2801 | else |
---|
| 2802 | if test -n "$ac_ct_CC"; then |
---|
| 2803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2804 | else |
---|
| 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2806 | for as_dir in $PATH |
---|
| 2807 | do |
---|
| 2808 | IFS=$as_save_IFS |
---|
| 2809 | test -z "$as_dir" && as_dir=. |
---|
| 2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2812 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2814 | break 2 |
---|
| 2815 | fi |
---|
| 2816 | done |
---|
| 2817 | done |
---|
| 2818 | |
---|
| 2819 | fi |
---|
| 2820 | fi |
---|
| 2821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2822 | if test -n "$ac_ct_CC"; then |
---|
| 2823 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2824 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2825 | else |
---|
| 2826 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2827 | echo "${ECHO_T}no" >&6 |
---|
| 2828 | fi |
---|
| 2829 | |
---|
| 2830 | CC=$ac_ct_CC |
---|
| 2831 | else |
---|
| 2832 | CC="$ac_cv_prog_CC" |
---|
| 2833 | fi |
---|
| 2834 | |
---|
| 2835 | fi |
---|
| 2836 | if test -z "$CC"; then |
---|
| 2837 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2838 | set dummy cc; ac_word=$2 |
---|
| 2839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2841 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2843 | else |
---|
| 2844 | if test -n "$CC"; then |
---|
| 2845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2846 | else |
---|
| 2847 | ac_prog_rejected=no |
---|
| 2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2849 | for as_dir in $PATH |
---|
| 2850 | do |
---|
| 2851 | IFS=$as_save_IFS |
---|
| 2852 | test -z "$as_dir" && as_dir=. |
---|
| 2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2856 | ac_prog_rejected=yes |
---|
| 2857 | continue |
---|
| 2858 | fi |
---|
| 2859 | ac_cv_prog_CC="cc" |
---|
| 2860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2861 | break 2 |
---|
| 2862 | fi |
---|
| 2863 | done |
---|
| 2864 | done |
---|
| 2865 | |
---|
| 2866 | if test $ac_prog_rejected = yes; then |
---|
| 2867 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2868 | set dummy $ac_cv_prog_CC |
---|
| 2869 | shift |
---|
| 2870 | if test $# != 0; then |
---|
| 2871 | # We chose a different compiler from the bogus one. |
---|
| 2872 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2873 | # first if we set CC to just the basename; use the full file name. |
---|
| 2874 | shift |
---|
| 2875 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2876 | fi |
---|
| 2877 | fi |
---|
| 2878 | fi |
---|
| 2879 | fi |
---|
| 2880 | CC=$ac_cv_prog_CC |
---|
| 2881 | if test -n "$CC"; then |
---|
| 2882 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2883 | echo "${ECHO_T}$CC" >&6 |
---|
| 2884 | else |
---|
| 2885 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2886 | echo "${ECHO_T}no" >&6 |
---|
| 2887 | fi |
---|
| 2888 | |
---|
| 2889 | fi |
---|
| 2890 | if test -z "$CC"; then |
---|
| 2891 | if test -n "$ac_tool_prefix"; then |
---|
| 2892 | for ac_prog in cl |
---|
| 2893 | do |
---|
| 2894 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2895 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2898 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2900 | else |
---|
| 2901 | if test -n "$CC"; then |
---|
| 2902 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2903 | else |
---|
| 2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2905 | for as_dir in $PATH |
---|
| 2906 | do |
---|
| 2907 | IFS=$as_save_IFS |
---|
| 2908 | test -z "$as_dir" && as_dir=. |
---|
| 2909 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2911 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2913 | break 2 |
---|
| 2914 | fi |
---|
| 2915 | done |
---|
| 2916 | done |
---|
| 2917 | |
---|
| 2918 | fi |
---|
| 2919 | fi |
---|
| 2920 | CC=$ac_cv_prog_CC |
---|
| 2921 | if test -n "$CC"; then |
---|
| 2922 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2923 | echo "${ECHO_T}$CC" >&6 |
---|
| 2924 | else |
---|
| 2925 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2926 | echo "${ECHO_T}no" >&6 |
---|
| 2927 | fi |
---|
| 2928 | |
---|
| 2929 | test -n "$CC" && break |
---|
| 2930 | done |
---|
| 2931 | fi |
---|
| 2932 | if test -z "$CC"; then |
---|
| 2933 | ac_ct_CC=$CC |
---|
| 2934 | for ac_prog in cl |
---|
| 2935 | do |
---|
| 2936 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2937 | set dummy $ac_prog; ac_word=$2 |
---|
| 2938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2940 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2942 | else |
---|
| 2943 | if test -n "$ac_ct_CC"; then |
---|
| 2944 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2945 | else |
---|
| 2946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2947 | for as_dir in $PATH |
---|
| 2948 | do |
---|
| 2949 | IFS=$as_save_IFS |
---|
| 2950 | test -z "$as_dir" && as_dir=. |
---|
| 2951 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2953 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2955 | break 2 |
---|
| 2956 | fi |
---|
| 2957 | done |
---|
| 2958 | done |
---|
| 2959 | |
---|
| 2960 | fi |
---|
| 2961 | fi |
---|
| 2962 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2963 | if test -n "$ac_ct_CC"; then |
---|
| 2964 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2965 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2966 | else |
---|
| 2967 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2968 | echo "${ECHO_T}no" >&6 |
---|
| 2969 | fi |
---|
| 2970 | |
---|
| 2971 | test -n "$ac_ct_CC" && break |
---|
| 2972 | done |
---|
| 2973 | |
---|
| 2974 | CC=$ac_ct_CC |
---|
| 2975 | fi |
---|
| 2976 | |
---|
| 2977 | fi |
---|
| 2978 | |
---|
| 2979 | |
---|
| 2980 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2981 | See \`config.log' for more details." >&5 |
---|
| 2982 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2983 | See \`config.log' for more details." >&2;} |
---|
| 2984 | { (exit 1); exit 1; }; } |
---|
| 2985 | |
---|
| 2986 | # Provide some information about the compiler. |
---|
| 2987 | echo "$as_me:$LINENO:" \ |
---|
| 2988 | "checking for C compiler version" >&5 |
---|
| 2989 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2990 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2991 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2992 | ac_status=$? |
---|
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2994 | (exit $ac_status); } |
---|
| 2995 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2996 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2997 | ac_status=$? |
---|
| 2998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2999 | (exit $ac_status); } |
---|
| 3000 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 3001 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 3002 | ac_status=$? |
---|
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3004 | (exit $ac_status); } |
---|
| 3005 | |
---|
| 3006 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 3007 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 3008 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3010 | else |
---|
| 3011 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3012 | /* confdefs.h. */ |
---|
| 3013 | _ACEOF |
---|
| 3014 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3016 | /* end confdefs.h. */ |
---|
| 3017 | |
---|
| 3018 | int |
---|
| 3019 | main () |
---|
| 3020 | { |
---|
| 3021 | #ifndef __GNUC__ |
---|
| 3022 | choke me |
---|
| 3023 | #endif |
---|
| 3024 | |
---|
| 3025 | ; |
---|
| 3026 | return 0; |
---|
| 3027 | } |
---|
| 3028 | _ACEOF |
---|
| 3029 | rm -f conftest.$ac_objext |
---|
| 3030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3031 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3032 | ac_status=$? |
---|
| 3033 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3034 | rm -f conftest.er1 |
---|
| 3035 | cat conftest.err >&5 |
---|
| 3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3037 | (exit $ac_status); } && |
---|
| 3038 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3039 | || test ! -s conftest.err' |
---|
| 3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3041 | (eval $ac_try) 2>&5 |
---|
| 3042 | ac_status=$? |
---|
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3044 | (exit $ac_status); }; } && |
---|
| 3045 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3047 | (eval $ac_try) 2>&5 |
---|
| 3048 | ac_status=$? |
---|
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3050 | (exit $ac_status); }; }; then |
---|
| 3051 | ac_compiler_gnu=yes |
---|
| 3052 | else |
---|
| 3053 | echo "$as_me: failed program was:" >&5 |
---|
| 3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3055 | |
---|
| 3056 | ac_compiler_gnu=no |
---|
| 3057 | fi |
---|
| 3058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3059 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 3060 | |
---|
| 3061 | fi |
---|
| 3062 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 3063 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 3064 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 3065 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 3066 | ac_save_CFLAGS=$CFLAGS |
---|
| 3067 | CFLAGS="-g" |
---|
| 3068 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 3069 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 3070 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3072 | else |
---|
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3074 | /* confdefs.h. */ |
---|
| 3075 | _ACEOF |
---|
| 3076 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3078 | /* end confdefs.h. */ |
---|
| 3079 | |
---|
| 3080 | int |
---|
| 3081 | main () |
---|
| 3082 | { |
---|
| 3083 | |
---|
| 3084 | ; |
---|
| 3085 | return 0; |
---|
| 3086 | } |
---|
| 3087 | _ACEOF |
---|
| 3088 | rm -f conftest.$ac_objext |
---|
| 3089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3090 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3091 | ac_status=$? |
---|
| 3092 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3093 | rm -f conftest.er1 |
---|
| 3094 | cat conftest.err >&5 |
---|
| 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3096 | (exit $ac_status); } && |
---|
| 3097 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3098 | || test ! -s conftest.err' |
---|
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3100 | (eval $ac_try) 2>&5 |
---|
| 3101 | ac_status=$? |
---|
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3103 | (exit $ac_status); }; } && |
---|
| 3104 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3106 | (eval $ac_try) 2>&5 |
---|
| 3107 | ac_status=$? |
---|
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3109 | (exit $ac_status); }; }; then |
---|
| 3110 | ac_cv_prog_cc_g=yes |
---|
| 3111 | else |
---|
| 3112 | echo "$as_me: failed program was:" >&5 |
---|
| 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3114 | |
---|
| 3115 | ac_cv_prog_cc_g=no |
---|
| 3116 | fi |
---|
| 3117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3118 | fi |
---|
| 3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3120 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3121 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3122 | CFLAGS=$ac_save_CFLAGS |
---|
| 3123 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3124 | if test "$GCC" = yes; then |
---|
| 3125 | CFLAGS="-g -O2" |
---|
| 3126 | else |
---|
| 3127 | CFLAGS="-g" |
---|
| 3128 | fi |
---|
| 3129 | else |
---|
| 3130 | if test "$GCC" = yes; then |
---|
| 3131 | CFLAGS="-O2" |
---|
| 3132 | else |
---|
| 3133 | CFLAGS= |
---|
| 3134 | fi |
---|
| 3135 | fi |
---|
| 3136 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3137 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3138 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3140 | else |
---|
| 3141 | ac_cv_prog_cc_stdc=no |
---|
| 3142 | ac_save_CC=$CC |
---|
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3144 | /* confdefs.h. */ |
---|
| 3145 | _ACEOF |
---|
| 3146 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3147 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3148 | /* end confdefs.h. */ |
---|
| 3149 | #include <stdarg.h> |
---|
| 3150 | #include <stdio.h> |
---|
| 3151 | #include <sys/types.h> |
---|
| 3152 | #include <sys/stat.h> |
---|
| 3153 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3154 | struct buf { int x; }; |
---|
| 3155 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3156 | static char *e (p, i) |
---|
| 3157 | char **p; |
---|
| 3158 | int i; |
---|
| 3159 | { |
---|
| 3160 | return p[i]; |
---|
| 3161 | } |
---|
| 3162 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3163 | { |
---|
| 3164 | char *s; |
---|
| 3165 | va_list v; |
---|
| 3166 | va_start (v,p); |
---|
| 3167 | s = g (p, va_arg (v,int)); |
---|
| 3168 | va_end (v); |
---|
| 3169 | return s; |
---|
| 3170 | } |
---|
| 3171 | |
---|
| 3172 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3173 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3174 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3175 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3176 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3177 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3178 | that's true only with -std1. */ |
---|
| 3179 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3180 | |
---|
| 3181 | int test (int i, double x); |
---|
| 3182 | struct s1 {int (*f) (int a);}; |
---|
| 3183 | struct s2 {int (*f) (double a);}; |
---|
| 3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3185 | int argc; |
---|
| 3186 | char **argv; |
---|
| 3187 | int |
---|
| 3188 | main () |
---|
| 3189 | { |
---|
| 3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3191 | ; |
---|
| 3192 | return 0; |
---|
| 3193 | } |
---|
| 3194 | _ACEOF |
---|
| 3195 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3196 | # breaks some systems' header files. |
---|
| 3197 | # AIX -qlanglvl=ansi |
---|
| 3198 | # Ultrix and OSF/1 -std1 |
---|
| 3199 | # HP-UX 10.20 and later -Ae |
---|
| 3200 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3201 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3202 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3203 | do |
---|
| 3204 | CC="$ac_save_CC $ac_arg" |
---|
| 3205 | rm -f conftest.$ac_objext |
---|
| 3206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3207 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3208 | ac_status=$? |
---|
| 3209 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3210 | rm -f conftest.er1 |
---|
| 3211 | cat conftest.err >&5 |
---|
| 3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3213 | (exit $ac_status); } && |
---|
| 3214 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3215 | || test ! -s conftest.err' |
---|
| 3216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3217 | (eval $ac_try) 2>&5 |
---|
| 3218 | ac_status=$? |
---|
| 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3220 | (exit $ac_status); }; } && |
---|
| 3221 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3223 | (eval $ac_try) 2>&5 |
---|
| 3224 | ac_status=$? |
---|
| 3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3226 | (exit $ac_status); }; }; then |
---|
| 3227 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3228 | break |
---|
| 3229 | else |
---|
| 3230 | echo "$as_me: failed program was:" >&5 |
---|
| 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3232 | |
---|
| 3233 | fi |
---|
| 3234 | rm -f conftest.err conftest.$ac_objext |
---|
| 3235 | done |
---|
| 3236 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3237 | CC=$ac_save_CC |
---|
| 3238 | |
---|
| 3239 | fi |
---|
| 3240 | |
---|
| 3241 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3242 | x|xno) |
---|
| 3243 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3244 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3245 | *) |
---|
| 3246 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3247 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3248 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3249 | esac |
---|
| 3250 | |
---|
| 3251 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3252 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3253 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3254 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3255 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3256 | #ifndef __cplusplus |
---|
| 3257 | choke me |
---|
| 3258 | #endif |
---|
| 3259 | _ACEOF |
---|
| 3260 | rm -f conftest.$ac_objext |
---|
| 3261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3262 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3263 | ac_status=$? |
---|
| 3264 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3265 | rm -f conftest.er1 |
---|
| 3266 | cat conftest.err >&5 |
---|
| 3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3268 | (exit $ac_status); } && |
---|
| 3269 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3270 | || test ! -s conftest.err' |
---|
| 3271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3272 | (eval $ac_try) 2>&5 |
---|
| 3273 | ac_status=$? |
---|
| 3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3275 | (exit $ac_status); }; } && |
---|
| 3276 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3278 | (eval $ac_try) 2>&5 |
---|
| 3279 | ac_status=$? |
---|
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3281 | (exit $ac_status); }; }; then |
---|
| 3282 | for ac_declaration in \ |
---|
| 3283 | '' \ |
---|
| 3284 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3285 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3286 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3287 | 'extern "C" void exit (int);' \ |
---|
| 3288 | 'void exit (int);' |
---|
| 3289 | do |
---|
| 3290 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3291 | /* confdefs.h. */ |
---|
| 3292 | _ACEOF |
---|
| 3293 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3295 | /* end confdefs.h. */ |
---|
| 3296 | $ac_declaration |
---|
| 3297 | #include <stdlib.h> |
---|
| 3298 | int |
---|
| 3299 | main () |
---|
| 3300 | { |
---|
| 3301 | exit (42); |
---|
| 3302 | ; |
---|
| 3303 | return 0; |
---|
| 3304 | } |
---|
| 3305 | _ACEOF |
---|
| 3306 | rm -f conftest.$ac_objext |
---|
| 3307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3308 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3309 | ac_status=$? |
---|
| 3310 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3311 | rm -f conftest.er1 |
---|
| 3312 | cat conftest.err >&5 |
---|
| 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3314 | (exit $ac_status); } && |
---|
| 3315 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3316 | || test ! -s conftest.err' |
---|
| 3317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3318 | (eval $ac_try) 2>&5 |
---|
| 3319 | ac_status=$? |
---|
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3321 | (exit $ac_status); }; } && |
---|
| 3322 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3324 | (eval $ac_try) 2>&5 |
---|
| 3325 | ac_status=$? |
---|
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3327 | (exit $ac_status); }; }; then |
---|
| 3328 | : |
---|
| 3329 | else |
---|
| 3330 | echo "$as_me: failed program was:" >&5 |
---|
| 3331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3332 | |
---|
| 3333 | continue |
---|
| 3334 | fi |
---|
| 3335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3336 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3337 | /* confdefs.h. */ |
---|
| 3338 | _ACEOF |
---|
| 3339 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3340 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3341 | /* end confdefs.h. */ |
---|
| 3342 | $ac_declaration |
---|
| 3343 | int |
---|
| 3344 | main () |
---|
| 3345 | { |
---|
| 3346 | exit (42); |
---|
| 3347 | ; |
---|
| 3348 | return 0; |
---|
| 3349 | } |
---|
| 3350 | _ACEOF |
---|
| 3351 | rm -f conftest.$ac_objext |
---|
| 3352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3353 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3354 | ac_status=$? |
---|
| 3355 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3356 | rm -f conftest.er1 |
---|
| 3357 | cat conftest.err >&5 |
---|
| 3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3359 | (exit $ac_status); } && |
---|
| 3360 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3361 | || test ! -s conftest.err' |
---|
| 3362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3363 | (eval $ac_try) 2>&5 |
---|
| 3364 | ac_status=$? |
---|
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3366 | (exit $ac_status); }; } && |
---|
| 3367 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3369 | (eval $ac_try) 2>&5 |
---|
| 3370 | ac_status=$? |
---|
| 3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3372 | (exit $ac_status); }; }; then |
---|
| 3373 | break |
---|
| 3374 | else |
---|
| 3375 | echo "$as_me: failed program was:" >&5 |
---|
| 3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3377 | |
---|
| 3378 | fi |
---|
| 3379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3380 | done |
---|
| 3381 | rm -f conftest* |
---|
| 3382 | if test -n "$ac_declaration"; then |
---|
| 3383 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3384 | echo $ac_declaration >>confdefs.h |
---|
| 3385 | echo '#endif' >>confdefs.h |
---|
| 3386 | fi |
---|
| 3387 | |
---|
| 3388 | else |
---|
| 3389 | echo "$as_me: failed program was:" >&5 |
---|
| 3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3391 | |
---|
| 3392 | fi |
---|
| 3393 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3394 | ac_ext=c |
---|
| 3395 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3399 | |
---|
| 3400 | depcc="$CC" am_compiler_list= |
---|
| 3401 | |
---|
| 3402 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3403 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3404 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3406 | else |
---|
| 3407 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3408 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3409 | # making bogus files that we don't know about and never remove. For |
---|
| 3410 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3411 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3412 | # in D'. |
---|
| 3413 | mkdir conftest.dir |
---|
| 3414 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3415 | # using a relative directory. |
---|
| 3416 | cp "$am_depcomp" conftest.dir |
---|
| 3417 | cd conftest.dir |
---|
| 3418 | # We will build objects and dependencies in a subdirectory because |
---|
| 3419 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3420 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3421 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3422 | # the current directory while Tru64 will put them in the object |
---|
| 3423 | # directory. |
---|
| 3424 | mkdir sub |
---|
| 3425 | |
---|
| 3426 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3427 | if test "$am_compiler_list" = ""; then |
---|
| 3428 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3429 | fi |
---|
| 3430 | for depmode in $am_compiler_list; do |
---|
| 3431 | # Setup a source with many dependencies, because some compilers |
---|
| 3432 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3433 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3434 | # |
---|
| 3435 | # We need to recreate these files for each test, as the compiler may |
---|
| 3436 | # overwrite some of them when testing with obscure command lines. |
---|
| 3437 | # This happens at least with the AIX C compiler. |
---|
| 3438 | : > sub/conftest.c |
---|
| 3439 | for i in 1 2 3 4 5 6; do |
---|
| 3440 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[4054] | 3441 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3442 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3443 | touch sub/conftst$i.h |
---|
[1956] | 3444 | done |
---|
| 3445 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3446 | |
---|
| 3447 | case $depmode in |
---|
| 3448 | nosideeffect) |
---|
| 3449 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3450 | # only be used when explicitly requested |
---|
| 3451 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3452 | continue |
---|
| 3453 | else |
---|
| 3454 | break |
---|
| 3455 | fi |
---|
| 3456 | ;; |
---|
| 3457 | none) break ;; |
---|
| 3458 | esac |
---|
| 3459 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3460 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3461 | # handle `-M -o', and we need to detect this. |
---|
| 3462 | if depmode=$depmode \ |
---|
| 3463 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3464 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3465 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3466 | >/dev/null 2>conftest.err && |
---|
| 3467 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3468 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3469 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3470 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[4054] | 3471 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3472 | # that says an option was ignored or not supported. |
---|
| 3473 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3474 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3475 | # The diagnosis changed in icc 8.0: |
---|
| 3476 | # icc: Command line remark: option '-MP' not supported |
---|
| 3477 | if (grep 'ignoring option' conftest.err || |
---|
| 3478 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3479 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3480 | break |
---|
| 3481 | fi |
---|
| 3482 | fi |
---|
| 3483 | done |
---|
| 3484 | |
---|
| 3485 | cd .. |
---|
| 3486 | rm -rf conftest.dir |
---|
| 3487 | else |
---|
| 3488 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3489 | fi |
---|
| 3490 | |
---|
| 3491 | fi |
---|
| 3492 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3493 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3494 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3495 | |
---|
| 3496 | |
---|
| 3497 | |
---|
| 3498 | if |
---|
| 3499 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3500 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3501 | am__fastdepCC_TRUE= |
---|
| 3502 | am__fastdepCC_FALSE='#' |
---|
| 3503 | else |
---|
| 3504 | am__fastdepCC_TRUE='#' |
---|
| 3505 | am__fastdepCC_FALSE= |
---|
| 3506 | fi |
---|
| 3507 | |
---|
| 3508 | |
---|
| 3509 | |
---|
[1971] | 3510 | ac_ext=c |
---|
| 3511 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3515 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3516 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3517 | # On Suns, sometimes $CPP names a directory. |
---|
| 3518 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3519 | CPP= |
---|
| 3520 | fi |
---|
| 3521 | if test -z "$CPP"; then |
---|
| 3522 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3524 | else |
---|
[1971] | 3525 | # Double quotes because CPP needs to be expanded |
---|
| 3526 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3527 | do |
---|
| 3528 | ac_preproc_ok=false |
---|
| 3529 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3530 | do |
---|
| 3531 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3532 | # with a fresh cross-compiler works. |
---|
| 3533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3534 | # <limits.h> exists even on freestanding compilers. |
---|
| 3535 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3536 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3537 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3538 | /* confdefs.h. */ |
---|
| 3539 | _ACEOF |
---|
| 3540 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3541 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3542 | /* end confdefs.h. */ |
---|
| 3543 | #ifdef __STDC__ |
---|
| 3544 | # include <limits.h> |
---|
| 3545 | #else |
---|
| 3546 | # include <assert.h> |
---|
| 3547 | #endif |
---|
| 3548 | Syntax error |
---|
| 3549 | _ACEOF |
---|
| 3550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3552 | ac_status=$? |
---|
| 3553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3554 | rm -f conftest.er1 |
---|
| 3555 | cat conftest.err >&5 |
---|
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3557 | (exit $ac_status); } >/dev/null; then |
---|
| 3558 | if test -s conftest.err; then |
---|
| 3559 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3561 | else |
---|
| 3562 | ac_cpp_err= |
---|
| 3563 | fi |
---|
| 3564 | else |
---|
| 3565 | ac_cpp_err=yes |
---|
| 3566 | fi |
---|
| 3567 | if test -z "$ac_cpp_err"; then |
---|
| 3568 | : |
---|
| 3569 | else |
---|
| 3570 | echo "$as_me: failed program was:" >&5 |
---|
| 3571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3572 | |
---|
| 3573 | # Broken: fails on valid input. |
---|
| 3574 | continue |
---|
| 3575 | fi |
---|
| 3576 | rm -f conftest.err conftest.$ac_ext |
---|
| 3577 | |
---|
| 3578 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3579 | # can be detected and how. |
---|
| 3580 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3581 | /* confdefs.h. */ |
---|
| 3582 | _ACEOF |
---|
| 3583 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3585 | /* end confdefs.h. */ |
---|
| 3586 | #include <ac_nonexistent.h> |
---|
| 3587 | _ACEOF |
---|
| 3588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3590 | ac_status=$? |
---|
| 3591 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3592 | rm -f conftest.er1 |
---|
| 3593 | cat conftest.err >&5 |
---|
| 3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3595 | (exit $ac_status); } >/dev/null; then |
---|
| 3596 | if test -s conftest.err; then |
---|
| 3597 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3599 | else |
---|
| 3600 | ac_cpp_err= |
---|
| 3601 | fi |
---|
| 3602 | else |
---|
| 3603 | ac_cpp_err=yes |
---|
| 3604 | fi |
---|
| 3605 | if test -z "$ac_cpp_err"; then |
---|
| 3606 | # Broken: success on invalid input. |
---|
| 3607 | continue |
---|
| 3608 | else |
---|
| 3609 | echo "$as_me: failed program was:" >&5 |
---|
| 3610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3611 | |
---|
| 3612 | # Passes both tests. |
---|
| 3613 | ac_preproc_ok=: |
---|
| 3614 | break |
---|
| 3615 | fi |
---|
| 3616 | rm -f conftest.err conftest.$ac_ext |
---|
| 3617 | |
---|
| 3618 | done |
---|
| 3619 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3620 | rm -f conftest.err conftest.$ac_ext |
---|
| 3621 | if $ac_preproc_ok; then |
---|
| 3622 | break |
---|
| 3623 | fi |
---|
| 3624 | |
---|
| 3625 | done |
---|
| 3626 | ac_cv_prog_CPP=$CPP |
---|
| 3627 | |
---|
| 3628 | fi |
---|
| 3629 | CPP=$ac_cv_prog_CPP |
---|
| 3630 | else |
---|
| 3631 | ac_cv_prog_CPP=$CPP |
---|
| 3632 | fi |
---|
| 3633 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3634 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3635 | ac_preproc_ok=false |
---|
| 3636 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3637 | do |
---|
| 3638 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3639 | # with a fresh cross-compiler works. |
---|
| 3640 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3641 | # <limits.h> exists even on freestanding compilers. |
---|
| 3642 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3643 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3644 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3645 | /* confdefs.h. */ |
---|
| 3646 | _ACEOF |
---|
| 3647 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3648 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3649 | /* end confdefs.h. */ |
---|
| 3650 | #ifdef __STDC__ |
---|
| 3651 | # include <limits.h> |
---|
| 3652 | #else |
---|
| 3653 | # include <assert.h> |
---|
| 3654 | #endif |
---|
| 3655 | Syntax error |
---|
| 3656 | _ACEOF |
---|
| 3657 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3658 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3659 | ac_status=$? |
---|
| 3660 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3661 | rm -f conftest.er1 |
---|
| 3662 | cat conftest.err >&5 |
---|
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3664 | (exit $ac_status); } >/dev/null; then |
---|
| 3665 | if test -s conftest.err; then |
---|
| 3666 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3667 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3668 | else |
---|
| 3669 | ac_cpp_err= |
---|
| 3670 | fi |
---|
| 3671 | else |
---|
| 3672 | ac_cpp_err=yes |
---|
| 3673 | fi |
---|
| 3674 | if test -z "$ac_cpp_err"; then |
---|
| 3675 | : |
---|
| 3676 | else |
---|
| 3677 | echo "$as_me: failed program was:" >&5 |
---|
| 3678 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3679 | |
---|
| 3680 | # Broken: fails on valid input. |
---|
| 3681 | continue |
---|
| 3682 | fi |
---|
| 3683 | rm -f conftest.err conftest.$ac_ext |
---|
| 3684 | |
---|
| 3685 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3686 | # can be detected and how. |
---|
| 3687 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3688 | /* confdefs.h. */ |
---|
| 3689 | _ACEOF |
---|
| 3690 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3691 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3692 | /* end confdefs.h. */ |
---|
| 3693 | #include <ac_nonexistent.h> |
---|
| 3694 | _ACEOF |
---|
| 3695 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3697 | ac_status=$? |
---|
| 3698 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3699 | rm -f conftest.er1 |
---|
| 3700 | cat conftest.err >&5 |
---|
| 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3702 | (exit $ac_status); } >/dev/null; then |
---|
| 3703 | if test -s conftest.err; then |
---|
| 3704 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3705 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3706 | else |
---|
| 3707 | ac_cpp_err= |
---|
| 3708 | fi |
---|
| 3709 | else |
---|
| 3710 | ac_cpp_err=yes |
---|
| 3711 | fi |
---|
| 3712 | if test -z "$ac_cpp_err"; then |
---|
| 3713 | # Broken: success on invalid input. |
---|
| 3714 | continue |
---|
| 3715 | else |
---|
| 3716 | echo "$as_me: failed program was:" >&5 |
---|
| 3717 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3718 | |
---|
| 3719 | # Passes both tests. |
---|
| 3720 | ac_preproc_ok=: |
---|
| 3721 | break |
---|
| 3722 | fi |
---|
| 3723 | rm -f conftest.err conftest.$ac_ext |
---|
| 3724 | |
---|
| 3725 | done |
---|
| 3726 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3727 | rm -f conftest.err conftest.$ac_ext |
---|
| 3728 | if $ac_preproc_ok; then |
---|
| 3729 | : |
---|
| 3730 | else |
---|
| 3731 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3732 | See \`config.log' for more details." >&5 |
---|
| 3733 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3734 | See \`config.log' for more details." >&2;} |
---|
| 3735 | { (exit 1); exit 1; }; } |
---|
| 3736 | fi |
---|
| 3737 | |
---|
| 3738 | ac_ext=c |
---|
| 3739 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3743 | |
---|
| 3744 | |
---|
| 3745 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3746 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3747 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3749 | else |
---|
| 3750 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3751 | then ac_cv_prog_egrep='grep -E' |
---|
| 3752 | else ac_cv_prog_egrep='egrep' |
---|
| 3753 | fi |
---|
| 3754 | fi |
---|
| 3755 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3756 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3757 | EGREP=$ac_cv_prog_egrep |
---|
| 3758 | |
---|
| 3759 | |
---|
| 3760 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3761 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3762 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3764 | else |
---|
| 3765 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3766 | /* confdefs.h. */ |
---|
| 3767 | _ACEOF |
---|
| 3768 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3770 | /* end confdefs.h. */ |
---|
| 3771 | #include <stdlib.h> |
---|
| 3772 | #include <stdarg.h> |
---|
| 3773 | #include <string.h> |
---|
| 3774 | #include <float.h> |
---|
| 3775 | |
---|
| 3776 | int |
---|
| 3777 | main () |
---|
| 3778 | { |
---|
| 3779 | |
---|
| 3780 | ; |
---|
| 3781 | return 0; |
---|
| 3782 | } |
---|
| 3783 | _ACEOF |
---|
| 3784 | rm -f conftest.$ac_objext |
---|
| 3785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3786 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3787 | ac_status=$? |
---|
| 3788 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3789 | rm -f conftest.er1 |
---|
| 3790 | cat conftest.err >&5 |
---|
| 3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3792 | (exit $ac_status); } && |
---|
| 3793 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3794 | || test ! -s conftest.err' |
---|
| 3795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3796 | (eval $ac_try) 2>&5 |
---|
| 3797 | ac_status=$? |
---|
| 3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3799 | (exit $ac_status); }; } && |
---|
| 3800 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3802 | (eval $ac_try) 2>&5 |
---|
| 3803 | ac_status=$? |
---|
| 3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3805 | (exit $ac_status); }; }; then |
---|
| 3806 | ac_cv_header_stdc=yes |
---|
| 3807 | else |
---|
| 3808 | echo "$as_me: failed program was:" >&5 |
---|
| 3809 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3810 | |
---|
| 3811 | ac_cv_header_stdc=no |
---|
| 3812 | fi |
---|
| 3813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3814 | |
---|
| 3815 | if test $ac_cv_header_stdc = yes; then |
---|
| 3816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3817 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3818 | /* confdefs.h. */ |
---|
| 3819 | _ACEOF |
---|
| 3820 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3821 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3822 | /* end confdefs.h. */ |
---|
| 3823 | #include <string.h> |
---|
| 3824 | |
---|
| 3825 | _ACEOF |
---|
| 3826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3827 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3828 | : |
---|
| 3829 | else |
---|
| 3830 | ac_cv_header_stdc=no |
---|
| 3831 | fi |
---|
| 3832 | rm -f conftest* |
---|
| 3833 | |
---|
| 3834 | fi |
---|
| 3835 | |
---|
| 3836 | if test $ac_cv_header_stdc = yes; then |
---|
| 3837 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3838 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3839 | /* confdefs.h. */ |
---|
| 3840 | _ACEOF |
---|
| 3841 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3842 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3843 | /* end confdefs.h. */ |
---|
| 3844 | #include <stdlib.h> |
---|
| 3845 | |
---|
| 3846 | _ACEOF |
---|
| 3847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3848 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3849 | : |
---|
| 3850 | else |
---|
| 3851 | ac_cv_header_stdc=no |
---|
| 3852 | fi |
---|
| 3853 | rm -f conftest* |
---|
| 3854 | |
---|
| 3855 | fi |
---|
| 3856 | |
---|
| 3857 | if test $ac_cv_header_stdc = yes; then |
---|
| 3858 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3859 | if test "$cross_compiling" = yes; then |
---|
| 3860 | : |
---|
| 3861 | else |
---|
| 3862 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3863 | /* confdefs.h. */ |
---|
| 3864 | _ACEOF |
---|
| 3865 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3867 | /* end confdefs.h. */ |
---|
| 3868 | #include <ctype.h> |
---|
| 3869 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3870 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3871 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3872 | #else |
---|
| 3873 | # define ISLOWER(c) \ |
---|
| 3874 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3875 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3876 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3877 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3878 | #endif |
---|
| 3879 | |
---|
| 3880 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3881 | int |
---|
| 3882 | main () |
---|
| 3883 | { |
---|
| 3884 | int i; |
---|
| 3885 | for (i = 0; i < 256; i++) |
---|
| 3886 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3887 | || toupper (i) != TOUPPER (i)) |
---|
| 3888 | exit(2); |
---|
| 3889 | exit (0); |
---|
| 3890 | } |
---|
| 3891 | _ACEOF |
---|
| 3892 | rm -f conftest$ac_exeext |
---|
| 3893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3894 | (eval $ac_link) 2>&5 |
---|
| 3895 | ac_status=$? |
---|
| 3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3899 | (eval $ac_try) 2>&5 |
---|
| 3900 | ac_status=$? |
---|
| 3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3902 | (exit $ac_status); }; }; then |
---|
| 3903 | : |
---|
| 3904 | else |
---|
| 3905 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3906 | echo "$as_me: failed program was:" >&5 |
---|
| 3907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3908 | |
---|
| 3909 | ( exit $ac_status ) |
---|
| 3910 | ac_cv_header_stdc=no |
---|
| 3911 | fi |
---|
| 3912 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3913 | fi |
---|
| 3914 | fi |
---|
| 3915 | fi |
---|
| 3916 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3917 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3918 | if test $ac_cv_header_stdc = yes; then |
---|
| 3919 | |
---|
| 3920 | cat >>confdefs.h <<\_ACEOF |
---|
| 3921 | #define STDC_HEADERS 1 |
---|
| 3922 | _ACEOF |
---|
| 3923 | |
---|
| 3924 | fi |
---|
| 3925 | |
---|
| 3926 | |
---|
[3424] | 3927 | ################################## |
---|
| 3928 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3929 | ################################## |
---|
| 3930 | |
---|
| 3931 | #-----------------# |
---|
| 3932 | # DEBUG-statement # |
---|
| 3933 | #-----------------# |
---|
[3173] | 3934 | DEBUG=no |
---|
| 3935 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3936 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3937 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3938 | if test "${enable_debug+set}" = set; then |
---|
| 3939 | enableval="$enable_debug" |
---|
[3205] | 3940 | DEBUG=$enableval |
---|
[3173] | 3941 | fi; |
---|
| 3942 | |
---|
[3424] | 3943 | if test x$DEBUG = xno; then |
---|
[3205] | 3944 | echo "no" |
---|
[3592] | 3945 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
| 3946 | DEBUG=4 |
---|
[3424] | 3947 | elif test x$DEBUG = xyes; then |
---|
[3205] | 3948 | echo "yes" |
---|
[3424] | 3949 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3950 | DEBUG=4 |
---|
[3205] | 3951 | else |
---|
[3424] | 3952 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3953 | fi |
---|
| 3954 | |
---|
[3173] | 3955 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3956 | #define DEBUG $DEBUG |
---|
[3173] | 3957 | _ACEOF |
---|
| 3958 | |
---|
| 3959 | |
---|
| 3960 | |
---|
| 3961 | |
---|
[3592] | 3962 | #---------------# |
---|
| 3963 | # Modular Debug # |
---|
| 3964 | #---------------# |
---|
| 3965 | MODULAR_DEBUG=yes |
---|
| 3966 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
| 3967 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
| 3968 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
| 3969 | if test "${enable_modular_debug+set}" = set; then |
---|
| 3970 | enableval="$enable_modular_debug" |
---|
| 3971 | MODULAR_DEBUG=$enableval |
---|
| 3972 | fi; |
---|
| 3973 | |
---|
| 3974 | if test x$MODULAR_DEBUG = xno; then |
---|
| 3975 | echo "no" |
---|
| 3976 | elif test x$MODULAR_DEBUG = xyes; then |
---|
| 3977 | echo "yes" |
---|
| 3978 | |
---|
| 3979 | cat >>confdefs.h <<_ACEOF |
---|
| 3980 | #define MODULAR_DEBUG 1 |
---|
| 3981 | _ACEOF |
---|
| 3982 | |
---|
| 3983 | fi |
---|
| 3984 | |
---|
[3424] | 3985 | #--------------# |
---|
| 3986 | # GTK-disabled # |
---|
| 3987 | #--------------# |
---|
[3100] | 3988 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3989 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3990 | |
---|
| 3991 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3992 | if test "${with_gtk+set}" = set; then |
---|
| 3993 | withval="$with_gtk" |
---|
[3100] | 3994 | def_gtk=no |
---|
[3205] | 3995 | else |
---|
| 3996 | def_gtk=yes |
---|
[3100] | 3997 | fi; |
---|
[3424] | 3998 | if test x$def_gtk = xyes; then |
---|
[3100] | 3999 | echo "yes" |
---|
| 4000 | fi |
---|
[3424] | 4001 | if test x$def_gtk = xno; then |
---|
[3100] | 4002 | echo "no" |
---|
| 4003 | fi |
---|
[3423] | 4004 | |
---|
[3424] | 4005 | #------------------# |
---|
| 4006 | # libCurl-disabled # |
---|
| 4007 | #------------------# |
---|
[3423] | 4008 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 4009 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 4010 | |
---|
| 4011 | # Check whether --with-curl or --without-curl was given. |
---|
| 4012 | if test "${with_curl+set}" = set; then |
---|
| 4013 | withval="$with_curl" |
---|
| 4014 | def_curl=no |
---|
| 4015 | else |
---|
| 4016 | def_curl=yes |
---|
| 4017 | fi; |
---|
[3424] | 4018 | if test x$def_curl = xyes; then |
---|
[3423] | 4019 | echo "yes" |
---|
| 4020 | fi |
---|
[3424] | 4021 | if test x$def_curl = xno; then |
---|
[3423] | 4022 | echo "no" |
---|
| 4023 | fi |
---|
| 4024 | |
---|
[3424] | 4025 | #-------------------# |
---|
| 4026 | # SubProject-enable # |
---|
| 4027 | #-------------------# |
---|
| 4028 | def_sub_projects=no |
---|
[3377] | 4029 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 4030 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 4031 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 4032 | if test "${enable_sub_projects+set}" = set; then |
---|
| 4033 | enableval="$enable_sub_projects" |
---|
| 4034 | def_sub_projects=yes |
---|
| 4035 | fi; |
---|
[3424] | 4036 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 4037 | echo "yes" |
---|
| 4038 | fi |
---|
[3424] | 4039 | if test x$def_sub_projects = xno; then |
---|
[3377] | 4040 | echo "no" |
---|
| 4041 | fi |
---|
| 4042 | |
---|
| 4043 | |
---|
| 4044 | if test x$def_sub_projects = xyes; then |
---|
| 4045 | SUB_PROJECTS_TRUE= |
---|
| 4046 | SUB_PROJECTS_FALSE='#' |
---|
| 4047 | else |
---|
| 4048 | SUB_PROJECTS_TRUE='#' |
---|
| 4049 | SUB_PROJECTS_FALSE= |
---|
| 4050 | fi |
---|
| 4051 | |
---|
| 4052 | |
---|
[3788] | 4053 | #-------------------# |
---|
| 4054 | # Profiling Enabled # |
---|
| 4055 | #-------------------# |
---|
| 4056 | def_profiling=no |
---|
| 4057 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
| 4058 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
| 4059 | # Check whether --enable-profile or --disable-profile was given. |
---|
| 4060 | if test "${enable_profile+set}" = set; then |
---|
| 4061 | enableval="$enable_profile" |
---|
| 4062 | def_profiling=yes |
---|
| 4063 | fi; |
---|
| 4064 | if test x$def_profiling = xyes; then |
---|
| 4065 | echo "yes" |
---|
| 4066 | CXXFLAGS="$CXXFLAGS -pg" |
---|
| 4067 | fi |
---|
| 4068 | if test x$def_profiling = xno; then |
---|
| 4069 | echo "no" |
---|
| 4070 | fi |
---|
| 4071 | |
---|
[3863] | 4072 | #----------------# |
---|
| 4073 | # efence Enabled # |
---|
| 4074 | #----------------# |
---|
| 4075 | def_efence=no |
---|
| 4076 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
| 4077 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
| 4078 | # Check whether --enable-efence or --disable-efence was given. |
---|
| 4079 | if test "${enable_efence+set}" = set; then |
---|
| 4080 | enableval="$enable_efence" |
---|
| 4081 | def_efence=yes |
---|
| 4082 | fi; |
---|
| 4083 | if test x$def_efence = xyes; then |
---|
| 4084 | echo "yes" |
---|
| 4085 | fi |
---|
| 4086 | if test x$def_efence = xno; then |
---|
| 4087 | echo "no" |
---|
| 4088 | fi |
---|
| 4089 | |
---|
[3558] | 4090 | #----------------------# |
---|
| 4091 | # Documentation-enable # |
---|
| 4092 | #----------------------# |
---|
| 4093 | def_documentation=no |
---|
| 4094 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
| 4095 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
| 4096 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
| 4097 | if test "${enable_documentation+set}" = set; then |
---|
| 4098 | enableval="$enable_documentation" |
---|
| 4099 | def_documentation=yes |
---|
| 4100 | fi; |
---|
| 4101 | if test x$def_documentation = xyes; then |
---|
| 4102 | echo "yes" |
---|
| 4103 | fi |
---|
| 4104 | if test x$def_documentation = xno; then |
---|
| 4105 | echo "no" |
---|
| 4106 | fi |
---|
| 4107 | |
---|
| 4108 | |
---|
| 4109 | if test x$def_documentation = xyes; then |
---|
| 4110 | DOCUMENTATION_TRUE= |
---|
| 4111 | DOCUMENTATION_FALSE='#' |
---|
| 4112 | else |
---|
| 4113 | DOCUMENTATION_TRUE='#' |
---|
| 4114 | DOCUMENTATION_FALSE= |
---|
| 4115 | fi |
---|
| 4116 | |
---|
[3424] | 4117 | ####################### |
---|
| 4118 | ## PROGRAMM CHECKING ## |
---|
| 4119 | ## 3. party Programs ## |
---|
| 4120 | ####################### |
---|
| 4121 | |
---|
| 4122 | #----------------------# |
---|
| 4123 | # checking for Doxygen # |
---|
| 4124 | #----------------------# |
---|
[3219] | 4125 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4126 | set dummy doxygen; ac_word=$2 |
---|
| 4127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4129 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4131 | else |
---|
| 4132 | case $DOXYGEN in |
---|
| 4133 | [\\/]* | ?:[\\/]*) |
---|
| 4134 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4135 | ;; |
---|
| 4136 | *) |
---|
| 4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4138 | for as_dir in $PATH |
---|
| 4139 | do |
---|
| 4140 | IFS=$as_save_IFS |
---|
| 4141 | test -z "$as_dir" && as_dir=. |
---|
| 4142 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4144 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4146 | break 2 |
---|
| 4147 | fi |
---|
| 4148 | done |
---|
| 4149 | done |
---|
| 4150 | |
---|
| 4151 | ;; |
---|
| 4152 | esac |
---|
| 4153 | fi |
---|
| 4154 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4155 | |
---|
| 4156 | if test -n "$DOXYGEN"; then |
---|
| 4157 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4158 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4159 | else |
---|
| 4160 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4161 | echo "${ECHO_T}no" >&6 |
---|
| 4162 | fi |
---|
| 4163 | |
---|
| 4164 | |
---|
| 4165 | |
---|
| 4166 | if test $DOXYGEN; then |
---|
| 4167 | DOXYGEN_TRUE= |
---|
| 4168 | DOXYGEN_FALSE='#' |
---|
| 4169 | else |
---|
| 4170 | DOXYGEN_TRUE='#' |
---|
| 4171 | DOXYGEN_FALSE= |
---|
| 4172 | fi |
---|
| 4173 | |
---|
| 4174 | |
---|
[3789] | 4175 | #--------------------# |
---|
| 4176 | # checking for gprof # |
---|
| 4177 | #--------------------# |
---|
| 4178 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
| 4179 | set dummy gprof; ac_word=$2 |
---|
| 4180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4182 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
| 4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4184 | else |
---|
| 4185 | case $GPROF in |
---|
| 4186 | [\\/]* | ?:[\\/]*) |
---|
| 4187 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
| 4188 | ;; |
---|
| 4189 | *) |
---|
| 4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4191 | for as_dir in $PATH |
---|
| 4192 | do |
---|
| 4193 | IFS=$as_save_IFS |
---|
| 4194 | test -z "$as_dir" && as_dir=. |
---|
| 4195 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4197 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4199 | break 2 |
---|
| 4200 | fi |
---|
| 4201 | done |
---|
| 4202 | done |
---|
| 4203 | |
---|
| 4204 | ;; |
---|
| 4205 | esac |
---|
| 4206 | fi |
---|
| 4207 | GPROF=$ac_cv_path_GPROF |
---|
| 4208 | |
---|
| 4209 | if test -n "$GPROF"; then |
---|
| 4210 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
| 4211 | echo "${ECHO_T}$GPROF" >&6 |
---|
| 4212 | else |
---|
| 4213 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4214 | echo "${ECHO_T}no" >&6 |
---|
| 4215 | fi |
---|
| 4216 | |
---|
| 4217 | |
---|
[4130] | 4218 | #-------------------------# |
---|
| 4219 | # checking for pkg-config # |
---|
| 4220 | #-------------------------# |
---|
| 4221 | if test x$def_gtk = xyes; then |
---|
| 4222 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
| 4223 | set dummy pkg-config; ac_word=$2 |
---|
| 4224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4226 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
| 4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4228 | else |
---|
| 4229 | case $PKG_CONFIG in |
---|
| 4230 | [\\/]* | ?:[\\/]*) |
---|
| 4231 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
| 4232 | ;; |
---|
| 4233 | *) |
---|
| 4234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4235 | for as_dir in $PATH |
---|
| 4236 | do |
---|
| 4237 | IFS=$as_save_IFS |
---|
| 4238 | test -z "$as_dir" && as_dir=. |
---|
| 4239 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4241 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4243 | break 2 |
---|
| 4244 | fi |
---|
| 4245 | done |
---|
| 4246 | done |
---|
| 4247 | |
---|
| 4248 | ;; |
---|
| 4249 | esac |
---|
| 4250 | fi |
---|
| 4251 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
| 4252 | |
---|
| 4253 | if test -n "$PKG_CONFIG"; then |
---|
| 4254 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
| 4255 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
| 4256 | else |
---|
| 4257 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4258 | echo "${ECHO_T}no" >&6 |
---|
| 4259 | fi |
---|
| 4260 | |
---|
| 4261 | fi |
---|
| 4262 | |
---|
| 4263 | |
---|
[3424] | 4264 | ######################### |
---|
| 4265 | ## CHECKING FOR SYSTEM ## |
---|
| 4266 | ######################### |
---|
| 4267 | ## here the system is checked, and openGL is included |
---|
| 4268 | ## also checking for SDL on differen Systems |
---|
[1971] | 4269 | |
---|
[2925] | 4270 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4271 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4272 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4273 | case "$target" in |
---|
[3424] | 4274 | #---------# |
---|
| 4275 | # WINDOWS # |
---|
| 4276 | #---------# |
---|
[2980] | 4277 | *-*-mingw32*) |
---|
[2925] | 4278 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4279 | |
---|
[3790] | 4280 | CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL" |
---|
| 4281 | |
---|
[2925] | 4282 | mingw="yes" |
---|
| 4283 | MSBITFIELDS="-mms-bitfields" |
---|
| 4284 | MWINDOWS="-mwindows" |
---|
[1971] | 4285 | |
---|
[2925] | 4286 | # checking gl header |
---|
| 4287 | #done before loop |
---|
[1971] | 4288 | |
---|
[2968] | 4289 | # checking gl header |
---|
[2925] | 4290 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4291 | |
---|
| 4292 | |
---|
| 4293 | |
---|
| 4294 | |
---|
[2925] | 4295 | |
---|
| 4296 | |
---|
| 4297 | |
---|
| 4298 | |
---|
| 4299 | |
---|
[1971] | 4300 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4301 | inttypes.h stdint.h unistd.h |
---|
| 4302 | do |
---|
| 4303 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4308 | else |
---|
| 4309 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4310 | /* confdefs.h. */ |
---|
| 4311 | _ACEOF |
---|
| 4312 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4313 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4314 | /* end confdefs.h. */ |
---|
| 4315 | $ac_includes_default |
---|
| 4316 | |
---|
| 4317 | #include <$ac_header> |
---|
| 4318 | _ACEOF |
---|
| 4319 | rm -f conftest.$ac_objext |
---|
| 4320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4321 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4322 | ac_status=$? |
---|
| 4323 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4324 | rm -f conftest.er1 |
---|
| 4325 | cat conftest.err >&5 |
---|
| 4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4327 | (exit $ac_status); } && |
---|
| 4328 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4329 | || test ! -s conftest.err' |
---|
| 4330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4331 | (eval $ac_try) 2>&5 |
---|
| 4332 | ac_status=$? |
---|
| 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4334 | (exit $ac_status); }; } && |
---|
| 4335 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4337 | (eval $ac_try) 2>&5 |
---|
| 4338 | ac_status=$? |
---|
| 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4340 | (exit $ac_status); }; }; then |
---|
| 4341 | eval "$as_ac_Header=yes" |
---|
| 4342 | else |
---|
| 4343 | echo "$as_me: failed program was:" >&5 |
---|
| 4344 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4345 | |
---|
| 4346 | eval "$as_ac_Header=no" |
---|
| 4347 | fi |
---|
| 4348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4349 | fi |
---|
| 4350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4351 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4352 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4353 | cat >>confdefs.h <<_ACEOF |
---|
| 4354 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4355 | _ACEOF |
---|
| 4356 | |
---|
| 4357 | fi |
---|
| 4358 | |
---|
| 4359 | done |
---|
| 4360 | |
---|
| 4361 | |
---|
| 4362 | |
---|
[2879] | 4363 | for ac_header in GL/gl.h |
---|
| 4364 | do |
---|
| 4365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4367 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4371 | fi |
---|
| 4372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4374 | else |
---|
| 4375 | # Is the header compilable? |
---|
| 4376 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4377 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4378 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4379 | /* confdefs.h. */ |
---|
| 4380 | _ACEOF |
---|
| 4381 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4382 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4383 | /* end confdefs.h. */ |
---|
| 4384 | $ac_includes_default |
---|
| 4385 | #include <$ac_header> |
---|
| 4386 | _ACEOF |
---|
| 4387 | rm -f conftest.$ac_objext |
---|
| 4388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4389 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4390 | ac_status=$? |
---|
| 4391 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4392 | rm -f conftest.er1 |
---|
| 4393 | cat conftest.err >&5 |
---|
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4395 | (exit $ac_status); } && |
---|
| 4396 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4397 | || test ! -s conftest.err' |
---|
| 4398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4399 | (eval $ac_try) 2>&5 |
---|
| 4400 | ac_status=$? |
---|
| 4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4402 | (exit $ac_status); }; } && |
---|
| 4403 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4405 | (eval $ac_try) 2>&5 |
---|
| 4406 | ac_status=$? |
---|
| 4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4408 | (exit $ac_status); }; }; then |
---|
| 4409 | ac_header_compiler=yes |
---|
| 4410 | else |
---|
| 4411 | echo "$as_me: failed program was:" >&5 |
---|
| 4412 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4413 | |
---|
| 4414 | ac_header_compiler=no |
---|
| 4415 | fi |
---|
| 4416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4417 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4418 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4419 | |
---|
| 4420 | # Is the header present? |
---|
| 4421 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4422 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4423 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4424 | /* confdefs.h. */ |
---|
| 4425 | _ACEOF |
---|
| 4426 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4428 | /* end confdefs.h. */ |
---|
| 4429 | #include <$ac_header> |
---|
| 4430 | _ACEOF |
---|
| 4431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4433 | ac_status=$? |
---|
| 4434 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4435 | rm -f conftest.er1 |
---|
| 4436 | cat conftest.err >&5 |
---|
| 4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4438 | (exit $ac_status); } >/dev/null; then |
---|
| 4439 | if test -s conftest.err; then |
---|
| 4440 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4442 | else |
---|
| 4443 | ac_cpp_err= |
---|
| 4444 | fi |
---|
| 4445 | else |
---|
| 4446 | ac_cpp_err=yes |
---|
| 4447 | fi |
---|
| 4448 | if test -z "$ac_cpp_err"; then |
---|
| 4449 | ac_header_preproc=yes |
---|
| 4450 | else |
---|
| 4451 | echo "$as_me: failed program was:" >&5 |
---|
| 4452 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4453 | |
---|
| 4454 | ac_header_preproc=no |
---|
| 4455 | fi |
---|
| 4456 | rm -f conftest.err conftest.$ac_ext |
---|
| 4457 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4458 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4459 | |
---|
| 4460 | # So? What about this header? |
---|
| 4461 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4462 | yes:no: ) |
---|
| 4463 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4464 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4466 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4467 | ac_header_preproc=yes |
---|
| 4468 | ;; |
---|
| 4469 | no:yes:* ) |
---|
| 4470 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4471 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4472 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4473 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4474 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4475 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4477 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4479 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4480 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4481 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4482 | ( |
---|
| 4483 | cat <<\_ASBOX |
---|
[3240] | 4484 | ## ---------------------------------------------- ## |
---|
| 4485 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4486 | ## ---------------------------------------------- ## |
---|
[2879] | 4487 | _ASBOX |
---|
| 4488 | ) | |
---|
| 4489 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4490 | ;; |
---|
| 4491 | esac |
---|
| 4492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4496 | else |
---|
| 4497 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4498 | fi |
---|
| 4499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4501 | |
---|
| 4502 | fi |
---|
| 4503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4504 | cat >>confdefs.h <<_ACEOF |
---|
| 4505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4506 | _ACEOF |
---|
| 4507 | |
---|
| 4508 | else |
---|
| 4509 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4510 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4511 | { (exit 1); exit 1; }; } |
---|
| 4512 | fi |
---|
| 4513 | |
---|
| 4514 | done |
---|
| 4515 | |
---|
[2701] | 4516 | # checking for Windows openGl library |
---|
[1971] | 4517 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4518 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4519 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4521 | else |
---|
| 4522 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4523 | LIBS="-lopengl32 $LIBS" |
---|
| 4524 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4525 | /* confdefs.h. */ |
---|
[1956] | 4526 | _ACEOF |
---|
[1959] | 4527 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4528 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4529 | /* end confdefs.h. */ |
---|
[1956] | 4530 | |
---|
[1971] | 4531 | |
---|
[1959] | 4532 | int |
---|
| 4533 | main () |
---|
| 4534 | { |
---|
[1971] | 4535 | main (); |
---|
[1959] | 4536 | ; |
---|
| 4537 | return 0; |
---|
| 4538 | } |
---|
| 4539 | _ACEOF |
---|
| 4540 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4542 | (eval $ac_link) 2>conftest.er1 |
---|
| 4543 | ac_status=$? |
---|
| 4544 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4545 | rm -f conftest.er1 |
---|
| 4546 | cat conftest.err >&5 |
---|
| 4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4548 | (exit $ac_status); } && |
---|
| 4549 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4550 | || test ! -s conftest.err' |
---|
| 4551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4552 | (eval $ac_try) 2>&5 |
---|
| 4553 | ac_status=$? |
---|
| 4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4555 | (exit $ac_status); }; } && |
---|
| 4556 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4558 | (eval $ac_try) 2>&5 |
---|
| 4559 | ac_status=$? |
---|
| 4560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4561 | (exit $ac_status); }; }; then |
---|
[1971] | 4562 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4563 | else |
---|
| 4564 | echo "$as_me: failed program was:" >&5 |
---|
| 4565 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4566 | |
---|
[1971] | 4567 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4568 | fi |
---|
[1959] | 4569 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4570 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4571 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4572 | fi |
---|
[1971] | 4573 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4574 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4575 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4576 | FOUND_opengl32=yes |
---|
| 4577 | else |
---|
| 4578 | "gl/gl.h" |
---|
[1959] | 4579 | fi |
---|
[1956] | 4580 | |
---|
[3424] | 4581 | if test x$FOUND_opengl32 = xyes ; then |
---|
[1959] | 4582 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4583 | else |
---|
[1959] | 4584 | echo "------------------" |
---|
| 4585 | echo "opengl not found." |
---|
| 4586 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4587 | echo "------------------" |
---|
| 4588 | exit -1 |
---|
| 4589 | fi |
---|
| 4590 | |
---|
[2701] | 4591 | # cheking for GLU-header |
---|
[1971] | 4592 | |
---|
| 4593 | for ac_header in GL/glu.h |
---|
| 4594 | do |
---|
| 4595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4601 | fi |
---|
| 4602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4604 | else |
---|
| 4605 | # Is the header compilable? |
---|
| 4606 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4608 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4609 | /* confdefs.h. */ |
---|
| 4610 | _ACEOF |
---|
| 4611 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4613 | /* end confdefs.h. */ |
---|
| 4614 | $ac_includes_default |
---|
| 4615 | #include <$ac_header> |
---|
| 4616 | _ACEOF |
---|
| 4617 | rm -f conftest.$ac_objext |
---|
| 4618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4619 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4620 | ac_status=$? |
---|
| 4621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4622 | rm -f conftest.er1 |
---|
| 4623 | cat conftest.err >&5 |
---|
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4625 | (exit $ac_status); } && |
---|
| 4626 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4627 | || test ! -s conftest.err' |
---|
| 4628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4629 | (eval $ac_try) 2>&5 |
---|
| 4630 | ac_status=$? |
---|
| 4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4632 | (exit $ac_status); }; } && |
---|
| 4633 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4635 | (eval $ac_try) 2>&5 |
---|
| 4636 | ac_status=$? |
---|
| 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4638 | (exit $ac_status); }; }; then |
---|
| 4639 | ac_header_compiler=yes |
---|
| 4640 | else |
---|
| 4641 | echo "$as_me: failed program was:" >&5 |
---|
| 4642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4643 | |
---|
| 4644 | ac_header_compiler=no |
---|
| 4645 | fi |
---|
| 4646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4647 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4648 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4649 | |
---|
| 4650 | # Is the header present? |
---|
| 4651 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4653 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4654 | /* confdefs.h. */ |
---|
| 4655 | _ACEOF |
---|
| 4656 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4657 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4658 | /* end confdefs.h. */ |
---|
| 4659 | #include <$ac_header> |
---|
| 4660 | _ACEOF |
---|
| 4661 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4662 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4663 | ac_status=$? |
---|
| 4664 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4665 | rm -f conftest.er1 |
---|
| 4666 | cat conftest.err >&5 |
---|
| 4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4668 | (exit $ac_status); } >/dev/null; then |
---|
| 4669 | if test -s conftest.err; then |
---|
| 4670 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4671 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4672 | else |
---|
| 4673 | ac_cpp_err= |
---|
| 4674 | fi |
---|
| 4675 | else |
---|
| 4676 | ac_cpp_err=yes |
---|
| 4677 | fi |
---|
| 4678 | if test -z "$ac_cpp_err"; then |
---|
| 4679 | ac_header_preproc=yes |
---|
| 4680 | else |
---|
| 4681 | echo "$as_me: failed program was:" >&5 |
---|
| 4682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4683 | |
---|
| 4684 | ac_header_preproc=no |
---|
| 4685 | fi |
---|
| 4686 | rm -f conftest.err conftest.$ac_ext |
---|
| 4687 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4688 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4689 | |
---|
| 4690 | # So? What about this header? |
---|
| 4691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4692 | yes:no: ) |
---|
| 4693 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4694 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4695 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4696 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4697 | ac_header_preproc=yes |
---|
| 4698 | ;; |
---|
| 4699 | no:yes:* ) |
---|
| 4700 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4701 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4702 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4703 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4704 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4705 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4707 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4709 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4710 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4711 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4712 | ( |
---|
| 4713 | cat <<\_ASBOX |
---|
[3240] | 4714 | ## ---------------------------------------------- ## |
---|
| 4715 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4716 | ## ---------------------------------------------- ## |
---|
[1971] | 4717 | _ASBOX |
---|
| 4718 | ) | |
---|
| 4719 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4720 | ;; |
---|
| 4721 | esac |
---|
| 4722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4726 | else |
---|
| 4727 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4728 | fi |
---|
| 4729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4730 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4731 | |
---|
| 4732 | fi |
---|
| 4733 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4734 | cat >>confdefs.h <<_ACEOF |
---|
| 4735 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4736 | _ACEOF |
---|
| 4737 | |
---|
| 4738 | else |
---|
| 4739 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4740 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4741 | { (exit 1); exit 1; }; } |
---|
| 4742 | fi |
---|
| 4743 | |
---|
| 4744 | done |
---|
| 4745 | |
---|
| 4746 | |
---|
[2701] | 4747 | # checking for libGLU |
---|
| 4748 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4749 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4750 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4752 | else |
---|
| 4753 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4754 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4755 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4756 | /* confdefs.h. */ |
---|
| 4757 | _ACEOF |
---|
| 4758 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4759 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4760 | /* end confdefs.h. */ |
---|
| 4761 | |
---|
[2701] | 4762 | |
---|
[1956] | 4763 | int |
---|
| 4764 | main () |
---|
| 4765 | { |
---|
[2701] | 4766 | main (); |
---|
[1956] | 4767 | ; |
---|
| 4768 | return 0; |
---|
| 4769 | } |
---|
| 4770 | _ACEOF |
---|
| 4771 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4773 | (eval $ac_link) 2>conftest.er1 |
---|
| 4774 | ac_status=$? |
---|
| 4775 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4776 | rm -f conftest.er1 |
---|
| 4777 | cat conftest.err >&5 |
---|
| 4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4779 | (exit $ac_status); } && |
---|
| 4780 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4781 | || test ! -s conftest.err' |
---|
| 4782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4783 | (eval $ac_try) 2>&5 |
---|
| 4784 | ac_status=$? |
---|
| 4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4786 | (exit $ac_status); }; } && |
---|
| 4787 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4789 | (eval $ac_try) 2>&5 |
---|
| 4790 | ac_status=$? |
---|
| 4791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4792 | (exit $ac_status); }; }; then |
---|
[2701] | 4793 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4794 | else |
---|
| 4795 | echo "$as_me: failed program was:" >&5 |
---|
| 4796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4797 | |
---|
[2701] | 4798 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4799 | fi |
---|
| 4800 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4801 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4802 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4803 | fi |
---|
[2701] | 4804 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4805 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4806 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4807 | FOUND_glu32=yes |
---|
[1959] | 4808 | fi |
---|
| 4809 | |
---|
[3424] | 4810 | if test x$FOUND_glu32 = xyes ; then |
---|
[2701] | 4811 | LIBS="$LIBS -lGLU32" |
---|
| 4812 | else |
---|
| 4813 | echo "------------------" |
---|
| 4814 | echo "GLU library not found." |
---|
| 4815 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4816 | echo "------------------" |
---|
| 4817 | exit -1 |
---|
| 4818 | fi |
---|
| 4819 | |
---|
| 4820 | # checking for mingw32 |
---|
| 4821 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4822 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4823 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4825 | else |
---|
| 4826 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4827 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4828 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4829 | /* confdefs.h. */ |
---|
[1956] | 4830 | _ACEOF |
---|
[1959] | 4831 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4832 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4833 | /* end confdefs.h. */ |
---|
[1956] | 4834 | |
---|
[1971] | 4835 | |
---|
[1959] | 4836 | int |
---|
| 4837 | main () |
---|
| 4838 | { |
---|
[1971] | 4839 | main (); |
---|
[1959] | 4840 | ; |
---|
| 4841 | return 0; |
---|
| 4842 | } |
---|
| 4843 | _ACEOF |
---|
| 4844 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4846 | (eval $ac_link) 2>conftest.er1 |
---|
| 4847 | ac_status=$? |
---|
| 4848 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4849 | rm -f conftest.er1 |
---|
| 4850 | cat conftest.err >&5 |
---|
| 4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4852 | (exit $ac_status); } && |
---|
| 4853 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4854 | || test ! -s conftest.err' |
---|
| 4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4856 | (eval $ac_try) 2>&5 |
---|
| 4857 | ac_status=$? |
---|
| 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4859 | (exit $ac_status); }; } && |
---|
| 4860 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4862 | (eval $ac_try) 2>&5 |
---|
| 4863 | ac_status=$? |
---|
| 4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4865 | (exit $ac_status); }; }; then |
---|
[2701] | 4866 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4867 | else |
---|
| 4868 | echo "$as_me: failed program was:" >&5 |
---|
| 4869 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4870 | |
---|
[2701] | 4871 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4872 | fi |
---|
[1959] | 4873 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4874 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4875 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4876 | fi |
---|
[2701] | 4877 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4878 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4879 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4880 | FOUND_mingw32=yes |
---|
[1959] | 4881 | fi |
---|
[1956] | 4882 | |
---|
[3424] | 4883 | if test x$FOUND_mingw32 = xyes; then |
---|
[2701] | 4884 | LIBS="$LIBS -lmingw32" |
---|
| 4885 | fi |
---|
[2989] | 4886 | # checking for SDL-headers |
---|
[1959] | 4887 | |
---|
[3790] | 4888 | for ac_header in SDL.h |
---|
[2989] | 4889 | do |
---|
| 4890 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4892 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4894 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4896 | fi |
---|
| 4897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4898 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4899 | else |
---|
| 4900 | # Is the header compilable? |
---|
| 4901 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4902 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4903 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4904 | /* confdefs.h. */ |
---|
| 4905 | _ACEOF |
---|
| 4906 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4907 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4908 | /* end confdefs.h. */ |
---|
| 4909 | $ac_includes_default |
---|
| 4910 | #include <$ac_header> |
---|
| 4911 | _ACEOF |
---|
| 4912 | rm -f conftest.$ac_objext |
---|
| 4913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4914 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4915 | ac_status=$? |
---|
| 4916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4917 | rm -f conftest.er1 |
---|
| 4918 | cat conftest.err >&5 |
---|
| 4919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4920 | (exit $ac_status); } && |
---|
| 4921 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4922 | || test ! -s conftest.err' |
---|
| 4923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4924 | (eval $ac_try) 2>&5 |
---|
| 4925 | ac_status=$? |
---|
| 4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4927 | (exit $ac_status); }; } && |
---|
| 4928 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4930 | (eval $ac_try) 2>&5 |
---|
| 4931 | ac_status=$? |
---|
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4933 | (exit $ac_status); }; }; then |
---|
| 4934 | ac_header_compiler=yes |
---|
| 4935 | else |
---|
| 4936 | echo "$as_me: failed program was:" >&5 |
---|
| 4937 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4938 | |
---|
| 4939 | ac_header_compiler=no |
---|
| 4940 | fi |
---|
| 4941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4942 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4943 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4944 | |
---|
| 4945 | # Is the header present? |
---|
| 4946 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4947 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4948 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4949 | /* confdefs.h. */ |
---|
| 4950 | _ACEOF |
---|
| 4951 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4952 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4953 | /* end confdefs.h. */ |
---|
| 4954 | #include <$ac_header> |
---|
| 4955 | _ACEOF |
---|
| 4956 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4957 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4958 | ac_status=$? |
---|
| 4959 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4960 | rm -f conftest.er1 |
---|
| 4961 | cat conftest.err >&5 |
---|
| 4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4963 | (exit $ac_status); } >/dev/null; then |
---|
| 4964 | if test -s conftest.err; then |
---|
| 4965 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4966 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4967 | else |
---|
| 4968 | ac_cpp_err= |
---|
| 4969 | fi |
---|
| 4970 | else |
---|
| 4971 | ac_cpp_err=yes |
---|
| 4972 | fi |
---|
| 4973 | if test -z "$ac_cpp_err"; then |
---|
| 4974 | ac_header_preproc=yes |
---|
| 4975 | else |
---|
| 4976 | echo "$as_me: failed program was:" >&5 |
---|
| 4977 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4978 | |
---|
| 4979 | ac_header_preproc=no |
---|
| 4980 | fi |
---|
| 4981 | rm -f conftest.err conftest.$ac_ext |
---|
| 4982 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4983 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4984 | |
---|
| 4985 | # So? What about this header? |
---|
| 4986 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4987 | yes:no: ) |
---|
| 4988 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4989 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4991 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4992 | ac_header_preproc=yes |
---|
[2701] | 4993 | ;; |
---|
[2989] | 4994 | no:yes:* ) |
---|
| 4995 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4996 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4997 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4998 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4999 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5000 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5001 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5002 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5004 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5005 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5006 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5007 | ( |
---|
| 5008 | cat <<\_ASBOX |
---|
[3240] | 5009 | ## ---------------------------------------------- ## |
---|
| 5010 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5011 | ## ---------------------------------------------- ## |
---|
[2989] | 5012 | _ASBOX |
---|
| 5013 | ) | |
---|
| 5014 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5015 | ;; |
---|
| 5016 | esac |
---|
| 5017 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5018 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5021 | else |
---|
| 5022 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5023 | fi |
---|
| 5024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 5026 | |
---|
[2989] | 5027 | fi |
---|
| 5028 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5029 | cat >>confdefs.h <<_ACEOF |
---|
| 5030 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5031 | _ACEOF |
---|
| 5032 | |
---|
| 5033 | else |
---|
| 5034 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5035 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5036 | { (exit 1); exit 1; }; } |
---|
| 5037 | fi |
---|
| 5038 | |
---|
| 5039 | done |
---|
| 5040 | |
---|
| 5041 | |
---|
| 5042 | #checking for libSDL |
---|
| 5043 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 5044 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 5045 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5047 | else |
---|
| 5048 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5049 | LIBS="-lsdlmain $LIBS" |
---|
| 5050 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5051 | /* confdefs.h. */ |
---|
| 5052 | _ACEOF |
---|
| 5053 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5055 | /* end confdefs.h. */ |
---|
| 5056 | |
---|
| 5057 | |
---|
| 5058 | int |
---|
| 5059 | main () |
---|
| 5060 | { |
---|
| 5061 | main (); |
---|
| 5062 | ; |
---|
| 5063 | return 0; |
---|
| 5064 | } |
---|
| 5065 | _ACEOF |
---|
| 5066 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5068 | (eval $ac_link) 2>conftest.er1 |
---|
| 5069 | ac_status=$? |
---|
| 5070 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5071 | rm -f conftest.er1 |
---|
| 5072 | cat conftest.err >&5 |
---|
| 5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5074 | (exit $ac_status); } && |
---|
| 5075 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5076 | || test ! -s conftest.err' |
---|
| 5077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5078 | (eval $ac_try) 2>&5 |
---|
| 5079 | ac_status=$? |
---|
| 5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5081 | (exit $ac_status); }; } && |
---|
| 5082 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5084 | (eval $ac_try) 2>&5 |
---|
| 5085 | ac_status=$? |
---|
| 5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5087 | (exit $ac_status); }; }; then |
---|
| 5088 | ac_cv_lib_sdlmain_main=yes |
---|
| 5089 | else |
---|
| 5090 | echo "$as_me: failed program was:" >&5 |
---|
| 5091 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5092 | |
---|
| 5093 | ac_cv_lib_sdlmain_main=no |
---|
| 5094 | fi |
---|
| 5095 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5096 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5097 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5098 | fi |
---|
| 5099 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 5100 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 5101 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 5102 | FOUND_sdlmain=yes |
---|
| 5103 | fi |
---|
| 5104 | |
---|
[3424] | 5105 | if test x$FOUND_sdlmain = xyes ; then |
---|
[2989] | 5106 | LIBS="$LIBS -lsdlmain" |
---|
| 5107 | else |
---|
| 5108 | echo "------------------" |
---|
| 5109 | echo "SDL library not found." |
---|
| 5110 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5111 | echo "------------------" |
---|
| 5112 | exit 1 |
---|
| 5113 | fi |
---|
| 5114 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 5115 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 5116 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 5117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5118 | else |
---|
| 5119 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5120 | LIBS="-lsdl $LIBS" |
---|
| 5121 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5122 | /* confdefs.h. */ |
---|
| 5123 | _ACEOF |
---|
| 5124 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5125 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5126 | /* end confdefs.h. */ |
---|
| 5127 | |
---|
| 5128 | |
---|
| 5129 | int |
---|
| 5130 | main () |
---|
| 5131 | { |
---|
| 5132 | main (); |
---|
| 5133 | ; |
---|
| 5134 | return 0; |
---|
| 5135 | } |
---|
| 5136 | _ACEOF |
---|
| 5137 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5139 | (eval $ac_link) 2>conftest.er1 |
---|
| 5140 | ac_status=$? |
---|
| 5141 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5142 | rm -f conftest.er1 |
---|
| 5143 | cat conftest.err >&5 |
---|
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5145 | (exit $ac_status); } && |
---|
| 5146 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5147 | || test ! -s conftest.err' |
---|
| 5148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5149 | (eval $ac_try) 2>&5 |
---|
| 5150 | ac_status=$? |
---|
| 5151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5152 | (exit $ac_status); }; } && |
---|
| 5153 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5155 | (eval $ac_try) 2>&5 |
---|
| 5156 | ac_status=$? |
---|
| 5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5158 | (exit $ac_status); }; }; then |
---|
| 5159 | ac_cv_lib_sdl_main=yes |
---|
| 5160 | else |
---|
| 5161 | echo "$as_me: failed program was:" >&5 |
---|
| 5162 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5163 | |
---|
| 5164 | ac_cv_lib_sdl_main=no |
---|
| 5165 | fi |
---|
| 5166 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5167 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5168 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5169 | fi |
---|
| 5170 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 5171 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 5172 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 5173 | FOUND_sdl=yes |
---|
| 5174 | fi |
---|
| 5175 | |
---|
[3424] | 5176 | if test x$FOUND_sdl = xyes ; then |
---|
[2989] | 5177 | LIBS="$LIBS -lsdl" |
---|
| 5178 | else |
---|
| 5179 | echo "------------------" |
---|
| 5180 | echo "SDL library not found." |
---|
| 5181 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5182 | echo "------------------" |
---|
| 5183 | exit -1 |
---|
| 5184 | fi |
---|
| 5185 | |
---|
| 5186 | ;; |
---|
[3424] | 5187 | #-------# |
---|
| 5188 | # LINUX # |
---|
| 5189 | #-------# |
---|
[2980] | 5190 | *-*-linux*) |
---|
[2701] | 5191 | echo "Linux detected" |
---|
[1956] | 5192 | |
---|
[2701] | 5193 | Linux="yes" |
---|
| 5194 | |
---|
[3790] | 5195 | CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL" |
---|
[3385] | 5196 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 5197 | # checking gl header |
---|
[2701] | 5198 | |
---|
[2879] | 5199 | for ac_header in GL/gl.h |
---|
| 5200 | do |
---|
| 5201 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5207 | fi |
---|
| 5208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5209 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5210 | else |
---|
| 5211 | # Is the header compilable? |
---|
| 5212 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5213 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5214 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5215 | /* confdefs.h. */ |
---|
| 5216 | _ACEOF |
---|
| 5217 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5218 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5219 | /* end confdefs.h. */ |
---|
| 5220 | $ac_includes_default |
---|
| 5221 | #include <$ac_header> |
---|
| 5222 | _ACEOF |
---|
| 5223 | rm -f conftest.$ac_objext |
---|
| 5224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5225 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5226 | ac_status=$? |
---|
| 5227 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5228 | rm -f conftest.er1 |
---|
| 5229 | cat conftest.err >&5 |
---|
| 5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5231 | (exit $ac_status); } && |
---|
| 5232 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5233 | || test ! -s conftest.err' |
---|
| 5234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5235 | (eval $ac_try) 2>&5 |
---|
| 5236 | ac_status=$? |
---|
| 5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5238 | (exit $ac_status); }; } && |
---|
| 5239 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5241 | (eval $ac_try) 2>&5 |
---|
| 5242 | ac_status=$? |
---|
| 5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5244 | (exit $ac_status); }; }; then |
---|
| 5245 | ac_header_compiler=yes |
---|
| 5246 | else |
---|
| 5247 | echo "$as_me: failed program was:" >&5 |
---|
| 5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5249 | |
---|
| 5250 | ac_header_compiler=no |
---|
| 5251 | fi |
---|
| 5252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5253 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5254 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5255 | |
---|
| 5256 | # Is the header present? |
---|
| 5257 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5258 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5259 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5260 | /* confdefs.h. */ |
---|
| 5261 | _ACEOF |
---|
| 5262 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5263 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5264 | /* end confdefs.h. */ |
---|
| 5265 | #include <$ac_header> |
---|
| 5266 | _ACEOF |
---|
| 5267 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5268 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5269 | ac_status=$? |
---|
| 5270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5271 | rm -f conftest.er1 |
---|
| 5272 | cat conftest.err >&5 |
---|
| 5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5274 | (exit $ac_status); } >/dev/null; then |
---|
| 5275 | if test -s conftest.err; then |
---|
| 5276 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5277 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5278 | else |
---|
| 5279 | ac_cpp_err= |
---|
| 5280 | fi |
---|
| 5281 | else |
---|
| 5282 | ac_cpp_err=yes |
---|
| 5283 | fi |
---|
| 5284 | if test -z "$ac_cpp_err"; then |
---|
| 5285 | ac_header_preproc=yes |
---|
| 5286 | else |
---|
| 5287 | echo "$as_me: failed program was:" >&5 |
---|
| 5288 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5289 | |
---|
| 5290 | ac_header_preproc=no |
---|
| 5291 | fi |
---|
| 5292 | rm -f conftest.err conftest.$ac_ext |
---|
| 5293 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5294 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5295 | |
---|
| 5296 | # So? What about this header? |
---|
| 5297 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5298 | yes:no: ) |
---|
| 5299 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5300 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5301 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5302 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5303 | ac_header_preproc=yes |
---|
| 5304 | ;; |
---|
| 5305 | no:yes:* ) |
---|
| 5306 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5307 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5308 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5309 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5310 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5311 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5312 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5313 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5314 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5315 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5316 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5317 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5318 | ( |
---|
| 5319 | cat <<\_ASBOX |
---|
[3240] | 5320 | ## ---------------------------------------------- ## |
---|
| 5321 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5322 | ## ---------------------------------------------- ## |
---|
[2879] | 5323 | _ASBOX |
---|
| 5324 | ) | |
---|
| 5325 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5326 | ;; |
---|
| 5327 | esac |
---|
| 5328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5332 | else |
---|
| 5333 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5334 | fi |
---|
| 5335 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5336 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5337 | |
---|
| 5338 | fi |
---|
| 5339 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5340 | cat >>confdefs.h <<_ACEOF |
---|
| 5341 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5342 | _ACEOF |
---|
| 5343 | |
---|
| 5344 | else |
---|
| 5345 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5346 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5347 | { (exit 1); exit 1; }; } |
---|
| 5348 | fi |
---|
| 5349 | |
---|
| 5350 | done |
---|
| 5351 | |
---|
| 5352 | |
---|
[2701] | 5353 | # checking for Unix GL |
---|
[3385] | 5354 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5355 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5356 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5358 | else |
---|
| 5359 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5360 | LIBS="-lGL $LIBS" |
---|
[1956] | 5361 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5362 | /* confdefs.h. */ |
---|
| 5363 | _ACEOF |
---|
| 5364 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5366 | /* end confdefs.h. */ |
---|
| 5367 | |
---|
[3385] | 5368 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5369 | #ifdef __cplusplus |
---|
| 5370 | extern "C" |
---|
| 5371 | #endif |
---|
| 5372 | /* We use char because int might match the return type of a gcc2 |
---|
| 5373 | builtin and then its argument prototype would still apply. */ |
---|
| 5374 | char glLoadIdentity (); |
---|
[1956] | 5375 | int |
---|
| 5376 | main () |
---|
| 5377 | { |
---|
[3385] | 5378 | glLoadIdentity (); |
---|
[1956] | 5379 | ; |
---|
| 5380 | return 0; |
---|
| 5381 | } |
---|
| 5382 | _ACEOF |
---|
| 5383 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5385 | (eval $ac_link) 2>conftest.er1 |
---|
| 5386 | ac_status=$? |
---|
| 5387 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5388 | rm -f conftest.er1 |
---|
| 5389 | cat conftest.err >&5 |
---|
| 5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5391 | (exit $ac_status); } && |
---|
| 5392 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5393 | || test ! -s conftest.err' |
---|
| 5394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5395 | (eval $ac_try) 2>&5 |
---|
| 5396 | ac_status=$? |
---|
| 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5398 | (exit $ac_status); }; } && |
---|
| 5399 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5401 | (eval $ac_try) 2>&5 |
---|
| 5402 | ac_status=$? |
---|
| 5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5404 | (exit $ac_status); }; }; then |
---|
[3385] | 5405 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5406 | else |
---|
| 5407 | echo "$as_me: failed program was:" >&5 |
---|
| 5408 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5409 | |
---|
[3385] | 5410 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5411 | fi |
---|
| 5412 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5413 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5414 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5415 | fi |
---|
[3385] | 5416 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5417 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5418 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5419 | FOUND_GL=yes |
---|
| 5420 | fi |
---|
| 5421 | |
---|
[3424] | 5422 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5423 | LIBS="$LIBS -lGL" |
---|
| 5424 | else |
---|
| 5425 | echo "------------------" |
---|
| 5426 | echo "opengl not found." |
---|
| 5427 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5428 | echo "------------------" |
---|
| 5429 | exit -1 |
---|
| 5430 | fi |
---|
| 5431 | |
---|
| 5432 | # cheking for GLU-header |
---|
| 5433 | |
---|
| 5434 | for ac_header in GL/glu.h |
---|
| 5435 | do |
---|
| 5436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5442 | fi |
---|
| 5443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5445 | else |
---|
| 5446 | # Is the header compilable? |
---|
| 5447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5449 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5450 | /* confdefs.h. */ |
---|
[1956] | 5451 | _ACEOF |
---|
[2701] | 5452 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5454 | /* end confdefs.h. */ |
---|
| 5455 | $ac_includes_default |
---|
| 5456 | #include <$ac_header> |
---|
| 5457 | _ACEOF |
---|
| 5458 | rm -f conftest.$ac_objext |
---|
| 5459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5460 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5461 | ac_status=$? |
---|
| 5462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5463 | rm -f conftest.er1 |
---|
| 5464 | cat conftest.err >&5 |
---|
| 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5466 | (exit $ac_status); } && |
---|
| 5467 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5468 | || test ! -s conftest.err' |
---|
| 5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5470 | (eval $ac_try) 2>&5 |
---|
| 5471 | ac_status=$? |
---|
| 5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5473 | (exit $ac_status); }; } && |
---|
| 5474 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5476 | (eval $ac_try) 2>&5 |
---|
| 5477 | ac_status=$? |
---|
| 5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5479 | (exit $ac_status); }; }; then |
---|
| 5480 | ac_header_compiler=yes |
---|
| 5481 | else |
---|
| 5482 | echo "$as_me: failed program was:" >&5 |
---|
| 5483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5484 | |
---|
[2701] | 5485 | ac_header_compiler=no |
---|
| 5486 | fi |
---|
| 5487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5489 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5490 | |
---|
[2701] | 5491 | # Is the header present? |
---|
| 5492 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5493 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5494 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5495 | /* confdefs.h. */ |
---|
| 5496 | _ACEOF |
---|
| 5497 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5498 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5499 | /* end confdefs.h. */ |
---|
| 5500 | #include <$ac_header> |
---|
| 5501 | _ACEOF |
---|
| 5502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5504 | ac_status=$? |
---|
| 5505 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5506 | rm -f conftest.er1 |
---|
| 5507 | cat conftest.err >&5 |
---|
| 5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5509 | (exit $ac_status); } >/dev/null; then |
---|
| 5510 | if test -s conftest.err; then |
---|
| 5511 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5513 | else |
---|
| 5514 | ac_cpp_err= |
---|
| 5515 | fi |
---|
| 5516 | else |
---|
| 5517 | ac_cpp_err=yes |
---|
[1956] | 5518 | fi |
---|
[2701] | 5519 | if test -z "$ac_cpp_err"; then |
---|
| 5520 | ac_header_preproc=yes |
---|
| 5521 | else |
---|
| 5522 | echo "$as_me: failed program was:" >&5 |
---|
| 5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5524 | |
---|
[2701] | 5525 | ac_header_preproc=no |
---|
| 5526 | fi |
---|
| 5527 | rm -f conftest.err conftest.$ac_ext |
---|
| 5528 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5529 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5530 | |
---|
[2701] | 5531 | # So? What about this header? |
---|
| 5532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5533 | yes:no: ) |
---|
| 5534 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5535 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5537 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5538 | ac_header_preproc=yes |
---|
| 5539 | ;; |
---|
| 5540 | no:yes:* ) |
---|
| 5541 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5542 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5543 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5544 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5545 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5546 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5547 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5548 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5551 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5552 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5553 | ( |
---|
| 5554 | cat <<\_ASBOX |
---|
[3240] | 5555 | ## ---------------------------------------------- ## |
---|
| 5556 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5557 | ## ---------------------------------------------- ## |
---|
[2701] | 5558 | _ASBOX |
---|
| 5559 | ) | |
---|
| 5560 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5561 | ;; |
---|
| 5562 | esac |
---|
| 5563 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5567 | else |
---|
[2701] | 5568 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5569 | fi |
---|
| 5570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5572 | |
---|
| 5573 | fi |
---|
| 5574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5575 | cat >>confdefs.h <<_ACEOF |
---|
| 5576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5577 | _ACEOF |
---|
| 5578 | |
---|
| 5579 | else |
---|
| 5580 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5581 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5582 | { (exit 1); exit 1; }; } |
---|
| 5583 | fi |
---|
| 5584 | |
---|
| 5585 | done |
---|
| 5586 | |
---|
| 5587 | |
---|
| 5588 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5589 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5590 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5592 | else |
---|
[2190] | 5593 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5594 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5595 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5596 | /* confdefs.h. */ |
---|
| 5597 | _ACEOF |
---|
| 5598 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5600 | /* end confdefs.h. */ |
---|
| 5601 | |
---|
[2701] | 5602 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5603 | #ifdef __cplusplus |
---|
| 5604 | extern "C" |
---|
| 5605 | #endif |
---|
| 5606 | /* We use char because int might match the return type of a gcc2 |
---|
| 5607 | builtin and then its argument prototype would still apply. */ |
---|
| 5608 | char gluProject (); |
---|
[2190] | 5609 | int |
---|
| 5610 | main () |
---|
| 5611 | { |
---|
[2701] | 5612 | gluProject (); |
---|
[2190] | 5613 | ; |
---|
| 5614 | return 0; |
---|
| 5615 | } |
---|
| 5616 | _ACEOF |
---|
| 5617 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5619 | (eval $ac_link) 2>conftest.er1 |
---|
| 5620 | ac_status=$? |
---|
| 5621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5622 | rm -f conftest.er1 |
---|
| 5623 | cat conftest.err >&5 |
---|
| 5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5625 | (exit $ac_status); } && |
---|
| 5626 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5627 | || test ! -s conftest.err' |
---|
| 5628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5629 | (eval $ac_try) 2>&5 |
---|
| 5630 | ac_status=$? |
---|
| 5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5632 | (exit $ac_status); }; } && |
---|
| 5633 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5635 | (eval $ac_try) 2>&5 |
---|
| 5636 | ac_status=$? |
---|
| 5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5638 | (exit $ac_status); }; }; then |
---|
[2701] | 5639 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5640 | else |
---|
| 5641 | echo "$as_me: failed program was:" >&5 |
---|
| 5642 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5643 | |
---|
[2701] | 5644 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5645 | fi |
---|
| 5646 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5647 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5648 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5649 | fi |
---|
[2701] | 5650 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5651 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5652 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5653 | FOUND_GLU=yes |
---|
[2190] | 5654 | fi |
---|
| 5655 | |
---|
[3424] | 5656 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5657 | LIBS="$LIBS -lGLU" |
---|
| 5658 | else |
---|
| 5659 | echo "------------------" |
---|
| 5660 | echo "GLU library not found." |
---|
| 5661 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5662 | echo "------------------" |
---|
| 5663 | exit -1 |
---|
| 5664 | fi |
---|
[2995] | 5665 | |
---|
[2991] | 5666 | # checking for SDL-headers |
---|
[2190] | 5667 | |
---|
[3790] | 5668 | for ac_header in SDL.h |
---|
[2991] | 5669 | do |
---|
| 5670 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5676 | fi |
---|
[2991] | 5677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5679 | else |
---|
[2991] | 5680 | # Is the header compilable? |
---|
| 5681 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5683 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5684 | /* confdefs.h. */ |
---|
| 5685 | _ACEOF |
---|
| 5686 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5687 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5688 | /* end confdefs.h. */ |
---|
[2991] | 5689 | $ac_includes_default |
---|
| 5690 | #include <$ac_header> |
---|
[2190] | 5691 | _ACEOF |
---|
[2991] | 5692 | rm -f conftest.$ac_objext |
---|
| 5693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5694 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5695 | ac_status=$? |
---|
[2991] | 5696 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5697 | rm -f conftest.er1 |
---|
| 5698 | cat conftest.err >&5 |
---|
[2190] | 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5700 | (exit $ac_status); } && |
---|
| 5701 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5702 | || test ! -s conftest.err' |
---|
[2190] | 5703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5704 | (eval $ac_try) 2>&5 |
---|
| 5705 | ac_status=$? |
---|
| 5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5707 | (exit $ac_status); }; } && |
---|
| 5708 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5710 | (eval $ac_try) 2>&5 |
---|
| 5711 | ac_status=$? |
---|
| 5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5713 | (exit $ac_status); }; }; then |
---|
[2991] | 5714 | ac_header_compiler=yes |
---|
[2190] | 5715 | else |
---|
[2991] | 5716 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5717 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5718 | |
---|
[2991] | 5719 | ac_header_compiler=no |
---|
[2190] | 5720 | fi |
---|
[2991] | 5721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5722 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5723 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5724 | |
---|
| 5725 | # Is the header present? |
---|
| 5726 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5727 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5728 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5729 | /* confdefs.h. */ |
---|
| 5730 | _ACEOF |
---|
| 5731 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5732 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5733 | /* end confdefs.h. */ |
---|
| 5734 | #include <$ac_header> |
---|
| 5735 | _ACEOF |
---|
| 5736 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5737 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5738 | ac_status=$? |
---|
| 5739 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5740 | rm -f conftest.er1 |
---|
| 5741 | cat conftest.err >&5 |
---|
| 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5743 | (exit $ac_status); } >/dev/null; then |
---|
| 5744 | if test -s conftest.err; then |
---|
| 5745 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5746 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5747 | else |
---|
| 5748 | ac_cpp_err= |
---|
| 5749 | fi |
---|
| 5750 | else |
---|
| 5751 | ac_cpp_err=yes |
---|
[2190] | 5752 | fi |
---|
[2991] | 5753 | if test -z "$ac_cpp_err"; then |
---|
| 5754 | ac_header_preproc=yes |
---|
| 5755 | else |
---|
| 5756 | echo "$as_me: failed program was:" >&5 |
---|
| 5757 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5758 | |
---|
| 5759 | ac_header_preproc=no |
---|
| 5760 | fi |
---|
| 5761 | rm -f conftest.err conftest.$ac_ext |
---|
| 5762 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5763 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5764 | |
---|
| 5765 | # So? What about this header? |
---|
| 5766 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5767 | yes:no: ) |
---|
| 5768 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5769 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5771 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5772 | ac_header_preproc=yes |
---|
| 5773 | ;; |
---|
| 5774 | no:yes:* ) |
---|
| 5775 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5776 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5777 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5778 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5779 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5780 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5781 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5782 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5783 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5784 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5785 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5786 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5787 | ( |
---|
| 5788 | cat <<\_ASBOX |
---|
[3240] | 5789 | ## ---------------------------------------------- ## |
---|
| 5790 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5791 | ## ---------------------------------------------- ## |
---|
[2991] | 5792 | _ASBOX |
---|
| 5793 | ) | |
---|
| 5794 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5795 | ;; |
---|
| 5796 | esac |
---|
| 5797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5801 | else |
---|
| 5802 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5803 | fi |
---|
| 5804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5806 | |
---|
| 5807 | fi |
---|
| 5808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5809 | cat >>confdefs.h <<_ACEOF |
---|
| 5810 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5811 | _ACEOF |
---|
| 5812 | |
---|
| 5813 | else |
---|
| 5814 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5815 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5816 | { (exit 1); exit 1; }; } |
---|
| 5817 | fi |
---|
| 5818 | |
---|
| 5819 | done |
---|
| 5820 | |
---|
| 5821 | |
---|
[3140] | 5822 | # checking for SDL-lib |
---|
[2991] | 5823 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5824 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5825 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5827 | else |
---|
| 5828 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5829 | LIBS="-lSDL $LIBS" |
---|
| 5830 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5831 | /* confdefs.h. */ |
---|
| 5832 | _ACEOF |
---|
| 5833 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5834 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5835 | /* end confdefs.h. */ |
---|
| 5836 | |
---|
| 5837 | |
---|
| 5838 | int |
---|
| 5839 | main () |
---|
| 5840 | { |
---|
[2991] | 5841 | main (); |
---|
[2190] | 5842 | ; |
---|
| 5843 | return 0; |
---|
| 5844 | } |
---|
| 5845 | _ACEOF |
---|
| 5846 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5848 | (eval $ac_link) 2>conftest.er1 |
---|
| 5849 | ac_status=$? |
---|
| 5850 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5851 | rm -f conftest.er1 |
---|
| 5852 | cat conftest.err >&5 |
---|
| 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5854 | (exit $ac_status); } && |
---|
| 5855 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5856 | || test ! -s conftest.err' |
---|
| 5857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5858 | (eval $ac_try) 2>&5 |
---|
| 5859 | ac_status=$? |
---|
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5861 | (exit $ac_status); }; } && |
---|
| 5862 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5864 | (eval $ac_try) 2>&5 |
---|
| 5865 | ac_status=$? |
---|
| 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5867 | (exit $ac_status); }; }; then |
---|
[2991] | 5868 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5869 | else |
---|
| 5870 | echo "$as_me: failed program was:" >&5 |
---|
| 5871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5872 | |
---|
[2991] | 5873 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5874 | fi |
---|
| 5875 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5876 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5877 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5878 | fi |
---|
| 5879 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5880 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5881 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5882 | FOUND_SDL=yes |
---|
| 5883 | fi |
---|
| 5884 | |
---|
[3424] | 5885 | if test x$FOUND_SDL = xyes ; then |
---|
[2991] | 5886 | LIBS="$LIBS -lSDL" |
---|
| 5887 | else |
---|
| 5888 | echo "------------------" |
---|
| 5889 | echo "SDL library not found." |
---|
| 5890 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5891 | echo "------------------" |
---|
| 5892 | exit -1 |
---|
[2980] | 5893 | fi |
---|
[2701] | 5894 | |
---|
[3140] | 5895 | |
---|
[2991] | 5896 | ## checking for SDL |
---|
| 5897 | # SDL_VERSION=1.2.7 |
---|
| 5898 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5899 | # :, |
---|
| 5900 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5901 | # ) |
---|
| 5902 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5903 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5904 | ;; |
---|
[3424] | 5905 | #-----------# |
---|
| 5906 | # MAC -OS X # |
---|
| 5907 | #-----------# |
---|
[2995] | 5908 | *darwin*) |
---|
[3424] | 5909 | echo "OS X detected" |
---|
[2995] | 5910 | |
---|
| 5911 | osX="yes" |
---|
| 5912 | |
---|
[3906] | 5913 | CPPFLAGS="-I/sw/include -I/sw/include/SDL $CPPFLAGS" |
---|
[2995] | 5914 | # checking gl header |
---|
| 5915 | |
---|
| 5916 | for ac_header in OpenGL/gl.h |
---|
| 5917 | do |
---|
| 5918 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5924 | fi |
---|
| 5925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5927 | else |
---|
| 5928 | # Is the header compilable? |
---|
| 5929 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5931 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5932 | /* confdefs.h. */ |
---|
| 5933 | _ACEOF |
---|
| 5934 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5935 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5936 | /* end confdefs.h. */ |
---|
| 5937 | $ac_includes_default |
---|
| 5938 | #include <$ac_header> |
---|
| 5939 | _ACEOF |
---|
| 5940 | rm -f conftest.$ac_objext |
---|
| 5941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5942 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5943 | ac_status=$? |
---|
| 5944 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5945 | rm -f conftest.er1 |
---|
| 5946 | cat conftest.err >&5 |
---|
| 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5948 | (exit $ac_status); } && |
---|
| 5949 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5950 | || test ! -s conftest.err' |
---|
| 5951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5952 | (eval $ac_try) 2>&5 |
---|
| 5953 | ac_status=$? |
---|
| 5954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5955 | (exit $ac_status); }; } && |
---|
| 5956 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5958 | (eval $ac_try) 2>&5 |
---|
| 5959 | ac_status=$? |
---|
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5961 | (exit $ac_status); }; }; then |
---|
| 5962 | ac_header_compiler=yes |
---|
| 5963 | else |
---|
| 5964 | echo "$as_me: failed program was:" >&5 |
---|
| 5965 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5966 | |
---|
| 5967 | ac_header_compiler=no |
---|
| 5968 | fi |
---|
| 5969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5970 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5971 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5972 | |
---|
| 5973 | # Is the header present? |
---|
| 5974 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5975 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5976 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5977 | /* confdefs.h. */ |
---|
| 5978 | _ACEOF |
---|
| 5979 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5981 | /* end confdefs.h. */ |
---|
| 5982 | #include <$ac_header> |
---|
| 5983 | _ACEOF |
---|
| 5984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5986 | ac_status=$? |
---|
| 5987 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5988 | rm -f conftest.er1 |
---|
| 5989 | cat conftest.err >&5 |
---|
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5991 | (exit $ac_status); } >/dev/null; then |
---|
| 5992 | if test -s conftest.err; then |
---|
| 5993 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5995 | else |
---|
| 5996 | ac_cpp_err= |
---|
| 5997 | fi |
---|
| 5998 | else |
---|
| 5999 | ac_cpp_err=yes |
---|
| 6000 | fi |
---|
| 6001 | if test -z "$ac_cpp_err"; then |
---|
| 6002 | ac_header_preproc=yes |
---|
| 6003 | else |
---|
| 6004 | echo "$as_me: failed program was:" >&5 |
---|
| 6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6006 | |
---|
| 6007 | ac_header_preproc=no |
---|
| 6008 | fi |
---|
| 6009 | rm -f conftest.err conftest.$ac_ext |
---|
| 6010 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6011 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6012 | |
---|
| 6013 | # So? What about this header? |
---|
| 6014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6015 | yes:no: ) |
---|
| 6016 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6017 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6019 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6020 | ac_header_preproc=yes |
---|
| 6021 | ;; |
---|
| 6022 | no:yes:* ) |
---|
| 6023 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6024 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6025 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6026 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6027 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6028 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6029 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6030 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6032 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6033 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6034 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6035 | ( |
---|
| 6036 | cat <<\_ASBOX |
---|
[3240] | 6037 | ## ---------------------------------------------- ## |
---|
| 6038 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6039 | ## ---------------------------------------------- ## |
---|
[2995] | 6040 | _ASBOX |
---|
| 6041 | ) | |
---|
| 6042 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6043 | ;; |
---|
| 6044 | esac |
---|
| 6045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6049 | else |
---|
| 6050 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6051 | fi |
---|
| 6052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6054 | |
---|
| 6055 | fi |
---|
| 6056 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6057 | cat >>confdefs.h <<_ACEOF |
---|
| 6058 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6059 | _ACEOF |
---|
| 6060 | |
---|
| 6061 | else |
---|
| 6062 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6063 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6064 | { (exit 1); exit 1; }; } |
---|
| 6065 | fi |
---|
| 6066 | |
---|
| 6067 | done |
---|
| 6068 | |
---|
| 6069 | # cheking for GLU-header |
---|
| 6070 | |
---|
| 6071 | for ac_header in OpenGL/glu.h |
---|
| 6072 | do |
---|
| 6073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6079 | fi |
---|
| 6080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6081 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6082 | else |
---|
| 6083 | # Is the header compilable? |
---|
| 6084 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6085 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6086 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6087 | /* confdefs.h. */ |
---|
| 6088 | _ACEOF |
---|
| 6089 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6090 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6091 | /* end confdefs.h. */ |
---|
| 6092 | $ac_includes_default |
---|
| 6093 | #include <$ac_header> |
---|
| 6094 | _ACEOF |
---|
| 6095 | rm -f conftest.$ac_objext |
---|
| 6096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6097 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6098 | ac_status=$? |
---|
| 6099 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6100 | rm -f conftest.er1 |
---|
| 6101 | cat conftest.err >&5 |
---|
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6103 | (exit $ac_status); } && |
---|
| 6104 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6105 | || test ! -s conftest.err' |
---|
| 6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6107 | (eval $ac_try) 2>&5 |
---|
| 6108 | ac_status=$? |
---|
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6110 | (exit $ac_status); }; } && |
---|
| 6111 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6113 | (eval $ac_try) 2>&5 |
---|
| 6114 | ac_status=$? |
---|
| 6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6116 | (exit $ac_status); }; }; then |
---|
| 6117 | ac_header_compiler=yes |
---|
| 6118 | else |
---|
| 6119 | echo "$as_me: failed program was:" >&5 |
---|
| 6120 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6121 | |
---|
| 6122 | ac_header_compiler=no |
---|
| 6123 | fi |
---|
| 6124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6125 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6126 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6127 | |
---|
| 6128 | # Is the header present? |
---|
| 6129 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6130 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6131 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6132 | /* confdefs.h. */ |
---|
| 6133 | _ACEOF |
---|
| 6134 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6135 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6136 | /* end confdefs.h. */ |
---|
| 6137 | #include <$ac_header> |
---|
| 6138 | _ACEOF |
---|
| 6139 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6140 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6141 | ac_status=$? |
---|
| 6142 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6143 | rm -f conftest.er1 |
---|
| 6144 | cat conftest.err >&5 |
---|
| 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6146 | (exit $ac_status); } >/dev/null; then |
---|
| 6147 | if test -s conftest.err; then |
---|
| 6148 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6149 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6150 | else |
---|
| 6151 | ac_cpp_err= |
---|
| 6152 | fi |
---|
| 6153 | else |
---|
| 6154 | ac_cpp_err=yes |
---|
| 6155 | fi |
---|
| 6156 | if test -z "$ac_cpp_err"; then |
---|
| 6157 | ac_header_preproc=yes |
---|
| 6158 | else |
---|
| 6159 | echo "$as_me: failed program was:" >&5 |
---|
| 6160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6161 | |
---|
| 6162 | ac_header_preproc=no |
---|
| 6163 | fi |
---|
| 6164 | rm -f conftest.err conftest.$ac_ext |
---|
| 6165 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6166 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6167 | |
---|
| 6168 | # So? What about this header? |
---|
| 6169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6170 | yes:no: ) |
---|
| 6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6172 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6174 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6175 | ac_header_preproc=yes |
---|
| 6176 | ;; |
---|
| 6177 | no:yes:* ) |
---|
| 6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6179 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6181 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6183 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6184 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6185 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6187 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6188 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6189 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6190 | ( |
---|
| 6191 | cat <<\_ASBOX |
---|
[3240] | 6192 | ## ---------------------------------------------- ## |
---|
| 6193 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6194 | ## ---------------------------------------------- ## |
---|
[2995] | 6195 | _ASBOX |
---|
| 6196 | ) | |
---|
| 6197 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6198 | ;; |
---|
| 6199 | esac |
---|
| 6200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6204 | else |
---|
| 6205 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6206 | fi |
---|
| 6207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6209 | |
---|
| 6210 | fi |
---|
| 6211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6212 | cat >>confdefs.h <<_ACEOF |
---|
| 6213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6214 | _ACEOF |
---|
| 6215 | |
---|
| 6216 | else |
---|
| 6217 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6218 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6219 | { (exit 1); exit 1; }; } |
---|
| 6220 | fi |
---|
| 6221 | |
---|
| 6222 | done |
---|
| 6223 | |
---|
| 6224 | |
---|
| 6225 | LIBS="$LIBS -framework OpenGL" |
---|
| 6226 | |
---|
[3424] | 6227 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6228 | SDL_LIBS=`sdl-config --libs` |
---|
| 6229 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6230 | LIBS="$LIBS $SDL_LIBS" |
---|
| 6231 | |
---|
| 6232 | |
---|
[2995] | 6233 | # checking for SDL-headers |
---|
[3001] | 6234 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6235 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 6236 | |
---|
| 6237 | ## checking for SDL |
---|
| 6238 | # SDL_VERSION=1.2.7 |
---|
| 6239 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6240 | # :, |
---|
| 6241 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6242 | # ) |
---|
| 6243 | |
---|
[3140] | 6244 | |
---|
[2995] | 6245 | ;; |
---|
| 6246 | |
---|
[2989] | 6247 | *) |
---|
| 6248 | ;; |
---|
| 6249 | esac |
---|
[2980] | 6250 | |
---|
[2981] | 6251 | |
---|
[2989] | 6252 | |
---|
[3424] | 6253 | ################################### |
---|
| 6254 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6255 | ################################### |
---|
| 6256 | |
---|
[4504] | 6257 | #--------# |
---|
| 6258 | # openAL # |
---|
| 6259 | #--------# |
---|
| 6260 | # checking for openAL-headers |
---|
| 6261 | |
---|
| 6262 | for ac_header in AL/al.h |
---|
| 6263 | do |
---|
| 6264 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6270 | fi |
---|
| 6271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6273 | else |
---|
| 6274 | # Is the header compilable? |
---|
| 6275 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6276 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6277 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6278 | /* confdefs.h. */ |
---|
| 6279 | _ACEOF |
---|
| 6280 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6281 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6282 | /* end confdefs.h. */ |
---|
| 6283 | $ac_includes_default |
---|
| 6284 | #include <$ac_header> |
---|
| 6285 | _ACEOF |
---|
| 6286 | rm -f conftest.$ac_objext |
---|
| 6287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6288 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6289 | ac_status=$? |
---|
| 6290 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6291 | rm -f conftest.er1 |
---|
| 6292 | cat conftest.err >&5 |
---|
| 6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6294 | (exit $ac_status); } && |
---|
| 6295 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6296 | || test ! -s conftest.err' |
---|
| 6297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6298 | (eval $ac_try) 2>&5 |
---|
| 6299 | ac_status=$? |
---|
| 6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6301 | (exit $ac_status); }; } && |
---|
| 6302 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6304 | (eval $ac_try) 2>&5 |
---|
| 6305 | ac_status=$? |
---|
| 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6307 | (exit $ac_status); }; }; then |
---|
| 6308 | ac_header_compiler=yes |
---|
| 6309 | else |
---|
| 6310 | echo "$as_me: failed program was:" >&5 |
---|
| 6311 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6312 | |
---|
| 6313 | ac_header_compiler=no |
---|
| 6314 | fi |
---|
| 6315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6316 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6317 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6318 | |
---|
| 6319 | # Is the header present? |
---|
| 6320 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6321 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6322 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6323 | /* confdefs.h. */ |
---|
| 6324 | _ACEOF |
---|
| 6325 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6326 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6327 | /* end confdefs.h. */ |
---|
| 6328 | #include <$ac_header> |
---|
| 6329 | _ACEOF |
---|
| 6330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6332 | ac_status=$? |
---|
| 6333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6334 | rm -f conftest.er1 |
---|
| 6335 | cat conftest.err >&5 |
---|
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6337 | (exit $ac_status); } >/dev/null; then |
---|
| 6338 | if test -s conftest.err; then |
---|
| 6339 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6341 | else |
---|
| 6342 | ac_cpp_err= |
---|
| 6343 | fi |
---|
| 6344 | else |
---|
| 6345 | ac_cpp_err=yes |
---|
| 6346 | fi |
---|
| 6347 | if test -z "$ac_cpp_err"; then |
---|
| 6348 | ac_header_preproc=yes |
---|
| 6349 | else |
---|
| 6350 | echo "$as_me: failed program was:" >&5 |
---|
| 6351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6352 | |
---|
| 6353 | ac_header_preproc=no |
---|
| 6354 | fi |
---|
| 6355 | rm -f conftest.err conftest.$ac_ext |
---|
| 6356 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6357 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6358 | |
---|
| 6359 | # So? What about this header? |
---|
| 6360 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6361 | yes:no: ) |
---|
| 6362 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6363 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6364 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6365 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6366 | ac_header_preproc=yes |
---|
| 6367 | ;; |
---|
| 6368 | no:yes:* ) |
---|
| 6369 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6370 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6371 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6372 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6373 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6374 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6375 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6376 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6377 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6378 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6379 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6380 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6381 | ( |
---|
| 6382 | cat <<\_ASBOX |
---|
| 6383 | ## ---------------------------------------------- ## |
---|
| 6384 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6385 | ## ---------------------------------------------- ## |
---|
| 6386 | _ASBOX |
---|
| 6387 | ) | |
---|
| 6388 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6389 | ;; |
---|
| 6390 | esac |
---|
| 6391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6395 | else |
---|
| 6396 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6397 | fi |
---|
| 6398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6399 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6400 | |
---|
| 6401 | fi |
---|
| 6402 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6403 | cat >>confdefs.h <<_ACEOF |
---|
| 6404 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6405 | _ACEOF |
---|
| 6406 | |
---|
| 6407 | else |
---|
| 6408 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
| 6409 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
| 6410 | { (exit 1); exit 1; }; } |
---|
| 6411 | fi |
---|
| 6412 | |
---|
| 6413 | done |
---|
| 6414 | |
---|
| 6415 | # checking for openAL-lib |
---|
| 6416 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
| 6417 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
| 6418 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
| 6419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6420 | else |
---|
| 6421 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6422 | LIBS="-lopenal $LIBS" |
---|
| 6423 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6424 | /* confdefs.h. */ |
---|
| 6425 | _ACEOF |
---|
| 6426 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6428 | /* end confdefs.h. */ |
---|
| 6429 | |
---|
| 6430 | |
---|
| 6431 | int |
---|
| 6432 | main () |
---|
| 6433 | { |
---|
| 6434 | main (); |
---|
| 6435 | ; |
---|
| 6436 | return 0; |
---|
| 6437 | } |
---|
| 6438 | _ACEOF |
---|
| 6439 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6441 | (eval $ac_link) 2>conftest.er1 |
---|
| 6442 | ac_status=$? |
---|
| 6443 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6444 | rm -f conftest.er1 |
---|
| 6445 | cat conftest.err >&5 |
---|
| 6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6447 | (exit $ac_status); } && |
---|
| 6448 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6449 | || test ! -s conftest.err' |
---|
| 6450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6451 | (eval $ac_try) 2>&5 |
---|
| 6452 | ac_status=$? |
---|
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6454 | (exit $ac_status); }; } && |
---|
| 6455 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6457 | (eval $ac_try) 2>&5 |
---|
| 6458 | ac_status=$? |
---|
| 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6460 | (exit $ac_status); }; }; then |
---|
| 6461 | ac_cv_lib_openal_main=yes |
---|
| 6462 | else |
---|
| 6463 | echo "$as_me: failed program was:" >&5 |
---|
| 6464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6465 | |
---|
| 6466 | ac_cv_lib_openal_main=no |
---|
| 6467 | fi |
---|
| 6468 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6469 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6470 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6471 | fi |
---|
| 6472 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
| 6473 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
| 6474 | if test $ac_cv_lib_openal_main = yes; then |
---|
| 6475 | FOUND_openal=yes |
---|
| 6476 | fi |
---|
| 6477 | |
---|
| 6478 | if test x$FOUND_openal = xyes ; then |
---|
| 6479 | LIBS="$LIBS -lopenal" |
---|
| 6480 | else |
---|
| 6481 | echo "------------------" |
---|
| 6482 | echo "openal library not found." |
---|
| 6483 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
| 6484 | echo "------------------" |
---|
| 6485 | exit -1 |
---|
| 6486 | fi |
---|
| 6487 | |
---|
| 6488 | #-----# |
---|
| 6489 | # ogg # |
---|
| 6490 | #-----# |
---|
| 6491 | # checking for ogg-headers |
---|
| 6492 | |
---|
| 6493 | for ac_header in ogg/ogg.h |
---|
| 6494 | do |
---|
| 6495 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6501 | fi |
---|
| 6502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6504 | else |
---|
| 6505 | # Is the header compilable? |
---|
| 6506 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6507 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6508 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6509 | /* confdefs.h. */ |
---|
| 6510 | _ACEOF |
---|
| 6511 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6513 | /* end confdefs.h. */ |
---|
| 6514 | $ac_includes_default |
---|
| 6515 | #include <$ac_header> |
---|
| 6516 | _ACEOF |
---|
| 6517 | rm -f conftest.$ac_objext |
---|
| 6518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6519 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6520 | ac_status=$? |
---|
| 6521 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6522 | rm -f conftest.er1 |
---|
| 6523 | cat conftest.err >&5 |
---|
| 6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6525 | (exit $ac_status); } && |
---|
| 6526 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6527 | || test ! -s conftest.err' |
---|
| 6528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6529 | (eval $ac_try) 2>&5 |
---|
| 6530 | ac_status=$? |
---|
| 6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6532 | (exit $ac_status); }; } && |
---|
| 6533 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6535 | (eval $ac_try) 2>&5 |
---|
| 6536 | ac_status=$? |
---|
| 6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6538 | (exit $ac_status); }; }; then |
---|
| 6539 | ac_header_compiler=yes |
---|
| 6540 | else |
---|
| 6541 | echo "$as_me: failed program was:" >&5 |
---|
| 6542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6543 | |
---|
| 6544 | ac_header_compiler=no |
---|
| 6545 | fi |
---|
| 6546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6548 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6549 | |
---|
| 6550 | # Is the header present? |
---|
| 6551 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6552 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6553 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6554 | /* confdefs.h. */ |
---|
| 6555 | _ACEOF |
---|
| 6556 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6557 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6558 | /* end confdefs.h. */ |
---|
| 6559 | #include <$ac_header> |
---|
| 6560 | _ACEOF |
---|
| 6561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6563 | ac_status=$? |
---|
| 6564 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6565 | rm -f conftest.er1 |
---|
| 6566 | cat conftest.err >&5 |
---|
| 6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6568 | (exit $ac_status); } >/dev/null; then |
---|
| 6569 | if test -s conftest.err; then |
---|
| 6570 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6572 | else |
---|
| 6573 | ac_cpp_err= |
---|
| 6574 | fi |
---|
| 6575 | else |
---|
| 6576 | ac_cpp_err=yes |
---|
| 6577 | fi |
---|
| 6578 | if test -z "$ac_cpp_err"; then |
---|
| 6579 | ac_header_preproc=yes |
---|
| 6580 | else |
---|
| 6581 | echo "$as_me: failed program was:" >&5 |
---|
| 6582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6583 | |
---|
| 6584 | ac_header_preproc=no |
---|
| 6585 | fi |
---|
| 6586 | rm -f conftest.err conftest.$ac_ext |
---|
| 6587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6588 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6589 | |
---|
| 6590 | # So? What about this header? |
---|
| 6591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6592 | yes:no: ) |
---|
| 6593 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6594 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6595 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6596 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6597 | ac_header_preproc=yes |
---|
| 6598 | ;; |
---|
| 6599 | no:yes:* ) |
---|
| 6600 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6601 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6602 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6603 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6604 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6605 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6606 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6607 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6609 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6610 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6611 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6612 | ( |
---|
| 6613 | cat <<\_ASBOX |
---|
| 6614 | ## ---------------------------------------------- ## |
---|
| 6615 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6616 | ## ---------------------------------------------- ## |
---|
| 6617 | _ASBOX |
---|
| 6618 | ) | |
---|
| 6619 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6620 | ;; |
---|
| 6621 | esac |
---|
| 6622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6626 | else |
---|
| 6627 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6628 | fi |
---|
| 6629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6631 | |
---|
| 6632 | fi |
---|
| 6633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6634 | cat >>confdefs.h <<_ACEOF |
---|
| 6635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6636 | _ACEOF |
---|
| 6637 | |
---|
| 6638 | else |
---|
| 6639 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
| 6640 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
| 6641 | { (exit 1); exit 1; }; } |
---|
| 6642 | fi |
---|
| 6643 | |
---|
| 6644 | done |
---|
| 6645 | |
---|
| 6646 | # checking for ogg-lib |
---|
| 6647 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
| 6648 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
| 6649 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
| 6650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6651 | else |
---|
| 6652 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6653 | LIBS="-logg $LIBS" |
---|
| 6654 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6655 | /* confdefs.h. */ |
---|
| 6656 | _ACEOF |
---|
| 6657 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6658 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6659 | /* end confdefs.h. */ |
---|
| 6660 | |
---|
| 6661 | |
---|
| 6662 | int |
---|
| 6663 | main () |
---|
| 6664 | { |
---|
| 6665 | main (); |
---|
| 6666 | ; |
---|
| 6667 | return 0; |
---|
| 6668 | } |
---|
| 6669 | _ACEOF |
---|
| 6670 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6672 | (eval $ac_link) 2>conftest.er1 |
---|
| 6673 | ac_status=$? |
---|
| 6674 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6675 | rm -f conftest.er1 |
---|
| 6676 | cat conftest.err >&5 |
---|
| 6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6678 | (exit $ac_status); } && |
---|
| 6679 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6680 | || test ! -s conftest.err' |
---|
| 6681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6682 | (eval $ac_try) 2>&5 |
---|
| 6683 | ac_status=$? |
---|
| 6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6685 | (exit $ac_status); }; } && |
---|
| 6686 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6688 | (eval $ac_try) 2>&5 |
---|
| 6689 | ac_status=$? |
---|
| 6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6691 | (exit $ac_status); }; }; then |
---|
| 6692 | ac_cv_lib_ogg_main=yes |
---|
| 6693 | else |
---|
| 6694 | echo "$as_me: failed program was:" >&5 |
---|
| 6695 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6696 | |
---|
| 6697 | ac_cv_lib_ogg_main=no |
---|
| 6698 | fi |
---|
| 6699 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6700 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6701 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6702 | fi |
---|
| 6703 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
| 6704 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
| 6705 | if test $ac_cv_lib_ogg_main = yes; then |
---|
| 6706 | FOUND_ogg=yes |
---|
| 6707 | fi |
---|
| 6708 | |
---|
| 6709 | if test x$FOUND_ogg = xyes ; then |
---|
| 6710 | LIBS="$LIBS -logg" |
---|
| 6711 | else |
---|
| 6712 | echo "------------------" |
---|
| 6713 | echo "ogg library not found." |
---|
| 6714 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 6715 | echo "------------------" |
---|
| 6716 | exit -1 |
---|
| 6717 | fi |
---|
| 6718 | |
---|
| 6719 | #--------# |
---|
| 6720 | # vorbis # |
---|
| 6721 | #--------# |
---|
| 6722 | # checking for vorbis-lib |
---|
| 6723 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
| 6724 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
| 6725 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
| 6726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6727 | else |
---|
| 6728 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6729 | LIBS="-lvorbis $LIBS" |
---|
| 6730 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6731 | /* confdefs.h. */ |
---|
| 6732 | _ACEOF |
---|
| 6733 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6735 | /* end confdefs.h. */ |
---|
| 6736 | |
---|
| 6737 | |
---|
| 6738 | int |
---|
| 6739 | main () |
---|
| 6740 | { |
---|
| 6741 | main (); |
---|
| 6742 | ; |
---|
| 6743 | return 0; |
---|
| 6744 | } |
---|
| 6745 | _ACEOF |
---|
| 6746 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6748 | (eval $ac_link) 2>conftest.er1 |
---|
| 6749 | ac_status=$? |
---|
| 6750 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6751 | rm -f conftest.er1 |
---|
| 6752 | cat conftest.err >&5 |
---|
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6754 | (exit $ac_status); } && |
---|
| 6755 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6756 | || test ! -s conftest.err' |
---|
| 6757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6758 | (eval $ac_try) 2>&5 |
---|
| 6759 | ac_status=$? |
---|
| 6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6761 | (exit $ac_status); }; } && |
---|
| 6762 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6764 | (eval $ac_try) 2>&5 |
---|
| 6765 | ac_status=$? |
---|
| 6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6767 | (exit $ac_status); }; }; then |
---|
| 6768 | ac_cv_lib_vorbis_main=yes |
---|
| 6769 | else |
---|
| 6770 | echo "$as_me: failed program was:" >&5 |
---|
| 6771 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6772 | |
---|
| 6773 | ac_cv_lib_vorbis_main=no |
---|
| 6774 | fi |
---|
| 6775 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6776 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6777 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6778 | fi |
---|
| 6779 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
| 6780 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
| 6781 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
| 6782 | FOUND_vorbis=yes |
---|
| 6783 | fi |
---|
| 6784 | |
---|
| 6785 | if test x$FOUND_vorbis = xyes ; then |
---|
| 6786 | LIBS="$LIBS -lvorbis" |
---|
| 6787 | else |
---|
| 6788 | echo "------------------" |
---|
| 6789 | echo "vorbis library not found." |
---|
| 6790 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 6791 | echo "------------------" |
---|
| 6792 | exit -1 |
---|
| 6793 | fi |
---|
| 6794 | |
---|
| 6795 | #------------# |
---|
| 6796 | # vorbisfile # |
---|
| 6797 | #------------# |
---|
| 6798 | # checking for vorbis-headers |
---|
| 6799 | |
---|
| 6800 | for ac_header in vorbis/vorbisfile.h |
---|
| 6801 | do |
---|
| 6802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6804 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6808 | fi |
---|
| 6809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6811 | else |
---|
| 6812 | # Is the header compilable? |
---|
| 6813 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6814 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6815 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6816 | /* confdefs.h. */ |
---|
| 6817 | _ACEOF |
---|
| 6818 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6819 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6820 | /* end confdefs.h. */ |
---|
| 6821 | $ac_includes_default |
---|
| 6822 | #include <$ac_header> |
---|
| 6823 | _ACEOF |
---|
| 6824 | rm -f conftest.$ac_objext |
---|
| 6825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6826 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6827 | ac_status=$? |
---|
| 6828 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6829 | rm -f conftest.er1 |
---|
| 6830 | cat conftest.err >&5 |
---|
| 6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6832 | (exit $ac_status); } && |
---|
| 6833 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6834 | || test ! -s conftest.err' |
---|
| 6835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6836 | (eval $ac_try) 2>&5 |
---|
| 6837 | ac_status=$? |
---|
| 6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6839 | (exit $ac_status); }; } && |
---|
| 6840 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6842 | (eval $ac_try) 2>&5 |
---|
| 6843 | ac_status=$? |
---|
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6845 | (exit $ac_status); }; }; then |
---|
| 6846 | ac_header_compiler=yes |
---|
| 6847 | else |
---|
| 6848 | echo "$as_me: failed program was:" >&5 |
---|
| 6849 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6850 | |
---|
| 6851 | ac_header_compiler=no |
---|
| 6852 | fi |
---|
| 6853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6854 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6855 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6856 | |
---|
| 6857 | # Is the header present? |
---|
| 6858 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6859 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6860 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6861 | /* confdefs.h. */ |
---|
| 6862 | _ACEOF |
---|
| 6863 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6864 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6865 | /* end confdefs.h. */ |
---|
| 6866 | #include <$ac_header> |
---|
| 6867 | _ACEOF |
---|
| 6868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6870 | ac_status=$? |
---|
| 6871 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6872 | rm -f conftest.er1 |
---|
| 6873 | cat conftest.err >&5 |
---|
| 6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6875 | (exit $ac_status); } >/dev/null; then |
---|
| 6876 | if test -s conftest.err; then |
---|
| 6877 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6879 | else |
---|
| 6880 | ac_cpp_err= |
---|
| 6881 | fi |
---|
| 6882 | else |
---|
| 6883 | ac_cpp_err=yes |
---|
| 6884 | fi |
---|
| 6885 | if test -z "$ac_cpp_err"; then |
---|
| 6886 | ac_header_preproc=yes |
---|
| 6887 | else |
---|
| 6888 | echo "$as_me: failed program was:" >&5 |
---|
| 6889 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6890 | |
---|
| 6891 | ac_header_preproc=no |
---|
| 6892 | fi |
---|
| 6893 | rm -f conftest.err conftest.$ac_ext |
---|
| 6894 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6895 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6896 | |
---|
| 6897 | # So? What about this header? |
---|
| 6898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6899 | yes:no: ) |
---|
| 6900 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6901 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6903 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6904 | ac_header_preproc=yes |
---|
| 6905 | ;; |
---|
| 6906 | no:yes:* ) |
---|
| 6907 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6908 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6909 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6910 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6911 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6912 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6913 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6914 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6916 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6917 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6918 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6919 | ( |
---|
| 6920 | cat <<\_ASBOX |
---|
| 6921 | ## ---------------------------------------------- ## |
---|
| 6922 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6923 | ## ---------------------------------------------- ## |
---|
| 6924 | _ASBOX |
---|
| 6925 | ) | |
---|
| 6926 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6927 | ;; |
---|
| 6928 | esac |
---|
| 6929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6933 | else |
---|
| 6934 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6935 | fi |
---|
| 6936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6938 | |
---|
| 6939 | fi |
---|
| 6940 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6941 | cat >>confdefs.h <<_ACEOF |
---|
| 6942 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6943 | _ACEOF |
---|
| 6944 | |
---|
| 6945 | else |
---|
| 6946 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
| 6947 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
| 6948 | { (exit 1); exit 1; }; } |
---|
| 6949 | fi |
---|
| 6950 | |
---|
| 6951 | done |
---|
| 6952 | |
---|
| 6953 | # checking for vorbisfile-lib |
---|
| 6954 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
| 6955 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
| 6956 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
| 6957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6958 | else |
---|
| 6959 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6960 | LIBS="-lvorbisfile $LIBS" |
---|
| 6961 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6962 | /* confdefs.h. */ |
---|
| 6963 | _ACEOF |
---|
| 6964 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6965 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6966 | /* end confdefs.h. */ |
---|
| 6967 | |
---|
| 6968 | |
---|
| 6969 | int |
---|
| 6970 | main () |
---|
| 6971 | { |
---|
| 6972 | main (); |
---|
| 6973 | ; |
---|
| 6974 | return 0; |
---|
| 6975 | } |
---|
| 6976 | _ACEOF |
---|
| 6977 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6979 | (eval $ac_link) 2>conftest.er1 |
---|
| 6980 | ac_status=$? |
---|
| 6981 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6982 | rm -f conftest.er1 |
---|
| 6983 | cat conftest.err >&5 |
---|
| 6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6985 | (exit $ac_status); } && |
---|
| 6986 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6987 | || test ! -s conftest.err' |
---|
| 6988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6989 | (eval $ac_try) 2>&5 |
---|
| 6990 | ac_status=$? |
---|
| 6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6992 | (exit $ac_status); }; } && |
---|
| 6993 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6995 | (eval $ac_try) 2>&5 |
---|
| 6996 | ac_status=$? |
---|
| 6997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6998 | (exit $ac_status); }; }; then |
---|
| 6999 | ac_cv_lib_vorbisfile_main=yes |
---|
| 7000 | else |
---|
| 7001 | echo "$as_me: failed program was:" >&5 |
---|
| 7002 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7003 | |
---|
| 7004 | ac_cv_lib_vorbisfile_main=no |
---|
| 7005 | fi |
---|
| 7006 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7007 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7008 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7009 | fi |
---|
| 7010 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
| 7011 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
| 7012 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
| 7013 | FOUND_vorbisfile=yes |
---|
| 7014 | fi |
---|
| 7015 | |
---|
| 7016 | if test x$FOUND_vorbisfile = xyes ; then |
---|
| 7017 | LIBS="$LIBS -lvorbisfile" |
---|
| 7018 | else |
---|
| 7019 | echo "------------------" |
---|
| 7020 | echo "vorbisfile library not found." |
---|
| 7021 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
| 7022 | echo "------------------" |
---|
| 7023 | exit -1 |
---|
| 7024 | fi |
---|
| 7025 | |
---|
[3790] | 7026 | #---------# |
---|
| 7027 | # SDL_ttf # |
---|
| 7028 | #---------# |
---|
| 7029 | # checking for SDL_ttf-headers |
---|
| 7030 | |
---|
| 7031 | for ac_header in SDL_ttf.h |
---|
| 7032 | do |
---|
| 7033 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7035 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7036 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7039 | fi |
---|
| 7040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7041 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7042 | else |
---|
| 7043 | # Is the header compilable? |
---|
| 7044 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7046 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7047 | /* confdefs.h. */ |
---|
| 7048 | _ACEOF |
---|
| 7049 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7050 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7051 | /* end confdefs.h. */ |
---|
| 7052 | $ac_includes_default |
---|
| 7053 | #include <$ac_header> |
---|
| 7054 | _ACEOF |
---|
| 7055 | rm -f conftest.$ac_objext |
---|
| 7056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7057 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7058 | ac_status=$? |
---|
| 7059 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7060 | rm -f conftest.er1 |
---|
| 7061 | cat conftest.err >&5 |
---|
| 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7063 | (exit $ac_status); } && |
---|
| 7064 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7065 | || test ! -s conftest.err' |
---|
| 7066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7067 | (eval $ac_try) 2>&5 |
---|
| 7068 | ac_status=$? |
---|
| 7069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7070 | (exit $ac_status); }; } && |
---|
| 7071 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7073 | (eval $ac_try) 2>&5 |
---|
| 7074 | ac_status=$? |
---|
| 7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7076 | (exit $ac_status); }; }; then |
---|
| 7077 | ac_header_compiler=yes |
---|
| 7078 | else |
---|
| 7079 | echo "$as_me: failed program was:" >&5 |
---|
| 7080 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7081 | |
---|
| 7082 | ac_header_compiler=no |
---|
| 7083 | fi |
---|
| 7084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7085 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7086 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7087 | |
---|
| 7088 | # Is the header present? |
---|
| 7089 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7090 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7091 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7092 | /* confdefs.h. */ |
---|
| 7093 | _ACEOF |
---|
| 7094 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7096 | /* end confdefs.h. */ |
---|
| 7097 | #include <$ac_header> |
---|
| 7098 | _ACEOF |
---|
| 7099 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7101 | ac_status=$? |
---|
| 7102 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7103 | rm -f conftest.er1 |
---|
| 7104 | cat conftest.err >&5 |
---|
| 7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7106 | (exit $ac_status); } >/dev/null; then |
---|
| 7107 | if test -s conftest.err; then |
---|
| 7108 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7109 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7110 | else |
---|
| 7111 | ac_cpp_err= |
---|
| 7112 | fi |
---|
| 7113 | else |
---|
| 7114 | ac_cpp_err=yes |
---|
| 7115 | fi |
---|
| 7116 | if test -z "$ac_cpp_err"; then |
---|
| 7117 | ac_header_preproc=yes |
---|
| 7118 | else |
---|
| 7119 | echo "$as_me: failed program was:" >&5 |
---|
| 7120 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7121 | |
---|
| 7122 | ac_header_preproc=no |
---|
| 7123 | fi |
---|
| 7124 | rm -f conftest.err conftest.$ac_ext |
---|
| 7125 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7126 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7127 | |
---|
| 7128 | # So? What about this header? |
---|
| 7129 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7130 | yes:no: ) |
---|
| 7131 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7132 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7133 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7134 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7135 | ac_header_preproc=yes |
---|
| 7136 | ;; |
---|
| 7137 | no:yes:* ) |
---|
| 7138 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7139 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7140 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7141 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7142 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7143 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7144 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7145 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7147 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7148 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7149 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7150 | ( |
---|
| 7151 | cat <<\_ASBOX |
---|
| 7152 | ## ---------------------------------------------- ## |
---|
| 7153 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7154 | ## ---------------------------------------------- ## |
---|
| 7155 | _ASBOX |
---|
| 7156 | ) | |
---|
| 7157 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7158 | ;; |
---|
| 7159 | esac |
---|
| 7160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7164 | else |
---|
| 7165 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7166 | fi |
---|
| 7167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7169 | |
---|
| 7170 | fi |
---|
| 7171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7172 | cat >>confdefs.h <<_ACEOF |
---|
| 7173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7174 | _ACEOF |
---|
| 7175 | |
---|
| 7176 | else |
---|
| 7177 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
| 7178 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
| 7179 | { (exit 1); exit 1; }; } |
---|
| 7180 | fi |
---|
| 7181 | |
---|
| 7182 | done |
---|
| 7183 | |
---|
| 7184 | #fi |
---|
| 7185 | # checking for SDL_ttf-lib |
---|
| 7186 | echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 |
---|
| 7187 | echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 |
---|
| 7188 | if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then |
---|
| 7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7190 | else |
---|
| 7191 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7192 | LIBS="-lSDL_ttf $LIBS" |
---|
| 7193 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7194 | /* confdefs.h. */ |
---|
| 7195 | _ACEOF |
---|
| 7196 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7197 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7198 | /* end confdefs.h. */ |
---|
| 7199 | |
---|
| 7200 | |
---|
| 7201 | int |
---|
| 7202 | main () |
---|
| 7203 | { |
---|
| 7204 | main (); |
---|
| 7205 | ; |
---|
| 7206 | return 0; |
---|
| 7207 | } |
---|
| 7208 | _ACEOF |
---|
| 7209 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7211 | (eval $ac_link) 2>conftest.er1 |
---|
| 7212 | ac_status=$? |
---|
| 7213 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7214 | rm -f conftest.er1 |
---|
| 7215 | cat conftest.err >&5 |
---|
| 7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7217 | (exit $ac_status); } && |
---|
| 7218 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7219 | || test ! -s conftest.err' |
---|
| 7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7221 | (eval $ac_try) 2>&5 |
---|
| 7222 | ac_status=$? |
---|
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7224 | (exit $ac_status); }; } && |
---|
| 7225 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7227 | (eval $ac_try) 2>&5 |
---|
| 7228 | ac_status=$? |
---|
| 7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7230 | (exit $ac_status); }; }; then |
---|
| 7231 | ac_cv_lib_SDL_ttf_main=yes |
---|
| 7232 | else |
---|
| 7233 | echo "$as_me: failed program was:" >&5 |
---|
| 7234 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7235 | |
---|
| 7236 | ac_cv_lib_SDL_ttf_main=no |
---|
| 7237 | fi |
---|
| 7238 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7239 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7240 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7241 | fi |
---|
| 7242 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 |
---|
| 7243 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 |
---|
| 7244 | if test $ac_cv_lib_SDL_ttf_main = yes; then |
---|
| 7245 | FOUND_SDL_ttf=yes |
---|
| 7246 | fi |
---|
| 7247 | |
---|
| 7248 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
| 7249 | LIBS="$LIBS -lSDL_ttf" |
---|
| 7250 | else |
---|
| 7251 | echo "------------------" |
---|
| 7252 | echo "SDL_ttf library not found." |
---|
| 7253 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
| 7254 | echo "------------------" |
---|
| 7255 | exit -1 |
---|
| 7256 | fi |
---|
| 7257 | |
---|
[4504] | 7258 | |
---|
[3424] | 7259 | #-----------# |
---|
| 7260 | # SDL_Image # |
---|
| 7261 | #-----------# |
---|
[3140] | 7262 | # checking for SDL_image-headers |
---|
[2989] | 7263 | |
---|
[3790] | 7264 | for ac_header in SDL_image.h |
---|
[3140] | 7265 | do |
---|
| 7266 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7268 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7269 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7270 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7272 | fi |
---|
| 7273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7274 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7275 | else |
---|
| 7276 | # Is the header compilable? |
---|
| 7277 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7278 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7279 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7280 | /* confdefs.h. */ |
---|
| 7281 | _ACEOF |
---|
| 7282 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7283 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7284 | /* end confdefs.h. */ |
---|
| 7285 | $ac_includes_default |
---|
| 7286 | #include <$ac_header> |
---|
| 7287 | _ACEOF |
---|
| 7288 | rm -f conftest.$ac_objext |
---|
| 7289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7290 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7291 | ac_status=$? |
---|
| 7292 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7293 | rm -f conftest.er1 |
---|
| 7294 | cat conftest.err >&5 |
---|
| 7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7296 | (exit $ac_status); } && |
---|
| 7297 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7298 | || test ! -s conftest.err' |
---|
| 7299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7300 | (eval $ac_try) 2>&5 |
---|
| 7301 | ac_status=$? |
---|
| 7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7303 | (exit $ac_status); }; } && |
---|
| 7304 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7306 | (eval $ac_try) 2>&5 |
---|
| 7307 | ac_status=$? |
---|
| 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7309 | (exit $ac_status); }; }; then |
---|
| 7310 | ac_header_compiler=yes |
---|
| 7311 | else |
---|
| 7312 | echo "$as_me: failed program was:" >&5 |
---|
| 7313 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 7314 | |
---|
[3140] | 7315 | ac_header_compiler=no |
---|
| 7316 | fi |
---|
| 7317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7318 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7319 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 7320 | |
---|
[3140] | 7321 | # Is the header present? |
---|
| 7322 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7323 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7324 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7325 | /* confdefs.h. */ |
---|
| 7326 | _ACEOF |
---|
| 7327 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7328 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7329 | /* end confdefs.h. */ |
---|
| 7330 | #include <$ac_header> |
---|
| 7331 | _ACEOF |
---|
| 7332 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7333 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7334 | ac_status=$? |
---|
| 7335 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7336 | rm -f conftest.er1 |
---|
| 7337 | cat conftest.err >&5 |
---|
| 7338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7339 | (exit $ac_status); } >/dev/null; then |
---|
| 7340 | if test -s conftest.err; then |
---|
| 7341 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7342 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7343 | else |
---|
| 7344 | ac_cpp_err= |
---|
| 7345 | fi |
---|
| 7346 | else |
---|
| 7347 | ac_cpp_err=yes |
---|
| 7348 | fi |
---|
| 7349 | if test -z "$ac_cpp_err"; then |
---|
| 7350 | ac_header_preproc=yes |
---|
| 7351 | else |
---|
| 7352 | echo "$as_me: failed program was:" >&5 |
---|
| 7353 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7354 | |
---|
| 7355 | ac_header_preproc=no |
---|
| 7356 | fi |
---|
| 7357 | rm -f conftest.err conftest.$ac_ext |
---|
| 7358 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7359 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7360 | |
---|
| 7361 | # So? What about this header? |
---|
| 7362 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7363 | yes:no: ) |
---|
| 7364 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7365 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7367 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7368 | ac_header_preproc=yes |
---|
| 7369 | ;; |
---|
| 7370 | no:yes:* ) |
---|
| 7371 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7372 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7373 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7374 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7375 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7376 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7377 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7378 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7380 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7381 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7382 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7383 | ( |
---|
| 7384 | cat <<\_ASBOX |
---|
[3240] | 7385 | ## ---------------------------------------------- ## |
---|
| 7386 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7387 | ## ---------------------------------------------- ## |
---|
[3140] | 7388 | _ASBOX |
---|
| 7389 | ) | |
---|
| 7390 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7391 | ;; |
---|
| 7392 | esac |
---|
| 7393 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7397 | else |
---|
| 7398 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7399 | fi |
---|
| 7400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7401 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7402 | |
---|
| 7403 | fi |
---|
| 7404 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7405 | cat >>confdefs.h <<_ACEOF |
---|
| 7406 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7407 | _ACEOF |
---|
| 7408 | |
---|
| 7409 | else |
---|
[3863] | 7410 | echo "sdl_image header not found."; def_sdl_image=no; exit -1 |
---|
[3140] | 7411 | fi |
---|
| 7412 | |
---|
| 7413 | done |
---|
| 7414 | |
---|
| 7415 | # checking for SDL_image-lib |
---|
[3863] | 7416 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
[3140] | 7417 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 7418 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 7419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7420 | else |
---|
| 7421 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7422 | LIBS="-lSDL_image $LIBS" |
---|
| 7423 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7424 | /* confdefs.h. */ |
---|
| 7425 | _ACEOF |
---|
| 7426 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7428 | /* end confdefs.h. */ |
---|
| 7429 | |
---|
| 7430 | |
---|
| 7431 | int |
---|
| 7432 | main () |
---|
| 7433 | { |
---|
| 7434 | main (); |
---|
| 7435 | ; |
---|
| 7436 | return 0; |
---|
| 7437 | } |
---|
| 7438 | _ACEOF |
---|
| 7439 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7441 | (eval $ac_link) 2>conftest.er1 |
---|
| 7442 | ac_status=$? |
---|
| 7443 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7444 | rm -f conftest.er1 |
---|
| 7445 | cat conftest.err >&5 |
---|
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7447 | (exit $ac_status); } && |
---|
| 7448 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7449 | || test ! -s conftest.err' |
---|
| 7450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7451 | (eval $ac_try) 2>&5 |
---|
| 7452 | ac_status=$? |
---|
| 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7454 | (exit $ac_status); }; } && |
---|
| 7455 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7457 | (eval $ac_try) 2>&5 |
---|
| 7458 | ac_status=$? |
---|
| 7459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7460 | (exit $ac_status); }; }; then |
---|
| 7461 | ac_cv_lib_SDL_image_main=yes |
---|
| 7462 | else |
---|
| 7463 | echo "$as_me: failed program was:" >&5 |
---|
| 7464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7465 | |
---|
| 7466 | ac_cv_lib_SDL_image_main=no |
---|
| 7467 | fi |
---|
| 7468 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7469 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7470 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7471 | fi |
---|
| 7472 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 7473 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 7474 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 7475 | FOUND_SDL_image=yes |
---|
| 7476 | fi |
---|
| 7477 | |
---|
[3863] | 7478 | if test x$FOUND_SDL_image = xyes ; then |
---|
| 7479 | LIBS="$LIBS -lSDL_image" |
---|
| 7480 | else |
---|
| 7481 | echo "------------------" |
---|
| 7482 | echo "SDL_image library not found." |
---|
| 7483 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 7484 | echo "------------------" |
---|
| 7485 | exit -1 |
---|
| 7486 | fi |
---|
[3140] | 7487 | |
---|
[3424] | 7488 | #-----# |
---|
| 7489 | # GTK # |
---|
| 7490 | #-----# |
---|
| 7491 | if test x$def_gtk = xyes; then |
---|
[3100] | 7492 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 7493 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 7494 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[4130] | 7495 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
[3100] | 7496 | echo "yes" |
---|
| 7497 | have_gtk2=yes |
---|
[4130] | 7498 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
| 7499 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
[3101] | 7500 | |
---|
| 7501 | cat >>confdefs.h <<_ACEOF |
---|
| 7502 | #define HAVE_GTK2 1 |
---|
| 7503 | _ACEOF |
---|
| 7504 | |
---|
[4130] | 7505 | if test $DEBUG -ge 3; then |
---|
| 7506 | echo "cflags: $GTK2_CFLAGS" |
---|
| 7507 | echo "libs: $GTK2_LIBS" |
---|
| 7508 | fi |
---|
[3100] | 7509 | else |
---|
| 7510 | echo "no" |
---|
| 7511 | fi |
---|
| 7512 | |
---|
[2980] | 7513 | fi |
---|
[2190] | 7514 | |
---|
[2701] | 7515 | |
---|
| 7516 | |
---|
[2190] | 7517 | |
---|
[3100] | 7518 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 7519 | HAVE_GTK2_TRUE= |
---|
| 7520 | HAVE_GTK2_FALSE='#' |
---|
| 7521 | else |
---|
| 7522 | HAVE_GTK2_TRUE='#' |
---|
| 7523 | HAVE_GTK2_FALSE= |
---|
| 7524 | fi |
---|
| 7525 | |
---|
| 7526 | |
---|
[3424] | 7527 | #---------# |
---|
| 7528 | # libcURL # |
---|
| 7529 | #---------# |
---|
| 7530 | if test x$def_curl = xyes; then |
---|
[3423] | 7531 | |
---|
| 7532 | |
---|
| 7533 | for ac_header in curl/curl.h |
---|
| 7534 | do |
---|
| 7535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7541 | fi |
---|
| 7542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7544 | else |
---|
| 7545 | # Is the header compilable? |
---|
| 7546 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7547 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7548 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7549 | /* confdefs.h. */ |
---|
| 7550 | _ACEOF |
---|
| 7551 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7552 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7553 | /* end confdefs.h. */ |
---|
| 7554 | $ac_includes_default |
---|
| 7555 | #include <$ac_header> |
---|
| 7556 | _ACEOF |
---|
| 7557 | rm -f conftest.$ac_objext |
---|
| 7558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7559 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7560 | ac_status=$? |
---|
| 7561 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7562 | rm -f conftest.er1 |
---|
| 7563 | cat conftest.err >&5 |
---|
| 7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7565 | (exit $ac_status); } && |
---|
| 7566 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7567 | || test ! -s conftest.err' |
---|
| 7568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7569 | (eval $ac_try) 2>&5 |
---|
| 7570 | ac_status=$? |
---|
| 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7572 | (exit $ac_status); }; } && |
---|
| 7573 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7575 | (eval $ac_try) 2>&5 |
---|
| 7576 | ac_status=$? |
---|
| 7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7578 | (exit $ac_status); }; }; then |
---|
| 7579 | ac_header_compiler=yes |
---|
| 7580 | else |
---|
| 7581 | echo "$as_me: failed program was:" >&5 |
---|
| 7582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7583 | |
---|
| 7584 | ac_header_compiler=no |
---|
| 7585 | fi |
---|
| 7586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7587 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7588 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7589 | |
---|
| 7590 | # Is the header present? |
---|
| 7591 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7592 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7593 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7594 | /* confdefs.h. */ |
---|
| 7595 | _ACEOF |
---|
| 7596 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7597 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7598 | /* end confdefs.h. */ |
---|
| 7599 | #include <$ac_header> |
---|
| 7600 | _ACEOF |
---|
| 7601 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7602 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7603 | ac_status=$? |
---|
| 7604 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7605 | rm -f conftest.er1 |
---|
| 7606 | cat conftest.err >&5 |
---|
| 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7608 | (exit $ac_status); } >/dev/null; then |
---|
| 7609 | if test -s conftest.err; then |
---|
| 7610 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7611 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7612 | else |
---|
| 7613 | ac_cpp_err= |
---|
| 7614 | fi |
---|
| 7615 | else |
---|
| 7616 | ac_cpp_err=yes |
---|
| 7617 | fi |
---|
| 7618 | if test -z "$ac_cpp_err"; then |
---|
| 7619 | ac_header_preproc=yes |
---|
| 7620 | else |
---|
| 7621 | echo "$as_me: failed program was:" >&5 |
---|
| 7622 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7623 | |
---|
| 7624 | ac_header_preproc=no |
---|
| 7625 | fi |
---|
| 7626 | rm -f conftest.err conftest.$ac_ext |
---|
| 7627 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7628 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7629 | |
---|
| 7630 | # So? What about this header? |
---|
| 7631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7632 | yes:no: ) |
---|
| 7633 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7634 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7636 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7637 | ac_header_preproc=yes |
---|
| 7638 | ;; |
---|
| 7639 | no:yes:* ) |
---|
| 7640 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7641 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7642 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7643 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7644 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7645 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7646 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7647 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7649 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7650 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7651 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7652 | ( |
---|
| 7653 | cat <<\_ASBOX |
---|
| 7654 | ## ---------------------------------------------- ## |
---|
| 7655 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7656 | ## ---------------------------------------------- ## |
---|
| 7657 | _ASBOX |
---|
| 7658 | ) | |
---|
| 7659 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7660 | ;; |
---|
| 7661 | esac |
---|
| 7662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7666 | else |
---|
| 7667 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7668 | fi |
---|
| 7669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7670 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7671 | |
---|
| 7672 | fi |
---|
| 7673 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7674 | cat >>confdefs.h <<_ACEOF |
---|
| 7675 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7676 | _ACEOF |
---|
| 7677 | curlHeader="yes" |
---|
| 7678 | else |
---|
| 7679 | curlHeader="no" |
---|
| 7680 | fi |
---|
| 7681 | |
---|
| 7682 | done |
---|
| 7683 | |
---|
| 7684 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 7685 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 7686 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 7687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7688 | else |
---|
| 7689 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7690 | LIBS="-lcurl $LIBS" |
---|
| 7691 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7692 | /* confdefs.h. */ |
---|
| 7693 | _ACEOF |
---|
| 7694 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7695 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7696 | /* end confdefs.h. */ |
---|
| 7697 | |
---|
| 7698 | |
---|
| 7699 | int |
---|
| 7700 | main () |
---|
| 7701 | { |
---|
| 7702 | main (); |
---|
| 7703 | ; |
---|
| 7704 | return 0; |
---|
| 7705 | } |
---|
| 7706 | _ACEOF |
---|
| 7707 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7709 | (eval $ac_link) 2>conftest.er1 |
---|
| 7710 | ac_status=$? |
---|
| 7711 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7712 | rm -f conftest.er1 |
---|
| 7713 | cat conftest.err >&5 |
---|
| 7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7715 | (exit $ac_status); } && |
---|
| 7716 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7717 | || test ! -s conftest.err' |
---|
| 7718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7719 | (eval $ac_try) 2>&5 |
---|
| 7720 | ac_status=$? |
---|
| 7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7722 | (exit $ac_status); }; } && |
---|
| 7723 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7725 | (eval $ac_try) 2>&5 |
---|
| 7726 | ac_status=$? |
---|
| 7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7728 | (exit $ac_status); }; }; then |
---|
| 7729 | ac_cv_lib_curl_main=yes |
---|
| 7730 | else |
---|
| 7731 | echo "$as_me: failed program was:" >&5 |
---|
| 7732 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7733 | |
---|
| 7734 | ac_cv_lib_curl_main=no |
---|
| 7735 | fi |
---|
| 7736 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7737 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7738 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7739 | fi |
---|
| 7740 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 7741 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 7742 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 7743 | FOUND_curl=yes |
---|
| 7744 | fi |
---|
| 7745 | |
---|
| 7746 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 7747 | have_curl=yes |
---|
| 7748 | CURL_LIBS=`curl-config --libs` |
---|
| 7749 | CURLCFLAGS=`curl-config --cflags` |
---|
| 7750 | |
---|
| 7751 | cat >>confdefs.h <<_ACEOF |
---|
| 7752 | #define HAVE_CURL 1 |
---|
| 7753 | _ACEOF |
---|
| 7754 | |
---|
| 7755 | else |
---|
| 7756 | have_curl=no |
---|
| 7757 | fi |
---|
| 7758 | |
---|
| 7759 | fi |
---|
| 7760 | |
---|
| 7761 | |
---|
| 7762 | |
---|
| 7763 | |
---|
| 7764 | if test x$have_curl = xyes; then |
---|
| 7765 | HAVE_CURL_TRUE= |
---|
| 7766 | HAVE_CURL_FALSE='#' |
---|
| 7767 | else |
---|
| 7768 | HAVE_CURL_TRUE='#' |
---|
| 7769 | HAVE_CURL_FALSE= |
---|
| 7770 | fi |
---|
| 7771 | |
---|
| 7772 | |
---|
[3863] | 7773 | #--------# |
---|
| 7774 | # efence # |
---|
| 7775 | #--------# |
---|
| 7776 | if test x$def_efence = xyes ; then |
---|
| 7777 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
| 7778 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
| 7779 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
| 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7781 | else |
---|
| 7782 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7783 | LIBS="-lefence $LIBS" |
---|
| 7784 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7785 | /* confdefs.h. */ |
---|
| 7786 | _ACEOF |
---|
| 7787 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7788 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7789 | /* end confdefs.h. */ |
---|
| 7790 | |
---|
| 7791 | |
---|
| 7792 | int |
---|
| 7793 | main () |
---|
| 7794 | { |
---|
| 7795 | main (); |
---|
| 7796 | ; |
---|
| 7797 | return 0; |
---|
| 7798 | } |
---|
| 7799 | _ACEOF |
---|
| 7800 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7802 | (eval $ac_link) 2>conftest.er1 |
---|
| 7803 | ac_status=$? |
---|
| 7804 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7805 | rm -f conftest.er1 |
---|
| 7806 | cat conftest.err >&5 |
---|
| 7807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7808 | (exit $ac_status); } && |
---|
| 7809 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7810 | || test ! -s conftest.err' |
---|
| 7811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7812 | (eval $ac_try) 2>&5 |
---|
| 7813 | ac_status=$? |
---|
| 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7815 | (exit $ac_status); }; } && |
---|
| 7816 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7818 | (eval $ac_try) 2>&5 |
---|
| 7819 | ac_status=$? |
---|
| 7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7821 | (exit $ac_status); }; }; then |
---|
| 7822 | ac_cv_lib_efence_main=yes |
---|
| 7823 | else |
---|
| 7824 | echo "$as_me: failed program was:" >&5 |
---|
| 7825 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7826 | |
---|
| 7827 | ac_cv_lib_efence_main=no |
---|
| 7828 | fi |
---|
| 7829 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7830 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7831 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7832 | fi |
---|
| 7833 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
| 7834 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
| 7835 | if test $ac_cv_lib_efence_main = yes; then |
---|
| 7836 | FOUND_efence=yes |
---|
| 7837 | fi |
---|
| 7838 | |
---|
| 7839 | if test x$FOUND_efence = xyes ; then |
---|
| 7840 | LIBS="$LIBS -lefence" |
---|
| 7841 | fi |
---|
| 7842 | |
---|
| 7843 | fi |
---|
| 7844 | |
---|
[1956] | 7845 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 7846 | |
---|
| 7847 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 7848 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 7849 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 7850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7851 | else |
---|
| 7852 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7853 | LIBS="-lm $LIBS" |
---|
| 7854 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7855 | /* confdefs.h. */ |
---|
| 7856 | _ACEOF |
---|
| 7857 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7859 | /* end confdefs.h. */ |
---|
| 7860 | |
---|
| 7861 | |
---|
| 7862 | int |
---|
| 7863 | main () |
---|
| 7864 | { |
---|
| 7865 | main (); |
---|
| 7866 | ; |
---|
| 7867 | return 0; |
---|
| 7868 | } |
---|
| 7869 | _ACEOF |
---|
| 7870 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7872 | (eval $ac_link) 2>conftest.er1 |
---|
| 7873 | ac_status=$? |
---|
| 7874 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7875 | rm -f conftest.er1 |
---|
| 7876 | cat conftest.err >&5 |
---|
| 7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7878 | (exit $ac_status); } && |
---|
| 7879 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7880 | || test ! -s conftest.err' |
---|
| 7881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7882 | (eval $ac_try) 2>&5 |
---|
| 7883 | ac_status=$? |
---|
| 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7885 | (exit $ac_status); }; } && |
---|
| 7886 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7888 | (eval $ac_try) 2>&5 |
---|
| 7889 | ac_status=$? |
---|
| 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7891 | (exit $ac_status); }; }; then |
---|
| 7892 | ac_cv_lib_m_main=yes |
---|
| 7893 | else |
---|
| 7894 | echo "$as_me: failed program was:" >&5 |
---|
| 7895 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7896 | |
---|
| 7897 | ac_cv_lib_m_main=no |
---|
| 7898 | fi |
---|
| 7899 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7900 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7901 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7902 | fi |
---|
| 7903 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 7904 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 7905 | if test $ac_cv_lib_m_main = yes; then |
---|
| 7906 | cat >>confdefs.h <<_ACEOF |
---|
| 7907 | #define HAVE_LIBM 1 |
---|
| 7908 | _ACEOF |
---|
| 7909 | |
---|
| 7910 | LIBS="-lm $LIBS" |
---|
| 7911 | |
---|
| 7912 | fi |
---|
| 7913 | |
---|
| 7914 | |
---|
[2018] | 7915 | |
---|
[1956] | 7916 | # Checks for header files. |
---|
| 7917 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 7918 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 7919 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 7920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7921 | else |
---|
| 7922 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7923 | /* confdefs.h. */ |
---|
| 7924 | _ACEOF |
---|
| 7925 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7926 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7927 | /* end confdefs.h. */ |
---|
| 7928 | #include <stdlib.h> |
---|
| 7929 | #include <stdarg.h> |
---|
| 7930 | #include <string.h> |
---|
| 7931 | #include <float.h> |
---|
| 7932 | |
---|
| 7933 | int |
---|
| 7934 | main () |
---|
| 7935 | { |
---|
| 7936 | |
---|
| 7937 | ; |
---|
| 7938 | return 0; |
---|
| 7939 | } |
---|
| 7940 | _ACEOF |
---|
| 7941 | rm -f conftest.$ac_objext |
---|
| 7942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7943 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7944 | ac_status=$? |
---|
| 7945 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7946 | rm -f conftest.er1 |
---|
| 7947 | cat conftest.err >&5 |
---|
| 7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7949 | (exit $ac_status); } && |
---|
| 7950 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7951 | || test ! -s conftest.err' |
---|
| 7952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7953 | (eval $ac_try) 2>&5 |
---|
| 7954 | ac_status=$? |
---|
| 7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7956 | (exit $ac_status); }; } && |
---|
| 7957 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7959 | (eval $ac_try) 2>&5 |
---|
| 7960 | ac_status=$? |
---|
| 7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7962 | (exit $ac_status); }; }; then |
---|
| 7963 | ac_cv_header_stdc=yes |
---|
| 7964 | else |
---|
| 7965 | echo "$as_me: failed program was:" >&5 |
---|
| 7966 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7967 | |
---|
| 7968 | ac_cv_header_stdc=no |
---|
| 7969 | fi |
---|
| 7970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7971 | |
---|
| 7972 | if test $ac_cv_header_stdc = yes; then |
---|
| 7973 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 7974 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7975 | /* confdefs.h. */ |
---|
| 7976 | _ACEOF |
---|
| 7977 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7978 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7979 | /* end confdefs.h. */ |
---|
| 7980 | #include <string.h> |
---|
| 7981 | |
---|
| 7982 | _ACEOF |
---|
| 7983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7984 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 7985 | : |
---|
| 7986 | else |
---|
| 7987 | ac_cv_header_stdc=no |
---|
| 7988 | fi |
---|
| 7989 | rm -f conftest* |
---|
| 7990 | |
---|
| 7991 | fi |
---|
| 7992 | |
---|
| 7993 | if test $ac_cv_header_stdc = yes; then |
---|
| 7994 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 7995 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7996 | /* confdefs.h. */ |
---|
| 7997 | _ACEOF |
---|
| 7998 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7999 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8000 | /* end confdefs.h. */ |
---|
| 8001 | #include <stdlib.h> |
---|
| 8002 | |
---|
| 8003 | _ACEOF |
---|
| 8004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 8005 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 8006 | : |
---|
| 8007 | else |
---|
| 8008 | ac_cv_header_stdc=no |
---|
| 8009 | fi |
---|
| 8010 | rm -f conftest* |
---|
| 8011 | |
---|
| 8012 | fi |
---|
| 8013 | |
---|
| 8014 | if test $ac_cv_header_stdc = yes; then |
---|
| 8015 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 8016 | if test "$cross_compiling" = yes; then |
---|
| 8017 | : |
---|
| 8018 | else |
---|
| 8019 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8020 | /* confdefs.h. */ |
---|
| 8021 | _ACEOF |
---|
| 8022 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8023 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8024 | /* end confdefs.h. */ |
---|
| 8025 | #include <ctype.h> |
---|
| 8026 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 8027 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 8028 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 8029 | #else |
---|
| 8030 | # define ISLOWER(c) \ |
---|
| 8031 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 8032 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 8033 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 8034 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 8035 | #endif |
---|
| 8036 | |
---|
| 8037 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 8038 | int |
---|
| 8039 | main () |
---|
| 8040 | { |
---|
| 8041 | int i; |
---|
| 8042 | for (i = 0; i < 256; i++) |
---|
| 8043 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 8044 | || toupper (i) != TOUPPER (i)) |
---|
| 8045 | exit(2); |
---|
| 8046 | exit (0); |
---|
| 8047 | } |
---|
| 8048 | _ACEOF |
---|
| 8049 | rm -f conftest$ac_exeext |
---|
| 8050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8051 | (eval $ac_link) 2>&5 |
---|
| 8052 | ac_status=$? |
---|
| 8053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8056 | (eval $ac_try) 2>&5 |
---|
| 8057 | ac_status=$? |
---|
| 8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8059 | (exit $ac_status); }; }; then |
---|
| 8060 | : |
---|
| 8061 | else |
---|
| 8062 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8063 | echo "$as_me: failed program was:" >&5 |
---|
| 8064 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8065 | |
---|
| 8066 | ( exit $ac_status ) |
---|
| 8067 | ac_cv_header_stdc=no |
---|
| 8068 | fi |
---|
| 8069 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8070 | fi |
---|
| 8071 | fi |
---|
| 8072 | fi |
---|
| 8073 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 8074 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 8075 | if test $ac_cv_header_stdc = yes; then |
---|
| 8076 | |
---|
| 8077 | cat >>confdefs.h <<\_ACEOF |
---|
| 8078 | #define STDC_HEADERS 1 |
---|
| 8079 | _ACEOF |
---|
| 8080 | |
---|
| 8081 | fi |
---|
| 8082 | |
---|
| 8083 | |
---|
| 8084 | |
---|
| 8085 | for ac_header in stdlib.h string.h |
---|
| 8086 | do |
---|
| 8087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8093 | fi |
---|
| 8094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8096 | else |
---|
| 8097 | # Is the header compilable? |
---|
| 8098 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8100 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8101 | /* confdefs.h. */ |
---|
| 8102 | _ACEOF |
---|
| 8103 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8104 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8105 | /* end confdefs.h. */ |
---|
| 8106 | $ac_includes_default |
---|
| 8107 | #include <$ac_header> |
---|
| 8108 | _ACEOF |
---|
| 8109 | rm -f conftest.$ac_objext |
---|
| 8110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8111 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8112 | ac_status=$? |
---|
| 8113 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8114 | rm -f conftest.er1 |
---|
| 8115 | cat conftest.err >&5 |
---|
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8117 | (exit $ac_status); } && |
---|
| 8118 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8119 | || test ! -s conftest.err' |
---|
| 8120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8121 | (eval $ac_try) 2>&5 |
---|
| 8122 | ac_status=$? |
---|
| 8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8124 | (exit $ac_status); }; } && |
---|
| 8125 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8127 | (eval $ac_try) 2>&5 |
---|
| 8128 | ac_status=$? |
---|
| 8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8130 | (exit $ac_status); }; }; then |
---|
| 8131 | ac_header_compiler=yes |
---|
| 8132 | else |
---|
| 8133 | echo "$as_me: failed program was:" >&5 |
---|
| 8134 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8135 | |
---|
| 8136 | ac_header_compiler=no |
---|
| 8137 | fi |
---|
| 8138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8139 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8140 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8141 | |
---|
| 8142 | # Is the header present? |
---|
| 8143 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8144 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8145 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8146 | /* confdefs.h. */ |
---|
| 8147 | _ACEOF |
---|
| 8148 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8150 | /* end confdefs.h. */ |
---|
| 8151 | #include <$ac_header> |
---|
| 8152 | _ACEOF |
---|
| 8153 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8154 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8155 | ac_status=$? |
---|
| 8156 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8157 | rm -f conftest.er1 |
---|
| 8158 | cat conftest.err >&5 |
---|
| 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8160 | (exit $ac_status); } >/dev/null; then |
---|
| 8161 | if test -s conftest.err; then |
---|
| 8162 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8163 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8164 | else |
---|
| 8165 | ac_cpp_err= |
---|
| 8166 | fi |
---|
| 8167 | else |
---|
| 8168 | ac_cpp_err=yes |
---|
| 8169 | fi |
---|
| 8170 | if test -z "$ac_cpp_err"; then |
---|
| 8171 | ac_header_preproc=yes |
---|
| 8172 | else |
---|
| 8173 | echo "$as_me: failed program was:" >&5 |
---|
| 8174 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8175 | |
---|
| 8176 | ac_header_preproc=no |
---|
| 8177 | fi |
---|
| 8178 | rm -f conftest.err conftest.$ac_ext |
---|
| 8179 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8180 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8181 | |
---|
| 8182 | # So? What about this header? |
---|
| 8183 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8184 | yes:no: ) |
---|
| 8185 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8186 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8188 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8189 | ac_header_preproc=yes |
---|
| 8190 | ;; |
---|
| 8191 | no:yes:* ) |
---|
| 8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8193 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8194 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8195 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8196 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8197 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8198 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8199 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8201 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8202 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8203 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8204 | ( |
---|
| 8205 | cat <<\_ASBOX |
---|
[3240] | 8206 | ## ---------------------------------------------- ## |
---|
| 8207 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8208 | ## ---------------------------------------------- ## |
---|
[1956] | 8209 | _ASBOX |
---|
| 8210 | ) | |
---|
| 8211 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8212 | ;; |
---|
| 8213 | esac |
---|
| 8214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8218 | else |
---|
| 8219 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8220 | fi |
---|
| 8221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8222 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8223 | |
---|
| 8224 | fi |
---|
| 8225 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8226 | cat >>confdefs.h <<_ACEOF |
---|
| 8227 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8228 | _ACEOF |
---|
| 8229 | |
---|
| 8230 | fi |
---|
| 8231 | |
---|
| 8232 | done |
---|
| 8233 | |
---|
| 8234 | |
---|
| 8235 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 8236 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 8237 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 8238 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 8239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8240 | else |
---|
| 8241 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8242 | /* confdefs.h. */ |
---|
| 8243 | _ACEOF |
---|
| 8244 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8245 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8246 | /* end confdefs.h. */ |
---|
| 8247 | |
---|
| 8248 | #include <stdbool.h> |
---|
| 8249 | #ifndef bool |
---|
| 8250 | # error bool is not defined |
---|
| 8251 | #endif |
---|
| 8252 | #ifndef false |
---|
| 8253 | # error false is not defined |
---|
| 8254 | #endif |
---|
| 8255 | #if false |
---|
| 8256 | # error false is not 0 |
---|
| 8257 | #endif |
---|
| 8258 | #ifndef true |
---|
| 8259 | # error true is not defined |
---|
| 8260 | #endif |
---|
| 8261 | #if true != 1 |
---|
| 8262 | # error true is not 1 |
---|
| 8263 | #endif |
---|
| 8264 | #ifndef __bool_true_false_are_defined |
---|
| 8265 | # error __bool_true_false_are_defined is not defined |
---|
| 8266 | #endif |
---|
| 8267 | |
---|
| 8268 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 8269 | |
---|
| 8270 | char a[true == 1 ? 1 : -1]; |
---|
| 8271 | char b[false == 0 ? 1 : -1]; |
---|
| 8272 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 8273 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 8274 | bool e = &s; |
---|
| 8275 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 8276 | char g[true]; |
---|
| 8277 | char h[sizeof (_Bool)]; |
---|
| 8278 | char i[sizeof s.t]; |
---|
| 8279 | |
---|
| 8280 | int |
---|
| 8281 | main () |
---|
| 8282 | { |
---|
| 8283 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 8284 | ; |
---|
| 8285 | return 0; |
---|
| 8286 | } |
---|
| 8287 | _ACEOF |
---|
| 8288 | rm -f conftest.$ac_objext |
---|
| 8289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8290 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8291 | ac_status=$? |
---|
| 8292 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8293 | rm -f conftest.er1 |
---|
| 8294 | cat conftest.err >&5 |
---|
| 8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8296 | (exit $ac_status); } && |
---|
| 8297 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8298 | || test ! -s conftest.err' |
---|
| 8299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8300 | (eval $ac_try) 2>&5 |
---|
| 8301 | ac_status=$? |
---|
| 8302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8303 | (exit $ac_status); }; } && |
---|
| 8304 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8306 | (eval $ac_try) 2>&5 |
---|
| 8307 | ac_status=$? |
---|
| 8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8309 | (exit $ac_status); }; }; then |
---|
| 8310 | ac_cv_header_stdbool_h=yes |
---|
| 8311 | else |
---|
| 8312 | echo "$as_me: failed program was:" >&5 |
---|
| 8313 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8314 | |
---|
| 8315 | ac_cv_header_stdbool_h=no |
---|
| 8316 | fi |
---|
| 8317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8318 | fi |
---|
| 8319 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 8320 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 8321 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 8322 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 8323 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 8324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8325 | else |
---|
| 8326 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8327 | /* confdefs.h. */ |
---|
| 8328 | _ACEOF |
---|
| 8329 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8331 | /* end confdefs.h. */ |
---|
| 8332 | $ac_includes_default |
---|
| 8333 | int |
---|
| 8334 | main () |
---|
| 8335 | { |
---|
| 8336 | if ((_Bool *) 0) |
---|
| 8337 | return 0; |
---|
| 8338 | if (sizeof (_Bool)) |
---|
| 8339 | return 0; |
---|
| 8340 | ; |
---|
| 8341 | return 0; |
---|
| 8342 | } |
---|
| 8343 | _ACEOF |
---|
| 8344 | rm -f conftest.$ac_objext |
---|
| 8345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8346 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8347 | ac_status=$? |
---|
| 8348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8349 | rm -f conftest.er1 |
---|
| 8350 | cat conftest.err >&5 |
---|
| 8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8352 | (exit $ac_status); } && |
---|
| 8353 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8354 | || test ! -s conftest.err' |
---|
| 8355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8356 | (eval $ac_try) 2>&5 |
---|
| 8357 | ac_status=$? |
---|
| 8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8359 | (exit $ac_status); }; } && |
---|
| 8360 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8362 | (eval $ac_try) 2>&5 |
---|
| 8363 | ac_status=$? |
---|
| 8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8365 | (exit $ac_status); }; }; then |
---|
| 8366 | ac_cv_type__Bool=yes |
---|
| 8367 | else |
---|
| 8368 | echo "$as_me: failed program was:" >&5 |
---|
| 8369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8370 | |
---|
| 8371 | ac_cv_type__Bool=no |
---|
| 8372 | fi |
---|
| 8373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8374 | fi |
---|
| 8375 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 8376 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 8377 | if test $ac_cv_type__Bool = yes; then |
---|
| 8378 | |
---|
| 8379 | cat >>confdefs.h <<_ACEOF |
---|
| 8380 | #define HAVE__BOOL 1 |
---|
| 8381 | _ACEOF |
---|
| 8382 | |
---|
| 8383 | |
---|
| 8384 | fi |
---|
| 8385 | |
---|
| 8386 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 8387 | |
---|
| 8388 | cat >>confdefs.h <<\_ACEOF |
---|
| 8389 | #define HAVE_STDBOOL_H 1 |
---|
| 8390 | _ACEOF |
---|
| 8391 | |
---|
| 8392 | fi |
---|
| 8393 | |
---|
| 8394 | |
---|
| 8395 | # Checks for library functions. |
---|
| 8396 | |
---|
| 8397 | for ac_header in stdlib.h |
---|
| 8398 | do |
---|
| 8399 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8400 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8401 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8405 | fi |
---|
| 8406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8407 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8408 | else |
---|
| 8409 | # Is the header compilable? |
---|
| 8410 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8411 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8412 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8413 | /* confdefs.h. */ |
---|
| 8414 | _ACEOF |
---|
| 8415 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8417 | /* end confdefs.h. */ |
---|
| 8418 | $ac_includes_default |
---|
| 8419 | #include <$ac_header> |
---|
| 8420 | _ACEOF |
---|
| 8421 | rm -f conftest.$ac_objext |
---|
| 8422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8423 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8424 | ac_status=$? |
---|
| 8425 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8426 | rm -f conftest.er1 |
---|
| 8427 | cat conftest.err >&5 |
---|
| 8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8429 | (exit $ac_status); } && |
---|
| 8430 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8431 | || test ! -s conftest.err' |
---|
| 8432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8433 | (eval $ac_try) 2>&5 |
---|
| 8434 | ac_status=$? |
---|
| 8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8436 | (exit $ac_status); }; } && |
---|
| 8437 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8439 | (eval $ac_try) 2>&5 |
---|
| 8440 | ac_status=$? |
---|
| 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8442 | (exit $ac_status); }; }; then |
---|
| 8443 | ac_header_compiler=yes |
---|
| 8444 | else |
---|
| 8445 | echo "$as_me: failed program was:" >&5 |
---|
| 8446 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8447 | |
---|
| 8448 | ac_header_compiler=no |
---|
| 8449 | fi |
---|
| 8450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8452 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8453 | |
---|
| 8454 | # Is the header present? |
---|
| 8455 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8456 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8457 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8458 | /* confdefs.h. */ |
---|
| 8459 | _ACEOF |
---|
| 8460 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8461 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8462 | /* end confdefs.h. */ |
---|
| 8463 | #include <$ac_header> |
---|
| 8464 | _ACEOF |
---|
| 8465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8467 | ac_status=$? |
---|
| 8468 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8469 | rm -f conftest.er1 |
---|
| 8470 | cat conftest.err >&5 |
---|
| 8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8472 | (exit $ac_status); } >/dev/null; then |
---|
| 8473 | if test -s conftest.err; then |
---|
| 8474 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8476 | else |
---|
| 8477 | ac_cpp_err= |
---|
| 8478 | fi |
---|
| 8479 | else |
---|
| 8480 | ac_cpp_err=yes |
---|
| 8481 | fi |
---|
| 8482 | if test -z "$ac_cpp_err"; then |
---|
| 8483 | ac_header_preproc=yes |
---|
| 8484 | else |
---|
| 8485 | echo "$as_me: failed program was:" >&5 |
---|
| 8486 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8487 | |
---|
| 8488 | ac_header_preproc=no |
---|
| 8489 | fi |
---|
| 8490 | rm -f conftest.err conftest.$ac_ext |
---|
| 8491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8492 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8493 | |
---|
| 8494 | # So? What about this header? |
---|
| 8495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8496 | yes:no: ) |
---|
| 8497 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8498 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8500 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8501 | ac_header_preproc=yes |
---|
| 8502 | ;; |
---|
| 8503 | no:yes:* ) |
---|
| 8504 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8505 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8506 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8507 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8508 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8509 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8510 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8511 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8513 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8514 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8515 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8516 | ( |
---|
| 8517 | cat <<\_ASBOX |
---|
[3240] | 8518 | ## ---------------------------------------------- ## |
---|
| 8519 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8520 | ## ---------------------------------------------- ## |
---|
[1956] | 8521 | _ASBOX |
---|
| 8522 | ) | |
---|
| 8523 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8524 | ;; |
---|
| 8525 | esac |
---|
| 8526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8530 | else |
---|
| 8531 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8532 | fi |
---|
| 8533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8535 | |
---|
| 8536 | fi |
---|
| 8537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8538 | cat >>confdefs.h <<_ACEOF |
---|
| 8539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8540 | _ACEOF |
---|
| 8541 | |
---|
| 8542 | fi |
---|
| 8543 | |
---|
| 8544 | done |
---|
| 8545 | |
---|
| 8546 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 8547 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 8548 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 8549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8550 | else |
---|
| 8551 | if test "$cross_compiling" = yes; then |
---|
| 8552 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8553 | else |
---|
| 8554 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8555 | /* confdefs.h. */ |
---|
| 8556 | _ACEOF |
---|
| 8557 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8559 | /* end confdefs.h. */ |
---|
| 8560 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 8561 | # include <stdlib.h> |
---|
| 8562 | #else |
---|
| 8563 | char *malloc (); |
---|
| 8564 | #endif |
---|
| 8565 | |
---|
| 8566 | int |
---|
| 8567 | main () |
---|
| 8568 | { |
---|
| 8569 | exit (malloc (0) ? 0 : 1); |
---|
| 8570 | ; |
---|
| 8571 | return 0; |
---|
| 8572 | } |
---|
| 8573 | _ACEOF |
---|
| 8574 | rm -f conftest$ac_exeext |
---|
| 8575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8576 | (eval $ac_link) 2>&5 |
---|
| 8577 | ac_status=$? |
---|
| 8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8579 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8581 | (eval $ac_try) 2>&5 |
---|
| 8582 | ac_status=$? |
---|
| 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8584 | (exit $ac_status); }; }; then |
---|
| 8585 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 8586 | else |
---|
| 8587 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8588 | echo "$as_me: failed program was:" >&5 |
---|
| 8589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8590 | |
---|
| 8591 | ( exit $ac_status ) |
---|
| 8592 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8593 | fi |
---|
| 8594 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8595 | fi |
---|
| 8596 | fi |
---|
| 8597 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8598 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8599 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8600 | |
---|
| 8601 | cat >>confdefs.h <<\_ACEOF |
---|
| 8602 | #define HAVE_MALLOC 1 |
---|
| 8603 | _ACEOF |
---|
| 8604 | |
---|
| 8605 | else |
---|
| 8606 | cat >>confdefs.h <<\_ACEOF |
---|
| 8607 | #define HAVE_MALLOC 0 |
---|
| 8608 | _ACEOF |
---|
| 8609 | |
---|
| 8610 | case $LIBOBJS in |
---|
| 8611 | "malloc.$ac_objext" | \ |
---|
| 8612 | *" malloc.$ac_objext" | \ |
---|
| 8613 | "malloc.$ac_objext "* | \ |
---|
| 8614 | *" malloc.$ac_objext "* ) ;; |
---|
| 8615 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8616 | esac |
---|
| 8617 | |
---|
| 8618 | |
---|
| 8619 | cat >>confdefs.h <<\_ACEOF |
---|
| 8620 | #define malloc rpl_malloc |
---|
| 8621 | _ACEOF |
---|
| 8622 | |
---|
| 8623 | fi |
---|
| 8624 | |
---|
| 8625 | |
---|
| 8626 | |
---|
| 8627 | |
---|
| 8628 | |
---|
| 8629 | for ac_func in bzero sqrt |
---|
| 8630 | do |
---|
| 8631 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8632 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8633 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8634 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8636 | else |
---|
| 8637 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8638 | /* confdefs.h. */ |
---|
| 8639 | _ACEOF |
---|
| 8640 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8641 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8642 | /* end confdefs.h. */ |
---|
| 8643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8645 | #define $ac_func innocuous_$ac_func |
---|
| 8646 | |
---|
| 8647 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8648 | which can conflict with char $ac_func (); below. |
---|
| 8649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8650 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8651 | |
---|
| 8652 | #ifdef __STDC__ |
---|
| 8653 | # include <limits.h> |
---|
| 8654 | #else |
---|
| 8655 | # include <assert.h> |
---|
| 8656 | #endif |
---|
| 8657 | |
---|
| 8658 | #undef $ac_func |
---|
| 8659 | |
---|
| 8660 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8661 | #ifdef __cplusplus |
---|
| 8662 | extern "C" |
---|
| 8663 | { |
---|
| 8664 | #endif |
---|
| 8665 | /* We use char because int might match the return type of a gcc2 |
---|
| 8666 | builtin and then its argument prototype would still apply. */ |
---|
| 8667 | char $ac_func (); |
---|
| 8668 | /* The GNU C library defines this for functions which it implements |
---|
| 8669 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8670 | something starting with __ and the normal name is an alias. */ |
---|
| 8671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8672 | choke me |
---|
| 8673 | #else |
---|
| 8674 | char (*f) () = $ac_func; |
---|
| 8675 | #endif |
---|
| 8676 | #ifdef __cplusplus |
---|
| 8677 | } |
---|
| 8678 | #endif |
---|
| 8679 | |
---|
| 8680 | int |
---|
| 8681 | main () |
---|
| 8682 | { |
---|
| 8683 | return f != $ac_func; |
---|
| 8684 | ; |
---|
| 8685 | return 0; |
---|
| 8686 | } |
---|
| 8687 | _ACEOF |
---|
| 8688 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8690 | (eval $ac_link) 2>conftest.er1 |
---|
| 8691 | ac_status=$? |
---|
| 8692 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8693 | rm -f conftest.er1 |
---|
| 8694 | cat conftest.err >&5 |
---|
| 8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8696 | (exit $ac_status); } && |
---|
| 8697 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8698 | || test ! -s conftest.err' |
---|
| 8699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8700 | (eval $ac_try) 2>&5 |
---|
| 8701 | ac_status=$? |
---|
| 8702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8703 | (exit $ac_status); }; } && |
---|
| 8704 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8706 | (eval $ac_try) 2>&5 |
---|
| 8707 | ac_status=$? |
---|
| 8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8709 | (exit $ac_status); }; }; then |
---|
| 8710 | eval "$as_ac_var=yes" |
---|
| 8711 | else |
---|
| 8712 | echo "$as_me: failed program was:" >&5 |
---|
| 8713 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8714 | |
---|
| 8715 | eval "$as_ac_var=no" |
---|
| 8716 | fi |
---|
| 8717 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8718 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8719 | fi |
---|
| 8720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8721 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8722 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8723 | cat >>confdefs.h <<_ACEOF |
---|
| 8724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8725 | _ACEOF |
---|
| 8726 | |
---|
| 8727 | fi |
---|
| 8728 | done |
---|
| 8729 | |
---|
| 8730 | |
---|
[3424] | 8731 | ###################### |
---|
| 8732 | ## OUTPUT CONFIGURE ## |
---|
| 8733 | ###################### |
---|
[4531] | 8734 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile src/subprojects/gui/Makefile" |
---|
[1956] | 8735 | |
---|
[3377] | 8736 | |
---|
[1956] | 8737 | cat >confcache <<\_ACEOF |
---|
| 8738 | # This file is a shell script that caches the results of configure |
---|
| 8739 | # tests run on this system so they can be shared between configure |
---|
| 8740 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8741 | # It is not useful on other systems. If it contains results you don't |
---|
| 8742 | # want to keep, you may remove or edit it. |
---|
| 8743 | # |
---|
| 8744 | # config.status only pays attention to the cache file if you give it |
---|
| 8745 | # the --recheck option to rerun configure. |
---|
| 8746 | # |
---|
| 8747 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8748 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8749 | # following values. |
---|
| 8750 | |
---|
| 8751 | _ACEOF |
---|
| 8752 | |
---|
| 8753 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8754 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8755 | # So, don't put newlines in cache variables' values. |
---|
| 8756 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8757 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8758 | { |
---|
| 8759 | (set) 2>&1 | |
---|
| 8760 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8761 | *ac_space=\ *) |
---|
| 8762 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8763 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8764 | sed -n \ |
---|
| 8765 | "s/'/'\\\\''/g; |
---|
| 8766 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8767 | ;; |
---|
| 8768 | *) |
---|
| 8769 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8770 | sed -n \ |
---|
| 8771 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8772 | ;; |
---|
| 8773 | esac; |
---|
| 8774 | } | |
---|
| 8775 | sed ' |
---|
| 8776 | t clear |
---|
| 8777 | : clear |
---|
| 8778 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8779 | t end |
---|
| 8780 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8781 | : end' >>confcache |
---|
| 8782 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8783 | if test -w $cache_file; then |
---|
| 8784 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8785 | cat confcache >$cache_file |
---|
| 8786 | else |
---|
| 8787 | echo "not updating unwritable cache $cache_file" |
---|
| 8788 | fi |
---|
| 8789 | fi |
---|
| 8790 | rm -f confcache |
---|
| 8791 | |
---|
| 8792 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8793 | # Let make expand exec_prefix. |
---|
| 8794 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8795 | |
---|
| 8796 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8797 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8798 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8799 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8800 | if test "x$srcdir" = x.; then |
---|
| 8801 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 8802 | s/:*\$(srcdir):*/:/; |
---|
| 8803 | s/:*\${srcdir}:*/:/; |
---|
| 8804 | s/:*@srcdir@:*/:/; |
---|
| 8805 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 8806 | s/:*$//; |
---|
| 8807 | s/^[^=]*=[ ]*$//; |
---|
| 8808 | }' |
---|
| 8809 | fi |
---|
| 8810 | |
---|
| 8811 | DEFS=-DHAVE_CONFIG_H |
---|
| 8812 | |
---|
| 8813 | ac_libobjs= |
---|
| 8814 | ac_ltlibobjs= |
---|
| 8815 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 8816 | # 1. Remove the extension, and $U if already installed. |
---|
| 8817 | ac_i=`echo "$ac_i" | |
---|
| 8818 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 8819 | # 2. Add them. |
---|
| 8820 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 8821 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 8822 | done |
---|
| 8823 | LIBOBJS=$ac_libobjs |
---|
| 8824 | |
---|
| 8825 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 8826 | |
---|
| 8827 | |
---|
| 8828 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 8829 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 8830 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8831 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 8832 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8833 | { (exit 1); exit 1; }; } |
---|
| 8834 | fi |
---|
| 8835 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 8836 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8837 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8838 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8839 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8840 | { (exit 1); exit 1; }; } |
---|
| 8841 | fi |
---|
| 8842 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 8843 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8844 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8845 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8846 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8847 | { (exit 1); exit 1; }; } |
---|
| 8848 | fi |
---|
[3377] | 8849 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 8850 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8851 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8852 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8853 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8854 | { (exit 1); exit 1; }; } |
---|
| 8855 | fi |
---|
[3558] | 8856 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
| 8857 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 8858 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8859 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 8860 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8861 | { (exit 1); exit 1; }; } |
---|
| 8862 | fi |
---|
[3219] | 8863 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 8864 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8865 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8866 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8867 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8868 | { (exit 1); exit 1; }; } |
---|
| 8869 | fi |
---|
[2980] | 8870 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 8871 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8872 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8873 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8874 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8875 | { (exit 1); exit 1; }; } |
---|
| 8876 | fi |
---|
[3423] | 8877 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 8878 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8879 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8880 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8881 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8882 | { (exit 1); exit 1; }; } |
---|
| 8883 | fi |
---|
[1956] | 8884 | |
---|
| 8885 | : ${CONFIG_STATUS=./config.status} |
---|
| 8886 | ac_clean_files_save=$ac_clean_files |
---|
| 8887 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 8888 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 8889 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 8890 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 8891 | #! $SHELL |
---|
| 8892 | # Generated by $as_me. |
---|
| 8893 | # Run this file to recreate the current configuration. |
---|
| 8894 | # Compiler output produced by configure, useful for debugging |
---|
| 8895 | # configure, is in config.log if it exists. |
---|
| 8896 | |
---|
| 8897 | debug=false |
---|
| 8898 | ac_cs_recheck=false |
---|
| 8899 | ac_cs_silent=false |
---|
| 8900 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 8901 | _ACEOF |
---|
| 8902 | |
---|
| 8903 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8904 | ## --------------------- ## |
---|
| 8905 | ## M4sh Initialization. ## |
---|
| 8906 | ## --------------------- ## |
---|
| 8907 | |
---|
| 8908 | # Be Bourne compatible |
---|
| 8909 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 8910 | emulate sh |
---|
| 8911 | NULLCMD=: |
---|
| 8912 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 8913 | # is contrary to our usage. Disable this feature. |
---|
| 8914 | alias -g '${1+"$@"}'='"$@"' |
---|
| 8915 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 8916 | set -o posix |
---|
| 8917 | fi |
---|
| 8918 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 8919 | |
---|
| 8920 | # Support unset when possible. |
---|
| 8921 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 8922 | as_unset=unset |
---|
| 8923 | else |
---|
| 8924 | as_unset=false |
---|
| 8925 | fi |
---|
| 8926 | |
---|
| 8927 | |
---|
| 8928 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 8929 | $as_unset ENV MAIL MAILPATH |
---|
| 8930 | PS1='$ ' |
---|
| 8931 | PS2='> ' |
---|
| 8932 | PS4='+ ' |
---|
| 8933 | |
---|
| 8934 | # NLS nuisances. |
---|
| 8935 | for as_var in \ |
---|
| 8936 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 8937 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 8938 | LC_TELEPHONE LC_TIME |
---|
| 8939 | do |
---|
| 8940 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 8941 | eval $as_var=C; export $as_var |
---|
| 8942 | else |
---|
| 8943 | $as_unset $as_var |
---|
| 8944 | fi |
---|
| 8945 | done |
---|
| 8946 | |
---|
| 8947 | # Required to use basename. |
---|
| 8948 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8949 | as_expr=expr |
---|
| 8950 | else |
---|
| 8951 | as_expr=false |
---|
| 8952 | fi |
---|
| 8953 | |
---|
| 8954 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 8955 | as_basename=basename |
---|
| 8956 | else |
---|
| 8957 | as_basename=false |
---|
| 8958 | fi |
---|
| 8959 | |
---|
| 8960 | |
---|
| 8961 | # Name of the executable. |
---|
| 8962 | as_me=`$as_basename "$0" || |
---|
| 8963 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8964 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8965 | X"$0" : 'X\(/\)$' \| \ |
---|
| 8966 | . : '\(.\)' 2>/dev/null || |
---|
| 8967 | echo X/"$0" | |
---|
| 8968 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 8969 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 8970 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 8971 | s/.*/./; q'` |
---|
| 8972 | |
---|
| 8973 | |
---|
| 8974 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 8975 | # Avoid depending upon Character Ranges. |
---|
| 8976 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8977 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8978 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8979 | as_cr_digits='0123456789' |
---|
| 8980 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8981 | |
---|
| 8982 | # The user is always right. |
---|
| 8983 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 8984 | echo "#! /bin/sh" >conf$$.sh |
---|
| 8985 | echo "exit 0" >>conf$$.sh |
---|
| 8986 | chmod +x conf$$.sh |
---|
| 8987 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 8988 | PATH_SEPARATOR=';' |
---|
| 8989 | else |
---|
| 8990 | PATH_SEPARATOR=: |
---|
| 8991 | fi |
---|
| 8992 | rm -f conf$$.sh |
---|
| 8993 | fi |
---|
| 8994 | |
---|
| 8995 | |
---|
| 8996 | as_lineno_1=$LINENO |
---|
| 8997 | as_lineno_2=$LINENO |
---|
| 8998 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8999 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 9000 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 9001 | # Find who we are. Look in the path if we contain no path at all |
---|
| 9002 | # relative or not. |
---|
| 9003 | case $0 in |
---|
| 9004 | *[\\/]* ) as_myself=$0 ;; |
---|
| 9005 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 9006 | for as_dir in $PATH |
---|
| 9007 | do |
---|
| 9008 | IFS=$as_save_IFS |
---|
| 9009 | test -z "$as_dir" && as_dir=. |
---|
| 9010 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 9011 | done |
---|
| 9012 | |
---|
| 9013 | ;; |
---|
| 9014 | esac |
---|
| 9015 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 9016 | # in which case we are not to be found in the path. |
---|
| 9017 | if test "x$as_myself" = x; then |
---|
| 9018 | as_myself=$0 |
---|
| 9019 | fi |
---|
| 9020 | if test ! -f "$as_myself"; then |
---|
| 9021 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 9022 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 9023 | { (exit 1); exit 1; }; } |
---|
| 9024 | fi |
---|
| 9025 | case $CONFIG_SHELL in |
---|
| 9026 | '') |
---|
| 9027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 9028 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 9029 | do |
---|
| 9030 | IFS=$as_save_IFS |
---|
| 9031 | test -z "$as_dir" && as_dir=. |
---|
| 9032 | for as_base in sh bash ksh sh5; do |
---|
| 9033 | case $as_dir in |
---|
| 9034 | /*) |
---|
| 9035 | if ("$as_dir/$as_base" -c ' |
---|
| 9036 | as_lineno_1=$LINENO |
---|
| 9037 | as_lineno_2=$LINENO |
---|
| 9038 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 9039 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 9040 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 9041 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 9042 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 9043 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 9044 | export CONFIG_SHELL |
---|
| 9045 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 9046 | fi;; |
---|
| 9047 | esac |
---|
| 9048 | done |
---|
| 9049 | done |
---|
| 9050 | ;; |
---|
| 9051 | esac |
---|
| 9052 | |
---|
| 9053 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 9054 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 9055 | # line-number line before each line; the second 'sed' does the real |
---|
| 9056 | # work. The second script uses 'N' to pair each line-number line |
---|
| 9057 | # with the numbered line, and appends trailing '-' during |
---|
| 9058 | # substitution so that $LINENO is not a special case at line end. |
---|
| 9059 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 9060 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 9061 | sed '=' <$as_myself | |
---|
| 9062 | sed ' |
---|
| 9063 | N |
---|
| 9064 | s,$,-, |
---|
| 9065 | : loop |
---|
| 9066 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 9067 | t loop |
---|
| 9068 | s,-$,, |
---|
| 9069 | s,^['$as_cr_digits']*\n,, |
---|
| 9070 | ' >$as_me.lineno && |
---|
| 9071 | chmod +x $as_me.lineno || |
---|
| 9072 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 9073 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 9074 | { (exit 1); exit 1; }; } |
---|
| 9075 | |
---|
| 9076 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 9077 | # (the dirname of $[0] is not the place where we might find the |
---|
| 9078 | # original and so on. Autoconf is especially sensible to this). |
---|
| 9079 | . ./$as_me.lineno |
---|
| 9080 | # Exit status is that of the last command. |
---|
| 9081 | exit |
---|
| 9082 | } |
---|
| 9083 | |
---|
| 9084 | |
---|
| 9085 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 9086 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 9087 | ' ECHO_T=' ' ;; |
---|
| 9088 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 9089 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 9090 | esac |
---|
| 9091 | |
---|
| 9092 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 9093 | as_expr=expr |
---|
| 9094 | else |
---|
| 9095 | as_expr=false |
---|
| 9096 | fi |
---|
| 9097 | |
---|
| 9098 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 9099 | echo >conf$$.file |
---|
| 9100 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 9101 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 9102 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 9103 | if test -f conf$$.exe; then |
---|
| 9104 | # Don't use ln at all; we don't have any links |
---|
| 9105 | as_ln_s='cp -p' |
---|
| 9106 | else |
---|
| 9107 | as_ln_s='ln -s' |
---|
| 9108 | fi |
---|
| 9109 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 9110 | as_ln_s=ln |
---|
| 9111 | else |
---|
| 9112 | as_ln_s='cp -p' |
---|
| 9113 | fi |
---|
| 9114 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 9115 | |
---|
| 9116 | if mkdir -p . 2>/dev/null; then |
---|
| 9117 | as_mkdir_p=: |
---|
| 9118 | else |
---|
| 9119 | test -d ./-p && rmdir ./-p |
---|
| 9120 | as_mkdir_p=false |
---|
| 9121 | fi |
---|
| 9122 | |
---|
| 9123 | as_executable_p="test -f" |
---|
| 9124 | |
---|
| 9125 | # Sed expression to map a string onto a valid CPP name. |
---|
| 9126 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 9127 | |
---|
| 9128 | # Sed expression to map a string onto a valid variable name. |
---|
| 9129 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 9130 | |
---|
| 9131 | |
---|
| 9132 | # IFS |
---|
| 9133 | # We need space, tab and new line, in precisely that order. |
---|
| 9134 | as_nl=' |
---|
| 9135 | ' |
---|
| 9136 | IFS=" $as_nl" |
---|
| 9137 | |
---|
| 9138 | # CDPATH. |
---|
| 9139 | $as_unset CDPATH |
---|
| 9140 | |
---|
| 9141 | exec 6>&1 |
---|
| 9142 | |
---|
| 9143 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 9144 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 9145 | # values after options handling. Logging --version etc. is OK. |
---|
| 9146 | exec 5>>config.log |
---|
| 9147 | { |
---|
| 9148 | echo |
---|
| 9149 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 9150 | ## Running $as_me. ## |
---|
| 9151 | _ASBOX |
---|
| 9152 | } >&5 |
---|
| 9153 | cat >&5 <<_CSEOF |
---|
| 9154 | |
---|
[3995] | 9155 | This file was extended by orxonox $as_me 0.2.3-pre-alpha, which was |
---|
[1956] | 9156 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 9157 | |
---|
| 9158 | CONFIG_FILES = $CONFIG_FILES |
---|
| 9159 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 9160 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 9161 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 9162 | $ $0 $@ |
---|
| 9163 | |
---|
| 9164 | _CSEOF |
---|
| 9165 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 9166 | echo >&5 |
---|
| 9167 | _ACEOF |
---|
| 9168 | |
---|
| 9169 | # Files that config.status was made for. |
---|
| 9170 | if test -n "$ac_config_files"; then |
---|
| 9171 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 9172 | fi |
---|
| 9173 | |
---|
| 9174 | if test -n "$ac_config_headers"; then |
---|
| 9175 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 9176 | fi |
---|
| 9177 | |
---|
| 9178 | if test -n "$ac_config_links"; then |
---|
| 9179 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 9180 | fi |
---|
| 9181 | |
---|
| 9182 | if test -n "$ac_config_commands"; then |
---|
| 9183 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 9184 | fi |
---|
| 9185 | |
---|
| 9186 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9187 | |
---|
| 9188 | ac_cs_usage="\ |
---|
| 9189 | \`$as_me' instantiates files from templates according to the |
---|
| 9190 | current configuration. |
---|
| 9191 | |
---|
| 9192 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 9193 | |
---|
| 9194 | -h, --help print this help, then exit |
---|
| 9195 | -V, --version print version number, then exit |
---|
| 9196 | -q, --quiet do not print progress messages |
---|
| 9197 | -d, --debug don't remove temporary files |
---|
| 9198 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 9199 | --file=FILE[:TEMPLATE] |
---|
| 9200 | instantiate the configuration file FILE |
---|
| 9201 | --header=FILE[:TEMPLATE] |
---|
| 9202 | instantiate the configuration header FILE |
---|
| 9203 | |
---|
| 9204 | Configuration files: |
---|
| 9205 | $config_files |
---|
| 9206 | |
---|
| 9207 | Configuration headers: |
---|
| 9208 | $config_headers |
---|
| 9209 | |
---|
| 9210 | Configuration commands: |
---|
| 9211 | $config_commands |
---|
| 9212 | |
---|
| 9213 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 9214 | _ACEOF |
---|
| 9215 | |
---|
| 9216 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9217 | ac_cs_version="\\ |
---|
[3995] | 9218 | orxonox config.status 0.2.3-pre-alpha |
---|
[1956] | 9219 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 9220 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 9221 | |
---|
| 9222 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 9223 | This config.status script is free software; the Free Software Foundation |
---|
| 9224 | gives unlimited permission to copy, distribute and modify it." |
---|
| 9225 | srcdir=$srcdir |
---|
| 9226 | INSTALL="$INSTALL" |
---|
| 9227 | _ACEOF |
---|
| 9228 | |
---|
| 9229 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9230 | # If no file are specified by the user, then we need to provide default |
---|
| 9231 | # value. By we need to know if files were specified by the user. |
---|
| 9232 | ac_need_defaults=: |
---|
| 9233 | while test $# != 0 |
---|
| 9234 | do |
---|
| 9235 | case $1 in |
---|
| 9236 | --*=*) |
---|
| 9237 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 9238 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 9239 | ac_shift=: |
---|
| 9240 | ;; |
---|
| 9241 | -*) |
---|
| 9242 | ac_option=$1 |
---|
| 9243 | ac_optarg=$2 |
---|
| 9244 | ac_shift=shift |
---|
| 9245 | ;; |
---|
| 9246 | *) # This is not an option, so the user has probably given explicit |
---|
| 9247 | # arguments. |
---|
| 9248 | ac_option=$1 |
---|
| 9249 | ac_need_defaults=false;; |
---|
| 9250 | esac |
---|
| 9251 | |
---|
| 9252 | case $ac_option in |
---|
| 9253 | # Handling of the options. |
---|
| 9254 | _ACEOF |
---|
| 9255 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9256 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 9257 | ac_cs_recheck=: ;; |
---|
| 9258 | --version | --vers* | -V ) |
---|
| 9259 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 9260 | --he | --h) |
---|
| 9261 | # Conflict between --help and --header |
---|
| 9262 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 9263 | Try \`$0 --help' for more information." >&5 |
---|
| 9264 | echo "$as_me: error: ambiguous option: $1 |
---|
| 9265 | Try \`$0 --help' for more information." >&2;} |
---|
| 9266 | { (exit 1); exit 1; }; };; |
---|
| 9267 | --help | --hel | -h ) |
---|
| 9268 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 9269 | --debug | --d* | -d ) |
---|
| 9270 | debug=: ;; |
---|
| 9271 | --file | --fil | --fi | --f ) |
---|
| 9272 | $ac_shift |
---|
| 9273 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 9274 | ac_need_defaults=false;; |
---|
| 9275 | --header | --heade | --head | --hea ) |
---|
| 9276 | $ac_shift |
---|
| 9277 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 9278 | ac_need_defaults=false;; |
---|
| 9279 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 9280 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 9281 | ac_cs_silent=: ;; |
---|
| 9282 | |
---|
| 9283 | # This is an error. |
---|
| 9284 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 9285 | Try \`$0 --help' for more information." >&5 |
---|
| 9286 | echo "$as_me: error: unrecognized option: $1 |
---|
| 9287 | Try \`$0 --help' for more information." >&2;} |
---|
| 9288 | { (exit 1); exit 1; }; } ;; |
---|
| 9289 | |
---|
| 9290 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 9291 | |
---|
| 9292 | esac |
---|
| 9293 | shift |
---|
| 9294 | done |
---|
| 9295 | |
---|
| 9296 | ac_configure_extra_args= |
---|
| 9297 | |
---|
| 9298 | if $ac_cs_silent; then |
---|
| 9299 | exec 6>/dev/null |
---|
| 9300 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 9301 | fi |
---|
| 9302 | |
---|
| 9303 | _ACEOF |
---|
| 9304 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9305 | if \$ac_cs_recheck; then |
---|
| 9306 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 9307 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 9308 | fi |
---|
| 9309 | |
---|
| 9310 | _ACEOF |
---|
| 9311 | |
---|
| 9312 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9313 | # |
---|
| 9314 | # INIT-COMMANDS section. |
---|
| 9315 | # |
---|
| 9316 | |
---|
| 9317 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 9318 | |
---|
| 9319 | _ACEOF |
---|
| 9320 | |
---|
| 9321 | |
---|
| 9322 | |
---|
| 9323 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9324 | for ac_config_target in $ac_config_targets |
---|
| 9325 | do |
---|
| 9326 | case "$ac_config_target" in |
---|
| 9327 | # Handling of arguments. |
---|
| 9328 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 9329 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3493] | 9330 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 9331 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
[3489] | 9332 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
[4506] | 9333 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
[4484] | 9334 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
[4338] | 9335 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
[4416] | 9336 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
[4527] | 9337 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
[3493] | 9338 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
[4265] | 9339 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
[3549] | 9340 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
| 9341 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
[4263] | 9342 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
[4338] | 9343 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
[4531] | 9344 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
[4263] | 9345 | "src/subprojects/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/gui/Makefile" ;; |
---|
[1956] | 9346 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 9347 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 9348 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 9349 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 9350 | { (exit 1); exit 1; }; };; |
---|
| 9351 | esac |
---|
| 9352 | done |
---|
| 9353 | |
---|
| 9354 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 9355 | # then the envvar interface is used. Set only those that are not. |
---|
| 9356 | # We use the long form for the default assignment because of an extremely |
---|
| 9357 | # bizarre bug on SunOS 4.1.3. |
---|
| 9358 | if $ac_need_defaults; then |
---|
| 9359 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 9360 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 9361 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 9362 | fi |
---|
| 9363 | |
---|
| 9364 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 9365 | # simply because there is no reason to put it here, and in addition, |
---|
| 9366 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 9367 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 9368 | $debug || |
---|
| 9369 | { |
---|
| 9370 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 9371 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 9372 | } |
---|
| 9373 | |
---|
| 9374 | # Create a (secure) tmp directory for tmp files. |
---|
| 9375 | |
---|
| 9376 | { |
---|
| 9377 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 9378 | test -n "$tmp" && test -d "$tmp" |
---|
| 9379 | } || |
---|
| 9380 | { |
---|
| 9381 | tmp=./confstat$$-$RANDOM |
---|
| 9382 | (umask 077 && mkdir $tmp) |
---|
| 9383 | } || |
---|
| 9384 | { |
---|
| 9385 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 9386 | { (exit 1); exit 1; } |
---|
| 9387 | } |
---|
| 9388 | |
---|
| 9389 | _ACEOF |
---|
| 9390 | |
---|
| 9391 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9392 | |
---|
| 9393 | # |
---|
| 9394 | # CONFIG_FILES section. |
---|
| 9395 | # |
---|
| 9396 | |
---|
| 9397 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 9398 | # This happens for instance when ./config.status config.h |
---|
| 9399 | if test -n "\$CONFIG_FILES"; then |
---|
| 9400 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 9401 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 9402 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 9403 | s,@SHELL@,$SHELL,;t t |
---|
| 9404 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 9405 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 9406 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 9407 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 9408 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 9409 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 9410 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 9411 | s,@prefix@,$prefix,;t t |
---|
| 9412 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 9413 | s,@bindir@,$bindir,;t t |
---|
| 9414 | s,@sbindir@,$sbindir,;t t |
---|
| 9415 | s,@libexecdir@,$libexecdir,;t t |
---|
| 9416 | s,@datadir@,$datadir,;t t |
---|
| 9417 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 9418 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 9419 | s,@localstatedir@,$localstatedir,;t t |
---|
| 9420 | s,@libdir@,$libdir,;t t |
---|
| 9421 | s,@includedir@,$includedir,;t t |
---|
| 9422 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 9423 | s,@infodir@,$infodir,;t t |
---|
| 9424 | s,@mandir@,$mandir,;t t |
---|
| 9425 | s,@build_alias@,$build_alias,;t t |
---|
| 9426 | s,@host_alias@,$host_alias,;t t |
---|
| 9427 | s,@target_alias@,$target_alias,;t t |
---|
| 9428 | s,@DEFS@,$DEFS,;t t |
---|
| 9429 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 9430 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 9431 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 9432 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 9433 | s,@build@,$build,;t t |
---|
| 9434 | s,@build_cpu@,$build_cpu,;t t |
---|
| 9435 | s,@build_vendor@,$build_vendor,;t t |
---|
| 9436 | s,@build_os@,$build_os,;t t |
---|
| 9437 | s,@host@,$host,;t t |
---|
| 9438 | s,@host_cpu@,$host_cpu,;t t |
---|
| 9439 | s,@host_vendor@,$host_vendor,;t t |
---|
| 9440 | s,@host_os@,$host_os,;t t |
---|
| 9441 | s,@target@,$target,;t t |
---|
| 9442 | s,@target_cpu@,$target_cpu,;t t |
---|
| 9443 | s,@target_vendor@,$target_vendor,;t t |
---|
| 9444 | s,@target_os@,$target_os,;t t |
---|
[1956] | 9445 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 9446 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 9447 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 9448 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 9449 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 9450 | s,@VERSION@,$VERSION,;t t |
---|
| 9451 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 9452 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 9453 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 9454 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 9455 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 9456 | s,@AMTAR@,$AMTAR,;t t |
---|
| 9457 | s,@install_sh@,$install_sh,;t t |
---|
| 9458 | s,@STRIP@,$STRIP,;t t |
---|
| 9459 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 9460 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 9461 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 9462 | s,@AWK@,$AWK,;t t |
---|
| 9463 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 9464 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 9465 | s,@CXX@,$CXX,;t t |
---|
| 9466 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 9467 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 9468 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 9469 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 9470 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 9471 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 9472 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 9473 | s,@am__include@,$am__include,;t t |
---|
| 9474 | s,@am__quote@,$am__quote,;t t |
---|
| 9475 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 9476 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 9477 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 9478 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 9479 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 9480 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
[4054] | 9481 | s,@RANLIB@,$RANLIB,;t t |
---|
| 9482 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
[1956] | 9483 | s,@CC@,$CC,;t t |
---|
| 9484 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 9485 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 9486 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 9487 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 9488 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 9489 | s,@CPP@,$CPP,;t t |
---|
| 9490 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 9491 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 9492 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 9493 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3558] | 9494 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
| 9495 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
[3219] | 9496 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 9497 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 9498 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[3789] | 9499 | s,@GPROF@,$GPROF,;t t |
---|
[4130] | 9500 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
[2989] | 9501 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 9502 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 9503 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 9504 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 9505 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3423] | 9506 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 9507 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 9508 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 9509 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 9510 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 9511 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 9512 | CEOF |
---|
| 9513 | |
---|
| 9514 | _ACEOF |
---|
| 9515 | |
---|
| 9516 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9517 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 9518 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 9519 | ac_max_sed_lines=48 |
---|
| 9520 | ac_sed_frag=1 # Number of current file. |
---|
| 9521 | ac_beg=1 # First line for current file. |
---|
| 9522 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 9523 | ac_more_lines=: |
---|
| 9524 | ac_sed_cmds= |
---|
| 9525 | while $ac_more_lines; do |
---|
| 9526 | if test $ac_beg -gt 1; then |
---|
| 9527 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9528 | else |
---|
| 9529 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9530 | fi |
---|
| 9531 | if test ! -s $tmp/subs.frag; then |
---|
| 9532 | ac_more_lines=false |
---|
| 9533 | else |
---|
| 9534 | # The purpose of the label and of the branching condition is to |
---|
| 9535 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 9536 | # is no need to browse any of the substitutions). |
---|
| 9537 | # These are the two extra sed commands mentioned above. |
---|
| 9538 | (echo ':t |
---|
| 9539 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 9540 | if test -z "$ac_sed_cmds"; then |
---|
| 9541 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9542 | else |
---|
| 9543 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9544 | fi |
---|
| 9545 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 9546 | ac_beg=$ac_end |
---|
| 9547 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 9548 | fi |
---|
| 9549 | done |
---|
| 9550 | if test -z "$ac_sed_cmds"; then |
---|
| 9551 | ac_sed_cmds=cat |
---|
| 9552 | fi |
---|
| 9553 | fi # test -n "$CONFIG_FILES" |
---|
| 9554 | |
---|
| 9555 | _ACEOF |
---|
| 9556 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9557 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 9558 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9559 | case $ac_file in |
---|
| 9560 | - | *:- | *:-:* ) # input from stdin |
---|
| 9561 | cat >$tmp/stdin |
---|
| 9562 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9563 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9564 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9565 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9566 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9567 | esac |
---|
| 9568 | |
---|
| 9569 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 9570 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9571 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9572 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9573 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9574 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9575 | . : '\(.\)' 2>/dev/null || |
---|
| 9576 | echo X"$ac_file" | |
---|
| 9577 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9578 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9579 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9580 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9581 | s/.*/./; q'` |
---|
| 9582 | { if $as_mkdir_p; then |
---|
| 9583 | mkdir -p "$ac_dir" |
---|
| 9584 | else |
---|
| 9585 | as_dir="$ac_dir" |
---|
| 9586 | as_dirs= |
---|
| 9587 | while test ! -d "$as_dir"; do |
---|
| 9588 | as_dirs="$as_dir $as_dirs" |
---|
| 9589 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9590 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9591 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9592 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9593 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9594 | . : '\(.\)' 2>/dev/null || |
---|
| 9595 | echo X"$as_dir" | |
---|
| 9596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9597 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9598 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9599 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9600 | s/.*/./; q'` |
---|
| 9601 | done |
---|
| 9602 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9603 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9604 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9605 | { (exit 1); exit 1; }; }; } |
---|
| 9606 | |
---|
| 9607 | ac_builddir=. |
---|
| 9608 | |
---|
| 9609 | if test "$ac_dir" != .; then |
---|
| 9610 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9611 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9612 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9613 | else |
---|
| 9614 | ac_dir_suffix= ac_top_builddir= |
---|
| 9615 | fi |
---|
| 9616 | |
---|
| 9617 | case $srcdir in |
---|
| 9618 | .) # No --srcdir option. We are building in place. |
---|
| 9619 | ac_srcdir=. |
---|
| 9620 | if test -z "$ac_top_builddir"; then |
---|
| 9621 | ac_top_srcdir=. |
---|
| 9622 | else |
---|
| 9623 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9624 | fi ;; |
---|
| 9625 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9626 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9627 | ac_top_srcdir=$srcdir ;; |
---|
| 9628 | *) # Relative path. |
---|
| 9629 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9630 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9631 | esac |
---|
| 9632 | |
---|
| 9633 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9634 | # the directories may not exist. |
---|
| 9635 | case `pwd` in |
---|
| 9636 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9637 | *) |
---|
| 9638 | case "$ac_dir" in |
---|
| 9639 | .) ac_abs_builddir=`pwd`;; |
---|
| 9640 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9641 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9642 | esac;; |
---|
| 9643 | esac |
---|
| 9644 | case $ac_abs_builddir in |
---|
| 9645 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9646 | *) |
---|
| 9647 | case ${ac_top_builddir}. in |
---|
| 9648 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9649 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9650 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9651 | esac;; |
---|
| 9652 | esac |
---|
| 9653 | case $ac_abs_builddir in |
---|
| 9654 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9655 | *) |
---|
| 9656 | case $ac_srcdir in |
---|
| 9657 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9658 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9659 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9660 | esac;; |
---|
| 9661 | esac |
---|
| 9662 | case $ac_abs_builddir in |
---|
| 9663 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9664 | *) |
---|
| 9665 | case $ac_top_srcdir in |
---|
| 9666 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9667 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9668 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9669 | esac;; |
---|
| 9670 | esac |
---|
| 9671 | |
---|
| 9672 | |
---|
| 9673 | case $INSTALL in |
---|
| 9674 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9675 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9676 | esac |
---|
| 9677 | |
---|
| 9678 | if test x"$ac_file" != x-; then |
---|
| 9679 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9680 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9681 | rm -f "$ac_file" |
---|
| 9682 | fi |
---|
| 9683 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9684 | # use $as_me), people would be surprised to read: |
---|
| 9685 | # /* config.h. Generated by config.status. */ |
---|
| 9686 | if test x"$ac_file" = x-; then |
---|
| 9687 | configure_input= |
---|
| 9688 | else |
---|
| 9689 | configure_input="$ac_file. " |
---|
| 9690 | fi |
---|
| 9691 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9692 | sed 's,.*/,,'` by configure." |
---|
| 9693 | |
---|
| 9694 | # First look for the input files in the build tree, otherwise in the |
---|
| 9695 | # src tree. |
---|
| 9696 | ac_file_inputs=`IFS=: |
---|
| 9697 | for f in $ac_file_in; do |
---|
| 9698 | case $f in |
---|
| 9699 | -) echo $tmp/stdin ;; |
---|
| 9700 | [\\/$]*) |
---|
| 9701 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9702 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9703 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9704 | { (exit 1); exit 1; }; } |
---|
| 9705 | echo "$f";; |
---|
| 9706 | *) # Relative |
---|
| 9707 | if test -f "$f"; then |
---|
| 9708 | # Build tree |
---|
| 9709 | echo "$f" |
---|
| 9710 | elif test -f "$srcdir/$f"; then |
---|
| 9711 | # Source tree |
---|
| 9712 | echo "$srcdir/$f" |
---|
| 9713 | else |
---|
| 9714 | # /dev/null tree |
---|
| 9715 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9716 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9717 | { (exit 1); exit 1; }; } |
---|
| 9718 | fi;; |
---|
| 9719 | esac |
---|
| 9720 | done` || { (exit 1); exit 1; } |
---|
| 9721 | _ACEOF |
---|
| 9722 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9723 | sed "$ac_vpsub |
---|
| 9724 | $extrasub |
---|
| 9725 | _ACEOF |
---|
| 9726 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9727 | :t |
---|
| 9728 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9729 | s,@configure_input@,$configure_input,;t t |
---|
| 9730 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9731 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9732 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9733 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9734 | s,@builddir@,$ac_builddir,;t t |
---|
| 9735 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9736 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9737 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9738 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9739 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9740 | rm -f $tmp/stdin |
---|
| 9741 | if test x"$ac_file" != x-; then |
---|
| 9742 | mv $tmp/out $ac_file |
---|
| 9743 | else |
---|
| 9744 | cat $tmp/out |
---|
| 9745 | rm -f $tmp/out |
---|
| 9746 | fi |
---|
| 9747 | |
---|
| 9748 | done |
---|
| 9749 | _ACEOF |
---|
| 9750 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9751 | |
---|
| 9752 | # |
---|
| 9753 | # CONFIG_HEADER section. |
---|
| 9754 | # |
---|
| 9755 | |
---|
| 9756 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9757 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9758 | # |
---|
| 9759 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9760 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9761 | ac_dB='[ ].*$,\1#\2' |
---|
| 9762 | ac_dC=' ' |
---|
| 9763 | ac_dD=',;t' |
---|
| 9764 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9765 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9766 | ac_uB='$,\1#\2define\3' |
---|
| 9767 | ac_uC=' ' |
---|
| 9768 | ac_uD=',;t' |
---|
| 9769 | |
---|
| 9770 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9771 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9772 | case $ac_file in |
---|
| 9773 | - | *:- | *:-:* ) # input from stdin |
---|
| 9774 | cat >$tmp/stdin |
---|
| 9775 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9776 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9777 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9778 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9779 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9780 | esac |
---|
| 9781 | |
---|
| 9782 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9783 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9784 | |
---|
| 9785 | # First look for the input files in the build tree, otherwise in the |
---|
| 9786 | # src tree. |
---|
| 9787 | ac_file_inputs=`IFS=: |
---|
| 9788 | for f in $ac_file_in; do |
---|
| 9789 | case $f in |
---|
| 9790 | -) echo $tmp/stdin ;; |
---|
| 9791 | [\\/$]*) |
---|
| 9792 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9793 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9794 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9795 | { (exit 1); exit 1; }; } |
---|
| 9796 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9797 | echo "$f";; |
---|
| 9798 | *) # Relative |
---|
| 9799 | if test -f "$f"; then |
---|
| 9800 | # Build tree |
---|
| 9801 | echo "$f" |
---|
| 9802 | elif test -f "$srcdir/$f"; then |
---|
| 9803 | # Source tree |
---|
| 9804 | echo "$srcdir/$f" |
---|
| 9805 | else |
---|
| 9806 | # /dev/null tree |
---|
| 9807 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9808 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9809 | { (exit 1); exit 1; }; } |
---|
| 9810 | fi;; |
---|
| 9811 | esac |
---|
| 9812 | done` || { (exit 1); exit 1; } |
---|
| 9813 | # Remove the trailing spaces. |
---|
| 9814 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 9815 | |
---|
| 9816 | _ACEOF |
---|
| 9817 | |
---|
| 9818 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 9819 | # `conftest.undefs', that substitutes the proper values into |
---|
| 9820 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 9821 | # templates, and the second `#undef' templates. |
---|
| 9822 | # And first: Protect against being on the right side of a sed subst in |
---|
| 9823 | # config.status. Protect against being in an unquoted here document |
---|
| 9824 | # in config.status. |
---|
| 9825 | rm -f conftest.defines conftest.undefs |
---|
| 9826 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 9827 | # Putting comments in sed scripts is not portable. |
---|
| 9828 | # |
---|
| 9829 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 9830 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 9831 | # See the Autoconf documentation for `clear'. |
---|
| 9832 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 9833 | s/[\\&,]/\\&/g |
---|
| 9834 | s,[\\$`],\\&,g |
---|
| 9835 | t clear |
---|
| 9836 | : clear |
---|
| 9837 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 9838 | t end |
---|
| 9839 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 9840 | : end |
---|
| 9841 | _ACEOF |
---|
| 9842 | # If some macros were called several times there might be several times |
---|
| 9843 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 9844 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 9845 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 9846 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 9847 | rm -f confdef2sed.sed |
---|
| 9848 | |
---|
| 9849 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 9850 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 9851 | # on some systems where configure will not decide to define it. |
---|
| 9852 | cat >>conftest.undefs <<\_ACEOF |
---|
| 9853 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 9854 | _ACEOF |
---|
| 9855 | |
---|
| 9856 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 9857 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9858 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 9859 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 9860 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 9861 | echo ' :' >>$CONFIG_STATUS |
---|
| 9862 | rm -f conftest.tail |
---|
| 9863 | while grep . conftest.defines >/dev/null |
---|
| 9864 | do |
---|
| 9865 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 9866 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9867 | # Speed up: don't consider the non `#define' lines. |
---|
| 9868 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 9869 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9870 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9871 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9872 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 9873 | echo 'CEOF |
---|
| 9874 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 9875 | rm -f $tmp/in |
---|
| 9876 | mv $tmp/out $tmp/in |
---|
| 9877 | ' >>$CONFIG_STATUS |
---|
| 9878 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 9879 | rm -f conftest.defines |
---|
| 9880 | mv conftest.tail conftest.defines |
---|
| 9881 | done |
---|
| 9882 | rm -f conftest.defines |
---|
| 9883 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 9884 | echo >>$CONFIG_STATUS |
---|
| 9885 | |
---|
| 9886 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 9887 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9888 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 9889 | rm -f conftest.tail |
---|
| 9890 | while grep . conftest.undefs >/dev/null |
---|
| 9891 | do |
---|
| 9892 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 9893 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9894 | # Speed up: don't consider the non `#undef' |
---|
| 9895 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 9896 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9897 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9898 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9899 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 9900 | echo 'CEOF |
---|
| 9901 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 9902 | rm -f $tmp/in |
---|
| 9903 | mv $tmp/out $tmp/in |
---|
| 9904 | ' >>$CONFIG_STATUS |
---|
| 9905 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 9906 | rm -f conftest.undefs |
---|
| 9907 | mv conftest.tail conftest.undefs |
---|
| 9908 | done |
---|
| 9909 | rm -f conftest.undefs |
---|
| 9910 | |
---|
| 9911 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9912 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9913 | # use $as_me), people would be surprised to read: |
---|
| 9914 | # /* config.h. Generated by config.status. */ |
---|
| 9915 | if test x"$ac_file" = x-; then |
---|
| 9916 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 9917 | else |
---|
| 9918 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 9919 | fi |
---|
| 9920 | cat $tmp/in >>$tmp/config.h |
---|
| 9921 | rm -f $tmp/in |
---|
| 9922 | if test x"$ac_file" != x-; then |
---|
| 9923 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 9924 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 9925 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 9926 | else |
---|
| 9927 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9928 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9929 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9930 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9931 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9932 | . : '\(.\)' 2>/dev/null || |
---|
| 9933 | echo X"$ac_file" | |
---|
| 9934 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9935 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9936 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9937 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9938 | s/.*/./; q'` |
---|
| 9939 | { if $as_mkdir_p; then |
---|
| 9940 | mkdir -p "$ac_dir" |
---|
| 9941 | else |
---|
| 9942 | as_dir="$ac_dir" |
---|
| 9943 | as_dirs= |
---|
| 9944 | while test ! -d "$as_dir"; do |
---|
| 9945 | as_dirs="$as_dir $as_dirs" |
---|
| 9946 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9947 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9948 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9949 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9950 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9951 | . : '\(.\)' 2>/dev/null || |
---|
| 9952 | echo X"$as_dir" | |
---|
| 9953 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9954 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9955 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9956 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9957 | s/.*/./; q'` |
---|
| 9958 | done |
---|
| 9959 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9960 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9961 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9962 | { (exit 1); exit 1; }; }; } |
---|
| 9963 | |
---|
| 9964 | rm -f $ac_file |
---|
| 9965 | mv $tmp/config.h $ac_file |
---|
| 9966 | fi |
---|
| 9967 | else |
---|
| 9968 | cat $tmp/config.h |
---|
| 9969 | rm -f $tmp/config.h |
---|
| 9970 | fi |
---|
| 9971 | # Compute $ac_file's index in $config_headers. |
---|
| 9972 | _am_stamp_count=1 |
---|
| 9973 | for _am_header in $config_headers :; do |
---|
| 9974 | case $_am_header in |
---|
| 9975 | $ac_file | $ac_file:* ) |
---|
| 9976 | break ;; |
---|
| 9977 | * ) |
---|
| 9978 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 9979 | esac |
---|
| 9980 | done |
---|
| 9981 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 9982 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9983 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 9984 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 9985 | X$ac_file : 'X\(/\)' \| \ |
---|
| 9986 | . : '\(.\)' 2>/dev/null || |
---|
| 9987 | echo X$ac_file | |
---|
| 9988 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9989 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9990 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9991 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9992 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 9993 | done |
---|
| 9994 | _ACEOF |
---|
| 9995 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9996 | |
---|
| 9997 | # |
---|
| 9998 | # CONFIG_COMMANDS section. |
---|
| 9999 | # |
---|
| 10000 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 10001 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 10002 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 10003 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 10004 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10005 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 10006 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 10007 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 10008 | . : '\(.\)' 2>/dev/null || |
---|
| 10009 | echo X"$ac_dest" | |
---|
| 10010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10011 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10012 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10013 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10014 | s/.*/./; q'` |
---|
| 10015 | { if $as_mkdir_p; then |
---|
| 10016 | mkdir -p "$ac_dir" |
---|
| 10017 | else |
---|
| 10018 | as_dir="$ac_dir" |
---|
| 10019 | as_dirs= |
---|
| 10020 | while test ! -d "$as_dir"; do |
---|
| 10021 | as_dirs="$as_dir $as_dirs" |
---|
| 10022 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 10023 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10024 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 10025 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 10026 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 10027 | . : '\(.\)' 2>/dev/null || |
---|
| 10028 | echo X"$as_dir" | |
---|
| 10029 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10030 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10031 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10032 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10033 | s/.*/./; q'` |
---|
| 10034 | done |
---|
| 10035 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 10036 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 10037 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 10038 | { (exit 1); exit 1; }; }; } |
---|
| 10039 | |
---|
| 10040 | ac_builddir=. |
---|
| 10041 | |
---|
| 10042 | if test "$ac_dir" != .; then |
---|
| 10043 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 10044 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 10045 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 10046 | else |
---|
| 10047 | ac_dir_suffix= ac_top_builddir= |
---|
| 10048 | fi |
---|
| 10049 | |
---|
| 10050 | case $srcdir in |
---|
| 10051 | .) # No --srcdir option. We are building in place. |
---|
| 10052 | ac_srcdir=. |
---|
| 10053 | if test -z "$ac_top_builddir"; then |
---|
| 10054 | ac_top_srcdir=. |
---|
| 10055 | else |
---|
| 10056 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 10057 | fi ;; |
---|
| 10058 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 10059 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 10060 | ac_top_srcdir=$srcdir ;; |
---|
| 10061 | *) # Relative path. |
---|
| 10062 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 10063 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 10064 | esac |
---|
| 10065 | |
---|
| 10066 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 10067 | # the directories may not exist. |
---|
| 10068 | case `pwd` in |
---|
| 10069 | .) ac_abs_builddir="$ac_dir";; |
---|
| 10070 | *) |
---|
| 10071 | case "$ac_dir" in |
---|
| 10072 | .) ac_abs_builddir=`pwd`;; |
---|
| 10073 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 10074 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 10075 | esac;; |
---|
| 10076 | esac |
---|
| 10077 | case $ac_abs_builddir in |
---|
| 10078 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 10079 | *) |
---|
| 10080 | case ${ac_top_builddir}. in |
---|
| 10081 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 10082 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 10083 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 10084 | esac;; |
---|
| 10085 | esac |
---|
| 10086 | case $ac_abs_builddir in |
---|
| 10087 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 10088 | *) |
---|
| 10089 | case $ac_srcdir in |
---|
| 10090 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 10091 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 10092 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 10093 | esac;; |
---|
| 10094 | esac |
---|
| 10095 | case $ac_abs_builddir in |
---|
| 10096 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 10097 | *) |
---|
| 10098 | case $ac_top_srcdir in |
---|
| 10099 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 10100 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 10101 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 10102 | esac;; |
---|
| 10103 | esac |
---|
| 10104 | |
---|
| 10105 | |
---|
| 10106 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 10107 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 10108 | case $ac_dest in |
---|
| 10109 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 10110 | # Strip MF so we end up with the name of the file. |
---|
| 10111 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 10112 | # Check whether this is an Automake generated Makefile or not. |
---|
| 10113 | # We used to match only the files named `Makefile.in', but |
---|
| 10114 | # some people rename them; so instead we look at the file content. |
---|
| 10115 | # Grep'ing the first line is not enough: some people post-process |
---|
| 10116 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 10117 | # So let's grep whole file. |
---|
| 10118 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 10119 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 10120 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10121 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 10122 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 10123 | X"$mf" : 'X\(/\)' \| \ |
---|
| 10124 | . : '\(.\)' 2>/dev/null || |
---|
| 10125 | echo X"$mf" | |
---|
| 10126 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10127 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10128 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10129 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10130 | s/.*/./; q'` |
---|
| 10131 | else |
---|
| 10132 | continue |
---|
| 10133 | fi |
---|
| 10134 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 10135 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 10136 | # running `make'. |
---|
[4054] | 10137 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 10138 | test -z "$DEPDIR" && continue |
---|
| 10139 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[4054] | 10140 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 10141 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 10142 | # We invoke sed twice because it is the simplest approach to |
---|
| 10143 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[4054] | 10144 | for file in `sed -n ' |
---|
[1956] | 10145 | /^DEP_FILES = .*\\\\$/ { |
---|
| 10146 | s/^DEP_FILES = // |
---|
| 10147 | :loop |
---|
| 10148 | s/\\\\$// |
---|
| 10149 | p |
---|
| 10150 | n |
---|
| 10151 | /\\\\$/ b loop |
---|
| 10152 | p |
---|
| 10153 | } |
---|
| 10154 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 10155 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 10156 | # Make sure the directory exists. |
---|
| 10157 | test -f "$dirpart/$file" && continue |
---|
| 10158 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 10159 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10160 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 10161 | X"$file" : 'X\(//\)$' \| \ |
---|
| 10162 | X"$file" : 'X\(/\)' \| \ |
---|
| 10163 | . : '\(.\)' 2>/dev/null || |
---|
| 10164 | echo X"$file" | |
---|
| 10165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10166 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10167 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10168 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10169 | s/.*/./; q'` |
---|
| 10170 | { if $as_mkdir_p; then |
---|
| 10171 | mkdir -p $dirpart/$fdir |
---|
| 10172 | else |
---|
| 10173 | as_dir=$dirpart/$fdir |
---|
| 10174 | as_dirs= |
---|
| 10175 | while test ! -d "$as_dir"; do |
---|
| 10176 | as_dirs="$as_dir $as_dirs" |
---|
| 10177 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 10178 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 10179 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 10180 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 10181 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 10182 | . : '\(.\)' 2>/dev/null || |
---|
| 10183 | echo X"$as_dir" | |
---|
| 10184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 10185 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 10186 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 10187 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 10188 | s/.*/./; q'` |
---|
| 10189 | done |
---|
| 10190 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 10191 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 10192 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 10193 | { (exit 1); exit 1; }; }; } |
---|
| 10194 | |
---|
| 10195 | # echo "creating $dirpart/$file" |
---|
| 10196 | echo '# dummy' > "$dirpart/$file" |
---|
| 10197 | done |
---|
| 10198 | done |
---|
| 10199 | ;; |
---|
| 10200 | esac |
---|
| 10201 | done |
---|
| 10202 | _ACEOF |
---|
| 10203 | |
---|
| 10204 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 10205 | |
---|
| 10206 | { (exit 0); exit 0; } |
---|
| 10207 | _ACEOF |
---|
| 10208 | chmod +x $CONFIG_STATUS |
---|
| 10209 | ac_clean_files=$ac_clean_files_save |
---|
| 10210 | |
---|
| 10211 | |
---|
| 10212 | # configure is writing to config.log, and then calls config.status. |
---|
| 10213 | # config.status does its own redirection, appending to config.log. |
---|
| 10214 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 10215 | # by configure, so config.status won't be able to write to it; its |
---|
| 10216 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 10217 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 10218 | # appended to by config.status. When coming back to configure, we |
---|
| 10219 | # need to make the FD available again. |
---|
| 10220 | if test "$no_create" != yes; then |
---|
| 10221 | ac_cs_success=: |
---|
| 10222 | ac_config_status_args= |
---|
| 10223 | test "$silent" = yes && |
---|
| 10224 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 10225 | exec 5>/dev/null |
---|
| 10226 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 10227 | exec 5>>config.log |
---|
| 10228 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 10229 | # would make configure fail if this is the last instruction. |
---|
| 10230 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 10231 | fi |
---|
| 10232 | |
---|