[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3365] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.1-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' |
---|
[3365] | 272 | PACKAGE_VERSION='0.2.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.1-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 | |
---|
[3499] | 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 CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_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 |
---|
[3365] | 791 | \`configure' configures orxonox 0.2.1-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 |
---|
[3365] | 858 | short | recursive ) echo "Configuration of orxonox 0.2.1-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. |
---|
[3499] | 869 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[1956] | 870 | |
---|
[3173] | 871 | Optional Packages: |
---|
| 872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 874 | --without-gtk Prevents GTK from being loaded |
---|
[3499] | 875 | --without-gthread Prevents gThread from being loaded |
---|
| 876 | --without-pthread Prevents pthread from being loaded |
---|
| 877 | --without-curl Prevents libcURL from being loaded |
---|
[3181] | 878 | --without-sdl-image Prevents SDL_image from being loaded |
---|
[3173] | 879 | |
---|
[1956] | 880 | Some influential environment variables: |
---|
| 881 | CXX C++ compiler command |
---|
| 882 | CXXFLAGS C++ compiler flags |
---|
| 883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 884 | nonstandard directory <lib dir> |
---|
| 885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 886 | headers in a nonstandard directory <include dir> |
---|
| 887 | CC C compiler command |
---|
| 888 | CFLAGS C compiler flags |
---|
| 889 | CPP C preprocessor |
---|
| 890 | |
---|
| 891 | Use these variables to override the choices made by `configure' or to help |
---|
| 892 | it to find libraries and programs with nonstandard names/locations. |
---|
| 893 | |
---|
[3240] | 894 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 895 | _ACEOF |
---|
| 896 | fi |
---|
| 897 | |
---|
| 898 | if test "$ac_init_help" = "recursive"; then |
---|
| 899 | # If there are subdirs, report their specific --help. |
---|
| 900 | ac_popdir=`pwd` |
---|
| 901 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 902 | test -d $ac_dir || continue |
---|
| 903 | ac_builddir=. |
---|
| 904 | |
---|
| 905 | if test "$ac_dir" != .; then |
---|
| 906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 907 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 909 | else |
---|
| 910 | ac_dir_suffix= ac_top_builddir= |
---|
| 911 | fi |
---|
| 912 | |
---|
| 913 | case $srcdir in |
---|
| 914 | .) # No --srcdir option. We are building in place. |
---|
| 915 | ac_srcdir=. |
---|
| 916 | if test -z "$ac_top_builddir"; then |
---|
| 917 | ac_top_srcdir=. |
---|
| 918 | else |
---|
| 919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 920 | fi ;; |
---|
| 921 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 922 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 923 | ac_top_srcdir=$srcdir ;; |
---|
| 924 | *) # Relative path. |
---|
| 925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 927 | esac |
---|
| 928 | |
---|
| 929 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 930 | # the directories may not exist. |
---|
| 931 | case `pwd` in |
---|
| 932 | .) ac_abs_builddir="$ac_dir";; |
---|
| 933 | *) |
---|
| 934 | case "$ac_dir" in |
---|
| 935 | .) ac_abs_builddir=`pwd`;; |
---|
| 936 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 937 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 938 | esac;; |
---|
| 939 | esac |
---|
| 940 | case $ac_abs_builddir in |
---|
| 941 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 942 | *) |
---|
| 943 | case ${ac_top_builddir}. in |
---|
| 944 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 945 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 946 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 947 | esac;; |
---|
| 948 | esac |
---|
| 949 | case $ac_abs_builddir in |
---|
| 950 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 951 | *) |
---|
| 952 | case $ac_srcdir in |
---|
| 953 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 954 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 955 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 956 | esac;; |
---|
| 957 | esac |
---|
| 958 | case $ac_abs_builddir in |
---|
| 959 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 960 | *) |
---|
| 961 | case $ac_top_srcdir in |
---|
| 962 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 963 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 964 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 965 | esac;; |
---|
| 966 | esac |
---|
| 967 | |
---|
| 968 | cd $ac_dir |
---|
| 969 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 970 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 971 | echo |
---|
| 972 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 973 | elif test -f $ac_srcdir/configure; then |
---|
| 974 | echo |
---|
| 975 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 976 | elif test -f $ac_srcdir/configure.ac || |
---|
| 977 | test -f $ac_srcdir/configure.in; then |
---|
| 978 | echo |
---|
| 979 | $ac_configure --help |
---|
| 980 | else |
---|
| 981 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 982 | fi |
---|
| 983 | cd $ac_popdir |
---|
| 984 | done |
---|
| 985 | fi |
---|
| 986 | |
---|
| 987 | test -n "$ac_init_help" && exit 0 |
---|
| 988 | if $ac_init_version; then |
---|
| 989 | cat <<\_ACEOF |
---|
[3365] | 990 | orxonox configure 0.2.1-pre-alpha |
---|
[1956] | 991 | generated by GNU Autoconf 2.59 |
---|
| 992 | |
---|
| 993 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 994 | This configure script is free software; the Free Software Foundation |
---|
| 995 | gives unlimited permission to copy, distribute and modify it. |
---|
| 996 | _ACEOF |
---|
| 997 | exit 0 |
---|
| 998 | fi |
---|
| 999 | exec 5>config.log |
---|
| 1000 | cat >&5 <<_ACEOF |
---|
| 1001 | This file contains any messages produced by compilers while |
---|
| 1002 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1003 | |
---|
[3365] | 1004 | It was created by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 1005 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1006 | |
---|
| 1007 | $ $0 $@ |
---|
| 1008 | |
---|
| 1009 | _ACEOF |
---|
| 1010 | { |
---|
| 1011 | cat <<_ASUNAME |
---|
| 1012 | ## --------- ## |
---|
| 1013 | ## Platform. ## |
---|
| 1014 | ## --------- ## |
---|
| 1015 | |
---|
| 1016 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1017 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1018 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1019 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1020 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1021 | |
---|
| 1022 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1023 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1024 | |
---|
| 1025 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1026 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1027 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1028 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1029 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1030 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1031 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1032 | |
---|
| 1033 | _ASUNAME |
---|
| 1034 | |
---|
| 1035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1036 | for as_dir in $PATH |
---|
| 1037 | do |
---|
| 1038 | IFS=$as_save_IFS |
---|
| 1039 | test -z "$as_dir" && as_dir=. |
---|
| 1040 | echo "PATH: $as_dir" |
---|
| 1041 | done |
---|
| 1042 | |
---|
| 1043 | } >&5 |
---|
| 1044 | |
---|
| 1045 | cat >&5 <<_ACEOF |
---|
| 1046 | |
---|
| 1047 | |
---|
| 1048 | ## ----------- ## |
---|
| 1049 | ## Core tests. ## |
---|
| 1050 | ## ----------- ## |
---|
| 1051 | |
---|
| 1052 | _ACEOF |
---|
| 1053 | |
---|
| 1054 | |
---|
| 1055 | # Keep a trace of the command line. |
---|
| 1056 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1057 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1058 | # Also quote any args containing shell meta-characters. |
---|
| 1059 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1060 | ac_configure_args= |
---|
| 1061 | ac_configure_args0= |
---|
| 1062 | ac_configure_args1= |
---|
| 1063 | ac_sep= |
---|
| 1064 | ac_must_keep_next=false |
---|
| 1065 | for ac_pass in 1 2 |
---|
| 1066 | do |
---|
| 1067 | for ac_arg |
---|
| 1068 | do |
---|
| 1069 | case $ac_arg in |
---|
| 1070 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1072 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1073 | continue ;; |
---|
| 1074 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1075 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1076 | esac |
---|
| 1077 | case $ac_pass in |
---|
| 1078 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1079 | 2) |
---|
| 1080 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1081 | if test $ac_must_keep_next = true; then |
---|
| 1082 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1083 | else |
---|
| 1084 | case $ac_arg in |
---|
| 1085 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1086 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1087 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1088 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1089 | case "$ac_configure_args0 " in |
---|
| 1090 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1091 | esac |
---|
| 1092 | ;; |
---|
| 1093 | -* ) ac_must_keep_next=true ;; |
---|
| 1094 | esac |
---|
| 1095 | fi |
---|
| 1096 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1097 | # Get rid of the leading space. |
---|
| 1098 | ac_sep=" " |
---|
| 1099 | ;; |
---|
| 1100 | esac |
---|
| 1101 | done |
---|
| 1102 | done |
---|
| 1103 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1104 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1105 | |
---|
| 1106 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1107 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1108 | # would cause problems or look ugly. |
---|
| 1109 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1110 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1111 | trap 'exit_status=$? |
---|
| 1112 | # Save into config.log some information that might help in debugging. |
---|
| 1113 | { |
---|
| 1114 | echo |
---|
| 1115 | |
---|
| 1116 | cat <<\_ASBOX |
---|
| 1117 | ## ---------------- ## |
---|
| 1118 | ## Cache variables. ## |
---|
| 1119 | ## ---------------- ## |
---|
| 1120 | _ASBOX |
---|
| 1121 | echo |
---|
| 1122 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1123 | { |
---|
| 1124 | (set) 2>&1 | |
---|
| 1125 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1126 | *ac_space=\ *) |
---|
| 1127 | sed -n \ |
---|
| 1128 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1129 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1130 | ;; |
---|
| 1131 | *) |
---|
| 1132 | sed -n \ |
---|
| 1133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1134 | ;; |
---|
| 1135 | esac; |
---|
| 1136 | } |
---|
| 1137 | echo |
---|
| 1138 | |
---|
| 1139 | cat <<\_ASBOX |
---|
| 1140 | ## ----------------- ## |
---|
| 1141 | ## Output variables. ## |
---|
| 1142 | ## ----------------- ## |
---|
| 1143 | _ASBOX |
---|
| 1144 | echo |
---|
| 1145 | for ac_var in $ac_subst_vars |
---|
| 1146 | do |
---|
| 1147 | eval ac_val=$`echo $ac_var` |
---|
| 1148 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1149 | done | sort |
---|
| 1150 | echo |
---|
| 1151 | |
---|
| 1152 | if test -n "$ac_subst_files"; then |
---|
| 1153 | cat <<\_ASBOX |
---|
| 1154 | ## ------------- ## |
---|
| 1155 | ## Output files. ## |
---|
| 1156 | ## ------------- ## |
---|
| 1157 | _ASBOX |
---|
| 1158 | echo |
---|
| 1159 | for ac_var in $ac_subst_files |
---|
| 1160 | do |
---|
| 1161 | eval ac_val=$`echo $ac_var` |
---|
| 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1163 | done | sort |
---|
| 1164 | echo |
---|
| 1165 | fi |
---|
| 1166 | |
---|
| 1167 | if test -s confdefs.h; then |
---|
| 1168 | cat <<\_ASBOX |
---|
| 1169 | ## ----------- ## |
---|
| 1170 | ## confdefs.h. ## |
---|
| 1171 | ## ----------- ## |
---|
| 1172 | _ASBOX |
---|
| 1173 | echo |
---|
| 1174 | sed "/^$/d" confdefs.h | sort |
---|
| 1175 | echo |
---|
| 1176 | fi |
---|
| 1177 | test "$ac_signal" != 0 && |
---|
| 1178 | echo "$as_me: caught signal $ac_signal" |
---|
| 1179 | echo "$as_me: exit $exit_status" |
---|
| 1180 | } >&5 |
---|
| 1181 | rm -f core *.core && |
---|
| 1182 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1183 | exit $exit_status |
---|
| 1184 | ' 0 |
---|
| 1185 | for ac_signal in 1 2 13 15; do |
---|
| 1186 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1187 | done |
---|
| 1188 | ac_signal=0 |
---|
| 1189 | |
---|
| 1190 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1191 | rm -rf conftest* confdefs.h |
---|
| 1192 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1193 | echo >confdefs.h |
---|
| 1194 | |
---|
| 1195 | # Predefined preprocessor variables. |
---|
| 1196 | |
---|
| 1197 | cat >>confdefs.h <<_ACEOF |
---|
| 1198 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1199 | _ACEOF |
---|
| 1200 | |
---|
| 1201 | |
---|
| 1202 | cat >>confdefs.h <<_ACEOF |
---|
| 1203 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1204 | _ACEOF |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | cat >>confdefs.h <<_ACEOF |
---|
| 1208 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1209 | _ACEOF |
---|
| 1210 | |
---|
| 1211 | |
---|
| 1212 | cat >>confdefs.h <<_ACEOF |
---|
| 1213 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1214 | _ACEOF |
---|
| 1215 | |
---|
| 1216 | |
---|
| 1217 | cat >>confdefs.h <<_ACEOF |
---|
| 1218 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1219 | _ACEOF |
---|
| 1220 | |
---|
| 1221 | |
---|
| 1222 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1223 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1224 | if test -z "$CONFIG_SITE"; then |
---|
| 1225 | if test "x$prefix" != xNONE; then |
---|
| 1226 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1227 | else |
---|
| 1228 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1229 | fi |
---|
| 1230 | fi |
---|
| 1231 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1232 | if test -r "$ac_site_file"; then |
---|
| 1233 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1234 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1235 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1236 | . "$ac_site_file" |
---|
| 1237 | fi |
---|
| 1238 | done |
---|
| 1239 | |
---|
| 1240 | if test -r "$cache_file"; then |
---|
| 1241 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1242 | # files actually), so we avoid doing that. |
---|
| 1243 | if test -f "$cache_file"; then |
---|
| 1244 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1245 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1246 | case $cache_file in |
---|
| 1247 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1248 | *) . ./$cache_file;; |
---|
| 1249 | esac |
---|
| 1250 | fi |
---|
| 1251 | else |
---|
| 1252 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1253 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1254 | >$cache_file |
---|
| 1255 | fi |
---|
| 1256 | |
---|
| 1257 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1258 | # value. |
---|
| 1259 | ac_cache_corrupted=false |
---|
| 1260 | for ac_var in `(set) 2>&1 | |
---|
| 1261 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1262 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1263 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1264 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1265 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1266 | case $ac_old_set,$ac_new_set in |
---|
| 1267 | set,) |
---|
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1269 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1270 | ac_cache_corrupted=: ;; |
---|
| 1271 | ,set) |
---|
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1273 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1274 | ac_cache_corrupted=: ;; |
---|
| 1275 | ,);; |
---|
| 1276 | *) |
---|
| 1277 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1278 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1279 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1280 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1281 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1282 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1283 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1284 | ac_cache_corrupted=: |
---|
| 1285 | fi;; |
---|
| 1286 | esac |
---|
| 1287 | # Pass precious variables to config.status. |
---|
| 1288 | if test "$ac_new_set" = set; then |
---|
| 1289 | case $ac_new_val in |
---|
| 1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1291 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1292 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1293 | esac |
---|
| 1294 | case " $ac_configure_args " in |
---|
| 1295 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1296 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1297 | esac |
---|
| 1298 | fi |
---|
| 1299 | done |
---|
| 1300 | if $ac_cache_corrupted; then |
---|
| 1301 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1302 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1303 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1304 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1305 | { (exit 1); exit 1; }; } |
---|
| 1306 | fi |
---|
| 1307 | |
---|
| 1308 | ac_ext=c |
---|
| 1309 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
[2980] | 1340 | |
---|
[3499] | 1341 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1342 | ac_aux_dir= |
---|
| 1343 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1344 | if test -f $ac_dir/install-sh; then |
---|
| 1345 | ac_aux_dir=$ac_dir |
---|
| 1346 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1347 | break |
---|
| 1348 | elif test -f $ac_dir/install.sh; then |
---|
| 1349 | ac_aux_dir=$ac_dir |
---|
| 1350 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1351 | break |
---|
| 1352 | elif test -f $ac_dir/shtool; then |
---|
| 1353 | ac_aux_dir=$ac_dir |
---|
| 1354 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1355 | break |
---|
| 1356 | fi |
---|
| 1357 | done |
---|
| 1358 | if test -z "$ac_aux_dir"; then |
---|
| 1359 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1360 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1361 | { (exit 1); exit 1; }; } |
---|
| 1362 | fi |
---|
| 1363 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1364 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1365 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1366 | |
---|
[2980] | 1367 | # Make sure we can run config.sub. |
---|
| 1368 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1369 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1370 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1371 | { (exit 1); exit 1; }; } |
---|
| 1372 | |
---|
| 1373 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1374 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1375 | if test "${ac_cv_build+set}" = set; then |
---|
| 1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1377 | else |
---|
| 1378 | ac_cv_build_alias=$build_alias |
---|
| 1379 | test -z "$ac_cv_build_alias" && |
---|
| 1380 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1381 | test -z "$ac_cv_build_alias" && |
---|
| 1382 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1383 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1384 | { (exit 1); exit 1; }; } |
---|
| 1385 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1386 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1387 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1388 | { (exit 1); exit 1; }; } |
---|
| 1389 | |
---|
| 1390 | fi |
---|
| 1391 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1392 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1393 | build=$ac_cv_build |
---|
| 1394 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1395 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1396 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1397 | |
---|
| 1398 | |
---|
| 1399 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1400 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1401 | if test "${ac_cv_host+set}" = set; then |
---|
| 1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1403 | else |
---|
| 1404 | ac_cv_host_alias=$host_alias |
---|
| 1405 | test -z "$ac_cv_host_alias" && |
---|
| 1406 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1407 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1408 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1409 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1410 | { (exit 1); exit 1; }; } |
---|
| 1411 | |
---|
| 1412 | fi |
---|
| 1413 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1414 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1415 | host=$ac_cv_host |
---|
| 1416 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1417 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1418 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1419 | |
---|
| 1420 | |
---|
| 1421 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1422 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1423 | if test "${ac_cv_target+set}" = set; then |
---|
| 1424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1425 | else |
---|
| 1426 | ac_cv_target_alias=$target_alias |
---|
| 1427 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1428 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1429 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1430 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1431 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1432 | { (exit 1); exit 1; }; } |
---|
| 1433 | |
---|
| 1434 | fi |
---|
| 1435 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1436 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1437 | target=$ac_cv_target |
---|
| 1438 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1439 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1440 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1441 | |
---|
| 1442 | |
---|
| 1443 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1444 | # will get canonicalized. |
---|
| 1445 | test -n "$target_alias" && |
---|
| 1446 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1447 | NONENONEs,x,x, && |
---|
| 1448 | program_prefix=${target_alias}- |
---|
| 1449 | |
---|
| 1450 | am__api_version="1.8" |
---|
[1956] | 1451 | # Find a good install program. We prefer a C program (faster), |
---|
| 1452 | # so one script is as good as another. But avoid the broken or |
---|
| 1453 | # incompatible versions: |
---|
| 1454 | # SysV /etc/install, /usr/sbin/install |
---|
| 1455 | # SunOS /usr/etc/install |
---|
| 1456 | # IRIX /sbin/install |
---|
| 1457 | # AIX /bin/install |
---|
| 1458 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1462 | # OS/2's system install, which has a completely different semantic |
---|
| 1463 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1464 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1465 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1466 | if test -z "$INSTALL"; then |
---|
| 1467 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1469 | else |
---|
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1471 | for as_dir in $PATH |
---|
| 1472 | do |
---|
| 1473 | IFS=$as_save_IFS |
---|
| 1474 | test -z "$as_dir" && as_dir=. |
---|
| 1475 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1476 | case $as_dir/ in |
---|
| 1477 | ./ | .// | /cC/* | \ |
---|
| 1478 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1479 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1480 | /usr/ucb/* ) ;; |
---|
| 1481 | *) |
---|
| 1482 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1483 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1484 | # by default. |
---|
| 1485 | for ac_prog in ginstall scoinst install; do |
---|
| 1486 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1487 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1488 | if test $ac_prog = install && |
---|
| 1489 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1490 | # AIX install. It has an incompatible calling convention. |
---|
| 1491 | : |
---|
| 1492 | elif test $ac_prog = install && |
---|
| 1493 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1494 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1495 | : |
---|
| 1496 | else |
---|
| 1497 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1498 | break 3 |
---|
| 1499 | fi |
---|
[1853] | 1500 | fi |
---|
[1956] | 1501 | done |
---|
| 1502 | done |
---|
| 1503 | ;; |
---|
| 1504 | esac |
---|
| 1505 | done |
---|
| 1506 | |
---|
| 1507 | |
---|
[1853] | 1508 | fi |
---|
[1956] | 1509 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1510 | INSTALL=$ac_cv_path_install |
---|
| 1511 | else |
---|
| 1512 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1513 | # path for INSTALL within a source directory, because that will |
---|
| 1514 | # break other packages using the cache if that directory is |
---|
| 1515 | # removed, or if the path is relative. |
---|
| 1516 | INSTALL=$ac_install_sh |
---|
| 1517 | fi |
---|
| 1518 | fi |
---|
| 1519 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1520 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1521 | |
---|
| 1522 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1523 | # It thinks the first close brace ends the variable substitution. |
---|
| 1524 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1525 | |
---|
| 1526 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1527 | |
---|
| 1528 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1529 | |
---|
| 1530 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1531 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1532 | # Just in case |
---|
| 1533 | sleep 1 |
---|
| 1534 | echo timestamp > conftest.file |
---|
| 1535 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1536 | # arguments. Must try -L first in case configure is actually a |
---|
| 1537 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1538 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1539 | # directory). |
---|
| 1540 | if ( |
---|
| 1541 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1542 | if test "$*" = "X"; then |
---|
| 1543 | # -L didn't work. |
---|
| 1544 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1545 | fi |
---|
| 1546 | rm -f conftest.file |
---|
| 1547 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1548 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1549 | |
---|
| 1550 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1551 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1552 | # broken ls alias from the environment. This has actually |
---|
| 1553 | # happened. Such a system could not be considered "sane". |
---|
| 1554 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1555 | alias in your environment" >&5 |
---|
| 1556 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1557 | alias in your environment" >&2;} |
---|
| 1558 | { (exit 1); exit 1; }; } |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | test "$2" = conftest.file |
---|
| 1562 | ) |
---|
| 1563 | then |
---|
| 1564 | # Ok. |
---|
| 1565 | : |
---|
[1853] | 1566 | else |
---|
[1956] | 1567 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1568 | Check your system clock" >&5 |
---|
| 1569 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1570 | Check your system clock" >&2;} |
---|
| 1571 | { (exit 1); exit 1; }; } |
---|
[1853] | 1572 | fi |
---|
[1956] | 1573 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1574 | echo "${ECHO_T}yes" >&6 |
---|
| 1575 | test "$program_prefix" != NONE && |
---|
| 1576 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1577 | # Use a double $ so make ignores it. |
---|
| 1578 | test "$program_suffix" != NONE && |
---|
| 1579 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1580 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1581 | # By default was `s,x,x', remove it if useless. |
---|
| 1582 | cat <<\_ACEOF >conftest.sed |
---|
| 1583 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1584 | _ACEOF |
---|
| 1585 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1586 | rm conftest.sed |
---|
[1853] | 1587 | |
---|
[1956] | 1588 | # expand $ac_aux_dir to an absolute path |
---|
| 1589 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1590 | |
---|
| 1591 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1592 | # Use eval to expand $SHELL |
---|
| 1593 | if eval "$MISSING --run true"; then |
---|
| 1594 | am_missing_run="$MISSING --run " |
---|
| 1595 | else |
---|
| 1596 | am_missing_run= |
---|
| 1597 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1598 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1599 | fi |
---|
| 1600 | |
---|
[3530] | 1601 | if mkdir -p -- . 2>/dev/null; then |
---|
[2706] | 1602 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1603 | # argument. Indeed, we sometimes output rules like |
---|
| 1604 | # $(mkdir_p) $(somedir) |
---|
| 1605 | # where $(somedir) is conditionally defined. |
---|
| 1606 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1607 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1608 | mkdir_p='mkdir -p -- .' |
---|
| 1609 | else |
---|
| 1610 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1611 | # recognize any option. It will interpret all options as |
---|
| 1612 | # directories to create, and then abort because `.' already |
---|
| 1613 | # exists. |
---|
[3530] | 1614 | for d in ./-p ./--; |
---|
[2706] | 1615 | do |
---|
| 1616 | test -d $d && rmdir $d |
---|
| 1617 | done |
---|
| 1618 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1619 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1620 | mkdir_p='$(mkinstalldirs)' |
---|
| 1621 | else |
---|
| 1622 | mkdir_p='$(install_sh) -d' |
---|
| 1623 | fi |
---|
| 1624 | fi |
---|
| 1625 | |
---|
[1956] | 1626 | for ac_prog in gawk mawk nawk awk |
---|
| 1627 | do |
---|
| 1628 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1629 | set dummy $ac_prog; ac_word=$2 |
---|
| 1630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1632 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1634 | else |
---|
| 1635 | if test -n "$AWK"; then |
---|
| 1636 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1637 | else |
---|
| 1638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1639 | for as_dir in $PATH |
---|
| 1640 | do |
---|
| 1641 | IFS=$as_save_IFS |
---|
| 1642 | test -z "$as_dir" && as_dir=. |
---|
| 1643 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1645 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1647 | break 2 |
---|
| 1648 | fi |
---|
| 1649 | done |
---|
| 1650 | done |
---|
| 1651 | |
---|
| 1652 | fi |
---|
| 1653 | fi |
---|
| 1654 | AWK=$ac_cv_prog_AWK |
---|
| 1655 | if test -n "$AWK"; then |
---|
| 1656 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1657 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1658 | else |
---|
| 1659 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1660 | echo "${ECHO_T}no" >&6 |
---|
| 1661 | fi |
---|
| 1662 | |
---|
| 1663 | test -n "$AWK" && break |
---|
| 1664 | done |
---|
| 1665 | |
---|
| 1666 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1667 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1668 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1669 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1671 | else |
---|
| 1672 | cat >conftest.make <<\_ACEOF |
---|
| 1673 | all: |
---|
| 1674 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1675 | _ACEOF |
---|
| 1676 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1677 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1678 | if test -n "$ac_maketemp"; then |
---|
| 1679 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1680 | else |
---|
| 1681 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1682 | fi |
---|
| 1683 | rm -f conftest.make |
---|
| 1684 | fi |
---|
| 1685 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1686 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1687 | echo "${ECHO_T}yes" >&6 |
---|
| 1688 | SET_MAKE= |
---|
| 1689 | else |
---|
| 1690 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1691 | echo "${ECHO_T}no" >&6 |
---|
| 1692 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1693 | fi |
---|
| 1694 | |
---|
| 1695 | rm -rf .tst 2>/dev/null |
---|
| 1696 | mkdir .tst 2>/dev/null |
---|
| 1697 | if test -d .tst; then |
---|
| 1698 | am__leading_dot=. |
---|
| 1699 | else |
---|
| 1700 | am__leading_dot=_ |
---|
| 1701 | fi |
---|
| 1702 | rmdir .tst 2>/dev/null |
---|
| 1703 | |
---|
[2706] | 1704 | # test to see if srcdir already configured |
---|
[1956] | 1705 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1706 | test -f $srcdir/config.status; then |
---|
| 1707 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1708 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1709 | { (exit 1); exit 1; }; } |
---|
| 1710 | fi |
---|
| 1711 | |
---|
| 1712 | # test whether we have cygpath |
---|
| 1713 | if test -z "$CYGPATH_W"; then |
---|
| 1714 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1715 | CYGPATH_W='cygpath -w' |
---|
| 1716 | else |
---|
| 1717 | CYGPATH_W=echo |
---|
| 1718 | fi |
---|
| 1719 | fi |
---|
| 1720 | |
---|
| 1721 | |
---|
| 1722 | # Define the identity of the package. |
---|
| 1723 | PACKAGE='orxonox' |
---|
[3365] | 1724 | VERSION='0.2.1-pre-alpha' |
---|
[1956] | 1725 | |
---|
| 1726 | |
---|
| 1727 | cat >>confdefs.h <<_ACEOF |
---|
| 1728 | #define PACKAGE "$PACKAGE" |
---|
| 1729 | _ACEOF |
---|
| 1730 | |
---|
| 1731 | |
---|
| 1732 | cat >>confdefs.h <<_ACEOF |
---|
| 1733 | #define VERSION "$VERSION" |
---|
| 1734 | _ACEOF |
---|
| 1735 | |
---|
| 1736 | # Some tools Automake needs. |
---|
| 1737 | |
---|
| 1738 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1739 | |
---|
| 1740 | |
---|
| 1741 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1742 | |
---|
| 1743 | |
---|
| 1744 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1748 | |
---|
| 1749 | |
---|
| 1750 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1751 | |
---|
| 1752 | |
---|
| 1753 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1754 | |
---|
| 1755 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1756 | |
---|
| 1757 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1758 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1759 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1760 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1761 | if test "$cross_compiling" != no; then |
---|
| 1762 | if test -n "$ac_tool_prefix"; then |
---|
| 1763 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1764 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1767 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1769 | else |
---|
| 1770 | if test -n "$STRIP"; then |
---|
| 1771 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1772 | else |
---|
| 1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1774 | for as_dir in $PATH |
---|
| 1775 | do |
---|
| 1776 | IFS=$as_save_IFS |
---|
| 1777 | test -z "$as_dir" && as_dir=. |
---|
| 1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1780 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1782 | break 2 |
---|
| 1783 | fi |
---|
| 1784 | done |
---|
| 1785 | done |
---|
| 1786 | |
---|
| 1787 | fi |
---|
| 1788 | fi |
---|
| 1789 | STRIP=$ac_cv_prog_STRIP |
---|
| 1790 | if test -n "$STRIP"; then |
---|
| 1791 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1792 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1793 | else |
---|
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1795 | echo "${ECHO_T}no" >&6 |
---|
| 1796 | fi |
---|
| 1797 | |
---|
| 1798 | fi |
---|
| 1799 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1800 | ac_ct_STRIP=$STRIP |
---|
| 1801 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1802 | set dummy strip; ac_word=$2 |
---|
| 1803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1805 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1807 | else |
---|
| 1808 | if test -n "$ac_ct_STRIP"; then |
---|
| 1809 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1810 | else |
---|
| 1811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1812 | for as_dir in $PATH |
---|
| 1813 | do |
---|
| 1814 | IFS=$as_save_IFS |
---|
| 1815 | test -z "$as_dir" && as_dir=. |
---|
| 1816 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1818 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1820 | break 2 |
---|
| 1821 | fi |
---|
| 1822 | done |
---|
| 1823 | done |
---|
| 1824 | |
---|
| 1825 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1826 | fi |
---|
| 1827 | fi |
---|
| 1828 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1829 | if test -n "$ac_ct_STRIP"; then |
---|
| 1830 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1831 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1832 | else |
---|
| 1833 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1834 | echo "${ECHO_T}no" >&6 |
---|
| 1835 | fi |
---|
| 1836 | |
---|
| 1837 | STRIP=$ac_ct_STRIP |
---|
| 1838 | else |
---|
| 1839 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1840 | fi |
---|
| 1841 | |
---|
| 1842 | fi |
---|
| 1843 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1844 | |
---|
| 1845 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1846 | # some platforms. |
---|
| 1847 | |
---|
| 1848 | |
---|
| 1849 | |
---|
| 1850 | |
---|
[2627] | 1851 | |
---|
[1959] | 1852 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1853 | |
---|
| 1854 | |
---|
[3499] | 1855 | ######################### |
---|
| 1856 | ## Checks for programs ## |
---|
| 1857 | ######################### |
---|
[1956] | 1858 | ac_ext=cc |
---|
| 1859 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1860 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1861 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1862 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1863 | if test -n "$ac_tool_prefix"; then |
---|
| 1864 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1865 | do |
---|
| 1866 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1867 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1870 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1872 | else |
---|
| 1873 | if test -n "$CXX"; then |
---|
| 1874 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1875 | else |
---|
| 1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1877 | for as_dir in $PATH |
---|
| 1878 | do |
---|
| 1879 | IFS=$as_save_IFS |
---|
| 1880 | test -z "$as_dir" && as_dir=. |
---|
| 1881 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1883 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1885 | break 2 |
---|
| 1886 | fi |
---|
| 1887 | done |
---|
| 1888 | done |
---|
| 1889 | |
---|
| 1890 | fi |
---|
| 1891 | fi |
---|
| 1892 | CXX=$ac_cv_prog_CXX |
---|
| 1893 | if test -n "$CXX"; then |
---|
| 1894 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1895 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1896 | else |
---|
| 1897 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1898 | echo "${ECHO_T}no" >&6 |
---|
| 1899 | fi |
---|
| 1900 | |
---|
| 1901 | test -n "$CXX" && break |
---|
| 1902 | done |
---|
| 1903 | fi |
---|
| 1904 | if test -z "$CXX"; then |
---|
| 1905 | ac_ct_CXX=$CXX |
---|
| 1906 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1907 | do |
---|
| 1908 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1909 | set dummy $ac_prog; ac_word=$2 |
---|
| 1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1912 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1914 | else |
---|
| 1915 | if test -n "$ac_ct_CXX"; then |
---|
| 1916 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1917 | else |
---|
| 1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1919 | for as_dir in $PATH |
---|
| 1920 | do |
---|
| 1921 | IFS=$as_save_IFS |
---|
| 1922 | test -z "$as_dir" && as_dir=. |
---|
| 1923 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1925 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1927 | break 2 |
---|
| 1928 | fi |
---|
| 1929 | done |
---|
| 1930 | done |
---|
| 1931 | |
---|
| 1932 | fi |
---|
| 1933 | fi |
---|
| 1934 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1935 | if test -n "$ac_ct_CXX"; then |
---|
| 1936 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1937 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1938 | else |
---|
| 1939 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1940 | echo "${ECHO_T}no" >&6 |
---|
| 1941 | fi |
---|
| 1942 | |
---|
| 1943 | test -n "$ac_ct_CXX" && break |
---|
| 1944 | done |
---|
| 1945 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1946 | |
---|
| 1947 | CXX=$ac_ct_CXX |
---|
| 1948 | fi |
---|
| 1949 | |
---|
| 1950 | |
---|
| 1951 | # Provide some information about the compiler. |
---|
| 1952 | echo "$as_me:$LINENO:" \ |
---|
| 1953 | "checking for C++ compiler version" >&5 |
---|
| 1954 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1956 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1957 | ac_status=$? |
---|
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1959 | (exit $ac_status); } |
---|
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1961 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1962 | ac_status=$? |
---|
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1964 | (exit $ac_status); } |
---|
| 1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1966 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1967 | ac_status=$? |
---|
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1969 | (exit $ac_status); } |
---|
| 1970 | |
---|
| 1971 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1972 | /* confdefs.h. */ |
---|
| 1973 | _ACEOF |
---|
| 1974 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1975 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1976 | /* end confdefs.h. */ |
---|
| 1977 | |
---|
| 1978 | int |
---|
| 1979 | main () |
---|
| 1980 | { |
---|
| 1981 | |
---|
| 1982 | ; |
---|
| 1983 | return 0; |
---|
| 1984 | } |
---|
| 1985 | _ACEOF |
---|
| 1986 | ac_clean_files_save=$ac_clean_files |
---|
| 1987 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1988 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1989 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1990 | # of exeext. |
---|
| 1991 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1992 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1993 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1994 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1995 | (eval $ac_link_default) 2>&5 |
---|
| 1996 | ac_status=$? |
---|
| 1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1998 | (exit $ac_status); }; then |
---|
| 1999 | # Find the output, starting from the most likely. This scheme is |
---|
| 2000 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2001 | # resort. |
---|
| 2002 | |
---|
| 2003 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2004 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2005 | ac_cv_exeext= |
---|
| 2006 | # b.out is created by i960 compilers. |
---|
| 2007 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2008 | do |
---|
| 2009 | test -f "$ac_file" || continue |
---|
| 2010 | case $ac_file in |
---|
| 2011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2012 | ;; |
---|
| 2013 | conftest.$ac_ext ) |
---|
| 2014 | # This is the source file. |
---|
| 2015 | ;; |
---|
| 2016 | [ab].out ) |
---|
| 2017 | # We found the default executable, but exeext='' is most |
---|
| 2018 | # certainly right. |
---|
| 2019 | break;; |
---|
| 2020 | *.* ) |
---|
| 2021 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2022 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2023 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2024 | # maintain Libtool? --akim. |
---|
| 2025 | export ac_cv_exeext |
---|
| 2026 | break;; |
---|
| 2027 | * ) |
---|
| 2028 | break;; |
---|
| 2029 | esac |
---|
| 2030 | done |
---|
| 2031 | else |
---|
| 2032 | echo "$as_me: failed program was:" >&5 |
---|
| 2033 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2034 | |
---|
| 2035 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2036 | See \`config.log' for more details." >&5 |
---|
| 2037 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2038 | See \`config.log' for more details." >&2;} |
---|
| 2039 | { (exit 77); exit 77; }; } |
---|
| 2040 | fi |
---|
| 2041 | |
---|
| 2042 | ac_exeext=$ac_cv_exeext |
---|
| 2043 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2044 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2045 | |
---|
| 2046 | # Check the compiler produces executables we can run. If not, either |
---|
| 2047 | # the compiler is broken, or we cross compile. |
---|
| 2048 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2049 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2050 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2051 | # If not cross compiling, check that we can run a simple program. |
---|
| 2052 | if test "$cross_compiling" != yes; then |
---|
| 2053 | if { ac_try='./$ac_file' |
---|
| 2054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2055 | (eval $ac_try) 2>&5 |
---|
| 2056 | ac_status=$? |
---|
| 2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2058 | (exit $ac_status); }; }; then |
---|
| 2059 | cross_compiling=no |
---|
| 2060 | else |
---|
| 2061 | if test "$cross_compiling" = maybe; then |
---|
| 2062 | cross_compiling=yes |
---|
| 2063 | else |
---|
| 2064 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2065 | If you meant to cross compile, use \`--host'. |
---|
| 2066 | See \`config.log' for more details." >&5 |
---|
| 2067 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2068 | If you meant to cross compile, use \`--host'. |
---|
| 2069 | See \`config.log' for more details." >&2;} |
---|
| 2070 | { (exit 1); exit 1; }; } |
---|
| 2071 | fi |
---|
| 2072 | fi |
---|
| 2073 | fi |
---|
| 2074 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2075 | echo "${ECHO_T}yes" >&6 |
---|
| 2076 | |
---|
| 2077 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2078 | ac_clean_files=$ac_clean_files_save |
---|
| 2079 | # Check the compiler produces executables we can run. If not, either |
---|
| 2080 | # the compiler is broken, or we cross compile. |
---|
| 2081 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2082 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2083 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2084 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2085 | |
---|
| 2086 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2087 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2089 | (eval $ac_link) 2>&5 |
---|
| 2090 | ac_status=$? |
---|
| 2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2092 | (exit $ac_status); }; then |
---|
| 2093 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2094 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2095 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2096 | # `rm'. |
---|
| 2097 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2098 | test -f "$ac_file" || continue |
---|
| 2099 | case $ac_file in |
---|
| 2100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2101 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2102 | export ac_cv_exeext |
---|
| 2103 | break;; |
---|
| 2104 | * ) break;; |
---|
| 2105 | esac |
---|
| 2106 | done |
---|
| 2107 | else |
---|
| 2108 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2109 | See \`config.log' for more details." >&5 |
---|
| 2110 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2111 | See \`config.log' for more details." >&2;} |
---|
| 2112 | { (exit 1); exit 1; }; } |
---|
| 2113 | fi |
---|
| 2114 | |
---|
| 2115 | rm -f conftest$ac_cv_exeext |
---|
| 2116 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2117 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2118 | |
---|
| 2119 | rm -f conftest.$ac_ext |
---|
| 2120 | EXEEXT=$ac_cv_exeext |
---|
| 2121 | ac_exeext=$EXEEXT |
---|
| 2122 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2123 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2124 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2126 | else |
---|
| 2127 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2128 | /* confdefs.h. */ |
---|
| 2129 | _ACEOF |
---|
| 2130 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2132 | /* end confdefs.h. */ |
---|
| 2133 | |
---|
| 2134 | int |
---|
| 2135 | main () |
---|
| 2136 | { |
---|
| 2137 | |
---|
| 2138 | ; |
---|
| 2139 | return 0; |
---|
| 2140 | } |
---|
| 2141 | _ACEOF |
---|
| 2142 | rm -f conftest.o conftest.obj |
---|
| 2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2144 | (eval $ac_compile) 2>&5 |
---|
| 2145 | ac_status=$? |
---|
| 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2147 | (exit $ac_status); }; then |
---|
| 2148 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2149 | case $ac_file in |
---|
| 2150 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2151 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2152 | break;; |
---|
| 2153 | esac |
---|
| 2154 | done |
---|
| 2155 | else |
---|
| 2156 | echo "$as_me: failed program was:" >&5 |
---|
| 2157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2158 | |
---|
| 2159 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2160 | See \`config.log' for more details." >&5 |
---|
| 2161 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2162 | See \`config.log' for more details." >&2;} |
---|
| 2163 | { (exit 1); exit 1; }; } |
---|
| 2164 | fi |
---|
| 2165 | |
---|
| 2166 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2167 | fi |
---|
| 2168 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2169 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2170 | OBJEXT=$ac_cv_objext |
---|
| 2171 | ac_objext=$OBJEXT |
---|
| 2172 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2173 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2174 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2176 | else |
---|
| 2177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2178 | /* confdefs.h. */ |
---|
| 2179 | _ACEOF |
---|
| 2180 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2182 | /* end confdefs.h. */ |
---|
| 2183 | |
---|
| 2184 | int |
---|
| 2185 | main () |
---|
| 2186 | { |
---|
| 2187 | #ifndef __GNUC__ |
---|
| 2188 | choke me |
---|
| 2189 | #endif |
---|
| 2190 | |
---|
| 2191 | ; |
---|
| 2192 | return 0; |
---|
| 2193 | } |
---|
| 2194 | _ACEOF |
---|
| 2195 | rm -f conftest.$ac_objext |
---|
| 2196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2197 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2198 | ac_status=$? |
---|
| 2199 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2200 | rm -f conftest.er1 |
---|
| 2201 | cat conftest.err >&5 |
---|
| 2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2203 | (exit $ac_status); } && |
---|
| 2204 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2205 | || test ! -s conftest.err' |
---|
| 2206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2207 | (eval $ac_try) 2>&5 |
---|
| 2208 | ac_status=$? |
---|
| 2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2210 | (exit $ac_status); }; } && |
---|
| 2211 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2213 | (eval $ac_try) 2>&5 |
---|
| 2214 | ac_status=$? |
---|
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2216 | (exit $ac_status); }; }; then |
---|
| 2217 | ac_compiler_gnu=yes |
---|
| 2218 | else |
---|
| 2219 | echo "$as_me: failed program was:" >&5 |
---|
| 2220 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2221 | |
---|
| 2222 | ac_compiler_gnu=no |
---|
| 2223 | fi |
---|
| 2224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2225 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2226 | |
---|
| 2227 | fi |
---|
| 2228 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2229 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2230 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2231 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2232 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2233 | CXXFLAGS="-g" |
---|
| 2234 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2235 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2236 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2238 | else |
---|
| 2239 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2240 | /* confdefs.h. */ |
---|
| 2241 | _ACEOF |
---|
| 2242 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2243 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2244 | /* end confdefs.h. */ |
---|
| 2245 | |
---|
| 2246 | int |
---|
| 2247 | main () |
---|
| 2248 | { |
---|
| 2249 | |
---|
| 2250 | ; |
---|
| 2251 | return 0; |
---|
| 2252 | } |
---|
| 2253 | _ACEOF |
---|
| 2254 | rm -f conftest.$ac_objext |
---|
| 2255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2256 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2257 | ac_status=$? |
---|
| 2258 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2259 | rm -f conftest.er1 |
---|
| 2260 | cat conftest.err >&5 |
---|
| 2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2262 | (exit $ac_status); } && |
---|
| 2263 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2264 | || test ! -s conftest.err' |
---|
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2266 | (eval $ac_try) 2>&5 |
---|
| 2267 | ac_status=$? |
---|
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2269 | (exit $ac_status); }; } && |
---|
| 2270 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2272 | (eval $ac_try) 2>&5 |
---|
| 2273 | ac_status=$? |
---|
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2275 | (exit $ac_status); }; }; then |
---|
| 2276 | ac_cv_prog_cxx_g=yes |
---|
| 2277 | else |
---|
| 2278 | echo "$as_me: failed program was:" >&5 |
---|
| 2279 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2280 | |
---|
| 2281 | ac_cv_prog_cxx_g=no |
---|
| 2282 | fi |
---|
| 2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2284 | fi |
---|
| 2285 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2286 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2287 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2288 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2289 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2290 | if test "$GXX" = yes; then |
---|
| 2291 | CXXFLAGS="-g -O2" |
---|
| 2292 | else |
---|
| 2293 | CXXFLAGS="-g" |
---|
| 2294 | fi |
---|
| 2295 | else |
---|
| 2296 | if test "$GXX" = yes; then |
---|
| 2297 | CXXFLAGS="-O2" |
---|
| 2298 | else |
---|
| 2299 | CXXFLAGS= |
---|
| 2300 | fi |
---|
| 2301 | fi |
---|
| 2302 | for ac_declaration in \ |
---|
| 2303 | '' \ |
---|
| 2304 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2305 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2306 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2307 | 'extern "C" void exit (int);' \ |
---|
| 2308 | 'void exit (int);' |
---|
| 2309 | do |
---|
| 2310 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2311 | /* confdefs.h. */ |
---|
| 2312 | _ACEOF |
---|
| 2313 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2314 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2315 | /* end confdefs.h. */ |
---|
| 2316 | $ac_declaration |
---|
| 2317 | #include <stdlib.h> |
---|
| 2318 | int |
---|
| 2319 | main () |
---|
| 2320 | { |
---|
| 2321 | exit (42); |
---|
| 2322 | ; |
---|
| 2323 | return 0; |
---|
| 2324 | } |
---|
| 2325 | _ACEOF |
---|
| 2326 | rm -f conftest.$ac_objext |
---|
| 2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2328 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2329 | ac_status=$? |
---|
| 2330 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2331 | rm -f conftest.er1 |
---|
| 2332 | cat conftest.err >&5 |
---|
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2334 | (exit $ac_status); } && |
---|
| 2335 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2336 | || test ! -s conftest.err' |
---|
| 2337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2338 | (eval $ac_try) 2>&5 |
---|
| 2339 | ac_status=$? |
---|
| 2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2341 | (exit $ac_status); }; } && |
---|
| 2342 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2344 | (eval $ac_try) 2>&5 |
---|
| 2345 | ac_status=$? |
---|
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2347 | (exit $ac_status); }; }; then |
---|
| 2348 | : |
---|
| 2349 | else |
---|
| 2350 | echo "$as_me: failed program was:" >&5 |
---|
| 2351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2352 | |
---|
| 2353 | continue |
---|
| 2354 | fi |
---|
| 2355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2356 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2357 | /* confdefs.h. */ |
---|
| 2358 | _ACEOF |
---|
| 2359 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2361 | /* end confdefs.h. */ |
---|
| 2362 | $ac_declaration |
---|
| 2363 | int |
---|
| 2364 | main () |
---|
| 2365 | { |
---|
| 2366 | exit (42); |
---|
| 2367 | ; |
---|
| 2368 | return 0; |
---|
| 2369 | } |
---|
| 2370 | _ACEOF |
---|
| 2371 | rm -f conftest.$ac_objext |
---|
| 2372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2373 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2374 | ac_status=$? |
---|
| 2375 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2376 | rm -f conftest.er1 |
---|
| 2377 | cat conftest.err >&5 |
---|
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2379 | (exit $ac_status); } && |
---|
| 2380 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2381 | || test ! -s conftest.err' |
---|
| 2382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2383 | (eval $ac_try) 2>&5 |
---|
| 2384 | ac_status=$? |
---|
| 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2386 | (exit $ac_status); }; } && |
---|
| 2387 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2389 | (eval $ac_try) 2>&5 |
---|
| 2390 | ac_status=$? |
---|
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2392 | (exit $ac_status); }; }; then |
---|
| 2393 | break |
---|
| 2394 | else |
---|
| 2395 | echo "$as_me: failed program was:" >&5 |
---|
| 2396 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2397 | |
---|
| 2398 | fi |
---|
| 2399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2400 | done |
---|
| 2401 | rm -f conftest* |
---|
| 2402 | if test -n "$ac_declaration"; then |
---|
| 2403 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2404 | echo $ac_declaration >>confdefs.h |
---|
| 2405 | echo '#endif' >>confdefs.h |
---|
| 2406 | fi |
---|
| 2407 | |
---|
| 2408 | ac_ext=c |
---|
| 2409 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2413 | DEPDIR="${am__leading_dot}deps" |
---|
| 2414 | |
---|
| 2415 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2416 | |
---|
| 2417 | |
---|
| 2418 | am_make=${MAKE-make} |
---|
| 2419 | cat > confinc << 'END' |
---|
| 2420 | am__doit: |
---|
| 2421 | @echo done |
---|
| 2422 | .PHONY: am__doit |
---|
| 2423 | END |
---|
| 2424 | # If we don't find an include directive, just comment out the code. |
---|
| 2425 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2426 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2427 | am__include="#" |
---|
| 2428 | am__quote= |
---|
| 2429 | _am_result=none |
---|
| 2430 | # First try GNU make style include. |
---|
| 2431 | echo "include confinc" > confmf |
---|
| 2432 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2433 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2434 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2435 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2436 | # case it prints its new name instead of `make'. |
---|
| 2437 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2438 | am__include=include |
---|
| 2439 | am__quote= |
---|
| 2440 | _am_result=GNU |
---|
| 2441 | fi |
---|
| 2442 | # Now try BSD make style include. |
---|
| 2443 | if test "$am__include" = "#"; then |
---|
| 2444 | echo '.include "confinc"' > confmf |
---|
| 2445 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2446 | am__include=.include |
---|
| 2447 | am__quote="\"" |
---|
| 2448 | _am_result=BSD |
---|
| 2449 | fi |
---|
| 2450 | fi |
---|
| 2451 | |
---|
| 2452 | |
---|
| 2453 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2454 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2455 | rm -f confinc confmf |
---|
| 2456 | |
---|
| 2457 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2458 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2459 | enableval="$enable_dependency_tracking" |
---|
| 2460 | |
---|
| 2461 | fi; |
---|
| 2462 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2463 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2464 | AMDEPBACKSLASH='\' |
---|
| 2465 | fi |
---|
| 2466 | |
---|
| 2467 | |
---|
| 2468 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2469 | AMDEP_TRUE= |
---|
| 2470 | AMDEP_FALSE='#' |
---|
| 2471 | else |
---|
| 2472 | AMDEP_TRUE='#' |
---|
| 2473 | AMDEP_FALSE= |
---|
| 2474 | fi |
---|
| 2475 | |
---|
| 2476 | |
---|
| 2477 | |
---|
| 2478 | |
---|
| 2479 | depcc="$CXX" am_compiler_list= |
---|
| 2480 | |
---|
| 2481 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2482 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2483 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2485 | else |
---|
| 2486 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2487 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2488 | # making bogus files that we don't know about and never remove. For |
---|
| 2489 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2490 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2491 | # in D'. |
---|
| 2492 | mkdir conftest.dir |
---|
| 2493 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2494 | # using a relative directory. |
---|
| 2495 | cp "$am_depcomp" conftest.dir |
---|
| 2496 | cd conftest.dir |
---|
| 2497 | # We will build objects and dependencies in a subdirectory because |
---|
| 2498 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2499 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2500 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2501 | # the current directory while Tru64 will put them in the object |
---|
| 2502 | # directory. |
---|
| 2503 | mkdir sub |
---|
| 2504 | |
---|
| 2505 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2506 | if test "$am_compiler_list" = ""; then |
---|
| 2507 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2508 | fi |
---|
| 2509 | for depmode in $am_compiler_list; do |
---|
| 2510 | # Setup a source with many dependencies, because some compilers |
---|
| 2511 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2512 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2513 | # |
---|
| 2514 | # We need to recreate these files for each test, as the compiler may |
---|
| 2515 | # overwrite some of them when testing with obscure command lines. |
---|
| 2516 | # This happens at least with the AIX C compiler. |
---|
| 2517 | : > sub/conftest.c |
---|
| 2518 | for i in 1 2 3 4 5 6; do |
---|
| 2519 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[3530] | 2520 | : > sub/conftst$i.h |
---|
[1956] | 2521 | done |
---|
| 2522 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2523 | |
---|
| 2524 | case $depmode in |
---|
| 2525 | nosideeffect) |
---|
| 2526 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2527 | # only be used when explicitly requested |
---|
| 2528 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2529 | continue |
---|
| 2530 | else |
---|
| 2531 | break |
---|
| 2532 | fi |
---|
| 2533 | ;; |
---|
| 2534 | none) break ;; |
---|
| 2535 | esac |
---|
| 2536 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2537 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2538 | # handle `-M -o', and we need to detect this. |
---|
| 2539 | if depmode=$depmode \ |
---|
| 2540 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2541 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2542 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2543 | >/dev/null 2>conftest.err && |
---|
| 2544 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2545 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2546 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2547 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[3530] | 2548 | # (even with -Werror). So we grep stderr for any message |
---|
| 2549 | # that says an option was ignored. |
---|
| 2550 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
[1956] | 2551 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2552 | break |
---|
| 2553 | fi |
---|
| 2554 | fi |
---|
| 2555 | done |
---|
| 2556 | |
---|
| 2557 | cd .. |
---|
| 2558 | rm -rf conftest.dir |
---|
| 2559 | else |
---|
| 2560 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2561 | fi |
---|
| 2562 | |
---|
| 2563 | fi |
---|
| 2564 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2565 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2566 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2567 | |
---|
| 2568 | |
---|
| 2569 | |
---|
| 2570 | if |
---|
| 2571 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2572 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2573 | am__fastdepCXX_TRUE= |
---|
| 2574 | am__fastdepCXX_FALSE='#' |
---|
| 2575 | else |
---|
| 2576 | am__fastdepCXX_TRUE='#' |
---|
| 2577 | am__fastdepCXX_FALSE= |
---|
| 2578 | fi |
---|
| 2579 | |
---|
| 2580 | |
---|
| 2581 | ac_ext=c |
---|
| 2582 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2586 | if test -n "$ac_tool_prefix"; then |
---|
| 2587 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2588 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2589 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2591 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2593 | else |
---|
| 2594 | if test -n "$CC"; then |
---|
| 2595 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2596 | else |
---|
| 2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2598 | for as_dir in $PATH |
---|
| 2599 | do |
---|
| 2600 | IFS=$as_save_IFS |
---|
| 2601 | test -z "$as_dir" && as_dir=. |
---|
| 2602 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2604 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2606 | break 2 |
---|
| 2607 | fi |
---|
| 2608 | done |
---|
| 2609 | done |
---|
| 2610 | |
---|
| 2611 | fi |
---|
| 2612 | fi |
---|
| 2613 | CC=$ac_cv_prog_CC |
---|
| 2614 | if test -n "$CC"; then |
---|
| 2615 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2616 | echo "${ECHO_T}$CC" >&6 |
---|
| 2617 | else |
---|
| 2618 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2619 | echo "${ECHO_T}no" >&6 |
---|
| 2620 | fi |
---|
| 2621 | |
---|
| 2622 | fi |
---|
| 2623 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2624 | ac_ct_CC=$CC |
---|
| 2625 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2626 | set dummy gcc; ac_word=$2 |
---|
| 2627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2629 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2631 | else |
---|
| 2632 | if test -n "$ac_ct_CC"; then |
---|
| 2633 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2634 | else |
---|
| 2635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2636 | for as_dir in $PATH |
---|
| 2637 | do |
---|
| 2638 | IFS=$as_save_IFS |
---|
| 2639 | test -z "$as_dir" && as_dir=. |
---|
| 2640 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2642 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2644 | break 2 |
---|
| 2645 | fi |
---|
| 2646 | done |
---|
| 2647 | done |
---|
| 2648 | |
---|
| 2649 | fi |
---|
| 2650 | fi |
---|
| 2651 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2652 | if test -n "$ac_ct_CC"; then |
---|
| 2653 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2654 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2655 | else |
---|
| 2656 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2657 | echo "${ECHO_T}no" >&6 |
---|
| 2658 | fi |
---|
| 2659 | |
---|
| 2660 | CC=$ac_ct_CC |
---|
| 2661 | else |
---|
| 2662 | CC="$ac_cv_prog_CC" |
---|
| 2663 | fi |
---|
| 2664 | |
---|
| 2665 | if test -z "$CC"; then |
---|
| 2666 | if test -n "$ac_tool_prefix"; then |
---|
| 2667 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2668 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2671 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2673 | else |
---|
| 2674 | if test -n "$CC"; then |
---|
| 2675 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2676 | else |
---|
| 2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2678 | for as_dir in $PATH |
---|
| 2679 | do |
---|
| 2680 | IFS=$as_save_IFS |
---|
| 2681 | test -z "$as_dir" && as_dir=. |
---|
| 2682 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2684 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2686 | break 2 |
---|
| 2687 | fi |
---|
| 2688 | done |
---|
| 2689 | done |
---|
| 2690 | |
---|
| 2691 | fi |
---|
| 2692 | fi |
---|
| 2693 | CC=$ac_cv_prog_CC |
---|
| 2694 | if test -n "$CC"; then |
---|
| 2695 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2696 | echo "${ECHO_T}$CC" >&6 |
---|
| 2697 | else |
---|
| 2698 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2699 | echo "${ECHO_T}no" >&6 |
---|
| 2700 | fi |
---|
| 2701 | |
---|
| 2702 | fi |
---|
| 2703 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2704 | ac_ct_CC=$CC |
---|
| 2705 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2706 | set dummy cc; ac_word=$2 |
---|
| 2707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2709 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2711 | else |
---|
| 2712 | if test -n "$ac_ct_CC"; then |
---|
| 2713 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2714 | else |
---|
| 2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2716 | for as_dir in $PATH |
---|
| 2717 | do |
---|
| 2718 | IFS=$as_save_IFS |
---|
| 2719 | test -z "$as_dir" && as_dir=. |
---|
| 2720 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2721 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2722 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2724 | break 2 |
---|
| 2725 | fi |
---|
| 2726 | done |
---|
| 2727 | done |
---|
| 2728 | |
---|
| 2729 | fi |
---|
| 2730 | fi |
---|
| 2731 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2732 | if test -n "$ac_ct_CC"; then |
---|
| 2733 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2734 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2735 | else |
---|
| 2736 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2737 | echo "${ECHO_T}no" >&6 |
---|
| 2738 | fi |
---|
| 2739 | |
---|
| 2740 | CC=$ac_ct_CC |
---|
| 2741 | else |
---|
| 2742 | CC="$ac_cv_prog_CC" |
---|
| 2743 | fi |
---|
| 2744 | |
---|
| 2745 | fi |
---|
| 2746 | if test -z "$CC"; then |
---|
| 2747 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2748 | set dummy cc; ac_word=$2 |
---|
| 2749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2751 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2753 | else |
---|
| 2754 | if test -n "$CC"; then |
---|
| 2755 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2756 | else |
---|
| 2757 | ac_prog_rejected=no |
---|
| 2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2759 | for as_dir in $PATH |
---|
| 2760 | do |
---|
| 2761 | IFS=$as_save_IFS |
---|
| 2762 | test -z "$as_dir" && as_dir=. |
---|
| 2763 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2765 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2766 | ac_prog_rejected=yes |
---|
| 2767 | continue |
---|
| 2768 | fi |
---|
| 2769 | ac_cv_prog_CC="cc" |
---|
| 2770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2771 | break 2 |
---|
| 2772 | fi |
---|
| 2773 | done |
---|
| 2774 | done |
---|
| 2775 | |
---|
| 2776 | if test $ac_prog_rejected = yes; then |
---|
| 2777 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2778 | set dummy $ac_cv_prog_CC |
---|
| 2779 | shift |
---|
| 2780 | if test $# != 0; then |
---|
| 2781 | # We chose a different compiler from the bogus one. |
---|
| 2782 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2783 | # first if we set CC to just the basename; use the full file name. |
---|
| 2784 | shift |
---|
| 2785 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2786 | fi |
---|
| 2787 | fi |
---|
| 2788 | fi |
---|
| 2789 | fi |
---|
| 2790 | CC=$ac_cv_prog_CC |
---|
| 2791 | if test -n "$CC"; then |
---|
| 2792 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2793 | echo "${ECHO_T}$CC" >&6 |
---|
| 2794 | else |
---|
| 2795 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2796 | echo "${ECHO_T}no" >&6 |
---|
| 2797 | fi |
---|
| 2798 | |
---|
| 2799 | fi |
---|
| 2800 | if test -z "$CC"; then |
---|
| 2801 | if test -n "$ac_tool_prefix"; then |
---|
| 2802 | for ac_prog in cl |
---|
| 2803 | do |
---|
| 2804 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2805 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2808 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2810 | else |
---|
| 2811 | if test -n "$CC"; then |
---|
| 2812 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2813 | else |
---|
| 2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2815 | for as_dir in $PATH |
---|
| 2816 | do |
---|
| 2817 | IFS=$as_save_IFS |
---|
| 2818 | test -z "$as_dir" && as_dir=. |
---|
| 2819 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2820 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2821 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2823 | break 2 |
---|
| 2824 | fi |
---|
| 2825 | done |
---|
| 2826 | done |
---|
| 2827 | |
---|
| 2828 | fi |
---|
| 2829 | fi |
---|
| 2830 | CC=$ac_cv_prog_CC |
---|
| 2831 | if test -n "$CC"; then |
---|
| 2832 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2833 | echo "${ECHO_T}$CC" >&6 |
---|
| 2834 | else |
---|
| 2835 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2836 | echo "${ECHO_T}no" >&6 |
---|
| 2837 | fi |
---|
| 2838 | |
---|
| 2839 | test -n "$CC" && break |
---|
| 2840 | done |
---|
| 2841 | fi |
---|
| 2842 | if test -z "$CC"; then |
---|
| 2843 | ac_ct_CC=$CC |
---|
| 2844 | for ac_prog in cl |
---|
| 2845 | do |
---|
| 2846 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2847 | set dummy $ac_prog; ac_word=$2 |
---|
| 2848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2850 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2852 | else |
---|
| 2853 | if test -n "$ac_ct_CC"; then |
---|
| 2854 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2855 | else |
---|
| 2856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2857 | for as_dir in $PATH |
---|
| 2858 | do |
---|
| 2859 | IFS=$as_save_IFS |
---|
| 2860 | test -z "$as_dir" && as_dir=. |
---|
| 2861 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2863 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2865 | break 2 |
---|
| 2866 | fi |
---|
| 2867 | done |
---|
| 2868 | done |
---|
| 2869 | |
---|
| 2870 | fi |
---|
| 2871 | fi |
---|
| 2872 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2873 | if test -n "$ac_ct_CC"; then |
---|
| 2874 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2875 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2876 | else |
---|
| 2877 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2878 | echo "${ECHO_T}no" >&6 |
---|
| 2879 | fi |
---|
| 2880 | |
---|
| 2881 | test -n "$ac_ct_CC" && break |
---|
| 2882 | done |
---|
| 2883 | |
---|
| 2884 | CC=$ac_ct_CC |
---|
| 2885 | fi |
---|
| 2886 | |
---|
| 2887 | fi |
---|
| 2888 | |
---|
| 2889 | |
---|
| 2890 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2891 | See \`config.log' for more details." >&5 |
---|
| 2892 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2893 | See \`config.log' for more details." >&2;} |
---|
| 2894 | { (exit 1); exit 1; }; } |
---|
| 2895 | |
---|
| 2896 | # Provide some information about the compiler. |
---|
| 2897 | echo "$as_me:$LINENO:" \ |
---|
| 2898 | "checking for C compiler version" >&5 |
---|
| 2899 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2900 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2901 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2902 | ac_status=$? |
---|
| 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2904 | (exit $ac_status); } |
---|
| 2905 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2906 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2907 | ac_status=$? |
---|
| 2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2909 | (exit $ac_status); } |
---|
| 2910 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2911 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2912 | ac_status=$? |
---|
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2914 | (exit $ac_status); } |
---|
| 2915 | |
---|
| 2916 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2917 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2918 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2920 | else |
---|
| 2921 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2922 | /* confdefs.h. */ |
---|
| 2923 | _ACEOF |
---|
| 2924 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2925 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2926 | /* end confdefs.h. */ |
---|
| 2927 | |
---|
| 2928 | int |
---|
| 2929 | main () |
---|
| 2930 | { |
---|
| 2931 | #ifndef __GNUC__ |
---|
| 2932 | choke me |
---|
| 2933 | #endif |
---|
| 2934 | |
---|
| 2935 | ; |
---|
| 2936 | return 0; |
---|
| 2937 | } |
---|
| 2938 | _ACEOF |
---|
| 2939 | rm -f conftest.$ac_objext |
---|
| 2940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2941 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2942 | ac_status=$? |
---|
| 2943 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2944 | rm -f conftest.er1 |
---|
| 2945 | cat conftest.err >&5 |
---|
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2947 | (exit $ac_status); } && |
---|
| 2948 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2949 | || test ! -s conftest.err' |
---|
| 2950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2951 | (eval $ac_try) 2>&5 |
---|
| 2952 | ac_status=$? |
---|
| 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2954 | (exit $ac_status); }; } && |
---|
| 2955 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2957 | (eval $ac_try) 2>&5 |
---|
| 2958 | ac_status=$? |
---|
| 2959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2960 | (exit $ac_status); }; }; then |
---|
| 2961 | ac_compiler_gnu=yes |
---|
| 2962 | else |
---|
| 2963 | echo "$as_me: failed program was:" >&5 |
---|
| 2964 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2965 | |
---|
| 2966 | ac_compiler_gnu=no |
---|
| 2967 | fi |
---|
| 2968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2969 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2970 | |
---|
| 2971 | fi |
---|
| 2972 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2973 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2974 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2975 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2976 | ac_save_CFLAGS=$CFLAGS |
---|
| 2977 | CFLAGS="-g" |
---|
| 2978 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2979 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2980 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2982 | else |
---|
| 2983 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2984 | /* confdefs.h. */ |
---|
| 2985 | _ACEOF |
---|
| 2986 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2987 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2988 | /* end confdefs.h. */ |
---|
| 2989 | |
---|
| 2990 | int |
---|
| 2991 | main () |
---|
| 2992 | { |
---|
| 2993 | |
---|
| 2994 | ; |
---|
| 2995 | return 0; |
---|
| 2996 | } |
---|
| 2997 | _ACEOF |
---|
| 2998 | rm -f conftest.$ac_objext |
---|
| 2999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3000 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3001 | ac_status=$? |
---|
| 3002 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3003 | rm -f conftest.er1 |
---|
| 3004 | cat conftest.err >&5 |
---|
| 3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3006 | (exit $ac_status); } && |
---|
| 3007 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3008 | || test ! -s conftest.err' |
---|
| 3009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3010 | (eval $ac_try) 2>&5 |
---|
| 3011 | ac_status=$? |
---|
| 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3013 | (exit $ac_status); }; } && |
---|
| 3014 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3016 | (eval $ac_try) 2>&5 |
---|
| 3017 | ac_status=$? |
---|
| 3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3019 | (exit $ac_status); }; }; then |
---|
| 3020 | ac_cv_prog_cc_g=yes |
---|
| 3021 | else |
---|
| 3022 | echo "$as_me: failed program was:" >&5 |
---|
| 3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3024 | |
---|
| 3025 | ac_cv_prog_cc_g=no |
---|
| 3026 | fi |
---|
| 3027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3028 | fi |
---|
| 3029 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3030 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3031 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3032 | CFLAGS=$ac_save_CFLAGS |
---|
| 3033 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3034 | if test "$GCC" = yes; then |
---|
| 3035 | CFLAGS="-g -O2" |
---|
| 3036 | else |
---|
| 3037 | CFLAGS="-g" |
---|
| 3038 | fi |
---|
| 3039 | else |
---|
| 3040 | if test "$GCC" = yes; then |
---|
| 3041 | CFLAGS="-O2" |
---|
| 3042 | else |
---|
| 3043 | CFLAGS= |
---|
| 3044 | fi |
---|
| 3045 | fi |
---|
| 3046 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3047 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3048 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3050 | else |
---|
| 3051 | ac_cv_prog_cc_stdc=no |
---|
| 3052 | ac_save_CC=$CC |
---|
| 3053 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3054 | /* confdefs.h. */ |
---|
| 3055 | _ACEOF |
---|
| 3056 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3057 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3058 | /* end confdefs.h. */ |
---|
| 3059 | #include <stdarg.h> |
---|
| 3060 | #include <stdio.h> |
---|
| 3061 | #include <sys/types.h> |
---|
| 3062 | #include <sys/stat.h> |
---|
| 3063 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3064 | struct buf { int x; }; |
---|
| 3065 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3066 | static char *e (p, i) |
---|
| 3067 | char **p; |
---|
| 3068 | int i; |
---|
| 3069 | { |
---|
| 3070 | return p[i]; |
---|
| 3071 | } |
---|
| 3072 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3073 | { |
---|
| 3074 | char *s; |
---|
| 3075 | va_list v; |
---|
| 3076 | va_start (v,p); |
---|
| 3077 | s = g (p, va_arg (v,int)); |
---|
| 3078 | va_end (v); |
---|
| 3079 | return s; |
---|
| 3080 | } |
---|
| 3081 | |
---|
| 3082 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3083 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3084 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3085 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3086 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3087 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3088 | that's true only with -std1. */ |
---|
| 3089 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3090 | |
---|
| 3091 | int test (int i, double x); |
---|
| 3092 | struct s1 {int (*f) (int a);}; |
---|
| 3093 | struct s2 {int (*f) (double a);}; |
---|
| 3094 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3095 | int argc; |
---|
| 3096 | char **argv; |
---|
| 3097 | int |
---|
| 3098 | main () |
---|
| 3099 | { |
---|
| 3100 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3101 | ; |
---|
| 3102 | return 0; |
---|
| 3103 | } |
---|
| 3104 | _ACEOF |
---|
| 3105 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3106 | # breaks some systems' header files. |
---|
| 3107 | # AIX -qlanglvl=ansi |
---|
| 3108 | # Ultrix and OSF/1 -std1 |
---|
| 3109 | # HP-UX 10.20 and later -Ae |
---|
| 3110 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3111 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3112 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3113 | do |
---|
| 3114 | CC="$ac_save_CC $ac_arg" |
---|
| 3115 | rm -f conftest.$ac_objext |
---|
| 3116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3117 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3118 | ac_status=$? |
---|
| 3119 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3120 | rm -f conftest.er1 |
---|
| 3121 | cat conftest.err >&5 |
---|
| 3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3123 | (exit $ac_status); } && |
---|
| 3124 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3125 | || test ! -s conftest.err' |
---|
| 3126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3127 | (eval $ac_try) 2>&5 |
---|
| 3128 | ac_status=$? |
---|
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3130 | (exit $ac_status); }; } && |
---|
| 3131 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3133 | (eval $ac_try) 2>&5 |
---|
| 3134 | ac_status=$? |
---|
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3136 | (exit $ac_status); }; }; then |
---|
| 3137 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3138 | break |
---|
| 3139 | else |
---|
| 3140 | echo "$as_me: failed program was:" >&5 |
---|
| 3141 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3142 | |
---|
| 3143 | fi |
---|
| 3144 | rm -f conftest.err conftest.$ac_objext |
---|
| 3145 | done |
---|
| 3146 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3147 | CC=$ac_save_CC |
---|
| 3148 | |
---|
| 3149 | fi |
---|
| 3150 | |
---|
| 3151 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3152 | x|xno) |
---|
| 3153 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3154 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3155 | *) |
---|
| 3156 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3157 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3158 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3159 | esac |
---|
| 3160 | |
---|
| 3161 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3162 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3163 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3164 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3165 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3166 | #ifndef __cplusplus |
---|
| 3167 | choke me |
---|
| 3168 | #endif |
---|
| 3169 | _ACEOF |
---|
| 3170 | rm -f conftest.$ac_objext |
---|
| 3171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3172 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3173 | ac_status=$? |
---|
| 3174 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3175 | rm -f conftest.er1 |
---|
| 3176 | cat conftest.err >&5 |
---|
| 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3178 | (exit $ac_status); } && |
---|
| 3179 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3180 | || test ! -s conftest.err' |
---|
| 3181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3182 | (eval $ac_try) 2>&5 |
---|
| 3183 | ac_status=$? |
---|
| 3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3185 | (exit $ac_status); }; } && |
---|
| 3186 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3188 | (eval $ac_try) 2>&5 |
---|
| 3189 | ac_status=$? |
---|
| 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3191 | (exit $ac_status); }; }; then |
---|
| 3192 | for ac_declaration in \ |
---|
| 3193 | '' \ |
---|
| 3194 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3195 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3196 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3197 | 'extern "C" void exit (int);' \ |
---|
| 3198 | 'void exit (int);' |
---|
| 3199 | do |
---|
| 3200 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3201 | /* confdefs.h. */ |
---|
| 3202 | _ACEOF |
---|
| 3203 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3204 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3205 | /* end confdefs.h. */ |
---|
| 3206 | $ac_declaration |
---|
| 3207 | #include <stdlib.h> |
---|
| 3208 | int |
---|
| 3209 | main () |
---|
| 3210 | { |
---|
| 3211 | exit (42); |
---|
| 3212 | ; |
---|
| 3213 | return 0; |
---|
| 3214 | } |
---|
| 3215 | _ACEOF |
---|
| 3216 | rm -f conftest.$ac_objext |
---|
| 3217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3218 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3219 | ac_status=$? |
---|
| 3220 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3221 | rm -f conftest.er1 |
---|
| 3222 | cat conftest.err >&5 |
---|
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3224 | (exit $ac_status); } && |
---|
| 3225 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3226 | || test ! -s conftest.err' |
---|
| 3227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3228 | (eval $ac_try) 2>&5 |
---|
| 3229 | ac_status=$? |
---|
| 3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3231 | (exit $ac_status); }; } && |
---|
| 3232 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3234 | (eval $ac_try) 2>&5 |
---|
| 3235 | ac_status=$? |
---|
| 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3237 | (exit $ac_status); }; }; then |
---|
| 3238 | : |
---|
| 3239 | else |
---|
| 3240 | echo "$as_me: failed program was:" >&5 |
---|
| 3241 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3242 | |
---|
| 3243 | continue |
---|
| 3244 | fi |
---|
| 3245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3246 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3247 | /* confdefs.h. */ |
---|
| 3248 | _ACEOF |
---|
| 3249 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3250 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3251 | /* end confdefs.h. */ |
---|
| 3252 | $ac_declaration |
---|
| 3253 | int |
---|
| 3254 | main () |
---|
| 3255 | { |
---|
| 3256 | exit (42); |
---|
| 3257 | ; |
---|
| 3258 | return 0; |
---|
| 3259 | } |
---|
| 3260 | _ACEOF |
---|
| 3261 | rm -f conftest.$ac_objext |
---|
| 3262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3263 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3264 | ac_status=$? |
---|
| 3265 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3266 | rm -f conftest.er1 |
---|
| 3267 | cat conftest.err >&5 |
---|
| 3268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3269 | (exit $ac_status); } && |
---|
| 3270 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3271 | || test ! -s conftest.err' |
---|
| 3272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3273 | (eval $ac_try) 2>&5 |
---|
| 3274 | ac_status=$? |
---|
| 3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3276 | (exit $ac_status); }; } && |
---|
| 3277 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3279 | (eval $ac_try) 2>&5 |
---|
| 3280 | ac_status=$? |
---|
| 3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3282 | (exit $ac_status); }; }; then |
---|
| 3283 | break |
---|
| 3284 | else |
---|
| 3285 | echo "$as_me: failed program was:" >&5 |
---|
| 3286 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3287 | |
---|
| 3288 | fi |
---|
| 3289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3290 | done |
---|
| 3291 | rm -f conftest* |
---|
| 3292 | if test -n "$ac_declaration"; then |
---|
| 3293 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3294 | echo $ac_declaration >>confdefs.h |
---|
| 3295 | echo '#endif' >>confdefs.h |
---|
| 3296 | fi |
---|
| 3297 | |
---|
| 3298 | else |
---|
| 3299 | echo "$as_me: failed program was:" >&5 |
---|
| 3300 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3301 | |
---|
| 3302 | fi |
---|
| 3303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3304 | ac_ext=c |
---|
| 3305 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3309 | |
---|
| 3310 | depcc="$CC" am_compiler_list= |
---|
| 3311 | |
---|
| 3312 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3313 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3314 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3316 | else |
---|
| 3317 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3318 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3319 | # making bogus files that we don't know about and never remove. For |
---|
| 3320 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3321 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3322 | # in D'. |
---|
| 3323 | mkdir conftest.dir |
---|
| 3324 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3325 | # using a relative directory. |
---|
| 3326 | cp "$am_depcomp" conftest.dir |
---|
| 3327 | cd conftest.dir |
---|
| 3328 | # We will build objects and dependencies in a subdirectory because |
---|
| 3329 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3330 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3331 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3332 | # the current directory while Tru64 will put them in the object |
---|
| 3333 | # directory. |
---|
| 3334 | mkdir sub |
---|
| 3335 | |
---|
| 3336 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3337 | if test "$am_compiler_list" = ""; then |
---|
| 3338 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3339 | fi |
---|
| 3340 | for depmode in $am_compiler_list; do |
---|
| 3341 | # Setup a source with many dependencies, because some compilers |
---|
| 3342 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3343 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3344 | # |
---|
| 3345 | # We need to recreate these files for each test, as the compiler may |
---|
| 3346 | # overwrite some of them when testing with obscure command lines. |
---|
| 3347 | # This happens at least with the AIX C compiler. |
---|
| 3348 | : > sub/conftest.c |
---|
| 3349 | for i in 1 2 3 4 5 6; do |
---|
| 3350 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[3530] | 3351 | : > sub/conftst$i.h |
---|
[1956] | 3352 | done |
---|
| 3353 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3354 | |
---|
| 3355 | case $depmode in |
---|
| 3356 | nosideeffect) |
---|
| 3357 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3358 | # only be used when explicitly requested |
---|
| 3359 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3360 | continue |
---|
| 3361 | else |
---|
| 3362 | break |
---|
| 3363 | fi |
---|
| 3364 | ;; |
---|
| 3365 | none) break ;; |
---|
| 3366 | esac |
---|
| 3367 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3368 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3369 | # handle `-M -o', and we need to detect this. |
---|
| 3370 | if depmode=$depmode \ |
---|
| 3371 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3372 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3373 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3374 | >/dev/null 2>conftest.err && |
---|
| 3375 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3376 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3377 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3378 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[3530] | 3379 | # (even with -Werror). So we grep stderr for any message |
---|
| 3380 | # that says an option was ignored. |
---|
| 3381 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
[1956] | 3382 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3383 | break |
---|
| 3384 | fi |
---|
| 3385 | fi |
---|
| 3386 | done |
---|
| 3387 | |
---|
| 3388 | cd .. |
---|
| 3389 | rm -rf conftest.dir |
---|
| 3390 | else |
---|
| 3391 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3392 | fi |
---|
| 3393 | |
---|
| 3394 | fi |
---|
| 3395 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3396 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3397 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3398 | |
---|
| 3399 | |
---|
| 3400 | |
---|
| 3401 | if |
---|
| 3402 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3403 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3404 | am__fastdepCC_TRUE= |
---|
| 3405 | am__fastdepCC_FALSE='#' |
---|
| 3406 | else |
---|
| 3407 | am__fastdepCC_TRUE='#' |
---|
| 3408 | am__fastdepCC_FALSE= |
---|
| 3409 | fi |
---|
| 3410 | |
---|
| 3411 | |
---|
| 3412 | |
---|
[1971] | 3413 | ac_ext=c |
---|
| 3414 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3418 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3419 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3420 | # On Suns, sometimes $CPP names a directory. |
---|
| 3421 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3422 | CPP= |
---|
| 3423 | fi |
---|
| 3424 | if test -z "$CPP"; then |
---|
| 3425 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3427 | else |
---|
[1971] | 3428 | # Double quotes because CPP needs to be expanded |
---|
| 3429 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3430 | do |
---|
| 3431 | ac_preproc_ok=false |
---|
| 3432 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3433 | do |
---|
| 3434 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3435 | # with a fresh cross-compiler works. |
---|
| 3436 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3437 | # <limits.h> exists even on freestanding compilers. |
---|
| 3438 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3439 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3440 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3441 | /* confdefs.h. */ |
---|
| 3442 | _ACEOF |
---|
| 3443 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3445 | /* end confdefs.h. */ |
---|
| 3446 | #ifdef __STDC__ |
---|
| 3447 | # include <limits.h> |
---|
| 3448 | #else |
---|
| 3449 | # include <assert.h> |
---|
| 3450 | #endif |
---|
| 3451 | Syntax error |
---|
| 3452 | _ACEOF |
---|
| 3453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3455 | ac_status=$? |
---|
| 3456 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3457 | rm -f conftest.er1 |
---|
| 3458 | cat conftest.err >&5 |
---|
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3460 | (exit $ac_status); } >/dev/null; then |
---|
| 3461 | if test -s conftest.err; then |
---|
| 3462 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3464 | else |
---|
| 3465 | ac_cpp_err= |
---|
| 3466 | fi |
---|
| 3467 | else |
---|
| 3468 | ac_cpp_err=yes |
---|
| 3469 | fi |
---|
| 3470 | if test -z "$ac_cpp_err"; then |
---|
| 3471 | : |
---|
| 3472 | else |
---|
| 3473 | echo "$as_me: failed program was:" >&5 |
---|
| 3474 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3475 | |
---|
| 3476 | # Broken: fails on valid input. |
---|
| 3477 | continue |
---|
| 3478 | fi |
---|
| 3479 | rm -f conftest.err conftest.$ac_ext |
---|
| 3480 | |
---|
| 3481 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3482 | # can be detected and how. |
---|
| 3483 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3484 | /* confdefs.h. */ |
---|
| 3485 | _ACEOF |
---|
| 3486 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3487 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3488 | /* end confdefs.h. */ |
---|
| 3489 | #include <ac_nonexistent.h> |
---|
| 3490 | _ACEOF |
---|
| 3491 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3492 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3493 | ac_status=$? |
---|
| 3494 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3495 | rm -f conftest.er1 |
---|
| 3496 | cat conftest.err >&5 |
---|
| 3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3498 | (exit $ac_status); } >/dev/null; then |
---|
| 3499 | if test -s conftest.err; then |
---|
| 3500 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3501 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3502 | else |
---|
| 3503 | ac_cpp_err= |
---|
| 3504 | fi |
---|
| 3505 | else |
---|
| 3506 | ac_cpp_err=yes |
---|
| 3507 | fi |
---|
| 3508 | if test -z "$ac_cpp_err"; then |
---|
| 3509 | # Broken: success on invalid input. |
---|
| 3510 | continue |
---|
| 3511 | else |
---|
| 3512 | echo "$as_me: failed program was:" >&5 |
---|
| 3513 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3514 | |
---|
| 3515 | # Passes both tests. |
---|
| 3516 | ac_preproc_ok=: |
---|
| 3517 | break |
---|
| 3518 | fi |
---|
| 3519 | rm -f conftest.err conftest.$ac_ext |
---|
| 3520 | |
---|
| 3521 | done |
---|
| 3522 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3523 | rm -f conftest.err conftest.$ac_ext |
---|
| 3524 | if $ac_preproc_ok; then |
---|
| 3525 | break |
---|
| 3526 | fi |
---|
| 3527 | |
---|
| 3528 | done |
---|
| 3529 | ac_cv_prog_CPP=$CPP |
---|
| 3530 | |
---|
| 3531 | fi |
---|
| 3532 | CPP=$ac_cv_prog_CPP |
---|
| 3533 | else |
---|
| 3534 | ac_cv_prog_CPP=$CPP |
---|
| 3535 | fi |
---|
| 3536 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3537 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3538 | ac_preproc_ok=false |
---|
| 3539 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3540 | do |
---|
| 3541 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3542 | # with a fresh cross-compiler works. |
---|
| 3543 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3544 | # <limits.h> exists even on freestanding compilers. |
---|
| 3545 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3546 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3547 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3548 | /* confdefs.h. */ |
---|
| 3549 | _ACEOF |
---|
| 3550 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3551 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3552 | /* end confdefs.h. */ |
---|
| 3553 | #ifdef __STDC__ |
---|
| 3554 | # include <limits.h> |
---|
| 3555 | #else |
---|
| 3556 | # include <assert.h> |
---|
| 3557 | #endif |
---|
| 3558 | Syntax error |
---|
| 3559 | _ACEOF |
---|
| 3560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3562 | ac_status=$? |
---|
| 3563 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3564 | rm -f conftest.er1 |
---|
| 3565 | cat conftest.err >&5 |
---|
| 3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3567 | (exit $ac_status); } >/dev/null; then |
---|
| 3568 | if test -s conftest.err; then |
---|
| 3569 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3570 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3571 | else |
---|
| 3572 | ac_cpp_err= |
---|
| 3573 | fi |
---|
| 3574 | else |
---|
| 3575 | ac_cpp_err=yes |
---|
| 3576 | fi |
---|
| 3577 | if test -z "$ac_cpp_err"; then |
---|
| 3578 | : |
---|
| 3579 | else |
---|
| 3580 | echo "$as_me: failed program was:" >&5 |
---|
| 3581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3582 | |
---|
| 3583 | # Broken: fails on valid input. |
---|
| 3584 | continue |
---|
| 3585 | fi |
---|
| 3586 | rm -f conftest.err conftest.$ac_ext |
---|
| 3587 | |
---|
| 3588 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3589 | # can be detected and how. |
---|
| 3590 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3591 | /* confdefs.h. */ |
---|
| 3592 | _ACEOF |
---|
| 3593 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3594 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3595 | /* end confdefs.h. */ |
---|
| 3596 | #include <ac_nonexistent.h> |
---|
| 3597 | _ACEOF |
---|
| 3598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3600 | ac_status=$? |
---|
| 3601 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3602 | rm -f conftest.er1 |
---|
| 3603 | cat conftest.err >&5 |
---|
| 3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3605 | (exit $ac_status); } >/dev/null; then |
---|
| 3606 | if test -s conftest.err; then |
---|
| 3607 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3609 | else |
---|
| 3610 | ac_cpp_err= |
---|
| 3611 | fi |
---|
| 3612 | else |
---|
| 3613 | ac_cpp_err=yes |
---|
| 3614 | fi |
---|
| 3615 | if test -z "$ac_cpp_err"; then |
---|
| 3616 | # Broken: success on invalid input. |
---|
| 3617 | continue |
---|
| 3618 | else |
---|
| 3619 | echo "$as_me: failed program was:" >&5 |
---|
| 3620 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3621 | |
---|
| 3622 | # Passes both tests. |
---|
| 3623 | ac_preproc_ok=: |
---|
| 3624 | break |
---|
| 3625 | fi |
---|
| 3626 | rm -f conftest.err conftest.$ac_ext |
---|
| 3627 | |
---|
| 3628 | done |
---|
| 3629 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3630 | rm -f conftest.err conftest.$ac_ext |
---|
| 3631 | if $ac_preproc_ok; then |
---|
| 3632 | : |
---|
| 3633 | else |
---|
| 3634 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3635 | See \`config.log' for more details." >&5 |
---|
| 3636 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3637 | See \`config.log' for more details." >&2;} |
---|
| 3638 | { (exit 1); exit 1; }; } |
---|
| 3639 | fi |
---|
| 3640 | |
---|
| 3641 | ac_ext=c |
---|
| 3642 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3646 | |
---|
| 3647 | |
---|
| 3648 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3649 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3650 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3652 | else |
---|
| 3653 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3654 | then ac_cv_prog_egrep='grep -E' |
---|
| 3655 | else ac_cv_prog_egrep='egrep' |
---|
| 3656 | fi |
---|
| 3657 | fi |
---|
| 3658 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3659 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3660 | EGREP=$ac_cv_prog_egrep |
---|
| 3661 | |
---|
| 3662 | |
---|
| 3663 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3664 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3665 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3667 | else |
---|
| 3668 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3669 | /* confdefs.h. */ |
---|
| 3670 | _ACEOF |
---|
| 3671 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3673 | /* end confdefs.h. */ |
---|
| 3674 | #include <stdlib.h> |
---|
| 3675 | #include <stdarg.h> |
---|
| 3676 | #include <string.h> |
---|
| 3677 | #include <float.h> |
---|
| 3678 | |
---|
| 3679 | int |
---|
| 3680 | main () |
---|
| 3681 | { |
---|
| 3682 | |
---|
| 3683 | ; |
---|
| 3684 | return 0; |
---|
| 3685 | } |
---|
| 3686 | _ACEOF |
---|
| 3687 | rm -f conftest.$ac_objext |
---|
| 3688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3689 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3690 | ac_status=$? |
---|
| 3691 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3692 | rm -f conftest.er1 |
---|
| 3693 | cat conftest.err >&5 |
---|
| 3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3695 | (exit $ac_status); } && |
---|
| 3696 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3697 | || test ! -s conftest.err' |
---|
| 3698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3699 | (eval $ac_try) 2>&5 |
---|
| 3700 | ac_status=$? |
---|
| 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3702 | (exit $ac_status); }; } && |
---|
| 3703 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3705 | (eval $ac_try) 2>&5 |
---|
| 3706 | ac_status=$? |
---|
| 3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3708 | (exit $ac_status); }; }; then |
---|
| 3709 | ac_cv_header_stdc=yes |
---|
| 3710 | else |
---|
| 3711 | echo "$as_me: failed program was:" >&5 |
---|
| 3712 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3713 | |
---|
| 3714 | ac_cv_header_stdc=no |
---|
| 3715 | fi |
---|
| 3716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3717 | |
---|
| 3718 | if test $ac_cv_header_stdc = yes; then |
---|
| 3719 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3720 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3721 | /* confdefs.h. */ |
---|
| 3722 | _ACEOF |
---|
| 3723 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3724 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3725 | /* end confdefs.h. */ |
---|
| 3726 | #include <string.h> |
---|
| 3727 | |
---|
| 3728 | _ACEOF |
---|
| 3729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3730 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3731 | : |
---|
| 3732 | else |
---|
| 3733 | ac_cv_header_stdc=no |
---|
| 3734 | fi |
---|
| 3735 | rm -f conftest* |
---|
| 3736 | |
---|
| 3737 | fi |
---|
| 3738 | |
---|
| 3739 | if test $ac_cv_header_stdc = yes; then |
---|
| 3740 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3741 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3742 | /* confdefs.h. */ |
---|
| 3743 | _ACEOF |
---|
| 3744 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3745 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3746 | /* end confdefs.h. */ |
---|
| 3747 | #include <stdlib.h> |
---|
| 3748 | |
---|
| 3749 | _ACEOF |
---|
| 3750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3751 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3752 | : |
---|
| 3753 | else |
---|
| 3754 | ac_cv_header_stdc=no |
---|
| 3755 | fi |
---|
| 3756 | rm -f conftest* |
---|
| 3757 | |
---|
| 3758 | fi |
---|
| 3759 | |
---|
| 3760 | if test $ac_cv_header_stdc = yes; then |
---|
| 3761 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3762 | if test "$cross_compiling" = yes; then |
---|
| 3763 | : |
---|
| 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 <ctype.h> |
---|
| 3772 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3773 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3774 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3775 | #else |
---|
| 3776 | # define ISLOWER(c) \ |
---|
| 3777 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3778 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3779 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3780 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3781 | #endif |
---|
| 3782 | |
---|
| 3783 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3784 | int |
---|
| 3785 | main () |
---|
| 3786 | { |
---|
| 3787 | int i; |
---|
| 3788 | for (i = 0; i < 256; i++) |
---|
| 3789 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3790 | || toupper (i) != TOUPPER (i)) |
---|
| 3791 | exit(2); |
---|
| 3792 | exit (0); |
---|
| 3793 | } |
---|
| 3794 | _ACEOF |
---|
| 3795 | rm -f conftest$ac_exeext |
---|
| 3796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3797 | (eval $ac_link) 2>&5 |
---|
| 3798 | ac_status=$? |
---|
| 3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 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 | : |
---|
| 3807 | else |
---|
| 3808 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3809 | echo "$as_me: failed program was:" >&5 |
---|
| 3810 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3811 | |
---|
| 3812 | ( exit $ac_status ) |
---|
| 3813 | ac_cv_header_stdc=no |
---|
| 3814 | fi |
---|
| 3815 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3816 | fi |
---|
| 3817 | fi |
---|
| 3818 | fi |
---|
| 3819 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3820 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3821 | if test $ac_cv_header_stdc = yes; then |
---|
| 3822 | |
---|
| 3823 | cat >>confdefs.h <<\_ACEOF |
---|
| 3824 | #define STDC_HEADERS 1 |
---|
| 3825 | _ACEOF |
---|
| 3826 | |
---|
| 3827 | fi |
---|
| 3828 | |
---|
| 3829 | |
---|
[3499] | 3830 | ################################## |
---|
| 3831 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3832 | ################################## |
---|
| 3833 | |
---|
| 3834 | #-----------------# |
---|
| 3835 | # DEBUG-statement # |
---|
| 3836 | #-----------------# |
---|
[3173] | 3837 | DEBUG=no |
---|
| 3838 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3839 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3840 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3841 | if test "${enable_debug+set}" = set; then |
---|
| 3842 | enableval="$enable_debug" |
---|
[3205] | 3843 | DEBUG=$enableval |
---|
[3173] | 3844 | fi; |
---|
| 3845 | |
---|
[3499] | 3846 | if test x$DEBUG = xno; then |
---|
[3205] | 3847 | echo "no" |
---|
[3499] | 3848 | echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed." |
---|
| 3849 | DEBUG=3 |
---|
| 3850 | elif test x$DEBUG = xyes; then |
---|
[3205] | 3851 | echo "yes" |
---|
[3499] | 3852 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3853 | DEBUG=4 |
---|
[3205] | 3854 | else |
---|
[3499] | 3855 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3856 | fi |
---|
| 3857 | |
---|
[3173] | 3858 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3859 | #define DEBUG $DEBUG |
---|
[3173] | 3860 | _ACEOF |
---|
| 3861 | |
---|
| 3862 | |
---|
| 3863 | |
---|
| 3864 | |
---|
[3499] | 3865 | #--------------# |
---|
| 3866 | # GTK-disabled # |
---|
| 3867 | #--------------# |
---|
[3100] | 3868 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3869 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3870 | |
---|
| 3871 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3872 | if test "${with_gtk+set}" = set; then |
---|
| 3873 | withval="$with_gtk" |
---|
[3100] | 3874 | def_gtk=no |
---|
[3205] | 3875 | else |
---|
| 3876 | def_gtk=yes |
---|
[3100] | 3877 | fi; |
---|
[3499] | 3878 | if test x$def_gtk = xyes; then |
---|
[3100] | 3879 | echo "yes" |
---|
| 3880 | fi |
---|
[3499] | 3881 | if test x$def_gtk = xno; then |
---|
[3100] | 3882 | echo "no" |
---|
| 3883 | fi |
---|
[3499] | 3884 | |
---|
| 3885 | #------------------# |
---|
| 3886 | # gThread-disabled # |
---|
| 3887 | #------------------# |
---|
| 3888 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
| 3889 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
| 3890 | |
---|
| 3891 | # Check whether --with-gthread or --without-gthread was given. |
---|
| 3892 | if test "${with_gthread+set}" = set; then |
---|
| 3893 | withval="$with_gthread" |
---|
| 3894 | def_gthread=no |
---|
| 3895 | else |
---|
| 3896 | def_gthread=yes |
---|
| 3897 | fi; |
---|
| 3898 | if test x$def_gthread = xyes; then |
---|
| 3899 | echo "yes" |
---|
| 3900 | fi |
---|
| 3901 | if test x$def_gthread = xno; then |
---|
| 3902 | echo "no" |
---|
| 3903 | fi |
---|
| 3904 | |
---|
| 3905 | #------------------# |
---|
| 3906 | # pthread-disabled # |
---|
| 3907 | #------------------# |
---|
| 3908 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
| 3909 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
| 3910 | |
---|
| 3911 | # Check whether --with-pthread or --without-pthread was given. |
---|
| 3912 | if test "${with_pthread+set}" = set; then |
---|
| 3913 | withval="$with_pthread" |
---|
| 3914 | def_pthread=no |
---|
| 3915 | else |
---|
| 3916 | def_pthread=yes |
---|
| 3917 | fi; |
---|
| 3918 | if test x$def_pthread = xyes; then |
---|
| 3919 | echo "yes" |
---|
| 3920 | fi |
---|
| 3921 | if test x$def_pthread = xno; then |
---|
| 3922 | echo "no" |
---|
| 3923 | fi |
---|
| 3924 | |
---|
| 3925 | #------------------# |
---|
| 3926 | # libCurl-disabled # |
---|
| 3927 | #------------------# |
---|
| 3928 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 3929 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 3930 | |
---|
| 3931 | # Check whether --with-curl or --without-curl was given. |
---|
| 3932 | if test "${with_curl+set}" = set; then |
---|
| 3933 | withval="$with_curl" |
---|
| 3934 | def_curl=no |
---|
| 3935 | else |
---|
| 3936 | def_curl=yes |
---|
| 3937 | fi; |
---|
| 3938 | if test x$def_curl = xyes; then |
---|
| 3939 | echo "yes" |
---|
| 3940 | fi |
---|
| 3941 | if test x$def_curl = xno; then |
---|
| 3942 | echo "no" |
---|
| 3943 | fi |
---|
| 3944 | |
---|
| 3945 | #-------------------# |
---|
| 3946 | # SDL_image-disable # |
---|
| 3947 | #-------------------# |
---|
[3140] | 3948 | def_sdl_image=yes |
---|
| 3949 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
| 3950 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3951 | |
---|
| 3952 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
| 3953 | if test "${with_sdl_image+set}" = set; then |
---|
| 3954 | withval="$with_sdl_image" |
---|
[3140] | 3955 | def_sdl_image=no |
---|
| 3956 | fi; |
---|
[3499] | 3957 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 3958 | echo "yes" |
---|
| 3959 | fi |
---|
[3499] | 3960 | if test x$def_sdl_image = xno; then |
---|
[3140] | 3961 | echo "no" |
---|
| 3962 | fi |
---|
[3499] | 3963 | #-------------------# |
---|
| 3964 | # SubProject-enable # |
---|
| 3965 | #-------------------# |
---|
| 3966 | def_sub_projects=no |
---|
[3377] | 3967 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 3968 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 3969 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 3970 | if test "${enable_sub_projects+set}" = set; then |
---|
| 3971 | enableval="$enable_sub_projects" |
---|
| 3972 | def_sub_projects=yes |
---|
| 3973 | fi; |
---|
[3499] | 3974 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 3975 | echo "yes" |
---|
| 3976 | fi |
---|
[3499] | 3977 | if test x$def_sub_projects = xno; then |
---|
[3377] | 3978 | echo "no" |
---|
| 3979 | fi |
---|
| 3980 | |
---|
| 3981 | |
---|
| 3982 | if test x$def_sub_projects = xyes; then |
---|
| 3983 | SUB_PROJECTS_TRUE= |
---|
| 3984 | SUB_PROJECTS_FALSE='#' |
---|
| 3985 | else |
---|
| 3986 | SUB_PROJECTS_TRUE='#' |
---|
| 3987 | SUB_PROJECTS_FALSE= |
---|
| 3988 | fi |
---|
| 3989 | |
---|
| 3990 | |
---|
[3499] | 3991 | ####################### |
---|
| 3992 | ## PROGRAMM CHECKING ## |
---|
| 3993 | ## 3. party Programs ## |
---|
| 3994 | ####################### |
---|
| 3995 | |
---|
| 3996 | #----------------------# |
---|
| 3997 | # checking for Doxygen # |
---|
| 3998 | #----------------------# |
---|
[3219] | 3999 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4000 | set dummy doxygen; ac_word=$2 |
---|
| 4001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4003 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4005 | else |
---|
| 4006 | case $DOXYGEN in |
---|
| 4007 | [\\/]* | ?:[\\/]*) |
---|
| 4008 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4009 | ;; |
---|
| 4010 | *) |
---|
| 4011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4012 | for as_dir in $PATH |
---|
| 4013 | do |
---|
| 4014 | IFS=$as_save_IFS |
---|
| 4015 | test -z "$as_dir" && as_dir=. |
---|
| 4016 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4018 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4020 | break 2 |
---|
| 4021 | fi |
---|
| 4022 | done |
---|
| 4023 | done |
---|
| 4024 | |
---|
| 4025 | ;; |
---|
| 4026 | esac |
---|
| 4027 | fi |
---|
| 4028 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4029 | |
---|
| 4030 | if test -n "$DOXYGEN"; then |
---|
| 4031 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4032 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4033 | else |
---|
| 4034 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4035 | echo "${ECHO_T}no" >&6 |
---|
| 4036 | fi |
---|
| 4037 | |
---|
| 4038 | |
---|
| 4039 | |
---|
| 4040 | if test $DOXYGEN; then |
---|
| 4041 | DOXYGEN_TRUE= |
---|
| 4042 | DOXYGEN_FALSE='#' |
---|
| 4043 | else |
---|
| 4044 | DOXYGEN_TRUE='#' |
---|
| 4045 | DOXYGEN_FALSE= |
---|
| 4046 | fi |
---|
| 4047 | |
---|
| 4048 | |
---|
[3499] | 4049 | ######################### |
---|
| 4050 | ## CHECKING FOR SYSTEM ## |
---|
| 4051 | ######################### |
---|
| 4052 | ## here the system is checked, and openGL is included |
---|
| 4053 | ## also checking for SDL on differen Systems |
---|
[1971] | 4054 | |
---|
[2925] | 4055 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4056 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4057 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4058 | case "$target" in |
---|
[3499] | 4059 | #---------# |
---|
| 4060 | # WINDOWS # |
---|
| 4061 | #---------# |
---|
[2980] | 4062 | *-*-mingw32*) |
---|
[2925] | 4063 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4064 | |
---|
[2925] | 4065 | mingw="yes" |
---|
| 4066 | MSBITFIELDS="-mms-bitfields" |
---|
| 4067 | MWINDOWS="-mwindows" |
---|
[1971] | 4068 | |
---|
[2925] | 4069 | # checking gl header |
---|
| 4070 | #done before loop |
---|
[1971] | 4071 | |
---|
[2968] | 4072 | # checking gl header |
---|
[2925] | 4073 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4074 | |
---|
| 4075 | |
---|
| 4076 | |
---|
| 4077 | |
---|
[2925] | 4078 | |
---|
| 4079 | |
---|
| 4080 | |
---|
| 4081 | |
---|
| 4082 | |
---|
[1971] | 4083 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4084 | inttypes.h stdint.h unistd.h |
---|
| 4085 | do |
---|
| 4086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4091 | else |
---|
| 4092 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4093 | /* confdefs.h. */ |
---|
| 4094 | _ACEOF |
---|
| 4095 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4097 | /* end confdefs.h. */ |
---|
| 4098 | $ac_includes_default |
---|
| 4099 | |
---|
| 4100 | #include <$ac_header> |
---|
| 4101 | _ACEOF |
---|
| 4102 | rm -f conftest.$ac_objext |
---|
| 4103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4104 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4105 | ac_status=$? |
---|
| 4106 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4107 | rm -f conftest.er1 |
---|
| 4108 | cat conftest.err >&5 |
---|
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4110 | (exit $ac_status); } && |
---|
| 4111 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4112 | || test ! -s conftest.err' |
---|
| 4113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4114 | (eval $ac_try) 2>&5 |
---|
| 4115 | ac_status=$? |
---|
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4117 | (exit $ac_status); }; } && |
---|
| 4118 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4120 | (eval $ac_try) 2>&5 |
---|
| 4121 | ac_status=$? |
---|
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4123 | (exit $ac_status); }; }; then |
---|
| 4124 | eval "$as_ac_Header=yes" |
---|
| 4125 | else |
---|
| 4126 | echo "$as_me: failed program was:" >&5 |
---|
| 4127 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4128 | |
---|
| 4129 | eval "$as_ac_Header=no" |
---|
| 4130 | fi |
---|
| 4131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4132 | fi |
---|
| 4133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4136 | cat >>confdefs.h <<_ACEOF |
---|
| 4137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4138 | _ACEOF |
---|
| 4139 | |
---|
| 4140 | fi |
---|
| 4141 | |
---|
| 4142 | done |
---|
| 4143 | |
---|
| 4144 | |
---|
| 4145 | |
---|
[2879] | 4146 | for ac_header in GL/gl.h |
---|
| 4147 | do |
---|
| 4148 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4154 | fi |
---|
| 4155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4157 | else |
---|
| 4158 | # Is the header compilable? |
---|
| 4159 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4160 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4161 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4162 | /* confdefs.h. */ |
---|
| 4163 | _ACEOF |
---|
| 4164 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4165 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4166 | /* end confdefs.h. */ |
---|
| 4167 | $ac_includes_default |
---|
| 4168 | #include <$ac_header> |
---|
| 4169 | _ACEOF |
---|
| 4170 | rm -f conftest.$ac_objext |
---|
| 4171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4172 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4173 | ac_status=$? |
---|
| 4174 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4175 | rm -f conftest.er1 |
---|
| 4176 | cat conftest.err >&5 |
---|
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4178 | (exit $ac_status); } && |
---|
| 4179 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4180 | || test ! -s conftest.err' |
---|
| 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4182 | (eval $ac_try) 2>&5 |
---|
| 4183 | ac_status=$? |
---|
| 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4185 | (exit $ac_status); }; } && |
---|
| 4186 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4188 | (eval $ac_try) 2>&5 |
---|
| 4189 | ac_status=$? |
---|
| 4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4191 | (exit $ac_status); }; }; then |
---|
| 4192 | ac_header_compiler=yes |
---|
| 4193 | else |
---|
| 4194 | echo "$as_me: failed program was:" >&5 |
---|
| 4195 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4196 | |
---|
| 4197 | ac_header_compiler=no |
---|
| 4198 | fi |
---|
| 4199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4200 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4201 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4202 | |
---|
| 4203 | # Is the header present? |
---|
| 4204 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4206 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4207 | /* confdefs.h. */ |
---|
| 4208 | _ACEOF |
---|
| 4209 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4210 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4211 | /* end confdefs.h. */ |
---|
| 4212 | #include <$ac_header> |
---|
| 4213 | _ACEOF |
---|
| 4214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4216 | ac_status=$? |
---|
| 4217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4218 | rm -f conftest.er1 |
---|
| 4219 | cat conftest.err >&5 |
---|
| 4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4221 | (exit $ac_status); } >/dev/null; then |
---|
| 4222 | if test -s conftest.err; then |
---|
| 4223 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4225 | else |
---|
| 4226 | ac_cpp_err= |
---|
| 4227 | fi |
---|
| 4228 | else |
---|
| 4229 | ac_cpp_err=yes |
---|
| 4230 | fi |
---|
| 4231 | if test -z "$ac_cpp_err"; then |
---|
| 4232 | ac_header_preproc=yes |
---|
| 4233 | else |
---|
| 4234 | echo "$as_me: failed program was:" >&5 |
---|
| 4235 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4236 | |
---|
| 4237 | ac_header_preproc=no |
---|
| 4238 | fi |
---|
| 4239 | rm -f conftest.err conftest.$ac_ext |
---|
| 4240 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4241 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4242 | |
---|
| 4243 | # So? What about this header? |
---|
| 4244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4245 | yes:no: ) |
---|
| 4246 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4247 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4249 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4250 | ac_header_preproc=yes |
---|
| 4251 | ;; |
---|
| 4252 | no:yes:* ) |
---|
| 4253 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4254 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4255 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4256 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4257 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4258 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4259 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4260 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4263 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4264 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4265 | ( |
---|
| 4266 | cat <<\_ASBOX |
---|
[3240] | 4267 | ## ---------------------------------------------- ## |
---|
| 4268 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4269 | ## ---------------------------------------------- ## |
---|
[2879] | 4270 | _ASBOX |
---|
| 4271 | ) | |
---|
| 4272 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4273 | ;; |
---|
| 4274 | esac |
---|
| 4275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4279 | else |
---|
| 4280 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4281 | fi |
---|
| 4282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4283 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4284 | |
---|
| 4285 | fi |
---|
| 4286 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4287 | cat >>confdefs.h <<_ACEOF |
---|
| 4288 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4289 | _ACEOF |
---|
| 4290 | |
---|
| 4291 | else |
---|
| 4292 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4293 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4294 | { (exit 1); exit 1; }; } |
---|
| 4295 | fi |
---|
| 4296 | |
---|
| 4297 | done |
---|
| 4298 | |
---|
[2701] | 4299 | # checking for Windows openGl library |
---|
[1971] | 4300 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4301 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4302 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4304 | else |
---|
| 4305 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4306 | LIBS="-lopengl32 $LIBS" |
---|
| 4307 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4308 | /* confdefs.h. */ |
---|
[1956] | 4309 | _ACEOF |
---|
[1959] | 4310 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4312 | /* end confdefs.h. */ |
---|
[1956] | 4313 | |
---|
[1971] | 4314 | |
---|
[1959] | 4315 | int |
---|
| 4316 | main () |
---|
| 4317 | { |
---|
[1971] | 4318 | main (); |
---|
[1959] | 4319 | ; |
---|
| 4320 | return 0; |
---|
| 4321 | } |
---|
| 4322 | _ACEOF |
---|
| 4323 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4325 | (eval $ac_link) 2>conftest.er1 |
---|
| 4326 | ac_status=$? |
---|
| 4327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4328 | rm -f conftest.er1 |
---|
| 4329 | cat conftest.err >&5 |
---|
| 4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4331 | (exit $ac_status); } && |
---|
| 4332 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4333 | || test ! -s conftest.err' |
---|
| 4334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4335 | (eval $ac_try) 2>&5 |
---|
| 4336 | ac_status=$? |
---|
| 4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4338 | (exit $ac_status); }; } && |
---|
| 4339 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4341 | (eval $ac_try) 2>&5 |
---|
| 4342 | ac_status=$? |
---|
| 4343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4344 | (exit $ac_status); }; }; then |
---|
[1971] | 4345 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4346 | else |
---|
| 4347 | echo "$as_me: failed program was:" >&5 |
---|
| 4348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4349 | |
---|
[1971] | 4350 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4351 | fi |
---|
[1959] | 4352 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4353 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4354 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4355 | fi |
---|
[1971] | 4356 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4357 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4358 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4359 | FOUND_opengl32=yes |
---|
| 4360 | else |
---|
| 4361 | "gl/gl.h" |
---|
[1959] | 4362 | fi |
---|
[1956] | 4363 | |
---|
[3499] | 4364 | if test x$FOUND_opengl32 = xyes ; then |
---|
[1959] | 4365 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4366 | else |
---|
[1959] | 4367 | echo "------------------" |
---|
| 4368 | echo "opengl not found." |
---|
| 4369 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4370 | echo "------------------" |
---|
| 4371 | exit -1 |
---|
| 4372 | fi |
---|
| 4373 | |
---|
[2701] | 4374 | # cheking for GLU-header |
---|
[1971] | 4375 | |
---|
| 4376 | for ac_header in GL/glu.h |
---|
| 4377 | do |
---|
| 4378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4384 | fi |
---|
| 4385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4387 | else |
---|
| 4388 | # Is the header compilable? |
---|
| 4389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4391 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4392 | /* confdefs.h. */ |
---|
| 4393 | _ACEOF |
---|
| 4394 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4395 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4396 | /* end confdefs.h. */ |
---|
| 4397 | $ac_includes_default |
---|
| 4398 | #include <$ac_header> |
---|
| 4399 | _ACEOF |
---|
| 4400 | rm -f conftest.$ac_objext |
---|
| 4401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4402 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4403 | ac_status=$? |
---|
| 4404 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4405 | rm -f conftest.er1 |
---|
| 4406 | cat conftest.err >&5 |
---|
| 4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4408 | (exit $ac_status); } && |
---|
| 4409 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4410 | || test ! -s conftest.err' |
---|
| 4411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4412 | (eval $ac_try) 2>&5 |
---|
| 4413 | ac_status=$? |
---|
| 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4415 | (exit $ac_status); }; } && |
---|
| 4416 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4418 | (eval $ac_try) 2>&5 |
---|
| 4419 | ac_status=$? |
---|
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4421 | (exit $ac_status); }; }; then |
---|
| 4422 | ac_header_compiler=yes |
---|
| 4423 | else |
---|
| 4424 | echo "$as_me: failed program was:" >&5 |
---|
| 4425 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4426 | |
---|
| 4427 | ac_header_compiler=no |
---|
| 4428 | fi |
---|
| 4429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4431 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4432 | |
---|
| 4433 | # Is the header present? |
---|
| 4434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4436 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4437 | /* confdefs.h. */ |
---|
| 4438 | _ACEOF |
---|
| 4439 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4440 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4441 | /* end confdefs.h. */ |
---|
| 4442 | #include <$ac_header> |
---|
| 4443 | _ACEOF |
---|
| 4444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4446 | ac_status=$? |
---|
| 4447 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4448 | rm -f conftest.er1 |
---|
| 4449 | cat conftest.err >&5 |
---|
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4451 | (exit $ac_status); } >/dev/null; then |
---|
| 4452 | if test -s conftest.err; then |
---|
| 4453 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4455 | else |
---|
| 4456 | ac_cpp_err= |
---|
| 4457 | fi |
---|
| 4458 | else |
---|
| 4459 | ac_cpp_err=yes |
---|
| 4460 | fi |
---|
| 4461 | if test -z "$ac_cpp_err"; then |
---|
| 4462 | ac_header_preproc=yes |
---|
| 4463 | else |
---|
| 4464 | echo "$as_me: failed program was:" >&5 |
---|
| 4465 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4466 | |
---|
| 4467 | ac_header_preproc=no |
---|
| 4468 | fi |
---|
| 4469 | rm -f conftest.err conftest.$ac_ext |
---|
| 4470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4471 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4472 | |
---|
| 4473 | # So? What about this header? |
---|
| 4474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4475 | yes:no: ) |
---|
| 4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4480 | ac_header_preproc=yes |
---|
| 4481 | ;; |
---|
| 4482 | no:yes:* ) |
---|
| 4483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4495 | ( |
---|
| 4496 | cat <<\_ASBOX |
---|
[3240] | 4497 | ## ---------------------------------------------- ## |
---|
| 4498 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4499 | ## ---------------------------------------------- ## |
---|
[1971] | 4500 | _ASBOX |
---|
| 4501 | ) | |
---|
| 4502 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4503 | ;; |
---|
| 4504 | esac |
---|
| 4505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4509 | else |
---|
| 4510 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4511 | fi |
---|
| 4512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4514 | |
---|
| 4515 | fi |
---|
| 4516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4517 | cat >>confdefs.h <<_ACEOF |
---|
| 4518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4519 | _ACEOF |
---|
| 4520 | |
---|
| 4521 | else |
---|
| 4522 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4523 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4524 | { (exit 1); exit 1; }; } |
---|
| 4525 | fi |
---|
| 4526 | |
---|
| 4527 | done |
---|
| 4528 | |
---|
| 4529 | |
---|
[2701] | 4530 | # checking for libGLU |
---|
| 4531 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4532 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4533 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4535 | else |
---|
| 4536 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4537 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4538 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4539 | /* confdefs.h. */ |
---|
| 4540 | _ACEOF |
---|
| 4541 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4542 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4543 | /* end confdefs.h. */ |
---|
| 4544 | |
---|
[2701] | 4545 | |
---|
[1956] | 4546 | int |
---|
| 4547 | main () |
---|
| 4548 | { |
---|
[2701] | 4549 | main (); |
---|
[1956] | 4550 | ; |
---|
| 4551 | return 0; |
---|
| 4552 | } |
---|
| 4553 | _ACEOF |
---|
| 4554 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4556 | (eval $ac_link) 2>conftest.er1 |
---|
| 4557 | ac_status=$? |
---|
| 4558 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4559 | rm -f conftest.er1 |
---|
| 4560 | cat conftest.err >&5 |
---|
| 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4562 | (exit $ac_status); } && |
---|
| 4563 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4564 | || test ! -s conftest.err' |
---|
| 4565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4566 | (eval $ac_try) 2>&5 |
---|
| 4567 | ac_status=$? |
---|
| 4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4569 | (exit $ac_status); }; } && |
---|
| 4570 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4572 | (eval $ac_try) 2>&5 |
---|
| 4573 | ac_status=$? |
---|
| 4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4575 | (exit $ac_status); }; }; then |
---|
[2701] | 4576 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4577 | else |
---|
| 4578 | echo "$as_me: failed program was:" >&5 |
---|
| 4579 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4580 | |
---|
[2701] | 4581 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4582 | fi |
---|
| 4583 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4584 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4585 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4586 | fi |
---|
[2701] | 4587 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4588 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4589 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4590 | FOUND_glu32=yes |
---|
[1959] | 4591 | fi |
---|
| 4592 | |
---|
[3499] | 4593 | if test x$FOUND_glu32 = xyes ; then |
---|
[2701] | 4594 | LIBS="$LIBS -lGLU32" |
---|
| 4595 | else |
---|
| 4596 | echo "------------------" |
---|
| 4597 | echo "GLU library not found." |
---|
| 4598 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4599 | echo "------------------" |
---|
| 4600 | exit -1 |
---|
| 4601 | fi |
---|
| 4602 | |
---|
| 4603 | # checking for mingw32 |
---|
| 4604 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4605 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4606 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4608 | else |
---|
| 4609 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4610 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4611 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4612 | /* confdefs.h. */ |
---|
[1956] | 4613 | _ACEOF |
---|
[1959] | 4614 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4615 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4616 | /* end confdefs.h. */ |
---|
[1956] | 4617 | |
---|
[1971] | 4618 | |
---|
[1959] | 4619 | int |
---|
| 4620 | main () |
---|
| 4621 | { |
---|
[1971] | 4622 | main (); |
---|
[1959] | 4623 | ; |
---|
| 4624 | return 0; |
---|
| 4625 | } |
---|
| 4626 | _ACEOF |
---|
| 4627 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4629 | (eval $ac_link) 2>conftest.er1 |
---|
| 4630 | ac_status=$? |
---|
| 4631 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4632 | rm -f conftest.er1 |
---|
| 4633 | cat conftest.err >&5 |
---|
| 4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4635 | (exit $ac_status); } && |
---|
| 4636 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4637 | || test ! -s conftest.err' |
---|
| 4638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4639 | (eval $ac_try) 2>&5 |
---|
| 4640 | ac_status=$? |
---|
| 4641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4642 | (exit $ac_status); }; } && |
---|
| 4643 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4645 | (eval $ac_try) 2>&5 |
---|
| 4646 | ac_status=$? |
---|
| 4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4648 | (exit $ac_status); }; }; then |
---|
[2701] | 4649 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4650 | else |
---|
| 4651 | echo "$as_me: failed program was:" >&5 |
---|
| 4652 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4653 | |
---|
[2701] | 4654 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4655 | fi |
---|
[1959] | 4656 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4657 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4658 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4659 | fi |
---|
[2701] | 4660 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4661 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4662 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4663 | FOUND_mingw32=yes |
---|
[1959] | 4664 | fi |
---|
[1956] | 4665 | |
---|
[3499] | 4666 | if test x$FOUND_mingw32 = xyes; then |
---|
[2701] | 4667 | LIBS="$LIBS -lmingw32" |
---|
| 4668 | fi |
---|
[2989] | 4669 | # checking for SDL-headers |
---|
[1959] | 4670 | |
---|
[2989] | 4671 | for ac_header in SDL/SDL.h |
---|
| 4672 | do |
---|
| 4673 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4675 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4677 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4679 | fi |
---|
| 4680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4682 | else |
---|
| 4683 | # Is the header compilable? |
---|
| 4684 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4685 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4686 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4687 | /* confdefs.h. */ |
---|
| 4688 | _ACEOF |
---|
| 4689 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4690 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4691 | /* end confdefs.h. */ |
---|
| 4692 | $ac_includes_default |
---|
| 4693 | #include <$ac_header> |
---|
| 4694 | _ACEOF |
---|
| 4695 | rm -f conftest.$ac_objext |
---|
| 4696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4697 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4698 | ac_status=$? |
---|
| 4699 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4700 | rm -f conftest.er1 |
---|
| 4701 | cat conftest.err >&5 |
---|
| 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4703 | (exit $ac_status); } && |
---|
| 4704 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4705 | || test ! -s conftest.err' |
---|
| 4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4707 | (eval $ac_try) 2>&5 |
---|
| 4708 | ac_status=$? |
---|
| 4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4710 | (exit $ac_status); }; } && |
---|
| 4711 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4713 | (eval $ac_try) 2>&5 |
---|
| 4714 | ac_status=$? |
---|
| 4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4716 | (exit $ac_status); }; }; then |
---|
| 4717 | ac_header_compiler=yes |
---|
| 4718 | else |
---|
| 4719 | echo "$as_me: failed program was:" >&5 |
---|
| 4720 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4721 | |
---|
| 4722 | ac_header_compiler=no |
---|
| 4723 | fi |
---|
| 4724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4725 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4726 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4727 | |
---|
| 4728 | # Is the header present? |
---|
| 4729 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4730 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4731 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4732 | /* confdefs.h. */ |
---|
| 4733 | _ACEOF |
---|
| 4734 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4736 | /* end confdefs.h. */ |
---|
| 4737 | #include <$ac_header> |
---|
| 4738 | _ACEOF |
---|
| 4739 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4740 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4741 | ac_status=$? |
---|
| 4742 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4743 | rm -f conftest.er1 |
---|
| 4744 | cat conftest.err >&5 |
---|
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4746 | (exit $ac_status); } >/dev/null; then |
---|
| 4747 | if test -s conftest.err; then |
---|
| 4748 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4749 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4750 | else |
---|
| 4751 | ac_cpp_err= |
---|
| 4752 | fi |
---|
| 4753 | else |
---|
| 4754 | ac_cpp_err=yes |
---|
| 4755 | fi |
---|
| 4756 | if test -z "$ac_cpp_err"; then |
---|
| 4757 | ac_header_preproc=yes |
---|
| 4758 | else |
---|
| 4759 | echo "$as_me: failed program was:" >&5 |
---|
| 4760 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4761 | |
---|
| 4762 | ac_header_preproc=no |
---|
| 4763 | fi |
---|
| 4764 | rm -f conftest.err conftest.$ac_ext |
---|
| 4765 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4766 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4767 | |
---|
| 4768 | # So? What about this header? |
---|
| 4769 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4770 | yes:no: ) |
---|
| 4771 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4772 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4774 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4775 | ac_header_preproc=yes |
---|
[2701] | 4776 | ;; |
---|
[2989] | 4777 | no:yes:* ) |
---|
| 4778 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4779 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4780 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4781 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4782 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4783 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4784 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4785 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4787 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4788 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4789 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4790 | ( |
---|
| 4791 | cat <<\_ASBOX |
---|
[3240] | 4792 | ## ---------------------------------------------- ## |
---|
| 4793 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4794 | ## ---------------------------------------------- ## |
---|
[2989] | 4795 | _ASBOX |
---|
| 4796 | ) | |
---|
| 4797 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4798 | ;; |
---|
| 4799 | esac |
---|
| 4800 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4801 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4804 | else |
---|
| 4805 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4806 | fi |
---|
| 4807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4809 | |
---|
[2989] | 4810 | fi |
---|
| 4811 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4812 | cat >>confdefs.h <<_ACEOF |
---|
| 4813 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4814 | _ACEOF |
---|
| 4815 | |
---|
| 4816 | else |
---|
| 4817 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4818 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4819 | { (exit 1); exit 1; }; } |
---|
| 4820 | fi |
---|
| 4821 | |
---|
| 4822 | done |
---|
| 4823 | |
---|
| 4824 | |
---|
| 4825 | #checking for libSDL |
---|
| 4826 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4827 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4828 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4830 | else |
---|
| 4831 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4832 | LIBS="-lsdlmain $LIBS" |
---|
| 4833 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4834 | /* confdefs.h. */ |
---|
| 4835 | _ACEOF |
---|
| 4836 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4838 | /* end confdefs.h. */ |
---|
| 4839 | |
---|
| 4840 | |
---|
| 4841 | int |
---|
| 4842 | main () |
---|
| 4843 | { |
---|
| 4844 | main (); |
---|
| 4845 | ; |
---|
| 4846 | return 0; |
---|
| 4847 | } |
---|
| 4848 | _ACEOF |
---|
| 4849 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4851 | (eval $ac_link) 2>conftest.er1 |
---|
| 4852 | ac_status=$? |
---|
| 4853 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4854 | rm -f conftest.er1 |
---|
| 4855 | cat conftest.err >&5 |
---|
| 4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4857 | (exit $ac_status); } && |
---|
| 4858 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4859 | || test ! -s conftest.err' |
---|
| 4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4861 | (eval $ac_try) 2>&5 |
---|
| 4862 | ac_status=$? |
---|
| 4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4864 | (exit $ac_status); }; } && |
---|
| 4865 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4867 | (eval $ac_try) 2>&5 |
---|
| 4868 | ac_status=$? |
---|
| 4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4870 | (exit $ac_status); }; }; then |
---|
| 4871 | ac_cv_lib_sdlmain_main=yes |
---|
| 4872 | else |
---|
| 4873 | echo "$as_me: failed program was:" >&5 |
---|
| 4874 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4875 | |
---|
| 4876 | ac_cv_lib_sdlmain_main=no |
---|
| 4877 | fi |
---|
| 4878 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4879 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4880 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4881 | fi |
---|
| 4882 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4883 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4884 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4885 | FOUND_sdlmain=yes |
---|
| 4886 | fi |
---|
| 4887 | |
---|
[3499] | 4888 | if test x$FOUND_sdlmain = xyes ; then |
---|
[2989] | 4889 | LIBS="$LIBS -lsdlmain" |
---|
| 4890 | else |
---|
| 4891 | echo "------------------" |
---|
| 4892 | echo "SDL library not found." |
---|
| 4893 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4894 | echo "------------------" |
---|
| 4895 | exit 1 |
---|
| 4896 | fi |
---|
| 4897 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4898 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4899 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4901 | else |
---|
| 4902 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4903 | LIBS="-lsdl $LIBS" |
---|
| 4904 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4905 | /* confdefs.h. */ |
---|
| 4906 | _ACEOF |
---|
| 4907 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4908 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4909 | /* end confdefs.h. */ |
---|
| 4910 | |
---|
| 4911 | |
---|
| 4912 | int |
---|
| 4913 | main () |
---|
| 4914 | { |
---|
| 4915 | main (); |
---|
| 4916 | ; |
---|
| 4917 | return 0; |
---|
| 4918 | } |
---|
| 4919 | _ACEOF |
---|
| 4920 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4922 | (eval $ac_link) 2>conftest.er1 |
---|
| 4923 | ac_status=$? |
---|
| 4924 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4925 | rm -f conftest.er1 |
---|
| 4926 | cat conftest.err >&5 |
---|
| 4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4928 | (exit $ac_status); } && |
---|
| 4929 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4930 | || test ! -s conftest.err' |
---|
| 4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4932 | (eval $ac_try) 2>&5 |
---|
| 4933 | ac_status=$? |
---|
| 4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4935 | (exit $ac_status); }; } && |
---|
| 4936 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4938 | (eval $ac_try) 2>&5 |
---|
| 4939 | ac_status=$? |
---|
| 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4941 | (exit $ac_status); }; }; then |
---|
| 4942 | ac_cv_lib_sdl_main=yes |
---|
| 4943 | else |
---|
| 4944 | echo "$as_me: failed program was:" >&5 |
---|
| 4945 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4946 | |
---|
| 4947 | ac_cv_lib_sdl_main=no |
---|
| 4948 | fi |
---|
| 4949 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4950 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4951 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4952 | fi |
---|
| 4953 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4954 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4955 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4956 | FOUND_sdl=yes |
---|
| 4957 | fi |
---|
| 4958 | |
---|
[3499] | 4959 | if test x$FOUND_sdl = xyes ; then |
---|
[2989] | 4960 | LIBS="$LIBS -lsdl" |
---|
| 4961 | else |
---|
| 4962 | echo "------------------" |
---|
| 4963 | echo "SDL library not found." |
---|
| 4964 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4965 | echo "------------------" |
---|
| 4966 | exit -1 |
---|
| 4967 | fi |
---|
| 4968 | |
---|
| 4969 | ;; |
---|
[3499] | 4970 | #-------# |
---|
| 4971 | # LINUX # |
---|
| 4972 | #-------# |
---|
[2980] | 4973 | *-*-linux*) |
---|
[2701] | 4974 | echo "Linux detected" |
---|
[1956] | 4975 | |
---|
[2701] | 4976 | Linux="yes" |
---|
| 4977 | |
---|
[3180] | 4978 | CPPFLAGS="-I/usr/X11R6/include" |
---|
[3385] | 4979 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 4980 | # checking gl header |
---|
[2701] | 4981 | |
---|
[2879] | 4982 | for ac_header in GL/gl.h |
---|
| 4983 | do |
---|
| 4984 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4990 | fi |
---|
| 4991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4993 | else |
---|
| 4994 | # Is the header compilable? |
---|
| 4995 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4996 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4997 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4998 | /* confdefs.h. */ |
---|
| 4999 | _ACEOF |
---|
| 5000 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5001 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5002 | /* end confdefs.h. */ |
---|
| 5003 | $ac_includes_default |
---|
| 5004 | #include <$ac_header> |
---|
| 5005 | _ACEOF |
---|
| 5006 | rm -f conftest.$ac_objext |
---|
| 5007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5008 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5009 | ac_status=$? |
---|
| 5010 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5011 | rm -f conftest.er1 |
---|
| 5012 | cat conftest.err >&5 |
---|
| 5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5014 | (exit $ac_status); } && |
---|
| 5015 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5016 | || test ! -s conftest.err' |
---|
| 5017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5018 | (eval $ac_try) 2>&5 |
---|
| 5019 | ac_status=$? |
---|
| 5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5021 | (exit $ac_status); }; } && |
---|
| 5022 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5024 | (eval $ac_try) 2>&5 |
---|
| 5025 | ac_status=$? |
---|
| 5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5027 | (exit $ac_status); }; }; then |
---|
| 5028 | ac_header_compiler=yes |
---|
| 5029 | else |
---|
| 5030 | echo "$as_me: failed program was:" >&5 |
---|
| 5031 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5032 | |
---|
| 5033 | ac_header_compiler=no |
---|
| 5034 | fi |
---|
| 5035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5036 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5037 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5038 | |
---|
| 5039 | # Is the header present? |
---|
| 5040 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5041 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5042 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5043 | /* confdefs.h. */ |
---|
| 5044 | _ACEOF |
---|
| 5045 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5046 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5047 | /* end confdefs.h. */ |
---|
| 5048 | #include <$ac_header> |
---|
| 5049 | _ACEOF |
---|
| 5050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5052 | ac_status=$? |
---|
| 5053 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5054 | rm -f conftest.er1 |
---|
| 5055 | cat conftest.err >&5 |
---|
| 5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5057 | (exit $ac_status); } >/dev/null; then |
---|
| 5058 | if test -s conftest.err; then |
---|
| 5059 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5061 | else |
---|
| 5062 | ac_cpp_err= |
---|
| 5063 | fi |
---|
| 5064 | else |
---|
| 5065 | ac_cpp_err=yes |
---|
| 5066 | fi |
---|
| 5067 | if test -z "$ac_cpp_err"; then |
---|
| 5068 | ac_header_preproc=yes |
---|
| 5069 | else |
---|
| 5070 | echo "$as_me: failed program was:" >&5 |
---|
| 5071 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5072 | |
---|
| 5073 | ac_header_preproc=no |
---|
| 5074 | fi |
---|
| 5075 | rm -f conftest.err conftest.$ac_ext |
---|
| 5076 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5077 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5078 | |
---|
| 5079 | # So? What about this header? |
---|
| 5080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5081 | yes:no: ) |
---|
| 5082 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5083 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5085 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5086 | ac_header_preproc=yes |
---|
| 5087 | ;; |
---|
| 5088 | no:yes:* ) |
---|
| 5089 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5090 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5091 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5092 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5093 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5094 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5095 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5096 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5098 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5099 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5100 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5101 | ( |
---|
| 5102 | cat <<\_ASBOX |
---|
[3240] | 5103 | ## ---------------------------------------------- ## |
---|
| 5104 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5105 | ## ---------------------------------------------- ## |
---|
[2879] | 5106 | _ASBOX |
---|
| 5107 | ) | |
---|
| 5108 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5109 | ;; |
---|
| 5110 | esac |
---|
| 5111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5115 | else |
---|
| 5116 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5117 | fi |
---|
| 5118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5119 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5120 | |
---|
| 5121 | fi |
---|
| 5122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5123 | cat >>confdefs.h <<_ACEOF |
---|
| 5124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5125 | _ACEOF |
---|
| 5126 | |
---|
| 5127 | else |
---|
| 5128 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5129 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5130 | { (exit 1); exit 1; }; } |
---|
| 5131 | fi |
---|
| 5132 | |
---|
| 5133 | done |
---|
| 5134 | |
---|
| 5135 | |
---|
[2701] | 5136 | # checking for Unix GL |
---|
[3385] | 5137 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5138 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5139 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5141 | else |
---|
| 5142 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5143 | LIBS="-lGL $LIBS" |
---|
[1956] | 5144 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5145 | /* confdefs.h. */ |
---|
| 5146 | _ACEOF |
---|
| 5147 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5148 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5149 | /* end confdefs.h. */ |
---|
| 5150 | |
---|
[3385] | 5151 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5152 | #ifdef __cplusplus |
---|
| 5153 | extern "C" |
---|
| 5154 | #endif |
---|
| 5155 | /* We use char because int might match the return type of a gcc2 |
---|
| 5156 | builtin and then its argument prototype would still apply. */ |
---|
| 5157 | char glLoadIdentity (); |
---|
[1956] | 5158 | int |
---|
| 5159 | main () |
---|
| 5160 | { |
---|
[3385] | 5161 | glLoadIdentity (); |
---|
[1956] | 5162 | ; |
---|
| 5163 | return 0; |
---|
| 5164 | } |
---|
| 5165 | _ACEOF |
---|
| 5166 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5168 | (eval $ac_link) 2>conftest.er1 |
---|
| 5169 | ac_status=$? |
---|
| 5170 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5171 | rm -f conftest.er1 |
---|
| 5172 | cat conftest.err >&5 |
---|
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5174 | (exit $ac_status); } && |
---|
| 5175 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5176 | || test ! -s conftest.err' |
---|
| 5177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5178 | (eval $ac_try) 2>&5 |
---|
| 5179 | ac_status=$? |
---|
| 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5181 | (exit $ac_status); }; } && |
---|
| 5182 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5184 | (eval $ac_try) 2>&5 |
---|
| 5185 | ac_status=$? |
---|
| 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5187 | (exit $ac_status); }; }; then |
---|
[3385] | 5188 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5189 | else |
---|
| 5190 | echo "$as_me: failed program was:" >&5 |
---|
| 5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5192 | |
---|
[3385] | 5193 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5194 | fi |
---|
| 5195 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5196 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5197 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5198 | fi |
---|
[3385] | 5199 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5200 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5201 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5202 | FOUND_GL=yes |
---|
| 5203 | fi |
---|
| 5204 | |
---|
[3499] | 5205 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5206 | LIBS="$LIBS -lGL" |
---|
| 5207 | else |
---|
| 5208 | echo "------------------" |
---|
| 5209 | echo "opengl not found." |
---|
| 5210 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5211 | echo "------------------" |
---|
| 5212 | exit -1 |
---|
| 5213 | fi |
---|
| 5214 | |
---|
| 5215 | # cheking for GLU-header |
---|
| 5216 | |
---|
| 5217 | for ac_header in GL/glu.h |
---|
| 5218 | do |
---|
| 5219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5225 | fi |
---|
| 5226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5228 | else |
---|
| 5229 | # Is the header compilable? |
---|
| 5230 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5231 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5232 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5233 | /* confdefs.h. */ |
---|
[1956] | 5234 | _ACEOF |
---|
[2701] | 5235 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5237 | /* end confdefs.h. */ |
---|
| 5238 | $ac_includes_default |
---|
| 5239 | #include <$ac_header> |
---|
| 5240 | _ACEOF |
---|
| 5241 | rm -f conftest.$ac_objext |
---|
| 5242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5243 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5244 | ac_status=$? |
---|
| 5245 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5246 | rm -f conftest.er1 |
---|
| 5247 | cat conftest.err >&5 |
---|
| 5248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5249 | (exit $ac_status); } && |
---|
| 5250 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5251 | || test ! -s conftest.err' |
---|
| 5252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5253 | (eval $ac_try) 2>&5 |
---|
| 5254 | ac_status=$? |
---|
| 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5256 | (exit $ac_status); }; } && |
---|
| 5257 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5259 | (eval $ac_try) 2>&5 |
---|
| 5260 | ac_status=$? |
---|
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5262 | (exit $ac_status); }; }; then |
---|
| 5263 | ac_header_compiler=yes |
---|
| 5264 | else |
---|
| 5265 | echo "$as_me: failed program was:" >&5 |
---|
| 5266 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5267 | |
---|
[2701] | 5268 | ac_header_compiler=no |
---|
| 5269 | fi |
---|
| 5270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5272 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5273 | |
---|
[2701] | 5274 | # Is the header present? |
---|
| 5275 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5276 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5277 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5278 | /* confdefs.h. */ |
---|
| 5279 | _ACEOF |
---|
| 5280 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5281 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5282 | /* end confdefs.h. */ |
---|
| 5283 | #include <$ac_header> |
---|
| 5284 | _ACEOF |
---|
| 5285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5287 | ac_status=$? |
---|
| 5288 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5289 | rm -f conftest.er1 |
---|
| 5290 | cat conftest.err >&5 |
---|
| 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5292 | (exit $ac_status); } >/dev/null; then |
---|
| 5293 | if test -s conftest.err; then |
---|
| 5294 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5296 | else |
---|
| 5297 | ac_cpp_err= |
---|
| 5298 | fi |
---|
| 5299 | else |
---|
| 5300 | ac_cpp_err=yes |
---|
[1956] | 5301 | fi |
---|
[2701] | 5302 | if test -z "$ac_cpp_err"; then |
---|
| 5303 | ac_header_preproc=yes |
---|
| 5304 | else |
---|
| 5305 | echo "$as_me: failed program was:" >&5 |
---|
| 5306 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5307 | |
---|
[2701] | 5308 | ac_header_preproc=no |
---|
| 5309 | fi |
---|
| 5310 | rm -f conftest.err conftest.$ac_ext |
---|
| 5311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5312 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5313 | |
---|
[2701] | 5314 | # So? What about this header? |
---|
| 5315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5316 | yes:no: ) |
---|
| 5317 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5318 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5320 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5321 | ac_header_preproc=yes |
---|
| 5322 | ;; |
---|
| 5323 | no:yes:* ) |
---|
| 5324 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5325 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5326 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5327 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5328 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5329 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5330 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5331 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5334 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5335 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5336 | ( |
---|
| 5337 | cat <<\_ASBOX |
---|
[3240] | 5338 | ## ---------------------------------------------- ## |
---|
| 5339 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5340 | ## ---------------------------------------------- ## |
---|
[2701] | 5341 | _ASBOX |
---|
| 5342 | ) | |
---|
| 5343 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5344 | ;; |
---|
| 5345 | esac |
---|
| 5346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5350 | else |
---|
[2701] | 5351 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5352 | fi |
---|
| 5353 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5354 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5355 | |
---|
| 5356 | fi |
---|
| 5357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5358 | cat >>confdefs.h <<_ACEOF |
---|
| 5359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5360 | _ACEOF |
---|
| 5361 | |
---|
| 5362 | else |
---|
| 5363 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5364 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5365 | { (exit 1); exit 1; }; } |
---|
| 5366 | fi |
---|
| 5367 | |
---|
| 5368 | done |
---|
| 5369 | |
---|
| 5370 | |
---|
| 5371 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5372 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5373 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5375 | else |
---|
[2190] | 5376 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5377 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5378 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5379 | /* confdefs.h. */ |
---|
| 5380 | _ACEOF |
---|
| 5381 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5382 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5383 | /* end confdefs.h. */ |
---|
| 5384 | |
---|
[2701] | 5385 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5386 | #ifdef __cplusplus |
---|
| 5387 | extern "C" |
---|
| 5388 | #endif |
---|
| 5389 | /* We use char because int might match the return type of a gcc2 |
---|
| 5390 | builtin and then its argument prototype would still apply. */ |
---|
| 5391 | char gluProject (); |
---|
[2190] | 5392 | int |
---|
| 5393 | main () |
---|
| 5394 | { |
---|
[2701] | 5395 | gluProject (); |
---|
[2190] | 5396 | ; |
---|
| 5397 | return 0; |
---|
| 5398 | } |
---|
| 5399 | _ACEOF |
---|
| 5400 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5402 | (eval $ac_link) 2>conftest.er1 |
---|
| 5403 | ac_status=$? |
---|
| 5404 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5405 | rm -f conftest.er1 |
---|
| 5406 | cat conftest.err >&5 |
---|
| 5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5408 | (exit $ac_status); } && |
---|
| 5409 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5410 | || test ! -s conftest.err' |
---|
| 5411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5412 | (eval $ac_try) 2>&5 |
---|
| 5413 | ac_status=$? |
---|
| 5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5415 | (exit $ac_status); }; } && |
---|
| 5416 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5418 | (eval $ac_try) 2>&5 |
---|
| 5419 | ac_status=$? |
---|
| 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5421 | (exit $ac_status); }; }; then |
---|
[2701] | 5422 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5423 | else |
---|
| 5424 | echo "$as_me: failed program was:" >&5 |
---|
| 5425 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5426 | |
---|
[2701] | 5427 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5428 | fi |
---|
| 5429 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5430 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5431 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5432 | fi |
---|
[2701] | 5433 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5434 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5435 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5436 | FOUND_GLU=yes |
---|
[2190] | 5437 | fi |
---|
| 5438 | |
---|
[3499] | 5439 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5440 | LIBS="$LIBS -lGLU" |
---|
| 5441 | else |
---|
| 5442 | echo "------------------" |
---|
| 5443 | echo "GLU library not found." |
---|
| 5444 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5445 | echo "------------------" |
---|
| 5446 | exit -1 |
---|
| 5447 | fi |
---|
[2995] | 5448 | |
---|
[2991] | 5449 | # checking for SDL-headers |
---|
[2190] | 5450 | |
---|
[2991] | 5451 | for ac_header in SDL/SDL.h |
---|
| 5452 | do |
---|
| 5453 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5455 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5459 | fi |
---|
[2991] | 5460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5462 | else |
---|
[2991] | 5463 | # Is the header compilable? |
---|
| 5464 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5465 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5466 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5467 | /* confdefs.h. */ |
---|
| 5468 | _ACEOF |
---|
| 5469 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5471 | /* end confdefs.h. */ |
---|
[2991] | 5472 | $ac_includes_default |
---|
| 5473 | #include <$ac_header> |
---|
[2190] | 5474 | _ACEOF |
---|
[2991] | 5475 | rm -f conftest.$ac_objext |
---|
| 5476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5477 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5478 | ac_status=$? |
---|
[2991] | 5479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5480 | rm -f conftest.er1 |
---|
| 5481 | cat conftest.err >&5 |
---|
[2190] | 5482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5483 | (exit $ac_status); } && |
---|
| 5484 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5485 | || test ! -s conftest.err' |
---|
[2190] | 5486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5487 | (eval $ac_try) 2>&5 |
---|
| 5488 | ac_status=$? |
---|
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5490 | (exit $ac_status); }; } && |
---|
| 5491 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5493 | (eval $ac_try) 2>&5 |
---|
| 5494 | ac_status=$? |
---|
| 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5496 | (exit $ac_status); }; }; then |
---|
[2991] | 5497 | ac_header_compiler=yes |
---|
[2190] | 5498 | else |
---|
[2991] | 5499 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5501 | |
---|
[2991] | 5502 | ac_header_compiler=no |
---|
[2190] | 5503 | fi |
---|
[2991] | 5504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5505 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5506 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5507 | |
---|
| 5508 | # Is the header present? |
---|
| 5509 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5510 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5511 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5512 | /* confdefs.h. */ |
---|
| 5513 | _ACEOF |
---|
| 5514 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5515 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5516 | /* end confdefs.h. */ |
---|
| 5517 | #include <$ac_header> |
---|
| 5518 | _ACEOF |
---|
| 5519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5521 | ac_status=$? |
---|
| 5522 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5523 | rm -f conftest.er1 |
---|
| 5524 | cat conftest.err >&5 |
---|
| 5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5526 | (exit $ac_status); } >/dev/null; then |
---|
| 5527 | if test -s conftest.err; then |
---|
| 5528 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5529 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5530 | else |
---|
| 5531 | ac_cpp_err= |
---|
| 5532 | fi |
---|
| 5533 | else |
---|
| 5534 | ac_cpp_err=yes |
---|
[2190] | 5535 | fi |
---|
[2991] | 5536 | if test -z "$ac_cpp_err"; then |
---|
| 5537 | ac_header_preproc=yes |
---|
| 5538 | else |
---|
| 5539 | echo "$as_me: failed program was:" >&5 |
---|
| 5540 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5541 | |
---|
| 5542 | ac_header_preproc=no |
---|
| 5543 | fi |
---|
| 5544 | rm -f conftest.err conftest.$ac_ext |
---|
| 5545 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5546 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5547 | |
---|
| 5548 | # So? What about this header? |
---|
| 5549 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5550 | yes:no: ) |
---|
| 5551 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5552 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5554 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5555 | ac_header_preproc=yes |
---|
| 5556 | ;; |
---|
| 5557 | no:yes:* ) |
---|
| 5558 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5559 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5560 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5561 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5562 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5563 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5564 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5565 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5567 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5568 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5569 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5570 | ( |
---|
| 5571 | cat <<\_ASBOX |
---|
[3240] | 5572 | ## ---------------------------------------------- ## |
---|
| 5573 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5574 | ## ---------------------------------------------- ## |
---|
[2991] | 5575 | _ASBOX |
---|
| 5576 | ) | |
---|
| 5577 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5578 | ;; |
---|
| 5579 | esac |
---|
| 5580 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5584 | else |
---|
| 5585 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5586 | fi |
---|
| 5587 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5588 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5589 | |
---|
| 5590 | fi |
---|
| 5591 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5592 | cat >>confdefs.h <<_ACEOF |
---|
| 5593 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5594 | _ACEOF |
---|
| 5595 | |
---|
| 5596 | else |
---|
| 5597 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5598 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5599 | { (exit 1); exit 1; }; } |
---|
| 5600 | fi |
---|
| 5601 | |
---|
| 5602 | done |
---|
| 5603 | |
---|
| 5604 | |
---|
[3140] | 5605 | # checking for SDL-lib |
---|
[2991] | 5606 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5607 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5608 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5610 | else |
---|
| 5611 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5612 | LIBS="-lSDL $LIBS" |
---|
| 5613 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5614 | /* confdefs.h. */ |
---|
| 5615 | _ACEOF |
---|
| 5616 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5618 | /* end confdefs.h. */ |
---|
| 5619 | |
---|
| 5620 | |
---|
| 5621 | int |
---|
| 5622 | main () |
---|
| 5623 | { |
---|
[2991] | 5624 | main (); |
---|
[2190] | 5625 | ; |
---|
| 5626 | return 0; |
---|
| 5627 | } |
---|
| 5628 | _ACEOF |
---|
| 5629 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5631 | (eval $ac_link) 2>conftest.er1 |
---|
| 5632 | ac_status=$? |
---|
| 5633 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5634 | rm -f conftest.er1 |
---|
| 5635 | cat conftest.err >&5 |
---|
| 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5637 | (exit $ac_status); } && |
---|
| 5638 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5639 | || test ! -s conftest.err' |
---|
| 5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5641 | (eval $ac_try) 2>&5 |
---|
| 5642 | ac_status=$? |
---|
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5644 | (exit $ac_status); }; } && |
---|
| 5645 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5647 | (eval $ac_try) 2>&5 |
---|
| 5648 | ac_status=$? |
---|
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5650 | (exit $ac_status); }; }; then |
---|
[2991] | 5651 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5652 | else |
---|
| 5653 | echo "$as_me: failed program was:" >&5 |
---|
| 5654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5655 | |
---|
[2991] | 5656 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5657 | fi |
---|
| 5658 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5659 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5660 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5661 | fi |
---|
| 5662 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5663 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5664 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5665 | FOUND_SDL=yes |
---|
| 5666 | fi |
---|
| 5667 | |
---|
[3499] | 5668 | if test x$FOUND_SDL = xyes ; then |
---|
[2991] | 5669 | LIBS="$LIBS -lSDL" |
---|
| 5670 | else |
---|
| 5671 | echo "------------------" |
---|
| 5672 | echo "SDL library not found." |
---|
| 5673 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5674 | echo "------------------" |
---|
| 5675 | exit -1 |
---|
[2980] | 5676 | fi |
---|
[2701] | 5677 | |
---|
[3140] | 5678 | |
---|
[2991] | 5679 | ## checking for SDL |
---|
| 5680 | # SDL_VERSION=1.2.7 |
---|
| 5681 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5682 | # :, |
---|
| 5683 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5684 | # ) |
---|
| 5685 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5686 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5687 | ;; |
---|
[3499] | 5688 | #-----------# |
---|
| 5689 | # MAC -OS X # |
---|
| 5690 | #-----------# |
---|
[2995] | 5691 | *darwin*) |
---|
[3499] | 5692 | echo "OS X detected" |
---|
[2995] | 5693 | |
---|
| 5694 | osX="yes" |
---|
| 5695 | |
---|
[3140] | 5696 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
[2995] | 5697 | # checking gl header |
---|
| 5698 | |
---|
| 5699 | for ac_header in OpenGL/gl.h |
---|
| 5700 | do |
---|
| 5701 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5703 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5705 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5707 | fi |
---|
| 5708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5710 | else |
---|
| 5711 | # Is the header compilable? |
---|
| 5712 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5713 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5714 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5715 | /* confdefs.h. */ |
---|
| 5716 | _ACEOF |
---|
| 5717 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5719 | /* end confdefs.h. */ |
---|
| 5720 | $ac_includes_default |
---|
| 5721 | #include <$ac_header> |
---|
| 5722 | _ACEOF |
---|
| 5723 | rm -f conftest.$ac_objext |
---|
| 5724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5725 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5726 | ac_status=$? |
---|
| 5727 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5728 | rm -f conftest.er1 |
---|
| 5729 | cat conftest.err >&5 |
---|
| 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5731 | (exit $ac_status); } && |
---|
| 5732 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5733 | || test ! -s conftest.err' |
---|
| 5734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5735 | (eval $ac_try) 2>&5 |
---|
| 5736 | ac_status=$? |
---|
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5738 | (exit $ac_status); }; } && |
---|
| 5739 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5741 | (eval $ac_try) 2>&5 |
---|
| 5742 | ac_status=$? |
---|
| 5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5744 | (exit $ac_status); }; }; then |
---|
| 5745 | ac_header_compiler=yes |
---|
| 5746 | else |
---|
| 5747 | echo "$as_me: failed program was:" >&5 |
---|
| 5748 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5749 | |
---|
| 5750 | ac_header_compiler=no |
---|
| 5751 | fi |
---|
| 5752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5753 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5754 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5755 | |
---|
| 5756 | # Is the header present? |
---|
| 5757 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5758 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5759 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5760 | /* confdefs.h. */ |
---|
| 5761 | _ACEOF |
---|
| 5762 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5763 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5764 | /* end confdefs.h. */ |
---|
| 5765 | #include <$ac_header> |
---|
| 5766 | _ACEOF |
---|
| 5767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5769 | ac_status=$? |
---|
| 5770 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5771 | rm -f conftest.er1 |
---|
| 5772 | cat conftest.err >&5 |
---|
| 5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5774 | (exit $ac_status); } >/dev/null; then |
---|
| 5775 | if test -s conftest.err; then |
---|
| 5776 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5777 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5778 | else |
---|
| 5779 | ac_cpp_err= |
---|
| 5780 | fi |
---|
| 5781 | else |
---|
| 5782 | ac_cpp_err=yes |
---|
| 5783 | fi |
---|
| 5784 | if test -z "$ac_cpp_err"; then |
---|
| 5785 | ac_header_preproc=yes |
---|
| 5786 | else |
---|
| 5787 | echo "$as_me: failed program was:" >&5 |
---|
| 5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5789 | |
---|
| 5790 | ac_header_preproc=no |
---|
| 5791 | fi |
---|
| 5792 | rm -f conftest.err conftest.$ac_ext |
---|
| 5793 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5794 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5795 | |
---|
| 5796 | # So? What about this header? |
---|
| 5797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5798 | yes:no: ) |
---|
| 5799 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5800 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5802 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5803 | ac_header_preproc=yes |
---|
| 5804 | ;; |
---|
| 5805 | no:yes:* ) |
---|
| 5806 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5807 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5808 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5809 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5810 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5811 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5812 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5813 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5815 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5816 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5817 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5818 | ( |
---|
| 5819 | cat <<\_ASBOX |
---|
[3240] | 5820 | ## ---------------------------------------------- ## |
---|
| 5821 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5822 | ## ---------------------------------------------- ## |
---|
[2995] | 5823 | _ASBOX |
---|
| 5824 | ) | |
---|
| 5825 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5826 | ;; |
---|
| 5827 | esac |
---|
| 5828 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5829 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5832 | else |
---|
| 5833 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5834 | fi |
---|
| 5835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5836 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5837 | |
---|
| 5838 | fi |
---|
| 5839 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5840 | cat >>confdefs.h <<_ACEOF |
---|
| 5841 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5842 | _ACEOF |
---|
| 5843 | |
---|
| 5844 | else |
---|
| 5845 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5846 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5847 | { (exit 1); exit 1; }; } |
---|
| 5848 | fi |
---|
| 5849 | |
---|
| 5850 | done |
---|
| 5851 | |
---|
| 5852 | # cheking for GLU-header |
---|
| 5853 | |
---|
| 5854 | for ac_header in OpenGL/glu.h |
---|
| 5855 | do |
---|
| 5856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5858 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5862 | fi |
---|
| 5863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5865 | else |
---|
| 5866 | # Is the header compilable? |
---|
| 5867 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5869 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5870 | /* confdefs.h. */ |
---|
| 5871 | _ACEOF |
---|
| 5872 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5873 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5874 | /* end confdefs.h. */ |
---|
| 5875 | $ac_includes_default |
---|
| 5876 | #include <$ac_header> |
---|
| 5877 | _ACEOF |
---|
| 5878 | rm -f conftest.$ac_objext |
---|
| 5879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5880 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5881 | ac_status=$? |
---|
| 5882 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5883 | rm -f conftest.er1 |
---|
| 5884 | cat conftest.err >&5 |
---|
| 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5886 | (exit $ac_status); } && |
---|
| 5887 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5888 | || test ! -s conftest.err' |
---|
| 5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5890 | (eval $ac_try) 2>&5 |
---|
| 5891 | ac_status=$? |
---|
| 5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5893 | (exit $ac_status); }; } && |
---|
| 5894 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5896 | (eval $ac_try) 2>&5 |
---|
| 5897 | ac_status=$? |
---|
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5899 | (exit $ac_status); }; }; then |
---|
| 5900 | ac_header_compiler=yes |
---|
| 5901 | else |
---|
| 5902 | echo "$as_me: failed program was:" >&5 |
---|
| 5903 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5904 | |
---|
| 5905 | ac_header_compiler=no |
---|
| 5906 | fi |
---|
| 5907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5908 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5909 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5910 | |
---|
| 5911 | # Is the header present? |
---|
| 5912 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5913 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5914 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5915 | /* confdefs.h. */ |
---|
| 5916 | _ACEOF |
---|
| 5917 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5919 | /* end confdefs.h. */ |
---|
| 5920 | #include <$ac_header> |
---|
| 5921 | _ACEOF |
---|
| 5922 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5923 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5924 | ac_status=$? |
---|
| 5925 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5926 | rm -f conftest.er1 |
---|
| 5927 | cat conftest.err >&5 |
---|
| 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5929 | (exit $ac_status); } >/dev/null; then |
---|
| 5930 | if test -s conftest.err; then |
---|
| 5931 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5932 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5933 | else |
---|
| 5934 | ac_cpp_err= |
---|
| 5935 | fi |
---|
| 5936 | else |
---|
| 5937 | ac_cpp_err=yes |
---|
| 5938 | fi |
---|
| 5939 | if test -z "$ac_cpp_err"; then |
---|
| 5940 | ac_header_preproc=yes |
---|
| 5941 | else |
---|
| 5942 | echo "$as_me: failed program was:" >&5 |
---|
| 5943 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5944 | |
---|
| 5945 | ac_header_preproc=no |
---|
| 5946 | fi |
---|
| 5947 | rm -f conftest.err conftest.$ac_ext |
---|
| 5948 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5949 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5950 | |
---|
| 5951 | # So? What about this header? |
---|
| 5952 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5953 | yes:no: ) |
---|
| 5954 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5955 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5956 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5957 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5958 | ac_header_preproc=yes |
---|
| 5959 | ;; |
---|
| 5960 | no:yes:* ) |
---|
| 5961 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5962 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5963 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5964 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5965 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5966 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5967 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5968 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5969 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5970 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5971 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5972 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5973 | ( |
---|
| 5974 | cat <<\_ASBOX |
---|
[3240] | 5975 | ## ---------------------------------------------- ## |
---|
| 5976 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5977 | ## ---------------------------------------------- ## |
---|
[2995] | 5978 | _ASBOX |
---|
| 5979 | ) | |
---|
| 5980 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5981 | ;; |
---|
| 5982 | esac |
---|
| 5983 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5987 | else |
---|
| 5988 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5989 | fi |
---|
| 5990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5991 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5992 | |
---|
| 5993 | fi |
---|
| 5994 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5995 | cat >>confdefs.h <<_ACEOF |
---|
| 5996 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5997 | _ACEOF |
---|
| 5998 | |
---|
| 5999 | else |
---|
| 6000 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6001 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6002 | { (exit 1); exit 1; }; } |
---|
| 6003 | fi |
---|
| 6004 | |
---|
| 6005 | done |
---|
| 6006 | |
---|
| 6007 | |
---|
| 6008 | LIBS="$LIBS -framework OpenGL" |
---|
| 6009 | |
---|
[3499] | 6010 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6011 | SDL_LIBS=`sdl-config --libs` |
---|
| 6012 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6013 | LIBS="$LIBS $SDL_LIBS" |
---|
| 6014 | |
---|
| 6015 | |
---|
[2995] | 6016 | # checking for SDL-headers |
---|
[3001] | 6017 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6018 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 6019 | |
---|
| 6020 | ## checking for SDL |
---|
| 6021 | # SDL_VERSION=1.2.7 |
---|
| 6022 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6023 | # :, |
---|
| 6024 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6025 | # ) |
---|
| 6026 | |
---|
[3140] | 6027 | |
---|
[2995] | 6028 | ;; |
---|
| 6029 | |
---|
[2989] | 6030 | *) |
---|
| 6031 | ;; |
---|
| 6032 | esac |
---|
[2980] | 6033 | |
---|
[2981] | 6034 | |
---|
[2989] | 6035 | |
---|
[3499] | 6036 | ################################### |
---|
| 6037 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6038 | ################################### |
---|
| 6039 | |
---|
| 6040 | #-----------# |
---|
| 6041 | # SDL_Image # |
---|
| 6042 | #-----------# |
---|
| 6043 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6044 | # checking for SDL_image-headers |
---|
[2989] | 6045 | |
---|
[3140] | 6046 | for ac_header in SDL/SDL_image.h |
---|
| 6047 | do |
---|
| 6048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6050 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6054 | fi |
---|
| 6055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6056 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6057 | else |
---|
| 6058 | # Is the header compilable? |
---|
| 6059 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6060 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6061 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6062 | /* confdefs.h. */ |
---|
| 6063 | _ACEOF |
---|
| 6064 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6065 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6066 | /* end confdefs.h. */ |
---|
| 6067 | $ac_includes_default |
---|
| 6068 | #include <$ac_header> |
---|
| 6069 | _ACEOF |
---|
| 6070 | rm -f conftest.$ac_objext |
---|
| 6071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6072 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6073 | ac_status=$? |
---|
| 6074 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6075 | rm -f conftest.er1 |
---|
| 6076 | cat conftest.err >&5 |
---|
| 6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6078 | (exit $ac_status); } && |
---|
| 6079 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6080 | || test ! -s conftest.err' |
---|
| 6081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6082 | (eval $ac_try) 2>&5 |
---|
| 6083 | ac_status=$? |
---|
| 6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6085 | (exit $ac_status); }; } && |
---|
| 6086 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6088 | (eval $ac_try) 2>&5 |
---|
| 6089 | ac_status=$? |
---|
| 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6091 | (exit $ac_status); }; }; then |
---|
| 6092 | ac_header_compiler=yes |
---|
| 6093 | else |
---|
| 6094 | echo "$as_me: failed program was:" >&5 |
---|
| 6095 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6096 | |
---|
[3140] | 6097 | ac_header_compiler=no |
---|
| 6098 | fi |
---|
| 6099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6100 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6101 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6102 | |
---|
[3140] | 6103 | # Is the header present? |
---|
| 6104 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6105 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6106 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6107 | /* confdefs.h. */ |
---|
| 6108 | _ACEOF |
---|
| 6109 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6110 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6111 | /* end confdefs.h. */ |
---|
| 6112 | #include <$ac_header> |
---|
| 6113 | _ACEOF |
---|
| 6114 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6116 | ac_status=$? |
---|
| 6117 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6118 | rm -f conftest.er1 |
---|
| 6119 | cat conftest.err >&5 |
---|
| 6120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6121 | (exit $ac_status); } >/dev/null; then |
---|
| 6122 | if test -s conftest.err; then |
---|
| 6123 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6124 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6125 | else |
---|
| 6126 | ac_cpp_err= |
---|
| 6127 | fi |
---|
| 6128 | else |
---|
| 6129 | ac_cpp_err=yes |
---|
| 6130 | fi |
---|
| 6131 | if test -z "$ac_cpp_err"; then |
---|
| 6132 | ac_header_preproc=yes |
---|
| 6133 | else |
---|
| 6134 | echo "$as_me: failed program was:" >&5 |
---|
| 6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6136 | |
---|
| 6137 | ac_header_preproc=no |
---|
| 6138 | fi |
---|
| 6139 | rm -f conftest.err conftest.$ac_ext |
---|
| 6140 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6141 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6142 | |
---|
| 6143 | # So? What about this header? |
---|
| 6144 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6145 | yes:no: ) |
---|
| 6146 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6147 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6149 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6150 | ac_header_preproc=yes |
---|
| 6151 | ;; |
---|
| 6152 | no:yes:* ) |
---|
| 6153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6157 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6158 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6159 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6160 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6162 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6163 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6164 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6165 | ( |
---|
| 6166 | cat <<\_ASBOX |
---|
[3240] | 6167 | ## ---------------------------------------------- ## |
---|
| 6168 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6169 | ## ---------------------------------------------- ## |
---|
[3140] | 6170 | _ASBOX |
---|
| 6171 | ) | |
---|
| 6172 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6173 | ;; |
---|
| 6174 | esac |
---|
| 6175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6179 | else |
---|
| 6180 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6181 | fi |
---|
| 6182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6184 | |
---|
| 6185 | fi |
---|
| 6186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6187 | cat >>confdefs.h <<_ACEOF |
---|
| 6188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6189 | _ACEOF |
---|
| 6190 | |
---|
| 6191 | else |
---|
| 6192 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
| 6193 | fi |
---|
| 6194 | |
---|
| 6195 | done |
---|
| 6196 | |
---|
| 6197 | fi |
---|
[3499] | 6198 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6199 | # checking for SDL_image-lib |
---|
| 6200 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 6201 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 6202 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6204 | else |
---|
| 6205 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6206 | LIBS="-lSDL_image $LIBS" |
---|
| 6207 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6208 | /* confdefs.h. */ |
---|
| 6209 | _ACEOF |
---|
| 6210 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6211 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6212 | /* end confdefs.h. */ |
---|
| 6213 | |
---|
| 6214 | |
---|
| 6215 | int |
---|
| 6216 | main () |
---|
| 6217 | { |
---|
| 6218 | main (); |
---|
| 6219 | ; |
---|
| 6220 | return 0; |
---|
| 6221 | } |
---|
| 6222 | _ACEOF |
---|
| 6223 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6225 | (eval $ac_link) 2>conftest.er1 |
---|
| 6226 | ac_status=$? |
---|
| 6227 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6228 | rm -f conftest.er1 |
---|
| 6229 | cat conftest.err >&5 |
---|
| 6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6231 | (exit $ac_status); } && |
---|
| 6232 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6233 | || test ! -s conftest.err' |
---|
| 6234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6235 | (eval $ac_try) 2>&5 |
---|
| 6236 | ac_status=$? |
---|
| 6237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6238 | (exit $ac_status); }; } && |
---|
| 6239 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6241 | (eval $ac_try) 2>&5 |
---|
| 6242 | ac_status=$? |
---|
| 6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6244 | (exit $ac_status); }; }; then |
---|
| 6245 | ac_cv_lib_SDL_image_main=yes |
---|
| 6246 | else |
---|
| 6247 | echo "$as_me: failed program was:" >&5 |
---|
| 6248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6249 | |
---|
| 6250 | ac_cv_lib_SDL_image_main=no |
---|
| 6251 | fi |
---|
| 6252 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6253 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6254 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6255 | fi |
---|
| 6256 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6257 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6258 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6259 | FOUND_SDL_image=yes |
---|
| 6260 | fi |
---|
| 6261 | |
---|
[3499] | 6262 | if test x$FOUND_SDL_image = xyes ; then |
---|
[3140] | 6263 | LIBS="$LIBS -lSDL_image" |
---|
| 6264 | else |
---|
| 6265 | echo "------------------" |
---|
| 6266 | echo "SDL_image library not found." |
---|
| 6267 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6268 | echo "------------------" |
---|
| 6269 | exit -1 |
---|
| 6270 | fi |
---|
| 6271 | fi |
---|
| 6272 | |
---|
[3499] | 6273 | ## case no SDL-image: |
---|
| 6274 | if test x$def_sdl_image = xno; then |
---|
| 6275 | #---------# |
---|
| 6276 | # libjpeg # |
---|
| 6277 | #---------# |
---|
[3140] | 6278 | |
---|
| 6279 | for ac_header in jpeglib.h |
---|
| 6280 | do |
---|
| 6281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6287 | fi |
---|
| 6288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6290 | else |
---|
| 6291 | # Is the header compilable? |
---|
| 6292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6294 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6295 | /* confdefs.h. */ |
---|
| 6296 | _ACEOF |
---|
| 6297 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6299 | /* end confdefs.h. */ |
---|
| 6300 | $ac_includes_default |
---|
| 6301 | #include <$ac_header> |
---|
| 6302 | _ACEOF |
---|
| 6303 | rm -f conftest.$ac_objext |
---|
| 6304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6305 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6306 | ac_status=$? |
---|
| 6307 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6308 | rm -f conftest.er1 |
---|
| 6309 | cat conftest.err >&5 |
---|
| 6310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6311 | (exit $ac_status); } && |
---|
| 6312 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6313 | || test ! -s conftest.err' |
---|
| 6314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6315 | (eval $ac_try) 2>&5 |
---|
| 6316 | ac_status=$? |
---|
| 6317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6318 | (exit $ac_status); }; } && |
---|
| 6319 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6321 | (eval $ac_try) 2>&5 |
---|
| 6322 | ac_status=$? |
---|
| 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6324 | (exit $ac_status); }; }; then |
---|
| 6325 | ac_header_compiler=yes |
---|
| 6326 | else |
---|
| 6327 | echo "$as_me: failed program was:" >&5 |
---|
| 6328 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6329 | |
---|
| 6330 | ac_header_compiler=no |
---|
| 6331 | fi |
---|
| 6332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6334 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6335 | |
---|
| 6336 | # Is the header present? |
---|
| 6337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6339 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6340 | /* confdefs.h. */ |
---|
| 6341 | _ACEOF |
---|
| 6342 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6343 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6344 | /* end confdefs.h. */ |
---|
| 6345 | #include <$ac_header> |
---|
| 6346 | _ACEOF |
---|
| 6347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6349 | ac_status=$? |
---|
| 6350 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6351 | rm -f conftest.er1 |
---|
| 6352 | cat conftest.err >&5 |
---|
| 6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6354 | (exit $ac_status); } >/dev/null; then |
---|
| 6355 | if test -s conftest.err; then |
---|
| 6356 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6358 | else |
---|
| 6359 | ac_cpp_err= |
---|
| 6360 | fi |
---|
| 6361 | else |
---|
| 6362 | ac_cpp_err=yes |
---|
| 6363 | fi |
---|
| 6364 | if test -z "$ac_cpp_err"; then |
---|
| 6365 | ac_header_preproc=yes |
---|
| 6366 | else |
---|
| 6367 | echo "$as_me: failed program was:" >&5 |
---|
| 6368 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6369 | |
---|
| 6370 | ac_header_preproc=no |
---|
| 6371 | fi |
---|
| 6372 | rm -f conftest.err conftest.$ac_ext |
---|
| 6373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6374 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6375 | |
---|
| 6376 | # So? What about this header? |
---|
| 6377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6378 | yes:no: ) |
---|
| 6379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6383 | ac_header_preproc=yes |
---|
| 6384 | ;; |
---|
| 6385 | no:yes:* ) |
---|
| 6386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6398 | ( |
---|
| 6399 | cat <<\_ASBOX |
---|
[3240] | 6400 | ## ---------------------------------------------- ## |
---|
| 6401 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6402 | ## ---------------------------------------------- ## |
---|
[3140] | 6403 | _ASBOX |
---|
| 6404 | ) | |
---|
| 6405 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6406 | ;; |
---|
| 6407 | esac |
---|
| 6408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6412 | else |
---|
| 6413 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6414 | fi |
---|
| 6415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6417 | |
---|
| 6418 | fi |
---|
| 6419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6420 | cat >>confdefs.h <<_ACEOF |
---|
| 6421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6422 | _ACEOF |
---|
| 6423 | jpegHeader="yes" |
---|
| 6424 | else |
---|
| 6425 | jpegHeader="no" |
---|
| 6426 | fi |
---|
| 6427 | |
---|
| 6428 | done |
---|
| 6429 | |
---|
[3499] | 6430 | if test x$jpegHeader = xno; then |
---|
[3140] | 6431 | echo " not including jpeg." |
---|
| 6432 | else |
---|
| 6433 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
| 6434 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
| 6435 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
| 6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6437 | else |
---|
| 6438 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6439 | LIBS="-ljpeg $LIBS" |
---|
| 6440 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6441 | /* confdefs.h. */ |
---|
| 6442 | _ACEOF |
---|
| 6443 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6445 | /* end confdefs.h. */ |
---|
| 6446 | |
---|
| 6447 | |
---|
| 6448 | int |
---|
| 6449 | main () |
---|
| 6450 | { |
---|
| 6451 | main (); |
---|
| 6452 | ; |
---|
| 6453 | return 0; |
---|
| 6454 | } |
---|
| 6455 | _ACEOF |
---|
| 6456 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6458 | (eval $ac_link) 2>conftest.er1 |
---|
| 6459 | ac_status=$? |
---|
| 6460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6461 | rm -f conftest.er1 |
---|
| 6462 | cat conftest.err >&5 |
---|
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6464 | (exit $ac_status); } && |
---|
| 6465 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6466 | || test ! -s conftest.err' |
---|
| 6467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6468 | (eval $ac_try) 2>&5 |
---|
| 6469 | ac_status=$? |
---|
| 6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6471 | (exit $ac_status); }; } && |
---|
| 6472 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6474 | (eval $ac_try) 2>&5 |
---|
| 6475 | ac_status=$? |
---|
| 6476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6477 | (exit $ac_status); }; }; then |
---|
| 6478 | ac_cv_lib_jpeg_main=yes |
---|
| 6479 | else |
---|
| 6480 | echo "$as_me: failed program was:" >&5 |
---|
| 6481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6482 | |
---|
| 6483 | ac_cv_lib_jpeg_main=no |
---|
| 6484 | fi |
---|
| 6485 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6486 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6487 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6488 | fi |
---|
| 6489 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
| 6490 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
| 6491 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
| 6492 | FOUND_jpeg=yes |
---|
| 6493 | fi |
---|
| 6494 | |
---|
[3499] | 6495 | if test x$FOUND_jpeg = xyes ; then |
---|
[3140] | 6496 | LIBS="$LIBS -ljpeg" |
---|
| 6497 | else |
---|
| 6498 | echo "------------------" |
---|
| 6499 | echo "jpeg library not found." |
---|
| 6500 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
| 6501 | echo "------------------" |
---|
| 6502 | exit -1 |
---|
| 6503 | fi |
---|
| 6504 | fi |
---|
| 6505 | |
---|
[3499] | 6506 | #--------# |
---|
| 6507 | # libpng # |
---|
| 6508 | #--------# |
---|
[3140] | 6509 | |
---|
| 6510 | for ac_header in png.h |
---|
| 6511 | do |
---|
| 6512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6518 | fi |
---|
| 6519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6520 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6521 | else |
---|
| 6522 | # Is the header compilable? |
---|
| 6523 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6524 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6525 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6526 | /* confdefs.h. */ |
---|
| 6527 | _ACEOF |
---|
| 6528 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6530 | /* end confdefs.h. */ |
---|
| 6531 | $ac_includes_default |
---|
| 6532 | #include <$ac_header> |
---|
| 6533 | _ACEOF |
---|
| 6534 | rm -f conftest.$ac_objext |
---|
| 6535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6536 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6537 | ac_status=$? |
---|
| 6538 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6539 | rm -f conftest.er1 |
---|
| 6540 | cat conftest.err >&5 |
---|
| 6541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6542 | (exit $ac_status); } && |
---|
| 6543 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6544 | || test ! -s conftest.err' |
---|
| 6545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6546 | (eval $ac_try) 2>&5 |
---|
| 6547 | ac_status=$? |
---|
| 6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6549 | (exit $ac_status); }; } && |
---|
| 6550 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6552 | (eval $ac_try) 2>&5 |
---|
| 6553 | ac_status=$? |
---|
| 6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6555 | (exit $ac_status); }; }; then |
---|
| 6556 | ac_header_compiler=yes |
---|
| 6557 | else |
---|
| 6558 | echo "$as_me: failed program was:" >&5 |
---|
| 6559 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6560 | |
---|
| 6561 | ac_header_compiler=no |
---|
| 6562 | fi |
---|
| 6563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6564 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6565 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6566 | |
---|
| 6567 | # Is the header present? |
---|
| 6568 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6569 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6570 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6571 | /* confdefs.h. */ |
---|
| 6572 | _ACEOF |
---|
| 6573 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6574 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6575 | /* end confdefs.h. */ |
---|
| 6576 | #include <$ac_header> |
---|
| 6577 | _ACEOF |
---|
| 6578 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6579 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6580 | ac_status=$? |
---|
| 6581 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6582 | rm -f conftest.er1 |
---|
| 6583 | cat conftest.err >&5 |
---|
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6585 | (exit $ac_status); } >/dev/null; then |
---|
| 6586 | if test -s conftest.err; then |
---|
| 6587 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6589 | else |
---|
| 6590 | ac_cpp_err= |
---|
| 6591 | fi |
---|
| 6592 | else |
---|
| 6593 | ac_cpp_err=yes |
---|
| 6594 | fi |
---|
| 6595 | if test -z "$ac_cpp_err"; then |
---|
| 6596 | ac_header_preproc=yes |
---|
| 6597 | else |
---|
| 6598 | echo "$as_me: failed program was:" >&5 |
---|
| 6599 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6600 | |
---|
| 6601 | ac_header_preproc=no |
---|
| 6602 | fi |
---|
| 6603 | rm -f conftest.err conftest.$ac_ext |
---|
| 6604 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6605 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6606 | |
---|
| 6607 | # So? What about this header? |
---|
| 6608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6609 | yes:no: ) |
---|
| 6610 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6613 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6614 | ac_header_preproc=yes |
---|
| 6615 | ;; |
---|
| 6616 | no:yes:* ) |
---|
| 6617 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6618 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6619 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6620 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6621 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6622 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6623 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6624 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6626 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6627 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6628 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6629 | ( |
---|
| 6630 | cat <<\_ASBOX |
---|
[3240] | 6631 | ## ---------------------------------------------- ## |
---|
| 6632 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6633 | ## ---------------------------------------------- ## |
---|
[3140] | 6634 | _ASBOX |
---|
| 6635 | ) | |
---|
| 6636 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6637 | ;; |
---|
| 6638 | esac |
---|
| 6639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6643 | else |
---|
| 6644 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6645 | fi |
---|
| 6646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6647 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6648 | |
---|
| 6649 | fi |
---|
| 6650 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6651 | cat >>confdefs.h <<_ACEOF |
---|
| 6652 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6653 | _ACEOF |
---|
| 6654 | pngHeader="yes" |
---|
| 6655 | else |
---|
| 6656 | pngHeader="no" |
---|
| 6657 | fi |
---|
| 6658 | |
---|
| 6659 | done |
---|
| 6660 | |
---|
[3499] | 6661 | if test x$pngHeader = xno; then |
---|
[3140] | 6662 | echo " not including png." |
---|
| 6663 | else |
---|
| 6664 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
| 6665 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
| 6666 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
| 6667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6668 | else |
---|
| 6669 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6670 | LIBS="-lpng $LIBS" |
---|
| 6671 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6672 | /* confdefs.h. */ |
---|
| 6673 | _ACEOF |
---|
| 6674 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6676 | /* end confdefs.h. */ |
---|
| 6677 | |
---|
| 6678 | |
---|
| 6679 | int |
---|
| 6680 | main () |
---|
| 6681 | { |
---|
| 6682 | main (); |
---|
| 6683 | ; |
---|
| 6684 | return 0; |
---|
| 6685 | } |
---|
| 6686 | _ACEOF |
---|
| 6687 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6689 | (eval $ac_link) 2>conftest.er1 |
---|
| 6690 | ac_status=$? |
---|
| 6691 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6692 | rm -f conftest.er1 |
---|
| 6693 | cat conftest.err >&5 |
---|
| 6694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6695 | (exit $ac_status); } && |
---|
| 6696 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6697 | || test ! -s conftest.err' |
---|
| 6698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6699 | (eval $ac_try) 2>&5 |
---|
| 6700 | ac_status=$? |
---|
| 6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6702 | (exit $ac_status); }; } && |
---|
| 6703 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6705 | (eval $ac_try) 2>&5 |
---|
| 6706 | ac_status=$? |
---|
| 6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6708 | (exit $ac_status); }; }; then |
---|
| 6709 | ac_cv_lib_png_main=yes |
---|
| 6710 | else |
---|
| 6711 | echo "$as_me: failed program was:" >&5 |
---|
| 6712 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6713 | |
---|
| 6714 | ac_cv_lib_png_main=no |
---|
| 6715 | fi |
---|
| 6716 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6717 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6718 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6719 | fi |
---|
| 6720 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
| 6721 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
| 6722 | if test $ac_cv_lib_png_main = yes; then |
---|
| 6723 | FOUND_png=yes |
---|
| 6724 | fi |
---|
| 6725 | |
---|
[3499] | 6726 | if test x$FOUND_png = xyes ; then |
---|
[3140] | 6727 | LIBS="$LIBS -lpng" |
---|
| 6728 | else |
---|
| 6729 | echo "------------------" |
---|
| 6730 | echo "png library not found." |
---|
| 6731 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
| 6732 | echo "------------------" |
---|
| 6733 | exit -1 |
---|
| 6734 | fi |
---|
| 6735 | fi |
---|
| 6736 | fi |
---|
| 6737 | |
---|
[3499] | 6738 | #-----# |
---|
| 6739 | # GTK # |
---|
| 6740 | #-----# |
---|
| 6741 | if test x$def_gtk = xyes; then |
---|
[3100] | 6742 | |
---|
| 6743 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6744 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 6745 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[3100] | 6746 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6747 | echo "yes" |
---|
| 6748 | have_gtk2=yes |
---|
| 6749 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6750 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
[3101] | 6751 | |
---|
| 6752 | cat >>confdefs.h <<_ACEOF |
---|
| 6753 | #define HAVE_GTK2 1 |
---|
| 6754 | _ACEOF |
---|
| 6755 | |
---|
[3100] | 6756 | else |
---|
| 6757 | echo "no" |
---|
| 6758 | fi |
---|
| 6759 | |
---|
[2980] | 6760 | fi |
---|
[2190] | 6761 | |
---|
[2701] | 6762 | |
---|
| 6763 | |
---|
[2190] | 6764 | |
---|
[3100] | 6765 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 6766 | HAVE_GTK2_TRUE= |
---|
| 6767 | HAVE_GTK2_FALSE='#' |
---|
| 6768 | else |
---|
| 6769 | HAVE_GTK2_TRUE='#' |
---|
| 6770 | HAVE_GTK2_FALSE= |
---|
| 6771 | fi |
---|
| 6772 | |
---|
| 6773 | |
---|
[3499] | 6774 | #---------# |
---|
| 6775 | # gThread # |
---|
| 6776 | #---------# |
---|
| 6777 | if test x$def_gthread = xyes; then |
---|
[2980] | 6778 | |
---|
[3499] | 6779 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
| 6780 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
| 6781 | if `pkg-config --exists gthread-2.0`; then |
---|
| 6782 | echo "yes" |
---|
| 6783 | have_gthread=yes |
---|
| 6784 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
| 6785 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
[3100] | 6786 | |
---|
[3499] | 6787 | cat >>confdefs.h <<_ACEOF |
---|
| 6788 | #define HAVE_GTHREAD 1 |
---|
| 6789 | _ACEOF |
---|
[2190] | 6790 | |
---|
[3499] | 6791 | else |
---|
| 6792 | echo "no" |
---|
| 6793 | fi |
---|
[2190] | 6794 | |
---|
[3499] | 6795 | fi |
---|
| 6796 | |
---|
| 6797 | |
---|
| 6798 | |
---|
| 6799 | |
---|
| 6800 | if test x$have_gthread = xyes; then |
---|
| 6801 | HAVE_GTHREAD_TRUE= |
---|
| 6802 | HAVE_GTHREAD_FALSE='#' |
---|
| 6803 | else |
---|
| 6804 | HAVE_GTHREAD_TRUE='#' |
---|
| 6805 | HAVE_GTHREAD_FALSE= |
---|
| 6806 | fi |
---|
| 6807 | |
---|
| 6808 | |
---|
| 6809 | #---------# |
---|
| 6810 | # libcURL # |
---|
| 6811 | #---------# |
---|
| 6812 | if test x$def_curl = xyes; then |
---|
| 6813 | |
---|
| 6814 | |
---|
| 6815 | for ac_header in curl/curl.h |
---|
| 6816 | do |
---|
| 6817 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6823 | fi |
---|
| 6824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6826 | else |
---|
| 6827 | # Is the header compilable? |
---|
| 6828 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6830 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6831 | /* confdefs.h. */ |
---|
| 6832 | _ACEOF |
---|
| 6833 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6834 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6835 | /* end confdefs.h. */ |
---|
| 6836 | $ac_includes_default |
---|
| 6837 | #include <$ac_header> |
---|
| 6838 | _ACEOF |
---|
| 6839 | rm -f conftest.$ac_objext |
---|
| 6840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6841 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6842 | ac_status=$? |
---|
| 6843 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6844 | rm -f conftest.er1 |
---|
| 6845 | cat conftest.err >&5 |
---|
| 6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6847 | (exit $ac_status); } && |
---|
| 6848 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6849 | || test ! -s conftest.err' |
---|
| 6850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6851 | (eval $ac_try) 2>&5 |
---|
| 6852 | ac_status=$? |
---|
| 6853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6854 | (exit $ac_status); }; } && |
---|
| 6855 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6857 | (eval $ac_try) 2>&5 |
---|
| 6858 | ac_status=$? |
---|
| 6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6860 | (exit $ac_status); }; }; then |
---|
| 6861 | ac_header_compiler=yes |
---|
| 6862 | else |
---|
| 6863 | echo "$as_me: failed program was:" >&5 |
---|
| 6864 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6865 | |
---|
| 6866 | ac_header_compiler=no |
---|
| 6867 | fi |
---|
| 6868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6869 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6870 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6871 | |
---|
| 6872 | # Is the header present? |
---|
| 6873 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6874 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6875 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6876 | /* confdefs.h. */ |
---|
| 6877 | _ACEOF |
---|
| 6878 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6879 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6880 | /* end confdefs.h. */ |
---|
| 6881 | #include <$ac_header> |
---|
| 6882 | _ACEOF |
---|
| 6883 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6884 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6885 | ac_status=$? |
---|
| 6886 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6887 | rm -f conftest.er1 |
---|
| 6888 | cat conftest.err >&5 |
---|
| 6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6890 | (exit $ac_status); } >/dev/null; then |
---|
| 6891 | if test -s conftest.err; then |
---|
| 6892 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6893 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6894 | else |
---|
| 6895 | ac_cpp_err= |
---|
| 6896 | fi |
---|
| 6897 | else |
---|
| 6898 | ac_cpp_err=yes |
---|
| 6899 | fi |
---|
| 6900 | if test -z "$ac_cpp_err"; then |
---|
| 6901 | ac_header_preproc=yes |
---|
| 6902 | else |
---|
| 6903 | echo "$as_me: failed program was:" >&5 |
---|
| 6904 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6905 | |
---|
| 6906 | ac_header_preproc=no |
---|
| 6907 | fi |
---|
| 6908 | rm -f conftest.err conftest.$ac_ext |
---|
| 6909 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6910 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6911 | |
---|
| 6912 | # So? What about this header? |
---|
| 6913 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6914 | yes:no: ) |
---|
| 6915 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6916 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6918 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6919 | ac_header_preproc=yes |
---|
| 6920 | ;; |
---|
| 6921 | no:yes:* ) |
---|
| 6922 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6923 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6924 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6925 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6926 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6927 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6928 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6929 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6930 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6931 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6932 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6933 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6934 | ( |
---|
| 6935 | cat <<\_ASBOX |
---|
| 6936 | ## ---------------------------------------------- ## |
---|
| 6937 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6938 | ## ---------------------------------------------- ## |
---|
| 6939 | _ASBOX |
---|
| 6940 | ) | |
---|
| 6941 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6942 | ;; |
---|
| 6943 | esac |
---|
| 6944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6948 | else |
---|
| 6949 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6950 | fi |
---|
| 6951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6952 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6953 | |
---|
| 6954 | fi |
---|
| 6955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6956 | cat >>confdefs.h <<_ACEOF |
---|
| 6957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6958 | _ACEOF |
---|
| 6959 | curlHeader="yes" |
---|
| 6960 | else |
---|
| 6961 | curlHeader="no" |
---|
| 6962 | fi |
---|
| 6963 | |
---|
| 6964 | done |
---|
| 6965 | |
---|
| 6966 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 6967 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 6968 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 6969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6970 | else |
---|
| 6971 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6972 | LIBS="-lcurl $LIBS" |
---|
| 6973 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6974 | /* confdefs.h. */ |
---|
| 6975 | _ACEOF |
---|
| 6976 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6977 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6978 | /* end confdefs.h. */ |
---|
| 6979 | |
---|
| 6980 | |
---|
| 6981 | int |
---|
| 6982 | main () |
---|
| 6983 | { |
---|
| 6984 | main (); |
---|
| 6985 | ; |
---|
| 6986 | return 0; |
---|
| 6987 | } |
---|
| 6988 | _ACEOF |
---|
| 6989 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6991 | (eval $ac_link) 2>conftest.er1 |
---|
| 6992 | ac_status=$? |
---|
| 6993 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6994 | rm -f conftest.er1 |
---|
| 6995 | cat conftest.err >&5 |
---|
| 6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6997 | (exit $ac_status); } && |
---|
| 6998 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6999 | || test ! -s conftest.err' |
---|
| 7000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7001 | (eval $ac_try) 2>&5 |
---|
| 7002 | ac_status=$? |
---|
| 7003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7004 | (exit $ac_status); }; } && |
---|
| 7005 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7007 | (eval $ac_try) 2>&5 |
---|
| 7008 | ac_status=$? |
---|
| 7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7010 | (exit $ac_status); }; }; then |
---|
| 7011 | ac_cv_lib_curl_main=yes |
---|
| 7012 | else |
---|
| 7013 | echo "$as_me: failed program was:" >&5 |
---|
| 7014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7015 | |
---|
| 7016 | ac_cv_lib_curl_main=no |
---|
| 7017 | fi |
---|
| 7018 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7019 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7020 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7021 | fi |
---|
| 7022 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 7023 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 7024 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 7025 | FOUND_curl=yes |
---|
| 7026 | fi |
---|
| 7027 | |
---|
| 7028 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 7029 | have_curl=yes |
---|
| 7030 | CURL_LIBS=`curl-config --libs` |
---|
| 7031 | CURLCFLAGS=`curl-config --cflags` |
---|
| 7032 | |
---|
| 7033 | cat >>confdefs.h <<_ACEOF |
---|
| 7034 | #define HAVE_CURL 1 |
---|
| 7035 | _ACEOF |
---|
| 7036 | |
---|
| 7037 | else |
---|
| 7038 | have_curl=no |
---|
| 7039 | fi |
---|
| 7040 | |
---|
| 7041 | fi |
---|
| 7042 | |
---|
| 7043 | |
---|
| 7044 | |
---|
| 7045 | |
---|
| 7046 | if test x$have_curl = xyes; then |
---|
| 7047 | HAVE_CURL_TRUE= |
---|
| 7048 | HAVE_CURL_FALSE='#' |
---|
| 7049 | else |
---|
| 7050 | HAVE_CURL_TRUE='#' |
---|
| 7051 | HAVE_CURL_FALSE= |
---|
| 7052 | fi |
---|
| 7053 | |
---|
| 7054 | |
---|
| 7055 | #---------# |
---|
| 7056 | # pthread # |
---|
| 7057 | #---------# |
---|
| 7058 | if test x$def_pthread = xyes ; then |
---|
| 7059 | if test x$have_gthread = xyes ; then |
---|
| 7060 | |
---|
| 7061 | for ac_header in pthread.h |
---|
| 7062 | do |
---|
| 7063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7069 | fi |
---|
| 7070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7071 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7072 | else |
---|
| 7073 | # Is the header compilable? |
---|
| 7074 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7076 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7077 | /* confdefs.h. */ |
---|
| 7078 | _ACEOF |
---|
| 7079 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7080 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7081 | /* end confdefs.h. */ |
---|
| 7082 | $ac_includes_default |
---|
| 7083 | #include <$ac_header> |
---|
| 7084 | _ACEOF |
---|
| 7085 | rm -f conftest.$ac_objext |
---|
| 7086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7087 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7088 | ac_status=$? |
---|
| 7089 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7090 | rm -f conftest.er1 |
---|
| 7091 | cat conftest.err >&5 |
---|
| 7092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7093 | (exit $ac_status); } && |
---|
| 7094 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7095 | || test ! -s conftest.err' |
---|
| 7096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7097 | (eval $ac_try) 2>&5 |
---|
| 7098 | ac_status=$? |
---|
| 7099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7100 | (exit $ac_status); }; } && |
---|
| 7101 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7103 | (eval $ac_try) 2>&5 |
---|
| 7104 | ac_status=$? |
---|
| 7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7106 | (exit $ac_status); }; }; then |
---|
| 7107 | ac_header_compiler=yes |
---|
| 7108 | else |
---|
| 7109 | echo "$as_me: failed program was:" >&5 |
---|
| 7110 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7111 | |
---|
| 7112 | ac_header_compiler=no |
---|
| 7113 | fi |
---|
| 7114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7115 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7116 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7117 | |
---|
| 7118 | # Is the header present? |
---|
| 7119 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7121 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7122 | /* confdefs.h. */ |
---|
| 7123 | _ACEOF |
---|
| 7124 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7125 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7126 | /* end confdefs.h. */ |
---|
| 7127 | #include <$ac_header> |
---|
| 7128 | _ACEOF |
---|
| 7129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7131 | ac_status=$? |
---|
| 7132 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7133 | rm -f conftest.er1 |
---|
| 7134 | cat conftest.err >&5 |
---|
| 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7136 | (exit $ac_status); } >/dev/null; then |
---|
| 7137 | if test -s conftest.err; then |
---|
| 7138 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7140 | else |
---|
| 7141 | ac_cpp_err= |
---|
| 7142 | fi |
---|
| 7143 | else |
---|
| 7144 | ac_cpp_err=yes |
---|
| 7145 | fi |
---|
| 7146 | if test -z "$ac_cpp_err"; then |
---|
| 7147 | ac_header_preproc=yes |
---|
| 7148 | else |
---|
| 7149 | echo "$as_me: failed program was:" >&5 |
---|
| 7150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7151 | |
---|
| 7152 | ac_header_preproc=no |
---|
| 7153 | fi |
---|
| 7154 | rm -f conftest.err conftest.$ac_ext |
---|
| 7155 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7156 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7157 | |
---|
| 7158 | # So? What about this header? |
---|
| 7159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7160 | yes:no: ) |
---|
| 7161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7165 | ac_header_preproc=yes |
---|
| 7166 | ;; |
---|
| 7167 | no:yes:* ) |
---|
| 7168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7180 | ( |
---|
| 7181 | cat <<\_ASBOX |
---|
| 7182 | ## ---------------------------------------------- ## |
---|
| 7183 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7184 | ## ---------------------------------------------- ## |
---|
| 7185 | _ASBOX |
---|
| 7186 | ) | |
---|
| 7187 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7188 | ;; |
---|
| 7189 | esac |
---|
| 7190 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7194 | else |
---|
| 7195 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7196 | fi |
---|
| 7197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7199 | |
---|
| 7200 | fi |
---|
| 7201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7202 | cat >>confdefs.h <<_ACEOF |
---|
| 7203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7204 | _ACEOF |
---|
| 7205 | pthreadHeader="yes" |
---|
| 7206 | else |
---|
| 7207 | pthreadHeader="no" |
---|
| 7208 | fi |
---|
| 7209 | |
---|
| 7210 | done |
---|
| 7211 | |
---|
| 7212 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
| 7213 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 7214 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 7215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7216 | else |
---|
| 7217 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7218 | LIBS="-lpthread $LIBS" |
---|
| 7219 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7220 | /* confdefs.h. */ |
---|
| 7221 | _ACEOF |
---|
| 7222 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7223 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7224 | /* end confdefs.h. */ |
---|
| 7225 | |
---|
| 7226 | |
---|
| 7227 | int |
---|
| 7228 | main () |
---|
| 7229 | { |
---|
| 7230 | main (); |
---|
| 7231 | ; |
---|
| 7232 | return 0; |
---|
| 7233 | } |
---|
| 7234 | _ACEOF |
---|
| 7235 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7237 | (eval $ac_link) 2>conftest.er1 |
---|
| 7238 | ac_status=$? |
---|
| 7239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7240 | rm -f conftest.er1 |
---|
| 7241 | cat conftest.err >&5 |
---|
| 7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7243 | (exit $ac_status); } && |
---|
| 7244 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7245 | || test ! -s conftest.err' |
---|
| 7246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7247 | (eval $ac_try) 2>&5 |
---|
| 7248 | ac_status=$? |
---|
| 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7250 | (exit $ac_status); }; } && |
---|
| 7251 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7253 | (eval $ac_try) 2>&5 |
---|
| 7254 | ac_status=$? |
---|
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7256 | (exit $ac_status); }; }; then |
---|
| 7257 | ac_cv_lib_pthread_main=yes |
---|
| 7258 | else |
---|
| 7259 | echo "$as_me: failed program was:" >&5 |
---|
| 7260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7261 | |
---|
| 7262 | ac_cv_lib_pthread_main=no |
---|
| 7263 | fi |
---|
| 7264 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7265 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7266 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7267 | fi |
---|
| 7268 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 7269 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 7270 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 7271 | FOUND_pthread=yes |
---|
| 7272 | fi |
---|
| 7273 | |
---|
| 7274 | if test x$FOUND_pthread = xyes ; then |
---|
| 7275 | LIBS="$LIBS -lpthread" |
---|
| 7276 | fi |
---|
| 7277 | fi |
---|
| 7278 | fi |
---|
| 7279 | |
---|
| 7280 | |
---|
[1956] | 7281 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 7282 | |
---|
| 7283 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 7284 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 7285 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7287 | else |
---|
| 7288 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7289 | LIBS="-lm $LIBS" |
---|
| 7290 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7291 | /* confdefs.h. */ |
---|
| 7292 | _ACEOF |
---|
| 7293 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7295 | /* end confdefs.h. */ |
---|
| 7296 | |
---|
| 7297 | |
---|
| 7298 | int |
---|
| 7299 | main () |
---|
| 7300 | { |
---|
| 7301 | main (); |
---|
| 7302 | ; |
---|
| 7303 | return 0; |
---|
| 7304 | } |
---|
| 7305 | _ACEOF |
---|
| 7306 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7308 | (eval $ac_link) 2>conftest.er1 |
---|
| 7309 | ac_status=$? |
---|
| 7310 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7311 | rm -f conftest.er1 |
---|
| 7312 | cat conftest.err >&5 |
---|
| 7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7314 | (exit $ac_status); } && |
---|
| 7315 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7316 | || test ! -s conftest.err' |
---|
| 7317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7318 | (eval $ac_try) 2>&5 |
---|
| 7319 | ac_status=$? |
---|
| 7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7321 | (exit $ac_status); }; } && |
---|
| 7322 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7324 | (eval $ac_try) 2>&5 |
---|
| 7325 | ac_status=$? |
---|
| 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7327 | (exit $ac_status); }; }; then |
---|
| 7328 | ac_cv_lib_m_main=yes |
---|
| 7329 | else |
---|
| 7330 | echo "$as_me: failed program was:" >&5 |
---|
| 7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7332 | |
---|
| 7333 | ac_cv_lib_m_main=no |
---|
| 7334 | fi |
---|
| 7335 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7336 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7337 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7338 | fi |
---|
| 7339 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 7340 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 7341 | if test $ac_cv_lib_m_main = yes; then |
---|
| 7342 | cat >>confdefs.h <<_ACEOF |
---|
| 7343 | #define HAVE_LIBM 1 |
---|
| 7344 | _ACEOF |
---|
| 7345 | |
---|
| 7346 | LIBS="-lm $LIBS" |
---|
| 7347 | |
---|
| 7348 | fi |
---|
| 7349 | |
---|
| 7350 | |
---|
[2018] | 7351 | |
---|
[1956] | 7352 | # Checks for header files. |
---|
| 7353 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 7354 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 7355 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7357 | else |
---|
| 7358 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7359 | /* confdefs.h. */ |
---|
| 7360 | _ACEOF |
---|
| 7361 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7363 | /* end confdefs.h. */ |
---|
| 7364 | #include <stdlib.h> |
---|
| 7365 | #include <stdarg.h> |
---|
| 7366 | #include <string.h> |
---|
| 7367 | #include <float.h> |
---|
| 7368 | |
---|
| 7369 | int |
---|
| 7370 | main () |
---|
| 7371 | { |
---|
| 7372 | |
---|
| 7373 | ; |
---|
| 7374 | return 0; |
---|
| 7375 | } |
---|
| 7376 | _ACEOF |
---|
| 7377 | rm -f conftest.$ac_objext |
---|
| 7378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7379 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7380 | ac_status=$? |
---|
| 7381 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7382 | rm -f conftest.er1 |
---|
| 7383 | cat conftest.err >&5 |
---|
| 7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7385 | (exit $ac_status); } && |
---|
| 7386 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7387 | || test ! -s conftest.err' |
---|
| 7388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7389 | (eval $ac_try) 2>&5 |
---|
| 7390 | ac_status=$? |
---|
| 7391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7392 | (exit $ac_status); }; } && |
---|
| 7393 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7395 | (eval $ac_try) 2>&5 |
---|
| 7396 | ac_status=$? |
---|
| 7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7398 | (exit $ac_status); }; }; then |
---|
| 7399 | ac_cv_header_stdc=yes |
---|
| 7400 | else |
---|
| 7401 | echo "$as_me: failed program was:" >&5 |
---|
| 7402 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7403 | |
---|
| 7404 | ac_cv_header_stdc=no |
---|
| 7405 | fi |
---|
| 7406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7407 | |
---|
| 7408 | if test $ac_cv_header_stdc = yes; then |
---|
| 7409 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 7410 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7411 | /* confdefs.h. */ |
---|
| 7412 | _ACEOF |
---|
| 7413 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7414 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7415 | /* end confdefs.h. */ |
---|
| 7416 | #include <string.h> |
---|
| 7417 | |
---|
| 7418 | _ACEOF |
---|
| 7419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7420 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 7421 | : |
---|
| 7422 | else |
---|
| 7423 | ac_cv_header_stdc=no |
---|
| 7424 | fi |
---|
| 7425 | rm -f conftest* |
---|
| 7426 | |
---|
| 7427 | fi |
---|
| 7428 | |
---|
| 7429 | if test $ac_cv_header_stdc = yes; then |
---|
| 7430 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 7431 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7432 | /* confdefs.h. */ |
---|
| 7433 | _ACEOF |
---|
| 7434 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7435 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7436 | /* end confdefs.h. */ |
---|
| 7437 | #include <stdlib.h> |
---|
| 7438 | |
---|
| 7439 | _ACEOF |
---|
| 7440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7441 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 7442 | : |
---|
| 7443 | else |
---|
| 7444 | ac_cv_header_stdc=no |
---|
| 7445 | fi |
---|
| 7446 | rm -f conftest* |
---|
| 7447 | |
---|
| 7448 | fi |
---|
| 7449 | |
---|
| 7450 | if test $ac_cv_header_stdc = yes; then |
---|
| 7451 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 7452 | if test "$cross_compiling" = yes; then |
---|
| 7453 | : |
---|
| 7454 | else |
---|
| 7455 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7456 | /* confdefs.h. */ |
---|
| 7457 | _ACEOF |
---|
| 7458 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7459 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7460 | /* end confdefs.h. */ |
---|
| 7461 | #include <ctype.h> |
---|
| 7462 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 7463 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 7464 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 7465 | #else |
---|
| 7466 | # define ISLOWER(c) \ |
---|
| 7467 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 7468 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 7469 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 7470 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 7471 | #endif |
---|
| 7472 | |
---|
| 7473 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 7474 | int |
---|
| 7475 | main () |
---|
| 7476 | { |
---|
| 7477 | int i; |
---|
| 7478 | for (i = 0; i < 256; i++) |
---|
| 7479 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 7480 | || toupper (i) != TOUPPER (i)) |
---|
| 7481 | exit(2); |
---|
| 7482 | exit (0); |
---|
| 7483 | } |
---|
| 7484 | _ACEOF |
---|
| 7485 | rm -f conftest$ac_exeext |
---|
| 7486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7487 | (eval $ac_link) 2>&5 |
---|
| 7488 | ac_status=$? |
---|
| 7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7490 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7492 | (eval $ac_try) 2>&5 |
---|
| 7493 | ac_status=$? |
---|
| 7494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7495 | (exit $ac_status); }; }; then |
---|
| 7496 | : |
---|
| 7497 | else |
---|
| 7498 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7499 | echo "$as_me: failed program was:" >&5 |
---|
| 7500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7501 | |
---|
| 7502 | ( exit $ac_status ) |
---|
| 7503 | ac_cv_header_stdc=no |
---|
| 7504 | fi |
---|
| 7505 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7506 | fi |
---|
| 7507 | fi |
---|
| 7508 | fi |
---|
| 7509 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 7510 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 7511 | if test $ac_cv_header_stdc = yes; then |
---|
| 7512 | |
---|
| 7513 | cat >>confdefs.h <<\_ACEOF |
---|
| 7514 | #define STDC_HEADERS 1 |
---|
| 7515 | _ACEOF |
---|
| 7516 | |
---|
| 7517 | fi |
---|
| 7518 | |
---|
| 7519 | |
---|
| 7520 | |
---|
| 7521 | for ac_header in stdlib.h string.h |
---|
| 7522 | do |
---|
| 7523 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7529 | fi |
---|
| 7530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7531 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7532 | else |
---|
| 7533 | # Is the header compilable? |
---|
| 7534 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7535 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7536 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7537 | /* confdefs.h. */ |
---|
| 7538 | _ACEOF |
---|
| 7539 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7540 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7541 | /* end confdefs.h. */ |
---|
| 7542 | $ac_includes_default |
---|
| 7543 | #include <$ac_header> |
---|
| 7544 | _ACEOF |
---|
| 7545 | rm -f conftest.$ac_objext |
---|
| 7546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7547 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7548 | ac_status=$? |
---|
| 7549 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7550 | rm -f conftest.er1 |
---|
| 7551 | cat conftest.err >&5 |
---|
| 7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7553 | (exit $ac_status); } && |
---|
| 7554 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7555 | || test ! -s conftest.err' |
---|
| 7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7557 | (eval $ac_try) 2>&5 |
---|
| 7558 | ac_status=$? |
---|
| 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7560 | (exit $ac_status); }; } && |
---|
| 7561 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7563 | (eval $ac_try) 2>&5 |
---|
| 7564 | ac_status=$? |
---|
| 7565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7566 | (exit $ac_status); }; }; then |
---|
| 7567 | ac_header_compiler=yes |
---|
| 7568 | else |
---|
| 7569 | echo "$as_me: failed program was:" >&5 |
---|
| 7570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7571 | |
---|
| 7572 | ac_header_compiler=no |
---|
| 7573 | fi |
---|
| 7574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7576 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7577 | |
---|
| 7578 | # Is the header present? |
---|
| 7579 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7581 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7582 | /* confdefs.h. */ |
---|
| 7583 | _ACEOF |
---|
| 7584 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7585 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7586 | /* end confdefs.h. */ |
---|
| 7587 | #include <$ac_header> |
---|
| 7588 | _ACEOF |
---|
| 7589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7591 | ac_status=$? |
---|
| 7592 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7593 | rm -f conftest.er1 |
---|
| 7594 | cat conftest.err >&5 |
---|
| 7595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7596 | (exit $ac_status); } >/dev/null; then |
---|
| 7597 | if test -s conftest.err; then |
---|
| 7598 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7600 | else |
---|
| 7601 | ac_cpp_err= |
---|
| 7602 | fi |
---|
| 7603 | else |
---|
| 7604 | ac_cpp_err=yes |
---|
| 7605 | fi |
---|
| 7606 | if test -z "$ac_cpp_err"; then |
---|
| 7607 | ac_header_preproc=yes |
---|
| 7608 | else |
---|
| 7609 | echo "$as_me: failed program was:" >&5 |
---|
| 7610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7611 | |
---|
| 7612 | ac_header_preproc=no |
---|
| 7613 | fi |
---|
| 7614 | rm -f conftest.err conftest.$ac_ext |
---|
| 7615 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7616 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7617 | |
---|
| 7618 | # So? What about this header? |
---|
| 7619 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7620 | yes:no: ) |
---|
| 7621 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7622 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7624 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7625 | ac_header_preproc=yes |
---|
| 7626 | ;; |
---|
| 7627 | no:yes:* ) |
---|
| 7628 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7629 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7630 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7631 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7632 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7633 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7634 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7635 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7637 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7638 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7639 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7640 | ( |
---|
| 7641 | cat <<\_ASBOX |
---|
[3240] | 7642 | ## ---------------------------------------------- ## |
---|
| 7643 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7644 | ## ---------------------------------------------- ## |
---|
[1956] | 7645 | _ASBOX |
---|
| 7646 | ) | |
---|
| 7647 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7648 | ;; |
---|
| 7649 | esac |
---|
| 7650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7654 | else |
---|
| 7655 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7656 | fi |
---|
| 7657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7659 | |
---|
| 7660 | fi |
---|
| 7661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7662 | cat >>confdefs.h <<_ACEOF |
---|
| 7663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7664 | _ACEOF |
---|
| 7665 | |
---|
| 7666 | fi |
---|
| 7667 | |
---|
| 7668 | done |
---|
| 7669 | |
---|
| 7670 | |
---|
| 7671 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7672 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7673 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7674 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7676 | else |
---|
| 7677 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7678 | /* confdefs.h. */ |
---|
| 7679 | _ACEOF |
---|
| 7680 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7681 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7682 | /* end confdefs.h. */ |
---|
| 7683 | |
---|
| 7684 | #include <stdbool.h> |
---|
| 7685 | #ifndef bool |
---|
| 7686 | # error bool is not defined |
---|
| 7687 | #endif |
---|
| 7688 | #ifndef false |
---|
| 7689 | # error false is not defined |
---|
| 7690 | #endif |
---|
| 7691 | #if false |
---|
| 7692 | # error false is not 0 |
---|
| 7693 | #endif |
---|
| 7694 | #ifndef true |
---|
| 7695 | # error true is not defined |
---|
| 7696 | #endif |
---|
| 7697 | #if true != 1 |
---|
| 7698 | # error true is not 1 |
---|
| 7699 | #endif |
---|
| 7700 | #ifndef __bool_true_false_are_defined |
---|
| 7701 | # error __bool_true_false_are_defined is not defined |
---|
| 7702 | #endif |
---|
| 7703 | |
---|
| 7704 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7705 | |
---|
| 7706 | char a[true == 1 ? 1 : -1]; |
---|
| 7707 | char b[false == 0 ? 1 : -1]; |
---|
| 7708 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7709 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7710 | bool e = &s; |
---|
| 7711 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7712 | char g[true]; |
---|
| 7713 | char h[sizeof (_Bool)]; |
---|
| 7714 | char i[sizeof s.t]; |
---|
| 7715 | |
---|
| 7716 | int |
---|
| 7717 | main () |
---|
| 7718 | { |
---|
| 7719 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7720 | ; |
---|
| 7721 | return 0; |
---|
| 7722 | } |
---|
| 7723 | _ACEOF |
---|
| 7724 | rm -f conftest.$ac_objext |
---|
| 7725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7726 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7727 | ac_status=$? |
---|
| 7728 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7729 | rm -f conftest.er1 |
---|
| 7730 | cat conftest.err >&5 |
---|
| 7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7732 | (exit $ac_status); } && |
---|
| 7733 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7734 | || test ! -s conftest.err' |
---|
| 7735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7736 | (eval $ac_try) 2>&5 |
---|
| 7737 | ac_status=$? |
---|
| 7738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7739 | (exit $ac_status); }; } && |
---|
| 7740 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7742 | (eval $ac_try) 2>&5 |
---|
| 7743 | ac_status=$? |
---|
| 7744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7745 | (exit $ac_status); }; }; then |
---|
| 7746 | ac_cv_header_stdbool_h=yes |
---|
| 7747 | else |
---|
| 7748 | echo "$as_me: failed program was:" >&5 |
---|
| 7749 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7750 | |
---|
| 7751 | ac_cv_header_stdbool_h=no |
---|
| 7752 | fi |
---|
| 7753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7754 | fi |
---|
| 7755 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 7756 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 7757 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 7758 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 7759 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 7760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7761 | else |
---|
| 7762 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7763 | /* confdefs.h. */ |
---|
| 7764 | _ACEOF |
---|
| 7765 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7766 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7767 | /* end confdefs.h. */ |
---|
| 7768 | $ac_includes_default |
---|
| 7769 | int |
---|
| 7770 | main () |
---|
| 7771 | { |
---|
| 7772 | if ((_Bool *) 0) |
---|
| 7773 | return 0; |
---|
| 7774 | if (sizeof (_Bool)) |
---|
| 7775 | return 0; |
---|
| 7776 | ; |
---|
| 7777 | return 0; |
---|
| 7778 | } |
---|
| 7779 | _ACEOF |
---|
| 7780 | rm -f conftest.$ac_objext |
---|
| 7781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7782 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7783 | ac_status=$? |
---|
| 7784 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7785 | rm -f conftest.er1 |
---|
| 7786 | cat conftest.err >&5 |
---|
| 7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7788 | (exit $ac_status); } && |
---|
| 7789 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7790 | || test ! -s conftest.err' |
---|
| 7791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7792 | (eval $ac_try) 2>&5 |
---|
| 7793 | ac_status=$? |
---|
| 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7795 | (exit $ac_status); }; } && |
---|
| 7796 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7798 | (eval $ac_try) 2>&5 |
---|
| 7799 | ac_status=$? |
---|
| 7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7801 | (exit $ac_status); }; }; then |
---|
| 7802 | ac_cv_type__Bool=yes |
---|
| 7803 | else |
---|
| 7804 | echo "$as_me: failed program was:" >&5 |
---|
| 7805 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7806 | |
---|
| 7807 | ac_cv_type__Bool=no |
---|
| 7808 | fi |
---|
| 7809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7810 | fi |
---|
| 7811 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 7812 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 7813 | if test $ac_cv_type__Bool = yes; then |
---|
| 7814 | |
---|
| 7815 | cat >>confdefs.h <<_ACEOF |
---|
| 7816 | #define HAVE__BOOL 1 |
---|
| 7817 | _ACEOF |
---|
| 7818 | |
---|
| 7819 | |
---|
| 7820 | fi |
---|
| 7821 | |
---|
| 7822 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 7823 | |
---|
| 7824 | cat >>confdefs.h <<\_ACEOF |
---|
| 7825 | #define HAVE_STDBOOL_H 1 |
---|
| 7826 | _ACEOF |
---|
| 7827 | |
---|
| 7828 | fi |
---|
| 7829 | |
---|
| 7830 | |
---|
| 7831 | # Checks for library functions. |
---|
| 7832 | |
---|
| 7833 | for ac_header in stdlib.h |
---|
| 7834 | do |
---|
| 7835 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7841 | fi |
---|
| 7842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7843 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7844 | else |
---|
| 7845 | # Is the header compilable? |
---|
| 7846 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7847 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7848 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7849 | /* confdefs.h. */ |
---|
| 7850 | _ACEOF |
---|
| 7851 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7852 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7853 | /* end confdefs.h. */ |
---|
| 7854 | $ac_includes_default |
---|
| 7855 | #include <$ac_header> |
---|
| 7856 | _ACEOF |
---|
| 7857 | rm -f conftest.$ac_objext |
---|
| 7858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7859 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7860 | ac_status=$? |
---|
| 7861 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7862 | rm -f conftest.er1 |
---|
| 7863 | cat conftest.err >&5 |
---|
| 7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7865 | (exit $ac_status); } && |
---|
| 7866 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7867 | || test ! -s conftest.err' |
---|
| 7868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7869 | (eval $ac_try) 2>&5 |
---|
| 7870 | ac_status=$? |
---|
| 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7872 | (exit $ac_status); }; } && |
---|
| 7873 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7875 | (eval $ac_try) 2>&5 |
---|
| 7876 | ac_status=$? |
---|
| 7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7878 | (exit $ac_status); }; }; then |
---|
| 7879 | ac_header_compiler=yes |
---|
| 7880 | else |
---|
| 7881 | echo "$as_me: failed program was:" >&5 |
---|
| 7882 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7883 | |
---|
| 7884 | ac_header_compiler=no |
---|
| 7885 | fi |
---|
| 7886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7887 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7888 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7889 | |
---|
| 7890 | # Is the header present? |
---|
| 7891 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7892 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7893 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7894 | /* confdefs.h. */ |
---|
| 7895 | _ACEOF |
---|
| 7896 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7897 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7898 | /* end confdefs.h. */ |
---|
| 7899 | #include <$ac_header> |
---|
| 7900 | _ACEOF |
---|
| 7901 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7902 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7903 | ac_status=$? |
---|
| 7904 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7905 | rm -f conftest.er1 |
---|
| 7906 | cat conftest.err >&5 |
---|
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7908 | (exit $ac_status); } >/dev/null; then |
---|
| 7909 | if test -s conftest.err; then |
---|
| 7910 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7911 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7912 | else |
---|
| 7913 | ac_cpp_err= |
---|
| 7914 | fi |
---|
| 7915 | else |
---|
| 7916 | ac_cpp_err=yes |
---|
| 7917 | fi |
---|
| 7918 | if test -z "$ac_cpp_err"; then |
---|
| 7919 | ac_header_preproc=yes |
---|
| 7920 | else |
---|
| 7921 | echo "$as_me: failed program was:" >&5 |
---|
| 7922 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7923 | |
---|
| 7924 | ac_header_preproc=no |
---|
| 7925 | fi |
---|
| 7926 | rm -f conftest.err conftest.$ac_ext |
---|
| 7927 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7928 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7929 | |
---|
| 7930 | # So? What about this header? |
---|
| 7931 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7932 | yes:no: ) |
---|
| 7933 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7934 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7936 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7937 | ac_header_preproc=yes |
---|
| 7938 | ;; |
---|
| 7939 | no:yes:* ) |
---|
| 7940 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7941 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7942 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7943 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7944 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7945 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7946 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7947 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7948 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7949 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7950 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7951 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7952 | ( |
---|
| 7953 | cat <<\_ASBOX |
---|
[3240] | 7954 | ## ---------------------------------------------- ## |
---|
| 7955 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7956 | ## ---------------------------------------------- ## |
---|
[1956] | 7957 | _ASBOX |
---|
| 7958 | ) | |
---|
| 7959 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7960 | ;; |
---|
| 7961 | esac |
---|
| 7962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7966 | else |
---|
| 7967 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7968 | fi |
---|
| 7969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7970 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7971 | |
---|
| 7972 | fi |
---|
| 7973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7974 | cat >>confdefs.h <<_ACEOF |
---|
| 7975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7976 | _ACEOF |
---|
| 7977 | |
---|
| 7978 | fi |
---|
| 7979 | |
---|
| 7980 | done |
---|
| 7981 | |
---|
| 7982 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 7983 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 7984 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 7985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7986 | else |
---|
| 7987 | if test "$cross_compiling" = yes; then |
---|
| 7988 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7989 | else |
---|
| 7990 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7991 | /* confdefs.h. */ |
---|
| 7992 | _ACEOF |
---|
| 7993 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7994 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7995 | /* end confdefs.h. */ |
---|
| 7996 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 7997 | # include <stdlib.h> |
---|
| 7998 | #else |
---|
| 7999 | char *malloc (); |
---|
| 8000 | #endif |
---|
| 8001 | |
---|
| 8002 | int |
---|
| 8003 | main () |
---|
| 8004 | { |
---|
| 8005 | exit (malloc (0) ? 0 : 1); |
---|
| 8006 | ; |
---|
| 8007 | return 0; |
---|
| 8008 | } |
---|
| 8009 | _ACEOF |
---|
| 8010 | rm -f conftest$ac_exeext |
---|
| 8011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8012 | (eval $ac_link) 2>&5 |
---|
| 8013 | ac_status=$? |
---|
| 8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8017 | (eval $ac_try) 2>&5 |
---|
| 8018 | ac_status=$? |
---|
| 8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8020 | (exit $ac_status); }; }; then |
---|
| 8021 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 8022 | else |
---|
| 8023 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8024 | echo "$as_me: failed program was:" >&5 |
---|
| 8025 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8026 | |
---|
| 8027 | ( exit $ac_status ) |
---|
| 8028 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8029 | fi |
---|
| 8030 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8031 | fi |
---|
| 8032 | fi |
---|
| 8033 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8034 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8035 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8036 | |
---|
| 8037 | cat >>confdefs.h <<\_ACEOF |
---|
| 8038 | #define HAVE_MALLOC 1 |
---|
| 8039 | _ACEOF |
---|
| 8040 | |
---|
| 8041 | else |
---|
| 8042 | cat >>confdefs.h <<\_ACEOF |
---|
| 8043 | #define HAVE_MALLOC 0 |
---|
| 8044 | _ACEOF |
---|
| 8045 | |
---|
| 8046 | case $LIBOBJS in |
---|
| 8047 | "malloc.$ac_objext" | \ |
---|
| 8048 | *" malloc.$ac_objext" | \ |
---|
| 8049 | "malloc.$ac_objext "* | \ |
---|
| 8050 | *" malloc.$ac_objext "* ) ;; |
---|
| 8051 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8052 | esac |
---|
| 8053 | |
---|
| 8054 | |
---|
| 8055 | cat >>confdefs.h <<\_ACEOF |
---|
| 8056 | #define malloc rpl_malloc |
---|
| 8057 | _ACEOF |
---|
| 8058 | |
---|
| 8059 | fi |
---|
| 8060 | |
---|
| 8061 | |
---|
| 8062 | |
---|
| 8063 | |
---|
| 8064 | |
---|
| 8065 | for ac_func in bzero sqrt |
---|
| 8066 | do |
---|
| 8067 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8068 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8069 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8070 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8072 | else |
---|
| 8073 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8074 | /* confdefs.h. */ |
---|
| 8075 | _ACEOF |
---|
| 8076 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8078 | /* end confdefs.h. */ |
---|
| 8079 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8080 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8081 | #define $ac_func innocuous_$ac_func |
---|
| 8082 | |
---|
| 8083 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8084 | which can conflict with char $ac_func (); below. |
---|
| 8085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8086 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8087 | |
---|
| 8088 | #ifdef __STDC__ |
---|
| 8089 | # include <limits.h> |
---|
| 8090 | #else |
---|
| 8091 | # include <assert.h> |
---|
| 8092 | #endif |
---|
| 8093 | |
---|
| 8094 | #undef $ac_func |
---|
| 8095 | |
---|
| 8096 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8097 | #ifdef __cplusplus |
---|
| 8098 | extern "C" |
---|
| 8099 | { |
---|
| 8100 | #endif |
---|
| 8101 | /* We use char because int might match the return type of a gcc2 |
---|
| 8102 | builtin and then its argument prototype would still apply. */ |
---|
| 8103 | char $ac_func (); |
---|
| 8104 | /* The GNU C library defines this for functions which it implements |
---|
| 8105 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8106 | something starting with __ and the normal name is an alias. */ |
---|
| 8107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8108 | choke me |
---|
| 8109 | #else |
---|
| 8110 | char (*f) () = $ac_func; |
---|
| 8111 | #endif |
---|
| 8112 | #ifdef __cplusplus |
---|
| 8113 | } |
---|
| 8114 | #endif |
---|
| 8115 | |
---|
| 8116 | int |
---|
| 8117 | main () |
---|
| 8118 | { |
---|
| 8119 | return f != $ac_func; |
---|
| 8120 | ; |
---|
| 8121 | return 0; |
---|
| 8122 | } |
---|
| 8123 | _ACEOF |
---|
| 8124 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8126 | (eval $ac_link) 2>conftest.er1 |
---|
| 8127 | ac_status=$? |
---|
| 8128 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8129 | rm -f conftest.er1 |
---|
| 8130 | cat conftest.err >&5 |
---|
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8132 | (exit $ac_status); } && |
---|
| 8133 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8134 | || test ! -s conftest.err' |
---|
| 8135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8136 | (eval $ac_try) 2>&5 |
---|
| 8137 | ac_status=$? |
---|
| 8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8139 | (exit $ac_status); }; } && |
---|
| 8140 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8142 | (eval $ac_try) 2>&5 |
---|
| 8143 | ac_status=$? |
---|
| 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8145 | (exit $ac_status); }; }; then |
---|
| 8146 | eval "$as_ac_var=yes" |
---|
| 8147 | else |
---|
| 8148 | echo "$as_me: failed program was:" >&5 |
---|
| 8149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8150 | |
---|
| 8151 | eval "$as_ac_var=no" |
---|
| 8152 | fi |
---|
| 8153 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8154 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8155 | fi |
---|
| 8156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8157 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8158 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8159 | cat >>confdefs.h <<_ACEOF |
---|
| 8160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8161 | _ACEOF |
---|
| 8162 | |
---|
| 8163 | fi |
---|
| 8164 | done |
---|
| 8165 | |
---|
| 8166 | |
---|
[3499] | 8167 | ###################### |
---|
| 8168 | ## OUTPUT CONFIGURE ## |
---|
| 8169 | ###################### |
---|
| 8170 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile" |
---|
[1956] | 8171 | |
---|
[3377] | 8172 | |
---|
[1956] | 8173 | cat >confcache <<\_ACEOF |
---|
| 8174 | # This file is a shell script that caches the results of configure |
---|
| 8175 | # tests run on this system so they can be shared between configure |
---|
| 8176 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8177 | # It is not useful on other systems. If it contains results you don't |
---|
| 8178 | # want to keep, you may remove or edit it. |
---|
| 8179 | # |
---|
| 8180 | # config.status only pays attention to the cache file if you give it |
---|
| 8181 | # the --recheck option to rerun configure. |
---|
| 8182 | # |
---|
| 8183 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8184 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8185 | # following values. |
---|
| 8186 | |
---|
| 8187 | _ACEOF |
---|
| 8188 | |
---|
| 8189 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8190 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8191 | # So, don't put newlines in cache variables' values. |
---|
| 8192 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8193 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8194 | { |
---|
| 8195 | (set) 2>&1 | |
---|
| 8196 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8197 | *ac_space=\ *) |
---|
| 8198 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8199 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8200 | sed -n \ |
---|
| 8201 | "s/'/'\\\\''/g; |
---|
| 8202 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8203 | ;; |
---|
| 8204 | *) |
---|
| 8205 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8206 | sed -n \ |
---|
| 8207 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8208 | ;; |
---|
| 8209 | esac; |
---|
| 8210 | } | |
---|
| 8211 | sed ' |
---|
| 8212 | t clear |
---|
| 8213 | : clear |
---|
| 8214 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8215 | t end |
---|
| 8216 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8217 | : end' >>confcache |
---|
| 8218 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8219 | if test -w $cache_file; then |
---|
| 8220 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8221 | cat confcache >$cache_file |
---|
| 8222 | else |
---|
| 8223 | echo "not updating unwritable cache $cache_file" |
---|
| 8224 | fi |
---|
| 8225 | fi |
---|
| 8226 | rm -f confcache |
---|
| 8227 | |
---|
| 8228 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8229 | # Let make expand exec_prefix. |
---|
| 8230 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8231 | |
---|
| 8232 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8233 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8234 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8235 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8236 | if test "x$srcdir" = x.; then |
---|
| 8237 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 8238 | s/:*\$(srcdir):*/:/; |
---|
| 8239 | s/:*\${srcdir}:*/:/; |
---|
| 8240 | s/:*@srcdir@:*/:/; |
---|
| 8241 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 8242 | s/:*$//; |
---|
| 8243 | s/^[^=]*=[ ]*$//; |
---|
| 8244 | }' |
---|
| 8245 | fi |
---|
| 8246 | |
---|
| 8247 | DEFS=-DHAVE_CONFIG_H |
---|
| 8248 | |
---|
| 8249 | ac_libobjs= |
---|
| 8250 | ac_ltlibobjs= |
---|
| 8251 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 8252 | # 1. Remove the extension, and $U if already installed. |
---|
| 8253 | ac_i=`echo "$ac_i" | |
---|
| 8254 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 8255 | # 2. Add them. |
---|
| 8256 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 8257 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 8258 | done |
---|
| 8259 | LIBOBJS=$ac_libobjs |
---|
| 8260 | |
---|
| 8261 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 8262 | |
---|
| 8263 | |
---|
| 8264 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 8265 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 8266 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8267 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 8268 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8269 | { (exit 1); exit 1; }; } |
---|
| 8270 | fi |
---|
| 8271 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 8272 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8273 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8274 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8275 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8276 | { (exit 1); exit 1; }; } |
---|
| 8277 | fi |
---|
| 8278 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 8279 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8280 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8281 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8282 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8283 | { (exit 1); exit 1; }; } |
---|
| 8284 | fi |
---|
[3377] | 8285 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 8286 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8287 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8288 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8289 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8290 | { (exit 1); exit 1; }; } |
---|
| 8291 | fi |
---|
[3219] | 8292 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 8293 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8294 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8295 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8296 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8297 | { (exit 1); exit 1; }; } |
---|
| 8298 | fi |
---|
[2980] | 8299 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 8300 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8301 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8302 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8303 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8304 | { (exit 1); exit 1; }; } |
---|
| 8305 | fi |
---|
[3499] | 8306 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
| 8307 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8308 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8309 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8310 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8311 | { (exit 1); exit 1; }; } |
---|
| 8312 | fi |
---|
| 8313 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 8314 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8315 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8316 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8317 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8318 | { (exit 1); exit 1; }; } |
---|
| 8319 | fi |
---|
[1956] | 8320 | |
---|
| 8321 | : ${CONFIG_STATUS=./config.status} |
---|
| 8322 | ac_clean_files_save=$ac_clean_files |
---|
| 8323 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 8324 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 8325 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 8326 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 8327 | #! $SHELL |
---|
| 8328 | # Generated by $as_me. |
---|
| 8329 | # Run this file to recreate the current configuration. |
---|
| 8330 | # Compiler output produced by configure, useful for debugging |
---|
| 8331 | # configure, is in config.log if it exists. |
---|
| 8332 | |
---|
| 8333 | debug=false |
---|
| 8334 | ac_cs_recheck=false |
---|
| 8335 | ac_cs_silent=false |
---|
| 8336 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 8337 | _ACEOF |
---|
| 8338 | |
---|
| 8339 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8340 | ## --------------------- ## |
---|
| 8341 | ## M4sh Initialization. ## |
---|
| 8342 | ## --------------------- ## |
---|
| 8343 | |
---|
| 8344 | # Be Bourne compatible |
---|
| 8345 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 8346 | emulate sh |
---|
| 8347 | NULLCMD=: |
---|
| 8348 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 8349 | # is contrary to our usage. Disable this feature. |
---|
| 8350 | alias -g '${1+"$@"}'='"$@"' |
---|
| 8351 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 8352 | set -o posix |
---|
| 8353 | fi |
---|
| 8354 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 8355 | |
---|
| 8356 | # Support unset when possible. |
---|
| 8357 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 8358 | as_unset=unset |
---|
| 8359 | else |
---|
| 8360 | as_unset=false |
---|
| 8361 | fi |
---|
| 8362 | |
---|
| 8363 | |
---|
| 8364 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 8365 | $as_unset ENV MAIL MAILPATH |
---|
| 8366 | PS1='$ ' |
---|
| 8367 | PS2='> ' |
---|
| 8368 | PS4='+ ' |
---|
| 8369 | |
---|
| 8370 | # NLS nuisances. |
---|
| 8371 | for as_var in \ |
---|
| 8372 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 8373 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 8374 | LC_TELEPHONE LC_TIME |
---|
| 8375 | do |
---|
| 8376 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 8377 | eval $as_var=C; export $as_var |
---|
| 8378 | else |
---|
| 8379 | $as_unset $as_var |
---|
| 8380 | fi |
---|
| 8381 | done |
---|
| 8382 | |
---|
| 8383 | # Required to use basename. |
---|
| 8384 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8385 | as_expr=expr |
---|
| 8386 | else |
---|
| 8387 | as_expr=false |
---|
| 8388 | fi |
---|
| 8389 | |
---|
| 8390 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 8391 | as_basename=basename |
---|
| 8392 | else |
---|
| 8393 | as_basename=false |
---|
| 8394 | fi |
---|
| 8395 | |
---|
| 8396 | |
---|
| 8397 | # Name of the executable. |
---|
| 8398 | as_me=`$as_basename "$0" || |
---|
| 8399 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8400 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8401 | X"$0" : 'X\(/\)$' \| \ |
---|
| 8402 | . : '\(.\)' 2>/dev/null || |
---|
| 8403 | echo X/"$0" | |
---|
| 8404 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 8405 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 8406 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 8407 | s/.*/./; q'` |
---|
| 8408 | |
---|
| 8409 | |
---|
| 8410 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 8411 | # Avoid depending upon Character Ranges. |
---|
| 8412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8415 | as_cr_digits='0123456789' |
---|
| 8416 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8417 | |
---|
| 8418 | # The user is always right. |
---|
| 8419 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 8420 | echo "#! /bin/sh" >conf$$.sh |
---|
| 8421 | echo "exit 0" >>conf$$.sh |
---|
| 8422 | chmod +x conf$$.sh |
---|
| 8423 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 8424 | PATH_SEPARATOR=';' |
---|
| 8425 | else |
---|
| 8426 | PATH_SEPARATOR=: |
---|
| 8427 | fi |
---|
| 8428 | rm -f conf$$.sh |
---|
| 8429 | fi |
---|
| 8430 | |
---|
| 8431 | |
---|
| 8432 | as_lineno_1=$LINENO |
---|
| 8433 | as_lineno_2=$LINENO |
---|
| 8434 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8435 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8436 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 8437 | # Find who we are. Look in the path if we contain no path at all |
---|
| 8438 | # relative or not. |
---|
| 8439 | case $0 in |
---|
| 8440 | *[\\/]* ) as_myself=$0 ;; |
---|
| 8441 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8442 | for as_dir in $PATH |
---|
| 8443 | do |
---|
| 8444 | IFS=$as_save_IFS |
---|
| 8445 | test -z "$as_dir" && as_dir=. |
---|
| 8446 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 8447 | done |
---|
| 8448 | |
---|
| 8449 | ;; |
---|
| 8450 | esac |
---|
| 8451 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 8452 | # in which case we are not to be found in the path. |
---|
| 8453 | if test "x$as_myself" = x; then |
---|
| 8454 | as_myself=$0 |
---|
| 8455 | fi |
---|
| 8456 | if test ! -f "$as_myself"; then |
---|
| 8457 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 8458 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 8459 | { (exit 1); exit 1; }; } |
---|
| 8460 | fi |
---|
| 8461 | case $CONFIG_SHELL in |
---|
| 8462 | '') |
---|
| 8463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8464 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 8465 | do |
---|
| 8466 | IFS=$as_save_IFS |
---|
| 8467 | test -z "$as_dir" && as_dir=. |
---|
| 8468 | for as_base in sh bash ksh sh5; do |
---|
| 8469 | case $as_dir in |
---|
| 8470 | /*) |
---|
| 8471 | if ("$as_dir/$as_base" -c ' |
---|
| 8472 | as_lineno_1=$LINENO |
---|
| 8473 | as_lineno_2=$LINENO |
---|
| 8474 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8475 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8476 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 8477 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 8478 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 8479 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 8480 | export CONFIG_SHELL |
---|
| 8481 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 8482 | fi;; |
---|
| 8483 | esac |
---|
| 8484 | done |
---|
| 8485 | done |
---|
| 8486 | ;; |
---|
| 8487 | esac |
---|
| 8488 | |
---|
| 8489 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 8490 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 8491 | # line-number line before each line; the second 'sed' does the real |
---|
| 8492 | # work. The second script uses 'N' to pair each line-number line |
---|
| 8493 | # with the numbered line, and appends trailing '-' during |
---|
| 8494 | # substitution so that $LINENO is not a special case at line end. |
---|
| 8495 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 8496 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 8497 | sed '=' <$as_myself | |
---|
| 8498 | sed ' |
---|
| 8499 | N |
---|
| 8500 | s,$,-, |
---|
| 8501 | : loop |
---|
| 8502 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 8503 | t loop |
---|
| 8504 | s,-$,, |
---|
| 8505 | s,^['$as_cr_digits']*\n,, |
---|
| 8506 | ' >$as_me.lineno && |
---|
| 8507 | chmod +x $as_me.lineno || |
---|
| 8508 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 8509 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 8510 | { (exit 1); exit 1; }; } |
---|
| 8511 | |
---|
| 8512 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 8513 | # (the dirname of $[0] is not the place where we might find the |
---|
| 8514 | # original and so on. Autoconf is especially sensible to this). |
---|
| 8515 | . ./$as_me.lineno |
---|
| 8516 | # Exit status is that of the last command. |
---|
| 8517 | exit |
---|
| 8518 | } |
---|
| 8519 | |
---|
| 8520 | |
---|
| 8521 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 8522 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 8523 | ' ECHO_T=' ' ;; |
---|
| 8524 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 8525 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 8526 | esac |
---|
| 8527 | |
---|
| 8528 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8529 | as_expr=expr |
---|
| 8530 | else |
---|
| 8531 | as_expr=false |
---|
| 8532 | fi |
---|
| 8533 | |
---|
| 8534 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8535 | echo >conf$$.file |
---|
| 8536 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 8537 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 8538 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 8539 | if test -f conf$$.exe; then |
---|
| 8540 | # Don't use ln at all; we don't have any links |
---|
| 8541 | as_ln_s='cp -p' |
---|
| 8542 | else |
---|
| 8543 | as_ln_s='ln -s' |
---|
| 8544 | fi |
---|
| 8545 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 8546 | as_ln_s=ln |
---|
| 8547 | else |
---|
| 8548 | as_ln_s='cp -p' |
---|
| 8549 | fi |
---|
| 8550 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8551 | |
---|
| 8552 | if mkdir -p . 2>/dev/null; then |
---|
| 8553 | as_mkdir_p=: |
---|
| 8554 | else |
---|
| 8555 | test -d ./-p && rmdir ./-p |
---|
| 8556 | as_mkdir_p=false |
---|
| 8557 | fi |
---|
| 8558 | |
---|
| 8559 | as_executable_p="test -f" |
---|
| 8560 | |
---|
| 8561 | # Sed expression to map a string onto a valid CPP name. |
---|
| 8562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8563 | |
---|
| 8564 | # Sed expression to map a string onto a valid variable name. |
---|
| 8565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8566 | |
---|
| 8567 | |
---|
| 8568 | # IFS |
---|
| 8569 | # We need space, tab and new line, in precisely that order. |
---|
| 8570 | as_nl=' |
---|
| 8571 | ' |
---|
| 8572 | IFS=" $as_nl" |
---|
| 8573 | |
---|
| 8574 | # CDPATH. |
---|
| 8575 | $as_unset CDPATH |
---|
| 8576 | |
---|
| 8577 | exec 6>&1 |
---|
| 8578 | |
---|
| 8579 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 8580 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 8581 | # values after options handling. Logging --version etc. is OK. |
---|
| 8582 | exec 5>>config.log |
---|
| 8583 | { |
---|
| 8584 | echo |
---|
| 8585 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 8586 | ## Running $as_me. ## |
---|
| 8587 | _ASBOX |
---|
| 8588 | } >&5 |
---|
| 8589 | cat >&5 <<_CSEOF |
---|
| 8590 | |
---|
[3365] | 8591 | This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 8592 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 8593 | |
---|
| 8594 | CONFIG_FILES = $CONFIG_FILES |
---|
| 8595 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 8596 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 8597 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 8598 | $ $0 $@ |
---|
| 8599 | |
---|
| 8600 | _CSEOF |
---|
| 8601 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 8602 | echo >&5 |
---|
| 8603 | _ACEOF |
---|
| 8604 | |
---|
| 8605 | # Files that config.status was made for. |
---|
| 8606 | if test -n "$ac_config_files"; then |
---|
| 8607 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 8608 | fi |
---|
| 8609 | |
---|
| 8610 | if test -n "$ac_config_headers"; then |
---|
| 8611 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 8612 | fi |
---|
| 8613 | |
---|
| 8614 | if test -n "$ac_config_links"; then |
---|
| 8615 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 8616 | fi |
---|
| 8617 | |
---|
| 8618 | if test -n "$ac_config_commands"; then |
---|
| 8619 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 8620 | fi |
---|
| 8621 | |
---|
| 8622 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8623 | |
---|
| 8624 | ac_cs_usage="\ |
---|
| 8625 | \`$as_me' instantiates files from templates according to the |
---|
| 8626 | current configuration. |
---|
| 8627 | |
---|
| 8628 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 8629 | |
---|
| 8630 | -h, --help print this help, then exit |
---|
| 8631 | -V, --version print version number, then exit |
---|
| 8632 | -q, --quiet do not print progress messages |
---|
| 8633 | -d, --debug don't remove temporary files |
---|
| 8634 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8635 | --file=FILE[:TEMPLATE] |
---|
| 8636 | instantiate the configuration file FILE |
---|
| 8637 | --header=FILE[:TEMPLATE] |
---|
| 8638 | instantiate the configuration header FILE |
---|
| 8639 | |
---|
| 8640 | Configuration files: |
---|
| 8641 | $config_files |
---|
| 8642 | |
---|
| 8643 | Configuration headers: |
---|
| 8644 | $config_headers |
---|
| 8645 | |
---|
| 8646 | Configuration commands: |
---|
| 8647 | $config_commands |
---|
| 8648 | |
---|
| 8649 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 8650 | _ACEOF |
---|
| 8651 | |
---|
| 8652 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8653 | ac_cs_version="\\ |
---|
[3365] | 8654 | orxonox config.status 0.2.1-pre-alpha |
---|
[1956] | 8655 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 8656 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 8657 | |
---|
| 8658 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8659 | This config.status script is free software; the Free Software Foundation |
---|
| 8660 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8661 | srcdir=$srcdir |
---|
| 8662 | INSTALL="$INSTALL" |
---|
| 8663 | _ACEOF |
---|
| 8664 | |
---|
| 8665 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8666 | # If no file are specified by the user, then we need to provide default |
---|
| 8667 | # value. By we need to know if files were specified by the user. |
---|
| 8668 | ac_need_defaults=: |
---|
| 8669 | while test $# != 0 |
---|
| 8670 | do |
---|
| 8671 | case $1 in |
---|
| 8672 | --*=*) |
---|
| 8673 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 8674 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 8675 | ac_shift=: |
---|
| 8676 | ;; |
---|
| 8677 | -*) |
---|
| 8678 | ac_option=$1 |
---|
| 8679 | ac_optarg=$2 |
---|
| 8680 | ac_shift=shift |
---|
| 8681 | ;; |
---|
| 8682 | *) # This is not an option, so the user has probably given explicit |
---|
| 8683 | # arguments. |
---|
| 8684 | ac_option=$1 |
---|
| 8685 | ac_need_defaults=false;; |
---|
| 8686 | esac |
---|
| 8687 | |
---|
| 8688 | case $ac_option in |
---|
| 8689 | # Handling of the options. |
---|
| 8690 | _ACEOF |
---|
| 8691 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8692 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8693 | ac_cs_recheck=: ;; |
---|
| 8694 | --version | --vers* | -V ) |
---|
| 8695 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8696 | --he | --h) |
---|
| 8697 | # Conflict between --help and --header |
---|
| 8698 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8699 | Try \`$0 --help' for more information." >&5 |
---|
| 8700 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8701 | Try \`$0 --help' for more information." >&2;} |
---|
| 8702 | { (exit 1); exit 1; }; };; |
---|
| 8703 | --help | --hel | -h ) |
---|
| 8704 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8705 | --debug | --d* | -d ) |
---|
| 8706 | debug=: ;; |
---|
| 8707 | --file | --fil | --fi | --f ) |
---|
| 8708 | $ac_shift |
---|
| 8709 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8710 | ac_need_defaults=false;; |
---|
| 8711 | --header | --heade | --head | --hea ) |
---|
| 8712 | $ac_shift |
---|
| 8713 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8714 | ac_need_defaults=false;; |
---|
| 8715 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8716 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8717 | ac_cs_silent=: ;; |
---|
| 8718 | |
---|
| 8719 | # This is an error. |
---|
| 8720 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8721 | Try \`$0 --help' for more information." >&5 |
---|
| 8722 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8723 | Try \`$0 --help' for more information." >&2;} |
---|
| 8724 | { (exit 1); exit 1; }; } ;; |
---|
| 8725 | |
---|
| 8726 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8727 | |
---|
| 8728 | esac |
---|
| 8729 | shift |
---|
| 8730 | done |
---|
| 8731 | |
---|
| 8732 | ac_configure_extra_args= |
---|
| 8733 | |
---|
| 8734 | if $ac_cs_silent; then |
---|
| 8735 | exec 6>/dev/null |
---|
| 8736 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8737 | fi |
---|
| 8738 | |
---|
| 8739 | _ACEOF |
---|
| 8740 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8741 | if \$ac_cs_recheck; then |
---|
| 8742 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8743 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8744 | fi |
---|
| 8745 | |
---|
| 8746 | _ACEOF |
---|
| 8747 | |
---|
| 8748 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8749 | # |
---|
| 8750 | # INIT-COMMANDS section. |
---|
| 8751 | # |
---|
| 8752 | |
---|
| 8753 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8754 | |
---|
| 8755 | _ACEOF |
---|
| 8756 | |
---|
| 8757 | |
---|
| 8758 | |
---|
| 8759 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8760 | for ac_config_target in $ac_config_targets |
---|
| 8761 | do |
---|
| 8762 | case "$ac_config_target" in |
---|
| 8763 | # Handling of arguments. |
---|
| 8764 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 8765 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3499] | 8766 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 8767 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
| 8768 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
| 8769 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
| 8770 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
| 8771 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
[1956] | 8772 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 8773 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8774 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 8775 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 8776 | { (exit 1); exit 1; }; };; |
---|
| 8777 | esac |
---|
| 8778 | done |
---|
| 8779 | |
---|
| 8780 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8781 | # then the envvar interface is used. Set only those that are not. |
---|
| 8782 | # We use the long form for the default assignment because of an extremely |
---|
| 8783 | # bizarre bug on SunOS 4.1.3. |
---|
| 8784 | if $ac_need_defaults; then |
---|
| 8785 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8786 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8787 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 8788 | fi |
---|
| 8789 | |
---|
| 8790 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8791 | # simply because there is no reason to put it here, and in addition, |
---|
| 8792 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8793 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 8794 | $debug || |
---|
| 8795 | { |
---|
| 8796 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 8797 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 8798 | } |
---|
| 8799 | |
---|
| 8800 | # Create a (secure) tmp directory for tmp files. |
---|
| 8801 | |
---|
| 8802 | { |
---|
| 8803 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 8804 | test -n "$tmp" && test -d "$tmp" |
---|
| 8805 | } || |
---|
| 8806 | { |
---|
| 8807 | tmp=./confstat$$-$RANDOM |
---|
| 8808 | (umask 077 && mkdir $tmp) |
---|
| 8809 | } || |
---|
| 8810 | { |
---|
| 8811 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 8812 | { (exit 1); exit 1; } |
---|
| 8813 | } |
---|
| 8814 | |
---|
| 8815 | _ACEOF |
---|
| 8816 | |
---|
| 8817 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8818 | |
---|
| 8819 | # |
---|
| 8820 | # CONFIG_FILES section. |
---|
| 8821 | # |
---|
| 8822 | |
---|
| 8823 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 8824 | # This happens for instance when ./config.status config.h |
---|
| 8825 | if test -n "\$CONFIG_FILES"; then |
---|
| 8826 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 8827 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 8828 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 8829 | s,@SHELL@,$SHELL,;t t |
---|
| 8830 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 8831 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 8832 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 8833 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 8834 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 8835 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 8836 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 8837 | s,@prefix@,$prefix,;t t |
---|
| 8838 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 8839 | s,@bindir@,$bindir,;t t |
---|
| 8840 | s,@sbindir@,$sbindir,;t t |
---|
| 8841 | s,@libexecdir@,$libexecdir,;t t |
---|
| 8842 | s,@datadir@,$datadir,;t t |
---|
| 8843 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 8844 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 8845 | s,@localstatedir@,$localstatedir,;t t |
---|
| 8846 | s,@libdir@,$libdir,;t t |
---|
| 8847 | s,@includedir@,$includedir,;t t |
---|
| 8848 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 8849 | s,@infodir@,$infodir,;t t |
---|
| 8850 | s,@mandir@,$mandir,;t t |
---|
| 8851 | s,@build_alias@,$build_alias,;t t |
---|
| 8852 | s,@host_alias@,$host_alias,;t t |
---|
| 8853 | s,@target_alias@,$target_alias,;t t |
---|
| 8854 | s,@DEFS@,$DEFS,;t t |
---|
| 8855 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 8856 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 8857 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 8858 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 8859 | s,@build@,$build,;t t |
---|
| 8860 | s,@build_cpu@,$build_cpu,;t t |
---|
| 8861 | s,@build_vendor@,$build_vendor,;t t |
---|
| 8862 | s,@build_os@,$build_os,;t t |
---|
| 8863 | s,@host@,$host,;t t |
---|
| 8864 | s,@host_cpu@,$host_cpu,;t t |
---|
| 8865 | s,@host_vendor@,$host_vendor,;t t |
---|
| 8866 | s,@host_os@,$host_os,;t t |
---|
| 8867 | s,@target@,$target,;t t |
---|
| 8868 | s,@target_cpu@,$target_cpu,;t t |
---|
| 8869 | s,@target_vendor@,$target_vendor,;t t |
---|
| 8870 | s,@target_os@,$target_os,;t t |
---|
[1956] | 8871 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 8872 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 8873 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 8874 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 8875 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 8876 | s,@VERSION@,$VERSION,;t t |
---|
| 8877 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 8878 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 8879 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 8880 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 8881 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 8882 | s,@AMTAR@,$AMTAR,;t t |
---|
| 8883 | s,@install_sh@,$install_sh,;t t |
---|
| 8884 | s,@STRIP@,$STRIP,;t t |
---|
| 8885 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 8886 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 8887 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 8888 | s,@AWK@,$AWK,;t t |
---|
| 8889 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 8890 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 8891 | s,@CXX@,$CXX,;t t |
---|
| 8892 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 8893 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 8894 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 8895 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 8896 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 8897 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 8898 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 8899 | s,@am__include@,$am__include,;t t |
---|
| 8900 | s,@am__quote@,$am__quote,;t t |
---|
| 8901 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 8902 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 8903 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 8904 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 8905 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 8906 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 8907 | s,@CC@,$CC,;t t |
---|
| 8908 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 8909 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 8910 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 8911 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 8912 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 8913 | s,@CPP@,$CPP,;t t |
---|
| 8914 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 8915 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 8916 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 8917 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3219] | 8918 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 8919 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 8920 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[2989] | 8921 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 8922 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 8923 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 8924 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 8925 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3499] | 8926 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
| 8927 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
| 8928 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
| 8929 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
| 8930 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 8931 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 8932 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 8933 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 8934 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 8935 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 8936 | CEOF |
---|
| 8937 | |
---|
| 8938 | _ACEOF |
---|
| 8939 | |
---|
| 8940 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8941 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 8942 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 8943 | ac_max_sed_lines=48 |
---|
| 8944 | ac_sed_frag=1 # Number of current file. |
---|
| 8945 | ac_beg=1 # First line for current file. |
---|
| 8946 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 8947 | ac_more_lines=: |
---|
| 8948 | ac_sed_cmds= |
---|
| 8949 | while $ac_more_lines; do |
---|
| 8950 | if test $ac_beg -gt 1; then |
---|
| 8951 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8952 | else |
---|
| 8953 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8954 | fi |
---|
| 8955 | if test ! -s $tmp/subs.frag; then |
---|
| 8956 | ac_more_lines=false |
---|
| 8957 | else |
---|
| 8958 | # The purpose of the label and of the branching condition is to |
---|
| 8959 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 8960 | # is no need to browse any of the substitutions). |
---|
| 8961 | # These are the two extra sed commands mentioned above. |
---|
| 8962 | (echo ':t |
---|
| 8963 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 8964 | if test -z "$ac_sed_cmds"; then |
---|
| 8965 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8966 | else |
---|
| 8967 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8968 | fi |
---|
| 8969 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 8970 | ac_beg=$ac_end |
---|
| 8971 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 8972 | fi |
---|
| 8973 | done |
---|
| 8974 | if test -z "$ac_sed_cmds"; then |
---|
| 8975 | ac_sed_cmds=cat |
---|
| 8976 | fi |
---|
| 8977 | fi # test -n "$CONFIG_FILES" |
---|
| 8978 | |
---|
| 8979 | _ACEOF |
---|
| 8980 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8981 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 8982 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8983 | case $ac_file in |
---|
| 8984 | - | *:- | *:-:* ) # input from stdin |
---|
| 8985 | cat >$tmp/stdin |
---|
| 8986 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8987 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8988 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8989 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8990 | * ) ac_file_in=$ac_file.in ;; |
---|
| 8991 | esac |
---|
| 8992 | |
---|
| 8993 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 8994 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 8995 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8996 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8997 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8998 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 8999 | . : '\(.\)' 2>/dev/null || |
---|
| 9000 | echo X"$ac_file" | |
---|
| 9001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9002 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9003 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9004 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9005 | s/.*/./; q'` |
---|
| 9006 | { if $as_mkdir_p; then |
---|
| 9007 | mkdir -p "$ac_dir" |
---|
| 9008 | else |
---|
| 9009 | as_dir="$ac_dir" |
---|
| 9010 | as_dirs= |
---|
| 9011 | while test ! -d "$as_dir"; do |
---|
| 9012 | as_dirs="$as_dir $as_dirs" |
---|
| 9013 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9014 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9015 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9016 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9017 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9018 | . : '\(.\)' 2>/dev/null || |
---|
| 9019 | echo X"$as_dir" | |
---|
| 9020 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9021 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9022 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9023 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9024 | s/.*/./; q'` |
---|
| 9025 | done |
---|
| 9026 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9027 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9028 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9029 | { (exit 1); exit 1; }; }; } |
---|
| 9030 | |
---|
| 9031 | ac_builddir=. |
---|
| 9032 | |
---|
| 9033 | if test "$ac_dir" != .; then |
---|
| 9034 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9035 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9036 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9037 | else |
---|
| 9038 | ac_dir_suffix= ac_top_builddir= |
---|
| 9039 | fi |
---|
| 9040 | |
---|
| 9041 | case $srcdir in |
---|
| 9042 | .) # No --srcdir option. We are building in place. |
---|
| 9043 | ac_srcdir=. |
---|
| 9044 | if test -z "$ac_top_builddir"; then |
---|
| 9045 | ac_top_srcdir=. |
---|
| 9046 | else |
---|
| 9047 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9048 | fi ;; |
---|
| 9049 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9050 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9051 | ac_top_srcdir=$srcdir ;; |
---|
| 9052 | *) # Relative path. |
---|
| 9053 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9054 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9055 | esac |
---|
| 9056 | |
---|
| 9057 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9058 | # the directories may not exist. |
---|
| 9059 | case `pwd` in |
---|
| 9060 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9061 | *) |
---|
| 9062 | case "$ac_dir" in |
---|
| 9063 | .) ac_abs_builddir=`pwd`;; |
---|
| 9064 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9065 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9066 | esac;; |
---|
| 9067 | esac |
---|
| 9068 | case $ac_abs_builddir in |
---|
| 9069 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9070 | *) |
---|
| 9071 | case ${ac_top_builddir}. in |
---|
| 9072 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9073 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9074 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9075 | esac;; |
---|
| 9076 | esac |
---|
| 9077 | case $ac_abs_builddir in |
---|
| 9078 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9079 | *) |
---|
| 9080 | case $ac_srcdir in |
---|
| 9081 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9082 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9083 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9084 | esac;; |
---|
| 9085 | esac |
---|
| 9086 | case $ac_abs_builddir in |
---|
| 9087 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9088 | *) |
---|
| 9089 | case $ac_top_srcdir in |
---|
| 9090 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9091 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9092 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9093 | esac;; |
---|
| 9094 | esac |
---|
| 9095 | |
---|
| 9096 | |
---|
| 9097 | case $INSTALL in |
---|
| 9098 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9099 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9100 | esac |
---|
| 9101 | |
---|
| 9102 | if test x"$ac_file" != x-; then |
---|
| 9103 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9104 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9105 | rm -f "$ac_file" |
---|
| 9106 | fi |
---|
| 9107 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9108 | # use $as_me), people would be surprised to read: |
---|
| 9109 | # /* config.h. Generated by config.status. */ |
---|
| 9110 | if test x"$ac_file" = x-; then |
---|
| 9111 | configure_input= |
---|
| 9112 | else |
---|
| 9113 | configure_input="$ac_file. " |
---|
| 9114 | fi |
---|
| 9115 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9116 | sed 's,.*/,,'` by configure." |
---|
| 9117 | |
---|
| 9118 | # First look for the input files in the build tree, otherwise in the |
---|
| 9119 | # src tree. |
---|
| 9120 | ac_file_inputs=`IFS=: |
---|
| 9121 | for f in $ac_file_in; do |
---|
| 9122 | case $f in |
---|
| 9123 | -) echo $tmp/stdin ;; |
---|
| 9124 | [\\/$]*) |
---|
| 9125 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9126 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9127 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9128 | { (exit 1); exit 1; }; } |
---|
| 9129 | echo "$f";; |
---|
| 9130 | *) # Relative |
---|
| 9131 | if test -f "$f"; then |
---|
| 9132 | # Build tree |
---|
| 9133 | echo "$f" |
---|
| 9134 | elif test -f "$srcdir/$f"; then |
---|
| 9135 | # Source tree |
---|
| 9136 | echo "$srcdir/$f" |
---|
| 9137 | else |
---|
| 9138 | # /dev/null tree |
---|
| 9139 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9140 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9141 | { (exit 1); exit 1; }; } |
---|
| 9142 | fi;; |
---|
| 9143 | esac |
---|
| 9144 | done` || { (exit 1); exit 1; } |
---|
| 9145 | _ACEOF |
---|
| 9146 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9147 | sed "$ac_vpsub |
---|
| 9148 | $extrasub |
---|
| 9149 | _ACEOF |
---|
| 9150 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9151 | :t |
---|
| 9152 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9153 | s,@configure_input@,$configure_input,;t t |
---|
| 9154 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9155 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9156 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9157 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9158 | s,@builddir@,$ac_builddir,;t t |
---|
| 9159 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9160 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9161 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9162 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9163 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9164 | rm -f $tmp/stdin |
---|
| 9165 | if test x"$ac_file" != x-; then |
---|
| 9166 | mv $tmp/out $ac_file |
---|
| 9167 | else |
---|
| 9168 | cat $tmp/out |
---|
| 9169 | rm -f $tmp/out |
---|
| 9170 | fi |
---|
| 9171 | |
---|
| 9172 | done |
---|
| 9173 | _ACEOF |
---|
| 9174 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9175 | |
---|
| 9176 | # |
---|
| 9177 | # CONFIG_HEADER section. |
---|
| 9178 | # |
---|
| 9179 | |
---|
| 9180 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9181 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9182 | # |
---|
| 9183 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9184 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9185 | ac_dB='[ ].*$,\1#\2' |
---|
| 9186 | ac_dC=' ' |
---|
| 9187 | ac_dD=',;t' |
---|
| 9188 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9189 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9190 | ac_uB='$,\1#\2define\3' |
---|
| 9191 | ac_uC=' ' |
---|
| 9192 | ac_uD=',;t' |
---|
| 9193 | |
---|
| 9194 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9195 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9196 | case $ac_file in |
---|
| 9197 | - | *:- | *:-:* ) # input from stdin |
---|
| 9198 | cat >$tmp/stdin |
---|
| 9199 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9200 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9201 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9202 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9203 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9204 | esac |
---|
| 9205 | |
---|
| 9206 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9207 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9208 | |
---|
| 9209 | # First look for the input files in the build tree, otherwise in the |
---|
| 9210 | # src tree. |
---|
| 9211 | ac_file_inputs=`IFS=: |
---|
| 9212 | for f in $ac_file_in; do |
---|
| 9213 | case $f in |
---|
| 9214 | -) echo $tmp/stdin ;; |
---|
| 9215 | [\\/$]*) |
---|
| 9216 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9217 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9218 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9219 | { (exit 1); exit 1; }; } |
---|
| 9220 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9221 | echo "$f";; |
---|
| 9222 | *) # Relative |
---|
| 9223 | if test -f "$f"; then |
---|
| 9224 | # Build tree |
---|
| 9225 | echo "$f" |
---|
| 9226 | elif test -f "$srcdir/$f"; then |
---|
| 9227 | # Source tree |
---|
| 9228 | echo "$srcdir/$f" |
---|
| 9229 | else |
---|
| 9230 | # /dev/null tree |
---|
| 9231 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9232 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9233 | { (exit 1); exit 1; }; } |
---|
| 9234 | fi;; |
---|
| 9235 | esac |
---|
| 9236 | done` || { (exit 1); exit 1; } |
---|
| 9237 | # Remove the trailing spaces. |
---|
| 9238 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 9239 | |
---|
| 9240 | _ACEOF |
---|
| 9241 | |
---|
| 9242 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 9243 | # `conftest.undefs', that substitutes the proper values into |
---|
| 9244 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 9245 | # templates, and the second `#undef' templates. |
---|
| 9246 | # And first: Protect against being on the right side of a sed subst in |
---|
| 9247 | # config.status. Protect against being in an unquoted here document |
---|
| 9248 | # in config.status. |
---|
| 9249 | rm -f conftest.defines conftest.undefs |
---|
| 9250 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 9251 | # Putting comments in sed scripts is not portable. |
---|
| 9252 | # |
---|
| 9253 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 9254 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 9255 | # See the Autoconf documentation for `clear'. |
---|
| 9256 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 9257 | s/[\\&,]/\\&/g |
---|
| 9258 | s,[\\$`],\\&,g |
---|
| 9259 | t clear |
---|
| 9260 | : clear |
---|
| 9261 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 9262 | t end |
---|
| 9263 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 9264 | : end |
---|
| 9265 | _ACEOF |
---|
| 9266 | # If some macros were called several times there might be several times |
---|
| 9267 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 9268 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 9269 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 9270 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 9271 | rm -f confdef2sed.sed |
---|
| 9272 | |
---|
| 9273 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 9274 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 9275 | # on some systems where configure will not decide to define it. |
---|
| 9276 | cat >>conftest.undefs <<\_ACEOF |
---|
| 9277 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 9278 | _ACEOF |
---|
| 9279 | |
---|
| 9280 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 9281 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9282 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 9283 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 9284 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 9285 | echo ' :' >>$CONFIG_STATUS |
---|
| 9286 | rm -f conftest.tail |
---|
| 9287 | while grep . conftest.defines >/dev/null |
---|
| 9288 | do |
---|
| 9289 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 9290 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9291 | # Speed up: don't consider the non `#define' lines. |
---|
| 9292 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 9293 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9294 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9295 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9296 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 9297 | echo 'CEOF |
---|
| 9298 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 9299 | rm -f $tmp/in |
---|
| 9300 | mv $tmp/out $tmp/in |
---|
| 9301 | ' >>$CONFIG_STATUS |
---|
| 9302 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 9303 | rm -f conftest.defines |
---|
| 9304 | mv conftest.tail conftest.defines |
---|
| 9305 | done |
---|
| 9306 | rm -f conftest.defines |
---|
| 9307 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 9308 | echo >>$CONFIG_STATUS |
---|
| 9309 | |
---|
| 9310 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 9311 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9312 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 9313 | rm -f conftest.tail |
---|
| 9314 | while grep . conftest.undefs >/dev/null |
---|
| 9315 | do |
---|
| 9316 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 9317 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9318 | # Speed up: don't consider the non `#undef' |
---|
| 9319 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 9320 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9321 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9322 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9323 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 9324 | echo 'CEOF |
---|
| 9325 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 9326 | rm -f $tmp/in |
---|
| 9327 | mv $tmp/out $tmp/in |
---|
| 9328 | ' >>$CONFIG_STATUS |
---|
| 9329 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 9330 | rm -f conftest.undefs |
---|
| 9331 | mv conftest.tail conftest.undefs |
---|
| 9332 | done |
---|
| 9333 | rm -f conftest.undefs |
---|
| 9334 | |
---|
| 9335 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9336 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9337 | # use $as_me), people would be surprised to read: |
---|
| 9338 | # /* config.h. Generated by config.status. */ |
---|
| 9339 | if test x"$ac_file" = x-; then |
---|
| 9340 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 9341 | else |
---|
| 9342 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 9343 | fi |
---|
| 9344 | cat $tmp/in >>$tmp/config.h |
---|
| 9345 | rm -f $tmp/in |
---|
| 9346 | if test x"$ac_file" != x-; then |
---|
| 9347 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 9348 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 9349 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 9350 | else |
---|
| 9351 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9352 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9353 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9354 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9355 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9356 | . : '\(.\)' 2>/dev/null || |
---|
| 9357 | echo X"$ac_file" | |
---|
| 9358 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9359 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9360 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9361 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9362 | s/.*/./; q'` |
---|
| 9363 | { if $as_mkdir_p; then |
---|
| 9364 | mkdir -p "$ac_dir" |
---|
| 9365 | else |
---|
| 9366 | as_dir="$ac_dir" |
---|
| 9367 | as_dirs= |
---|
| 9368 | while test ! -d "$as_dir"; do |
---|
| 9369 | as_dirs="$as_dir $as_dirs" |
---|
| 9370 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9371 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9372 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9373 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9374 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9375 | . : '\(.\)' 2>/dev/null || |
---|
| 9376 | echo X"$as_dir" | |
---|
| 9377 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9378 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9379 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9380 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9381 | s/.*/./; q'` |
---|
| 9382 | done |
---|
| 9383 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9384 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9385 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9386 | { (exit 1); exit 1; }; }; } |
---|
| 9387 | |
---|
| 9388 | rm -f $ac_file |
---|
| 9389 | mv $tmp/config.h $ac_file |
---|
| 9390 | fi |
---|
| 9391 | else |
---|
| 9392 | cat $tmp/config.h |
---|
| 9393 | rm -f $tmp/config.h |
---|
| 9394 | fi |
---|
| 9395 | # Compute $ac_file's index in $config_headers. |
---|
| 9396 | _am_stamp_count=1 |
---|
| 9397 | for _am_header in $config_headers :; do |
---|
| 9398 | case $_am_header in |
---|
| 9399 | $ac_file | $ac_file:* ) |
---|
| 9400 | break ;; |
---|
| 9401 | * ) |
---|
| 9402 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 9403 | esac |
---|
| 9404 | done |
---|
| 9405 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 9406 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9407 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 9408 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 9409 | X$ac_file : 'X\(/\)' \| \ |
---|
| 9410 | . : '\(.\)' 2>/dev/null || |
---|
| 9411 | echo X$ac_file | |
---|
| 9412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9413 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9414 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9415 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9416 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 9417 | done |
---|
| 9418 | _ACEOF |
---|
| 9419 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9420 | |
---|
| 9421 | # |
---|
| 9422 | # CONFIG_COMMANDS section. |
---|
| 9423 | # |
---|
| 9424 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 9425 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 9426 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9427 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 9428 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9429 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 9430 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 9431 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 9432 | . : '\(.\)' 2>/dev/null || |
---|
| 9433 | echo X"$ac_dest" | |
---|
| 9434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9435 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9436 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9437 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9438 | s/.*/./; q'` |
---|
| 9439 | { if $as_mkdir_p; then |
---|
| 9440 | mkdir -p "$ac_dir" |
---|
| 9441 | else |
---|
| 9442 | as_dir="$ac_dir" |
---|
| 9443 | as_dirs= |
---|
| 9444 | while test ! -d "$as_dir"; do |
---|
| 9445 | as_dirs="$as_dir $as_dirs" |
---|
| 9446 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9447 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9448 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9449 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9450 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9451 | . : '\(.\)' 2>/dev/null || |
---|
| 9452 | echo X"$as_dir" | |
---|
| 9453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9454 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9455 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9456 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9457 | s/.*/./; q'` |
---|
| 9458 | done |
---|
| 9459 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9460 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9461 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9462 | { (exit 1); exit 1; }; }; } |
---|
| 9463 | |
---|
| 9464 | ac_builddir=. |
---|
| 9465 | |
---|
| 9466 | if test "$ac_dir" != .; then |
---|
| 9467 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9468 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9469 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9470 | else |
---|
| 9471 | ac_dir_suffix= ac_top_builddir= |
---|
| 9472 | fi |
---|
| 9473 | |
---|
| 9474 | case $srcdir in |
---|
| 9475 | .) # No --srcdir option. We are building in place. |
---|
| 9476 | ac_srcdir=. |
---|
| 9477 | if test -z "$ac_top_builddir"; then |
---|
| 9478 | ac_top_srcdir=. |
---|
| 9479 | else |
---|
| 9480 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9481 | fi ;; |
---|
| 9482 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9483 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9484 | ac_top_srcdir=$srcdir ;; |
---|
| 9485 | *) # Relative path. |
---|
| 9486 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9487 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9488 | esac |
---|
| 9489 | |
---|
| 9490 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9491 | # the directories may not exist. |
---|
| 9492 | case `pwd` in |
---|
| 9493 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9494 | *) |
---|
| 9495 | case "$ac_dir" in |
---|
| 9496 | .) ac_abs_builddir=`pwd`;; |
---|
| 9497 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9498 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9499 | esac;; |
---|
| 9500 | esac |
---|
| 9501 | case $ac_abs_builddir in |
---|
| 9502 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9503 | *) |
---|
| 9504 | case ${ac_top_builddir}. in |
---|
| 9505 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9506 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9507 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9508 | esac;; |
---|
| 9509 | esac |
---|
| 9510 | case $ac_abs_builddir in |
---|
| 9511 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9512 | *) |
---|
| 9513 | case $ac_srcdir in |
---|
| 9514 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9515 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9516 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9517 | esac;; |
---|
| 9518 | esac |
---|
| 9519 | case $ac_abs_builddir in |
---|
| 9520 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9521 | *) |
---|
| 9522 | case $ac_top_srcdir in |
---|
| 9523 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9524 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9525 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9526 | esac;; |
---|
| 9527 | esac |
---|
| 9528 | |
---|
| 9529 | |
---|
| 9530 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 9531 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 9532 | case $ac_dest in |
---|
| 9533 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 9534 | # Strip MF so we end up with the name of the file. |
---|
| 9535 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 9536 | # Check whether this is an Automake generated Makefile or not. |
---|
| 9537 | # We used to match only the files named `Makefile.in', but |
---|
| 9538 | # some people rename them; so instead we look at the file content. |
---|
| 9539 | # Grep'ing the first line is not enough: some people post-process |
---|
| 9540 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 9541 | # So let's grep whole file. |
---|
| 9542 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 9543 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 9544 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9545 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 9546 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 9547 | X"$mf" : 'X\(/\)' \| \ |
---|
| 9548 | . : '\(.\)' 2>/dev/null || |
---|
| 9549 | echo X"$mf" | |
---|
| 9550 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9551 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9552 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9553 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9554 | s/.*/./; q'` |
---|
| 9555 | else |
---|
| 9556 | continue |
---|
| 9557 | fi |
---|
| 9558 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 9559 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 9560 | # running `make'. |
---|
[3530] | 9561 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
[1956] | 9562 | test -z "$DEPDIR" && continue |
---|
| 9563 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[3530] | 9564 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
[1956] | 9565 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 9566 | # We invoke sed twice because it is the simplest approach to |
---|
| 9567 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[3530] | 9568 | for file in `sed -n -e ' |
---|
[1956] | 9569 | /^DEP_FILES = .*\\\\$/ { |
---|
| 9570 | s/^DEP_FILES = // |
---|
| 9571 | :loop |
---|
| 9572 | s/\\\\$// |
---|
| 9573 | p |
---|
| 9574 | n |
---|
| 9575 | /\\\\$/ b loop |
---|
| 9576 | p |
---|
| 9577 | } |
---|
| 9578 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 9579 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 9580 | # Make sure the directory exists. |
---|
| 9581 | test -f "$dirpart/$file" && continue |
---|
| 9582 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 9583 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9584 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 9585 | X"$file" : 'X\(//\)$' \| \ |
---|
| 9586 | X"$file" : 'X\(/\)' \| \ |
---|
| 9587 | . : '\(.\)' 2>/dev/null || |
---|
| 9588 | echo X"$file" | |
---|
| 9589 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9590 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9591 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9592 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9593 | s/.*/./; q'` |
---|
| 9594 | { if $as_mkdir_p; then |
---|
| 9595 | mkdir -p $dirpart/$fdir |
---|
| 9596 | else |
---|
| 9597 | as_dir=$dirpart/$fdir |
---|
| 9598 | as_dirs= |
---|
| 9599 | while test ! -d "$as_dir"; do |
---|
| 9600 | as_dirs="$as_dir $as_dirs" |
---|
| 9601 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9602 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9603 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9604 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9605 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9606 | . : '\(.\)' 2>/dev/null || |
---|
| 9607 | echo X"$as_dir" | |
---|
| 9608 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9609 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9610 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9611 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9612 | s/.*/./; q'` |
---|
| 9613 | done |
---|
| 9614 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9615 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 9616 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 9617 | { (exit 1); exit 1; }; }; } |
---|
| 9618 | |
---|
| 9619 | # echo "creating $dirpart/$file" |
---|
| 9620 | echo '# dummy' > "$dirpart/$file" |
---|
| 9621 | done |
---|
| 9622 | done |
---|
| 9623 | ;; |
---|
| 9624 | esac |
---|
| 9625 | done |
---|
| 9626 | _ACEOF |
---|
| 9627 | |
---|
| 9628 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9629 | |
---|
| 9630 | { (exit 0); exit 0; } |
---|
| 9631 | _ACEOF |
---|
| 9632 | chmod +x $CONFIG_STATUS |
---|
| 9633 | ac_clean_files=$ac_clean_files_save |
---|
| 9634 | |
---|
| 9635 | |
---|
| 9636 | # configure is writing to config.log, and then calls config.status. |
---|
| 9637 | # config.status does its own redirection, appending to config.log. |
---|
| 9638 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 9639 | # by configure, so config.status won't be able to write to it; its |
---|
| 9640 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 9641 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 9642 | # appended to by config.status. When coming back to configure, we |
---|
| 9643 | # need to make the FD available again. |
---|
| 9644 | if test "$no_create" != yes; then |
---|
| 9645 | ac_cs_success=: |
---|
| 9646 | ac_config_status_args= |
---|
| 9647 | test "$silent" = yes && |
---|
| 9648 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 9649 | exec 5>/dev/null |
---|
| 9650 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 9651 | exec 5>>config.log |
---|
| 9652 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 9653 | # would make configure fail if this is the last instruction. |
---|
| 9654 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 9655 | fi |
---|
| 9656 | |
---|