[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3569] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.2-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' |
---|
[3569] | 272 | PACKAGE_VERSION='0.2.2-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.2-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 | |
---|
[3789] | 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 DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF 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 |
---|
[3569] | 791 | \`configure' configures orxonox 0.2.2-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 |
---|
[3569] | 858 | short | recursive ) echo "Configuration of orxonox 0.2.2-pre-alpha:";; |
---|
[1956] | 859 | esac |
---|
| 860 | cat <<\_ACEOF |
---|
| 861 | |
---|
| 862 | Optional Features: |
---|
| 863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 865 | --disable-dependency-tracking speeds up one-time build |
---|
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[3205] | 867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
| 868 | game. |
---|
[3592] | 869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
| 870 | differently on the many modules of orxonox. |
---|
[3424] | 871 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[3788] | 872 | --enable-profile builds orxonox with profiling support |
---|
[3863] | 873 | --enable-efence builds orxonox with efence support |
---|
[3558] | 874 | --enable-documentation also builds the sDocumentation while make from |
---|
| 875 | srcdir |
---|
[1956] | 876 | |
---|
[3173] | 877 | Optional Packages: |
---|
| 878 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 879 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 880 | --without-gtk Prevents GTK from being loaded |
---|
[3423] | 881 | --without-gthread Prevents gThread from being loaded |
---|
| 882 | --without-pthread Prevents pthread from being loaded |
---|
| 883 | --without-curl Prevents libcURL from being loaded |
---|
[3173] | 884 | |
---|
[1956] | 885 | Some influential environment variables: |
---|
| 886 | CXX C++ compiler command |
---|
| 887 | CXXFLAGS C++ compiler flags |
---|
| 888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 889 | nonstandard directory <lib dir> |
---|
| 890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 891 | headers in a nonstandard directory <include dir> |
---|
| 892 | CC C compiler command |
---|
| 893 | CFLAGS C compiler flags |
---|
| 894 | CPP C preprocessor |
---|
| 895 | |
---|
| 896 | Use these variables to override the choices made by `configure' or to help |
---|
| 897 | it to find libraries and programs with nonstandard names/locations. |
---|
| 898 | |
---|
[3240] | 899 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 900 | _ACEOF |
---|
| 901 | fi |
---|
| 902 | |
---|
| 903 | if test "$ac_init_help" = "recursive"; then |
---|
| 904 | # If there are subdirs, report their specific --help. |
---|
| 905 | ac_popdir=`pwd` |
---|
| 906 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 907 | test -d $ac_dir || continue |
---|
| 908 | ac_builddir=. |
---|
| 909 | |
---|
| 910 | if test "$ac_dir" != .; then |
---|
| 911 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 912 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 913 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 914 | else |
---|
| 915 | ac_dir_suffix= ac_top_builddir= |
---|
| 916 | fi |
---|
| 917 | |
---|
| 918 | case $srcdir in |
---|
| 919 | .) # No --srcdir option. We are building in place. |
---|
| 920 | ac_srcdir=. |
---|
| 921 | if test -z "$ac_top_builddir"; then |
---|
| 922 | ac_top_srcdir=. |
---|
| 923 | else |
---|
| 924 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 925 | fi ;; |
---|
| 926 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 927 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 928 | ac_top_srcdir=$srcdir ;; |
---|
| 929 | *) # Relative path. |
---|
| 930 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 931 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 932 | esac |
---|
| 933 | |
---|
| 934 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 935 | # the directories may not exist. |
---|
| 936 | case `pwd` in |
---|
| 937 | .) ac_abs_builddir="$ac_dir";; |
---|
| 938 | *) |
---|
| 939 | case "$ac_dir" in |
---|
| 940 | .) ac_abs_builddir=`pwd`;; |
---|
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 942 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 943 | esac;; |
---|
| 944 | esac |
---|
| 945 | case $ac_abs_builddir in |
---|
| 946 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 947 | *) |
---|
| 948 | case ${ac_top_builddir}. in |
---|
| 949 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 951 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 952 | esac;; |
---|
| 953 | esac |
---|
| 954 | case $ac_abs_builddir in |
---|
| 955 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 956 | *) |
---|
| 957 | case $ac_srcdir in |
---|
| 958 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 960 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 961 | esac;; |
---|
| 962 | esac |
---|
| 963 | case $ac_abs_builddir in |
---|
| 964 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 965 | *) |
---|
| 966 | case $ac_top_srcdir in |
---|
| 967 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 968 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 969 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 970 | esac;; |
---|
| 971 | esac |
---|
| 972 | |
---|
| 973 | cd $ac_dir |
---|
| 974 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 975 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 976 | echo |
---|
| 977 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 978 | elif test -f $ac_srcdir/configure; then |
---|
| 979 | echo |
---|
| 980 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 981 | elif test -f $ac_srcdir/configure.ac || |
---|
| 982 | test -f $ac_srcdir/configure.in; then |
---|
| 983 | echo |
---|
| 984 | $ac_configure --help |
---|
| 985 | else |
---|
| 986 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 987 | fi |
---|
| 988 | cd $ac_popdir |
---|
| 989 | done |
---|
| 990 | fi |
---|
| 991 | |
---|
| 992 | test -n "$ac_init_help" && exit 0 |
---|
| 993 | if $ac_init_version; then |
---|
| 994 | cat <<\_ACEOF |
---|
[3569] | 995 | orxonox configure 0.2.2-pre-alpha |
---|
[1956] | 996 | generated by GNU Autoconf 2.59 |
---|
| 997 | |
---|
| 998 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 999 | This configure script is free software; the Free Software Foundation |
---|
| 1000 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1001 | _ACEOF |
---|
| 1002 | exit 0 |
---|
| 1003 | fi |
---|
| 1004 | exec 5>config.log |
---|
| 1005 | cat >&5 <<_ACEOF |
---|
| 1006 | This file contains any messages produced by compilers while |
---|
| 1007 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1008 | |
---|
[3569] | 1009 | It was created by orxonox $as_me 0.2.2-pre-alpha, which was |
---|
[1956] | 1010 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1011 | |
---|
| 1012 | $ $0 $@ |
---|
| 1013 | |
---|
| 1014 | _ACEOF |
---|
| 1015 | { |
---|
| 1016 | cat <<_ASUNAME |
---|
| 1017 | ## --------- ## |
---|
| 1018 | ## Platform. ## |
---|
| 1019 | ## --------- ## |
---|
| 1020 | |
---|
| 1021 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1022 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1023 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1024 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1025 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1026 | |
---|
| 1027 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1028 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1029 | |
---|
| 1030 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1031 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1032 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1033 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1034 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1035 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1036 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1037 | |
---|
| 1038 | _ASUNAME |
---|
| 1039 | |
---|
| 1040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1041 | for as_dir in $PATH |
---|
| 1042 | do |
---|
| 1043 | IFS=$as_save_IFS |
---|
| 1044 | test -z "$as_dir" && as_dir=. |
---|
| 1045 | echo "PATH: $as_dir" |
---|
| 1046 | done |
---|
| 1047 | |
---|
| 1048 | } >&5 |
---|
| 1049 | |
---|
| 1050 | cat >&5 <<_ACEOF |
---|
| 1051 | |
---|
| 1052 | |
---|
| 1053 | ## ----------- ## |
---|
| 1054 | ## Core tests. ## |
---|
| 1055 | ## ----------- ## |
---|
| 1056 | |
---|
| 1057 | _ACEOF |
---|
| 1058 | |
---|
| 1059 | |
---|
| 1060 | # Keep a trace of the command line. |
---|
| 1061 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1062 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1063 | # Also quote any args containing shell meta-characters. |
---|
| 1064 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1065 | ac_configure_args= |
---|
| 1066 | ac_configure_args0= |
---|
| 1067 | ac_configure_args1= |
---|
| 1068 | ac_sep= |
---|
| 1069 | ac_must_keep_next=false |
---|
| 1070 | for ac_pass in 1 2 |
---|
| 1071 | do |
---|
| 1072 | for ac_arg |
---|
| 1073 | do |
---|
| 1074 | case $ac_arg in |
---|
| 1075 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1077 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1078 | continue ;; |
---|
| 1079 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1080 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1081 | esac |
---|
| 1082 | case $ac_pass in |
---|
| 1083 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1084 | 2) |
---|
| 1085 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1086 | if test $ac_must_keep_next = true; then |
---|
| 1087 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1088 | else |
---|
| 1089 | case $ac_arg in |
---|
| 1090 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1091 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1092 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1093 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1094 | case "$ac_configure_args0 " in |
---|
| 1095 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1096 | esac |
---|
| 1097 | ;; |
---|
| 1098 | -* ) ac_must_keep_next=true ;; |
---|
| 1099 | esac |
---|
| 1100 | fi |
---|
| 1101 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1102 | # Get rid of the leading space. |
---|
| 1103 | ac_sep=" " |
---|
| 1104 | ;; |
---|
| 1105 | esac |
---|
| 1106 | done |
---|
| 1107 | done |
---|
| 1108 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1109 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1110 | |
---|
| 1111 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1112 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1113 | # would cause problems or look ugly. |
---|
| 1114 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1115 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1116 | trap 'exit_status=$? |
---|
| 1117 | # Save into config.log some information that might help in debugging. |
---|
| 1118 | { |
---|
| 1119 | echo |
---|
| 1120 | |
---|
| 1121 | cat <<\_ASBOX |
---|
| 1122 | ## ---------------- ## |
---|
| 1123 | ## Cache variables. ## |
---|
| 1124 | ## ---------------- ## |
---|
| 1125 | _ASBOX |
---|
| 1126 | echo |
---|
| 1127 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1128 | { |
---|
| 1129 | (set) 2>&1 | |
---|
| 1130 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1131 | *ac_space=\ *) |
---|
| 1132 | sed -n \ |
---|
| 1133 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1135 | ;; |
---|
| 1136 | *) |
---|
| 1137 | sed -n \ |
---|
| 1138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1139 | ;; |
---|
| 1140 | esac; |
---|
| 1141 | } |
---|
| 1142 | echo |
---|
| 1143 | |
---|
| 1144 | cat <<\_ASBOX |
---|
| 1145 | ## ----------------- ## |
---|
| 1146 | ## Output variables. ## |
---|
| 1147 | ## ----------------- ## |
---|
| 1148 | _ASBOX |
---|
| 1149 | echo |
---|
| 1150 | for ac_var in $ac_subst_vars |
---|
| 1151 | do |
---|
| 1152 | eval ac_val=$`echo $ac_var` |
---|
| 1153 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1154 | done | sort |
---|
| 1155 | echo |
---|
| 1156 | |
---|
| 1157 | if test -n "$ac_subst_files"; then |
---|
| 1158 | cat <<\_ASBOX |
---|
| 1159 | ## ------------- ## |
---|
| 1160 | ## Output files. ## |
---|
| 1161 | ## ------------- ## |
---|
| 1162 | _ASBOX |
---|
| 1163 | echo |
---|
| 1164 | for ac_var in $ac_subst_files |
---|
| 1165 | do |
---|
| 1166 | eval ac_val=$`echo $ac_var` |
---|
| 1167 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1168 | done | sort |
---|
| 1169 | echo |
---|
| 1170 | fi |
---|
| 1171 | |
---|
| 1172 | if test -s confdefs.h; then |
---|
| 1173 | cat <<\_ASBOX |
---|
| 1174 | ## ----------- ## |
---|
| 1175 | ## confdefs.h. ## |
---|
| 1176 | ## ----------- ## |
---|
| 1177 | _ASBOX |
---|
| 1178 | echo |
---|
| 1179 | sed "/^$/d" confdefs.h | sort |
---|
| 1180 | echo |
---|
| 1181 | fi |
---|
| 1182 | test "$ac_signal" != 0 && |
---|
| 1183 | echo "$as_me: caught signal $ac_signal" |
---|
| 1184 | echo "$as_me: exit $exit_status" |
---|
| 1185 | } >&5 |
---|
| 1186 | rm -f core *.core && |
---|
| 1187 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1188 | exit $exit_status |
---|
| 1189 | ' 0 |
---|
| 1190 | for ac_signal in 1 2 13 15; do |
---|
| 1191 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1192 | done |
---|
| 1193 | ac_signal=0 |
---|
| 1194 | |
---|
| 1195 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1196 | rm -rf conftest* confdefs.h |
---|
| 1197 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1198 | echo >confdefs.h |
---|
| 1199 | |
---|
| 1200 | # Predefined preprocessor variables. |
---|
| 1201 | |
---|
| 1202 | cat >>confdefs.h <<_ACEOF |
---|
| 1203 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1204 | _ACEOF |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | cat >>confdefs.h <<_ACEOF |
---|
| 1208 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1209 | _ACEOF |
---|
| 1210 | |
---|
| 1211 | |
---|
| 1212 | cat >>confdefs.h <<_ACEOF |
---|
| 1213 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1214 | _ACEOF |
---|
| 1215 | |
---|
| 1216 | |
---|
| 1217 | cat >>confdefs.h <<_ACEOF |
---|
| 1218 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1219 | _ACEOF |
---|
| 1220 | |
---|
| 1221 | |
---|
| 1222 | cat >>confdefs.h <<_ACEOF |
---|
| 1223 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1224 | _ACEOF |
---|
| 1225 | |
---|
| 1226 | |
---|
| 1227 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1228 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1229 | if test -z "$CONFIG_SITE"; then |
---|
| 1230 | if test "x$prefix" != xNONE; then |
---|
| 1231 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1232 | else |
---|
| 1233 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1234 | fi |
---|
| 1235 | fi |
---|
| 1236 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1237 | if test -r "$ac_site_file"; then |
---|
| 1238 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1239 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1240 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1241 | . "$ac_site_file" |
---|
| 1242 | fi |
---|
| 1243 | done |
---|
| 1244 | |
---|
| 1245 | if test -r "$cache_file"; then |
---|
| 1246 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1247 | # files actually), so we avoid doing that. |
---|
| 1248 | if test -f "$cache_file"; then |
---|
| 1249 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1250 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1251 | case $cache_file in |
---|
| 1252 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1253 | *) . ./$cache_file;; |
---|
| 1254 | esac |
---|
| 1255 | fi |
---|
| 1256 | else |
---|
| 1257 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1258 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1259 | >$cache_file |
---|
| 1260 | fi |
---|
| 1261 | |
---|
| 1262 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1263 | # value. |
---|
| 1264 | ac_cache_corrupted=false |
---|
| 1265 | for ac_var in `(set) 2>&1 | |
---|
| 1266 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1267 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1268 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1269 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1270 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1271 | case $ac_old_set,$ac_new_set in |
---|
| 1272 | set,) |
---|
| 1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1274 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1275 | ac_cache_corrupted=: ;; |
---|
| 1276 | ,set) |
---|
| 1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1278 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1279 | ac_cache_corrupted=: ;; |
---|
| 1280 | ,);; |
---|
| 1281 | *) |
---|
| 1282 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1283 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1284 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1285 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1286 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1287 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1288 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1289 | ac_cache_corrupted=: |
---|
| 1290 | fi;; |
---|
| 1291 | esac |
---|
| 1292 | # Pass precious variables to config.status. |
---|
| 1293 | if test "$ac_new_set" = set; then |
---|
| 1294 | case $ac_new_val in |
---|
| 1295 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1296 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1297 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1298 | esac |
---|
| 1299 | case " $ac_configure_args " in |
---|
| 1300 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1301 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1302 | esac |
---|
| 1303 | fi |
---|
| 1304 | done |
---|
| 1305 | if $ac_cache_corrupted; then |
---|
| 1306 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1307 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1308 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1309 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1310 | { (exit 1); exit 1; }; } |
---|
| 1311 | fi |
---|
| 1312 | |
---|
| 1313 | ac_ext=c |
---|
| 1314 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | |
---|
| 1341 | |
---|
| 1342 | |
---|
| 1343 | |
---|
| 1344 | |
---|
[2980] | 1345 | |
---|
[3424] | 1346 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1347 | ac_aux_dir= |
---|
| 1348 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1349 | if test -f $ac_dir/install-sh; then |
---|
| 1350 | ac_aux_dir=$ac_dir |
---|
| 1351 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1352 | break |
---|
| 1353 | elif test -f $ac_dir/install.sh; then |
---|
| 1354 | ac_aux_dir=$ac_dir |
---|
| 1355 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1356 | break |
---|
| 1357 | elif test -f $ac_dir/shtool; then |
---|
| 1358 | ac_aux_dir=$ac_dir |
---|
| 1359 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1360 | break |
---|
| 1361 | fi |
---|
| 1362 | done |
---|
| 1363 | if test -z "$ac_aux_dir"; then |
---|
| 1364 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1365 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1366 | { (exit 1); exit 1; }; } |
---|
| 1367 | fi |
---|
| 1368 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1369 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1370 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1371 | |
---|
[2980] | 1372 | # Make sure we can run config.sub. |
---|
| 1373 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1374 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1375 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1376 | { (exit 1); exit 1; }; } |
---|
| 1377 | |
---|
| 1378 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1379 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1380 | if test "${ac_cv_build+set}" = set; then |
---|
| 1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1382 | else |
---|
| 1383 | ac_cv_build_alias=$build_alias |
---|
| 1384 | test -z "$ac_cv_build_alias" && |
---|
| 1385 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1386 | test -z "$ac_cv_build_alias" && |
---|
| 1387 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1388 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1389 | { (exit 1); exit 1; }; } |
---|
| 1390 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1391 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1392 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1393 | { (exit 1); exit 1; }; } |
---|
| 1394 | |
---|
| 1395 | fi |
---|
| 1396 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1397 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1398 | build=$ac_cv_build |
---|
| 1399 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1400 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1401 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1402 | |
---|
| 1403 | |
---|
| 1404 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1405 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1406 | if test "${ac_cv_host+set}" = set; then |
---|
| 1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1408 | else |
---|
| 1409 | ac_cv_host_alias=$host_alias |
---|
| 1410 | test -z "$ac_cv_host_alias" && |
---|
| 1411 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1412 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1413 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1414 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1415 | { (exit 1); exit 1; }; } |
---|
| 1416 | |
---|
| 1417 | fi |
---|
| 1418 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1419 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1420 | host=$ac_cv_host |
---|
| 1421 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1422 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1423 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1424 | |
---|
| 1425 | |
---|
| 1426 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1427 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1428 | if test "${ac_cv_target+set}" = set; then |
---|
| 1429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1430 | else |
---|
| 1431 | ac_cv_target_alias=$target_alias |
---|
| 1432 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1433 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1434 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1435 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1436 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1437 | { (exit 1); exit 1; }; } |
---|
| 1438 | |
---|
| 1439 | fi |
---|
| 1440 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1441 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1442 | target=$ac_cv_target |
---|
| 1443 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1444 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1445 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1446 | |
---|
| 1447 | |
---|
| 1448 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1449 | # will get canonicalized. |
---|
| 1450 | test -n "$target_alias" && |
---|
| 1451 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1452 | NONENONEs,x,x, && |
---|
| 1453 | program_prefix=${target_alias}- |
---|
| 1454 | |
---|
| 1455 | am__api_version="1.8" |
---|
[1956] | 1456 | # Find a good install program. We prefer a C program (faster), |
---|
| 1457 | # so one script is as good as another. But avoid the broken or |
---|
| 1458 | # incompatible versions: |
---|
| 1459 | # SysV /etc/install, /usr/sbin/install |
---|
| 1460 | # SunOS /usr/etc/install |
---|
| 1461 | # IRIX /sbin/install |
---|
| 1462 | # AIX /bin/install |
---|
| 1463 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1467 | # OS/2's system install, which has a completely different semantic |
---|
| 1468 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1469 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1470 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1471 | if test -z "$INSTALL"; then |
---|
| 1472 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1474 | else |
---|
| 1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1476 | for as_dir in $PATH |
---|
| 1477 | do |
---|
| 1478 | IFS=$as_save_IFS |
---|
| 1479 | test -z "$as_dir" && as_dir=. |
---|
| 1480 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1481 | case $as_dir/ in |
---|
| 1482 | ./ | .// | /cC/* | \ |
---|
| 1483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1484 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1485 | /usr/ucb/* ) ;; |
---|
| 1486 | *) |
---|
| 1487 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1488 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1489 | # by default. |
---|
| 1490 | for ac_prog in ginstall scoinst install; do |
---|
| 1491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1492 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1493 | if test $ac_prog = install && |
---|
| 1494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1495 | # AIX install. It has an incompatible calling convention. |
---|
| 1496 | : |
---|
| 1497 | elif test $ac_prog = install && |
---|
| 1498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1499 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1500 | : |
---|
| 1501 | else |
---|
| 1502 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1503 | break 3 |
---|
| 1504 | fi |
---|
[1853] | 1505 | fi |
---|
[1956] | 1506 | done |
---|
| 1507 | done |
---|
| 1508 | ;; |
---|
| 1509 | esac |
---|
| 1510 | done |
---|
| 1511 | |
---|
| 1512 | |
---|
[1853] | 1513 | fi |
---|
[1956] | 1514 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1515 | INSTALL=$ac_cv_path_install |
---|
| 1516 | else |
---|
| 1517 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1518 | # path for INSTALL within a source directory, because that will |
---|
| 1519 | # break other packages using the cache if that directory is |
---|
| 1520 | # removed, or if the path is relative. |
---|
| 1521 | INSTALL=$ac_install_sh |
---|
| 1522 | fi |
---|
| 1523 | fi |
---|
| 1524 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1525 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1526 | |
---|
| 1527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1528 | # It thinks the first close brace ends the variable substitution. |
---|
| 1529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1530 | |
---|
| 1531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1532 | |
---|
| 1533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1534 | |
---|
| 1535 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1536 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1537 | # Just in case |
---|
| 1538 | sleep 1 |
---|
| 1539 | echo timestamp > conftest.file |
---|
| 1540 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1541 | # arguments. Must try -L first in case configure is actually a |
---|
| 1542 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1543 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1544 | # directory). |
---|
| 1545 | if ( |
---|
| 1546 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1547 | if test "$*" = "X"; then |
---|
| 1548 | # -L didn't work. |
---|
| 1549 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1550 | fi |
---|
| 1551 | rm -f conftest.file |
---|
| 1552 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1553 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1554 | |
---|
| 1555 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1556 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1557 | # broken ls alias from the environment. This has actually |
---|
| 1558 | # happened. Such a system could not be considered "sane". |
---|
| 1559 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1560 | alias in your environment" >&5 |
---|
| 1561 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1562 | alias in your environment" >&2;} |
---|
| 1563 | { (exit 1); exit 1; }; } |
---|
| 1564 | fi |
---|
| 1565 | |
---|
| 1566 | test "$2" = conftest.file |
---|
| 1567 | ) |
---|
| 1568 | then |
---|
| 1569 | # Ok. |
---|
| 1570 | : |
---|
[1853] | 1571 | else |
---|
[1956] | 1572 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1573 | Check your system clock" >&5 |
---|
| 1574 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1575 | Check your system clock" >&2;} |
---|
| 1576 | { (exit 1); exit 1; }; } |
---|
[1853] | 1577 | fi |
---|
[1956] | 1578 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1579 | echo "${ECHO_T}yes" >&6 |
---|
| 1580 | test "$program_prefix" != NONE && |
---|
| 1581 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1582 | # Use a double $ so make ignores it. |
---|
| 1583 | test "$program_suffix" != NONE && |
---|
| 1584 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1585 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1586 | # By default was `s,x,x', remove it if useless. |
---|
| 1587 | cat <<\_ACEOF >conftest.sed |
---|
| 1588 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1589 | _ACEOF |
---|
| 1590 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1591 | rm conftest.sed |
---|
[1853] | 1592 | |
---|
[1956] | 1593 | # expand $ac_aux_dir to an absolute path |
---|
| 1594 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1595 | |
---|
| 1596 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1597 | # Use eval to expand $SHELL |
---|
| 1598 | if eval "$MISSING --run true"; then |
---|
| 1599 | am_missing_run="$MISSING --run " |
---|
| 1600 | else |
---|
| 1601 | am_missing_run= |
---|
| 1602 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1603 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1604 | fi |
---|
| 1605 | |
---|
[2819] | 1606 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1607 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1608 | # argument. Indeed, we sometimes output rules like |
---|
| 1609 | # $(mkdir_p) $(somedir) |
---|
| 1610 | # where $(somedir) is conditionally defined. |
---|
| 1611 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1612 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1613 | mkdir_p='mkdir -p -- .' |
---|
| 1614 | else |
---|
| 1615 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1616 | # recognize any option. It will interpret all options as |
---|
| 1617 | # directories to create, and then abort because `.' already |
---|
| 1618 | # exists. |
---|
[2819] | 1619 | for d in ./-p ./--version; |
---|
[2706] | 1620 | do |
---|
| 1621 | test -d $d && rmdir $d |
---|
| 1622 | done |
---|
| 1623 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1624 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1625 | mkdir_p='$(mkinstalldirs)' |
---|
| 1626 | else |
---|
| 1627 | mkdir_p='$(install_sh) -d' |
---|
| 1628 | fi |
---|
| 1629 | fi |
---|
| 1630 | |
---|
[1956] | 1631 | for ac_prog in gawk mawk nawk awk |
---|
| 1632 | do |
---|
| 1633 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1634 | set dummy $ac_prog; ac_word=$2 |
---|
| 1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1637 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1639 | else |
---|
| 1640 | if test -n "$AWK"; then |
---|
| 1641 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1642 | else |
---|
| 1643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1644 | for as_dir in $PATH |
---|
| 1645 | do |
---|
| 1646 | IFS=$as_save_IFS |
---|
| 1647 | test -z "$as_dir" && as_dir=. |
---|
| 1648 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1650 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1652 | break 2 |
---|
| 1653 | fi |
---|
| 1654 | done |
---|
| 1655 | done |
---|
| 1656 | |
---|
| 1657 | fi |
---|
| 1658 | fi |
---|
| 1659 | AWK=$ac_cv_prog_AWK |
---|
| 1660 | if test -n "$AWK"; then |
---|
| 1661 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1662 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1663 | else |
---|
| 1664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1665 | echo "${ECHO_T}no" >&6 |
---|
| 1666 | fi |
---|
| 1667 | |
---|
| 1668 | test -n "$AWK" && break |
---|
| 1669 | done |
---|
| 1670 | |
---|
| 1671 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1672 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1673 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1674 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1676 | else |
---|
| 1677 | cat >conftest.make <<\_ACEOF |
---|
| 1678 | all: |
---|
| 1679 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1680 | _ACEOF |
---|
| 1681 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1682 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1683 | if test -n "$ac_maketemp"; then |
---|
| 1684 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1685 | else |
---|
| 1686 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1687 | fi |
---|
| 1688 | rm -f conftest.make |
---|
| 1689 | fi |
---|
| 1690 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1691 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1692 | echo "${ECHO_T}yes" >&6 |
---|
| 1693 | SET_MAKE= |
---|
| 1694 | else |
---|
| 1695 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1696 | echo "${ECHO_T}no" >&6 |
---|
| 1697 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1698 | fi |
---|
| 1699 | |
---|
| 1700 | rm -rf .tst 2>/dev/null |
---|
| 1701 | mkdir .tst 2>/dev/null |
---|
| 1702 | if test -d .tst; then |
---|
| 1703 | am__leading_dot=. |
---|
| 1704 | else |
---|
| 1705 | am__leading_dot=_ |
---|
| 1706 | fi |
---|
| 1707 | rmdir .tst 2>/dev/null |
---|
| 1708 | |
---|
[2706] | 1709 | # test to see if srcdir already configured |
---|
[1956] | 1710 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1711 | test -f $srcdir/config.status; then |
---|
| 1712 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1713 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1714 | { (exit 1); exit 1; }; } |
---|
| 1715 | fi |
---|
| 1716 | |
---|
| 1717 | # test whether we have cygpath |
---|
| 1718 | if test -z "$CYGPATH_W"; then |
---|
| 1719 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1720 | CYGPATH_W='cygpath -w' |
---|
| 1721 | else |
---|
| 1722 | CYGPATH_W=echo |
---|
| 1723 | fi |
---|
| 1724 | fi |
---|
| 1725 | |
---|
| 1726 | |
---|
| 1727 | # Define the identity of the package. |
---|
| 1728 | PACKAGE='orxonox' |
---|
[3569] | 1729 | VERSION='0.2.2-pre-alpha' |
---|
[1956] | 1730 | |
---|
| 1731 | |
---|
| 1732 | cat >>confdefs.h <<_ACEOF |
---|
| 1733 | #define PACKAGE "$PACKAGE" |
---|
| 1734 | _ACEOF |
---|
| 1735 | |
---|
| 1736 | |
---|
| 1737 | cat >>confdefs.h <<_ACEOF |
---|
| 1738 | #define VERSION "$VERSION" |
---|
| 1739 | _ACEOF |
---|
| 1740 | |
---|
| 1741 | # Some tools Automake needs. |
---|
| 1742 | |
---|
| 1743 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1744 | |
---|
| 1745 | |
---|
| 1746 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1747 | |
---|
| 1748 | |
---|
| 1749 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1750 | |
---|
| 1751 | |
---|
| 1752 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1753 | |
---|
| 1754 | |
---|
| 1755 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1756 | |
---|
| 1757 | |
---|
| 1758 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1759 | |
---|
| 1760 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1761 | |
---|
| 1762 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1763 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1764 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1765 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1766 | if test "$cross_compiling" != no; then |
---|
| 1767 | if test -n "$ac_tool_prefix"; then |
---|
| 1768 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1769 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1772 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1774 | else |
---|
| 1775 | if test -n "$STRIP"; then |
---|
| 1776 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1777 | else |
---|
| 1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1779 | for as_dir in $PATH |
---|
| 1780 | do |
---|
| 1781 | IFS=$as_save_IFS |
---|
| 1782 | test -z "$as_dir" && as_dir=. |
---|
| 1783 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1785 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1787 | break 2 |
---|
| 1788 | fi |
---|
| 1789 | done |
---|
| 1790 | done |
---|
| 1791 | |
---|
| 1792 | fi |
---|
| 1793 | fi |
---|
| 1794 | STRIP=$ac_cv_prog_STRIP |
---|
| 1795 | if test -n "$STRIP"; then |
---|
| 1796 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1797 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1798 | else |
---|
| 1799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1800 | echo "${ECHO_T}no" >&6 |
---|
| 1801 | fi |
---|
| 1802 | |
---|
| 1803 | fi |
---|
| 1804 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1805 | ac_ct_STRIP=$STRIP |
---|
| 1806 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1807 | set dummy strip; ac_word=$2 |
---|
| 1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1810 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1812 | else |
---|
| 1813 | if test -n "$ac_ct_STRIP"; then |
---|
| 1814 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1815 | else |
---|
| 1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1817 | for as_dir in $PATH |
---|
| 1818 | do |
---|
| 1819 | IFS=$as_save_IFS |
---|
| 1820 | test -z "$as_dir" && as_dir=. |
---|
| 1821 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1823 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1825 | break 2 |
---|
| 1826 | fi |
---|
| 1827 | done |
---|
| 1828 | done |
---|
| 1829 | |
---|
| 1830 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1831 | fi |
---|
| 1832 | fi |
---|
| 1833 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1834 | if test -n "$ac_ct_STRIP"; then |
---|
| 1835 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1836 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1837 | else |
---|
| 1838 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1839 | echo "${ECHO_T}no" >&6 |
---|
| 1840 | fi |
---|
| 1841 | |
---|
| 1842 | STRIP=$ac_ct_STRIP |
---|
| 1843 | else |
---|
| 1844 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1845 | fi |
---|
| 1846 | |
---|
| 1847 | fi |
---|
| 1848 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1849 | |
---|
| 1850 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1851 | # some platforms. |
---|
| 1852 | |
---|
| 1853 | |
---|
| 1854 | |
---|
| 1855 | |
---|
[2627] | 1856 | |
---|
[1959] | 1857 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1858 | |
---|
| 1859 | |
---|
[3424] | 1860 | ######################### |
---|
| 1861 | ## Checks for programs ## |
---|
| 1862 | ######################### |
---|
[1956] | 1863 | ac_ext=cc |
---|
| 1864 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1868 | if test -n "$ac_tool_prefix"; then |
---|
| 1869 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1870 | do |
---|
| 1871 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1872 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1875 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1877 | else |
---|
| 1878 | if test -n "$CXX"; then |
---|
| 1879 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1880 | else |
---|
| 1881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1882 | for as_dir in $PATH |
---|
| 1883 | do |
---|
| 1884 | IFS=$as_save_IFS |
---|
| 1885 | test -z "$as_dir" && as_dir=. |
---|
| 1886 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1888 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1890 | break 2 |
---|
| 1891 | fi |
---|
| 1892 | done |
---|
| 1893 | done |
---|
| 1894 | |
---|
| 1895 | fi |
---|
| 1896 | fi |
---|
| 1897 | CXX=$ac_cv_prog_CXX |
---|
| 1898 | if test -n "$CXX"; then |
---|
| 1899 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1900 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1901 | else |
---|
| 1902 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1903 | echo "${ECHO_T}no" >&6 |
---|
| 1904 | fi |
---|
| 1905 | |
---|
| 1906 | test -n "$CXX" && break |
---|
| 1907 | done |
---|
| 1908 | fi |
---|
| 1909 | if test -z "$CXX"; then |
---|
| 1910 | ac_ct_CXX=$CXX |
---|
| 1911 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1912 | do |
---|
| 1913 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1914 | set dummy $ac_prog; ac_word=$2 |
---|
| 1915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1917 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1919 | else |
---|
| 1920 | if test -n "$ac_ct_CXX"; then |
---|
| 1921 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1922 | else |
---|
| 1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1924 | for as_dir in $PATH |
---|
| 1925 | do |
---|
| 1926 | IFS=$as_save_IFS |
---|
| 1927 | test -z "$as_dir" && as_dir=. |
---|
| 1928 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1930 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1932 | break 2 |
---|
| 1933 | fi |
---|
| 1934 | done |
---|
| 1935 | done |
---|
| 1936 | |
---|
| 1937 | fi |
---|
| 1938 | fi |
---|
| 1939 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1940 | if test -n "$ac_ct_CXX"; then |
---|
| 1941 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1942 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1943 | else |
---|
| 1944 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1945 | echo "${ECHO_T}no" >&6 |
---|
| 1946 | fi |
---|
| 1947 | |
---|
| 1948 | test -n "$ac_ct_CXX" && break |
---|
| 1949 | done |
---|
| 1950 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1951 | |
---|
| 1952 | CXX=$ac_ct_CXX |
---|
| 1953 | fi |
---|
| 1954 | |
---|
| 1955 | |
---|
| 1956 | # Provide some information about the compiler. |
---|
| 1957 | echo "$as_me:$LINENO:" \ |
---|
| 1958 | "checking for C++ compiler version" >&5 |
---|
| 1959 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1961 | (eval $ac_compiler --version </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 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1971 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1972 | ac_status=$? |
---|
| 1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1974 | (exit $ac_status); } |
---|
| 1975 | |
---|
| 1976 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1977 | /* confdefs.h. */ |
---|
| 1978 | _ACEOF |
---|
| 1979 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1981 | /* end confdefs.h. */ |
---|
| 1982 | |
---|
| 1983 | int |
---|
| 1984 | main () |
---|
| 1985 | { |
---|
| 1986 | |
---|
| 1987 | ; |
---|
| 1988 | return 0; |
---|
| 1989 | } |
---|
| 1990 | _ACEOF |
---|
| 1991 | ac_clean_files_save=$ac_clean_files |
---|
| 1992 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1993 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1994 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1995 | # of exeext. |
---|
| 1996 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1997 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1998 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1999 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 2000 | (eval $ac_link_default) 2>&5 |
---|
| 2001 | ac_status=$? |
---|
| 2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2003 | (exit $ac_status); }; then |
---|
| 2004 | # Find the output, starting from the most likely. This scheme is |
---|
| 2005 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2006 | # resort. |
---|
| 2007 | |
---|
| 2008 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2009 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2010 | ac_cv_exeext= |
---|
| 2011 | # b.out is created by i960 compilers. |
---|
| 2012 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2013 | do |
---|
| 2014 | test -f "$ac_file" || continue |
---|
| 2015 | case $ac_file in |
---|
| 2016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2017 | ;; |
---|
| 2018 | conftest.$ac_ext ) |
---|
| 2019 | # This is the source file. |
---|
| 2020 | ;; |
---|
| 2021 | [ab].out ) |
---|
| 2022 | # We found the default executable, but exeext='' is most |
---|
| 2023 | # certainly right. |
---|
| 2024 | break;; |
---|
| 2025 | *.* ) |
---|
| 2026 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2027 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2028 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2029 | # maintain Libtool? --akim. |
---|
| 2030 | export ac_cv_exeext |
---|
| 2031 | break;; |
---|
| 2032 | * ) |
---|
| 2033 | break;; |
---|
| 2034 | esac |
---|
| 2035 | done |
---|
| 2036 | else |
---|
| 2037 | echo "$as_me: failed program was:" >&5 |
---|
| 2038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2039 | |
---|
| 2040 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2041 | See \`config.log' for more details." >&5 |
---|
| 2042 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2043 | See \`config.log' for more details." >&2;} |
---|
| 2044 | { (exit 77); exit 77; }; } |
---|
| 2045 | fi |
---|
| 2046 | |
---|
| 2047 | ac_exeext=$ac_cv_exeext |
---|
| 2048 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2049 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2050 | |
---|
| 2051 | # Check the compiler produces executables we can run. If not, either |
---|
| 2052 | # the compiler is broken, or we cross compile. |
---|
| 2053 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2054 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2055 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2056 | # If not cross compiling, check that we can run a simple program. |
---|
| 2057 | if test "$cross_compiling" != yes; then |
---|
| 2058 | if { ac_try='./$ac_file' |
---|
| 2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2060 | (eval $ac_try) 2>&5 |
---|
| 2061 | ac_status=$? |
---|
| 2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2063 | (exit $ac_status); }; }; then |
---|
| 2064 | cross_compiling=no |
---|
| 2065 | else |
---|
| 2066 | if test "$cross_compiling" = maybe; then |
---|
| 2067 | cross_compiling=yes |
---|
| 2068 | else |
---|
| 2069 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2070 | If you meant to cross compile, use \`--host'. |
---|
| 2071 | See \`config.log' for more details." >&5 |
---|
| 2072 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2073 | If you meant to cross compile, use \`--host'. |
---|
| 2074 | See \`config.log' for more details." >&2;} |
---|
| 2075 | { (exit 1); exit 1; }; } |
---|
| 2076 | fi |
---|
| 2077 | fi |
---|
| 2078 | fi |
---|
| 2079 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2080 | echo "${ECHO_T}yes" >&6 |
---|
| 2081 | |
---|
| 2082 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2083 | ac_clean_files=$ac_clean_files_save |
---|
| 2084 | # Check the compiler produces executables we can run. If not, either |
---|
| 2085 | # the compiler is broken, or we cross compile. |
---|
| 2086 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2087 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2088 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2089 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2090 | |
---|
| 2091 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2092 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2094 | (eval $ac_link) 2>&5 |
---|
| 2095 | ac_status=$? |
---|
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2097 | (exit $ac_status); }; then |
---|
| 2098 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2099 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2100 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2101 | # `rm'. |
---|
| 2102 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2103 | test -f "$ac_file" || continue |
---|
| 2104 | case $ac_file in |
---|
| 2105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2106 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2107 | export ac_cv_exeext |
---|
| 2108 | break;; |
---|
| 2109 | * ) break;; |
---|
| 2110 | esac |
---|
| 2111 | done |
---|
| 2112 | else |
---|
| 2113 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2114 | See \`config.log' for more details." >&5 |
---|
| 2115 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2116 | See \`config.log' for more details." >&2;} |
---|
| 2117 | { (exit 1); exit 1; }; } |
---|
| 2118 | fi |
---|
| 2119 | |
---|
| 2120 | rm -f conftest$ac_cv_exeext |
---|
| 2121 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2122 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2123 | |
---|
| 2124 | rm -f conftest.$ac_ext |
---|
| 2125 | EXEEXT=$ac_cv_exeext |
---|
| 2126 | ac_exeext=$EXEEXT |
---|
| 2127 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2128 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2129 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2131 | else |
---|
| 2132 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2133 | /* confdefs.h. */ |
---|
| 2134 | _ACEOF |
---|
| 2135 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2137 | /* end confdefs.h. */ |
---|
| 2138 | |
---|
| 2139 | int |
---|
| 2140 | main () |
---|
| 2141 | { |
---|
| 2142 | |
---|
| 2143 | ; |
---|
| 2144 | return 0; |
---|
| 2145 | } |
---|
| 2146 | _ACEOF |
---|
| 2147 | rm -f conftest.o conftest.obj |
---|
| 2148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2149 | (eval $ac_compile) 2>&5 |
---|
| 2150 | ac_status=$? |
---|
| 2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2152 | (exit $ac_status); }; then |
---|
| 2153 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2154 | case $ac_file in |
---|
| 2155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2156 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2157 | break;; |
---|
| 2158 | esac |
---|
| 2159 | done |
---|
| 2160 | else |
---|
| 2161 | echo "$as_me: failed program was:" >&5 |
---|
| 2162 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2163 | |
---|
| 2164 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2165 | See \`config.log' for more details." >&5 |
---|
| 2166 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2167 | See \`config.log' for more details." >&2;} |
---|
| 2168 | { (exit 1); exit 1; }; } |
---|
| 2169 | fi |
---|
| 2170 | |
---|
| 2171 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2172 | fi |
---|
| 2173 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2174 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2175 | OBJEXT=$ac_cv_objext |
---|
| 2176 | ac_objext=$OBJEXT |
---|
| 2177 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2178 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2179 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2181 | else |
---|
| 2182 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2183 | /* confdefs.h. */ |
---|
| 2184 | _ACEOF |
---|
| 2185 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2187 | /* end confdefs.h. */ |
---|
| 2188 | |
---|
| 2189 | int |
---|
| 2190 | main () |
---|
| 2191 | { |
---|
| 2192 | #ifndef __GNUC__ |
---|
| 2193 | choke me |
---|
| 2194 | #endif |
---|
| 2195 | |
---|
| 2196 | ; |
---|
| 2197 | return 0; |
---|
| 2198 | } |
---|
| 2199 | _ACEOF |
---|
| 2200 | rm -f conftest.$ac_objext |
---|
| 2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2202 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2203 | ac_status=$? |
---|
| 2204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2205 | rm -f conftest.er1 |
---|
| 2206 | cat conftest.err >&5 |
---|
| 2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2208 | (exit $ac_status); } && |
---|
| 2209 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2210 | || test ! -s conftest.err' |
---|
| 2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2212 | (eval $ac_try) 2>&5 |
---|
| 2213 | ac_status=$? |
---|
| 2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2215 | (exit $ac_status); }; } && |
---|
| 2216 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2218 | (eval $ac_try) 2>&5 |
---|
| 2219 | ac_status=$? |
---|
| 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2221 | (exit $ac_status); }; }; then |
---|
| 2222 | ac_compiler_gnu=yes |
---|
| 2223 | else |
---|
| 2224 | echo "$as_me: failed program was:" >&5 |
---|
| 2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2226 | |
---|
| 2227 | ac_compiler_gnu=no |
---|
| 2228 | fi |
---|
| 2229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2230 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2231 | |
---|
| 2232 | fi |
---|
| 2233 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2234 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2235 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2236 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2237 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2238 | CXXFLAGS="-g" |
---|
| 2239 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2240 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2241 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2243 | else |
---|
| 2244 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2245 | /* confdefs.h. */ |
---|
| 2246 | _ACEOF |
---|
| 2247 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2249 | /* end confdefs.h. */ |
---|
| 2250 | |
---|
| 2251 | int |
---|
| 2252 | main () |
---|
| 2253 | { |
---|
| 2254 | |
---|
| 2255 | ; |
---|
| 2256 | return 0; |
---|
| 2257 | } |
---|
| 2258 | _ACEOF |
---|
| 2259 | rm -f conftest.$ac_objext |
---|
| 2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2261 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2262 | ac_status=$? |
---|
| 2263 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2264 | rm -f conftest.er1 |
---|
| 2265 | cat conftest.err >&5 |
---|
| 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2267 | (exit $ac_status); } && |
---|
| 2268 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2269 | || test ! -s conftest.err' |
---|
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2271 | (eval $ac_try) 2>&5 |
---|
| 2272 | ac_status=$? |
---|
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2274 | (exit $ac_status); }; } && |
---|
| 2275 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2277 | (eval $ac_try) 2>&5 |
---|
| 2278 | ac_status=$? |
---|
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2280 | (exit $ac_status); }; }; then |
---|
| 2281 | ac_cv_prog_cxx_g=yes |
---|
| 2282 | else |
---|
| 2283 | echo "$as_me: failed program was:" >&5 |
---|
| 2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2285 | |
---|
| 2286 | ac_cv_prog_cxx_g=no |
---|
| 2287 | fi |
---|
| 2288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2289 | fi |
---|
| 2290 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2291 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2292 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2293 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2294 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2295 | if test "$GXX" = yes; then |
---|
| 2296 | CXXFLAGS="-g -O2" |
---|
| 2297 | else |
---|
| 2298 | CXXFLAGS="-g" |
---|
| 2299 | fi |
---|
| 2300 | else |
---|
| 2301 | if test "$GXX" = yes; then |
---|
| 2302 | CXXFLAGS="-O2" |
---|
| 2303 | else |
---|
| 2304 | CXXFLAGS= |
---|
| 2305 | fi |
---|
| 2306 | fi |
---|
| 2307 | for ac_declaration in \ |
---|
| 2308 | '' \ |
---|
| 2309 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2310 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2311 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2312 | 'extern "C" void exit (int);' \ |
---|
| 2313 | 'void exit (int);' |
---|
| 2314 | do |
---|
| 2315 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2316 | /* confdefs.h. */ |
---|
| 2317 | _ACEOF |
---|
| 2318 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2319 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2320 | /* end confdefs.h. */ |
---|
| 2321 | $ac_declaration |
---|
| 2322 | #include <stdlib.h> |
---|
| 2323 | int |
---|
| 2324 | main () |
---|
| 2325 | { |
---|
| 2326 | exit (42); |
---|
| 2327 | ; |
---|
| 2328 | return 0; |
---|
| 2329 | } |
---|
| 2330 | _ACEOF |
---|
| 2331 | rm -f conftest.$ac_objext |
---|
| 2332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2333 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2334 | ac_status=$? |
---|
| 2335 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2336 | rm -f conftest.er1 |
---|
| 2337 | cat conftest.err >&5 |
---|
| 2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2339 | (exit $ac_status); } && |
---|
| 2340 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2341 | || test ! -s conftest.err' |
---|
| 2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2343 | (eval $ac_try) 2>&5 |
---|
| 2344 | ac_status=$? |
---|
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2346 | (exit $ac_status); }; } && |
---|
| 2347 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2349 | (eval $ac_try) 2>&5 |
---|
| 2350 | ac_status=$? |
---|
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2352 | (exit $ac_status); }; }; then |
---|
| 2353 | : |
---|
| 2354 | else |
---|
| 2355 | echo "$as_me: failed program was:" >&5 |
---|
| 2356 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2357 | |
---|
| 2358 | continue |
---|
| 2359 | fi |
---|
| 2360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2361 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2362 | /* confdefs.h. */ |
---|
| 2363 | _ACEOF |
---|
| 2364 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2366 | /* end confdefs.h. */ |
---|
| 2367 | $ac_declaration |
---|
| 2368 | int |
---|
| 2369 | main () |
---|
| 2370 | { |
---|
| 2371 | exit (42); |
---|
| 2372 | ; |
---|
| 2373 | return 0; |
---|
| 2374 | } |
---|
| 2375 | _ACEOF |
---|
| 2376 | rm -f conftest.$ac_objext |
---|
| 2377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2378 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2379 | ac_status=$? |
---|
| 2380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2381 | rm -f conftest.er1 |
---|
| 2382 | cat conftest.err >&5 |
---|
| 2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2384 | (exit $ac_status); } && |
---|
| 2385 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2386 | || test ! -s conftest.err' |
---|
| 2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2388 | (eval $ac_try) 2>&5 |
---|
| 2389 | ac_status=$? |
---|
| 2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2391 | (exit $ac_status); }; } && |
---|
| 2392 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2394 | (eval $ac_try) 2>&5 |
---|
| 2395 | ac_status=$? |
---|
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2397 | (exit $ac_status); }; }; then |
---|
| 2398 | break |
---|
| 2399 | else |
---|
| 2400 | echo "$as_me: failed program was:" >&5 |
---|
| 2401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2402 | |
---|
| 2403 | fi |
---|
| 2404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2405 | done |
---|
| 2406 | rm -f conftest* |
---|
| 2407 | if test -n "$ac_declaration"; then |
---|
| 2408 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2409 | echo $ac_declaration >>confdefs.h |
---|
| 2410 | echo '#endif' >>confdefs.h |
---|
| 2411 | fi |
---|
| 2412 | |
---|
| 2413 | ac_ext=c |
---|
| 2414 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2418 | DEPDIR="${am__leading_dot}deps" |
---|
| 2419 | |
---|
| 2420 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2421 | |
---|
| 2422 | |
---|
| 2423 | am_make=${MAKE-make} |
---|
| 2424 | cat > confinc << 'END' |
---|
| 2425 | am__doit: |
---|
| 2426 | @echo done |
---|
| 2427 | .PHONY: am__doit |
---|
| 2428 | END |
---|
| 2429 | # If we don't find an include directive, just comment out the code. |
---|
| 2430 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2431 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2432 | am__include="#" |
---|
| 2433 | am__quote= |
---|
| 2434 | _am_result=none |
---|
| 2435 | # First try GNU make style include. |
---|
| 2436 | echo "include confinc" > confmf |
---|
| 2437 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2438 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2439 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2440 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2441 | # case it prints its new name instead of `make'. |
---|
| 2442 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2443 | am__include=include |
---|
| 2444 | am__quote= |
---|
| 2445 | _am_result=GNU |
---|
| 2446 | fi |
---|
| 2447 | # Now try BSD make style include. |
---|
| 2448 | if test "$am__include" = "#"; then |
---|
| 2449 | echo '.include "confinc"' > confmf |
---|
| 2450 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2451 | am__include=.include |
---|
| 2452 | am__quote="\"" |
---|
| 2453 | _am_result=BSD |
---|
| 2454 | fi |
---|
| 2455 | fi |
---|
| 2456 | |
---|
| 2457 | |
---|
| 2458 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2459 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2460 | rm -f confinc confmf |
---|
| 2461 | |
---|
| 2462 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2463 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2464 | enableval="$enable_dependency_tracking" |
---|
| 2465 | |
---|
| 2466 | fi; |
---|
| 2467 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2468 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2469 | AMDEPBACKSLASH='\' |
---|
| 2470 | fi |
---|
| 2471 | |
---|
| 2472 | |
---|
| 2473 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2474 | AMDEP_TRUE= |
---|
| 2475 | AMDEP_FALSE='#' |
---|
| 2476 | else |
---|
| 2477 | AMDEP_TRUE='#' |
---|
| 2478 | AMDEP_FALSE= |
---|
| 2479 | fi |
---|
| 2480 | |
---|
| 2481 | |
---|
| 2482 | |
---|
| 2483 | |
---|
| 2484 | depcc="$CXX" am_compiler_list= |
---|
| 2485 | |
---|
| 2486 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2487 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2488 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2490 | else |
---|
| 2491 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2492 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2493 | # making bogus files that we don't know about and never remove. For |
---|
| 2494 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2495 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2496 | # in D'. |
---|
| 2497 | mkdir conftest.dir |
---|
| 2498 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2499 | # using a relative directory. |
---|
| 2500 | cp "$am_depcomp" conftest.dir |
---|
| 2501 | cd conftest.dir |
---|
| 2502 | # We will build objects and dependencies in a subdirectory because |
---|
| 2503 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2504 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2505 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2506 | # the current directory while Tru64 will put them in the object |
---|
| 2507 | # directory. |
---|
| 2508 | mkdir sub |
---|
| 2509 | |
---|
| 2510 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2511 | if test "$am_compiler_list" = ""; then |
---|
| 2512 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2513 | fi |
---|
| 2514 | for depmode in $am_compiler_list; do |
---|
| 2515 | # Setup a source with many dependencies, because some compilers |
---|
| 2516 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2517 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2518 | # |
---|
| 2519 | # We need to recreate these files for each test, as the compiler may |
---|
| 2520 | # overwrite some of them when testing with obscure command lines. |
---|
| 2521 | # This happens at least with the AIX C compiler. |
---|
| 2522 | : > sub/conftest.c |
---|
| 2523 | for i in 1 2 3 4 5 6; do |
---|
| 2524 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 2525 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2526 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2527 | touch sub/conftst$i.h |
---|
[1956] | 2528 | done |
---|
| 2529 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2530 | |
---|
| 2531 | case $depmode in |
---|
| 2532 | nosideeffect) |
---|
| 2533 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2534 | # only be used when explicitly requested |
---|
| 2535 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2536 | continue |
---|
| 2537 | else |
---|
| 2538 | break |
---|
| 2539 | fi |
---|
| 2540 | ;; |
---|
| 2541 | none) break ;; |
---|
| 2542 | esac |
---|
| 2543 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2544 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2545 | # handle `-M -o', and we need to detect this. |
---|
| 2546 | if depmode=$depmode \ |
---|
| 2547 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2548 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2549 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2550 | >/dev/null 2>conftest.err && |
---|
| 2551 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2552 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2553 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2554 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 2555 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2556 | # that says an option was ignored or not supported. |
---|
| 2557 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2558 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2559 | # The diagnosis changed in icc 8.0: |
---|
| 2560 | # icc: Command line remark: option '-MP' not supported |
---|
| 2561 | if (grep 'ignoring option' conftest.err || |
---|
| 2562 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2563 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2564 | break |
---|
| 2565 | fi |
---|
| 2566 | fi |
---|
| 2567 | done |
---|
| 2568 | |
---|
| 2569 | cd .. |
---|
| 2570 | rm -rf conftest.dir |
---|
| 2571 | else |
---|
| 2572 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2573 | fi |
---|
| 2574 | |
---|
| 2575 | fi |
---|
| 2576 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2577 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2578 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2579 | |
---|
| 2580 | |
---|
| 2581 | |
---|
| 2582 | if |
---|
| 2583 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2584 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2585 | am__fastdepCXX_TRUE= |
---|
| 2586 | am__fastdepCXX_FALSE='#' |
---|
| 2587 | else |
---|
| 2588 | am__fastdepCXX_TRUE='#' |
---|
| 2589 | am__fastdepCXX_FALSE= |
---|
| 2590 | fi |
---|
| 2591 | |
---|
| 2592 | |
---|
| 2593 | ac_ext=c |
---|
| 2594 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2598 | if test -n "$ac_tool_prefix"; then |
---|
| 2599 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2600 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2603 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2605 | else |
---|
| 2606 | if test -n "$CC"; then |
---|
| 2607 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2608 | else |
---|
| 2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2610 | for as_dir in $PATH |
---|
| 2611 | do |
---|
| 2612 | IFS=$as_save_IFS |
---|
| 2613 | test -z "$as_dir" && as_dir=. |
---|
| 2614 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2616 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2618 | break 2 |
---|
| 2619 | fi |
---|
| 2620 | done |
---|
| 2621 | done |
---|
| 2622 | |
---|
| 2623 | fi |
---|
| 2624 | fi |
---|
| 2625 | CC=$ac_cv_prog_CC |
---|
| 2626 | if test -n "$CC"; then |
---|
| 2627 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2628 | echo "${ECHO_T}$CC" >&6 |
---|
| 2629 | else |
---|
| 2630 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2631 | echo "${ECHO_T}no" >&6 |
---|
| 2632 | fi |
---|
| 2633 | |
---|
| 2634 | fi |
---|
| 2635 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2636 | ac_ct_CC=$CC |
---|
| 2637 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2638 | set dummy gcc; ac_word=$2 |
---|
| 2639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2641 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2643 | else |
---|
| 2644 | if test -n "$ac_ct_CC"; then |
---|
| 2645 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2646 | else |
---|
| 2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2648 | for as_dir in $PATH |
---|
| 2649 | do |
---|
| 2650 | IFS=$as_save_IFS |
---|
| 2651 | test -z "$as_dir" && as_dir=. |
---|
| 2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2654 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2656 | break 2 |
---|
| 2657 | fi |
---|
| 2658 | done |
---|
| 2659 | done |
---|
| 2660 | |
---|
| 2661 | fi |
---|
| 2662 | fi |
---|
| 2663 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2664 | if test -n "$ac_ct_CC"; then |
---|
| 2665 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2666 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2667 | else |
---|
| 2668 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2669 | echo "${ECHO_T}no" >&6 |
---|
| 2670 | fi |
---|
| 2671 | |
---|
| 2672 | CC=$ac_ct_CC |
---|
| 2673 | else |
---|
| 2674 | CC="$ac_cv_prog_CC" |
---|
| 2675 | fi |
---|
| 2676 | |
---|
| 2677 | if test -z "$CC"; then |
---|
| 2678 | if test -n "$ac_tool_prefix"; then |
---|
| 2679 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2680 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2683 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2685 | else |
---|
| 2686 | if test -n "$CC"; then |
---|
| 2687 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2688 | else |
---|
| 2689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2690 | for as_dir in $PATH |
---|
| 2691 | do |
---|
| 2692 | IFS=$as_save_IFS |
---|
| 2693 | test -z "$as_dir" && as_dir=. |
---|
| 2694 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2696 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2698 | break 2 |
---|
| 2699 | fi |
---|
| 2700 | done |
---|
| 2701 | done |
---|
| 2702 | |
---|
| 2703 | fi |
---|
| 2704 | fi |
---|
| 2705 | CC=$ac_cv_prog_CC |
---|
| 2706 | if test -n "$CC"; then |
---|
| 2707 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2708 | echo "${ECHO_T}$CC" >&6 |
---|
| 2709 | else |
---|
| 2710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2711 | echo "${ECHO_T}no" >&6 |
---|
| 2712 | fi |
---|
| 2713 | |
---|
| 2714 | fi |
---|
| 2715 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2716 | ac_ct_CC=$CC |
---|
| 2717 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2718 | set dummy cc; ac_word=$2 |
---|
| 2719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2721 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2723 | else |
---|
| 2724 | if test -n "$ac_ct_CC"; then |
---|
| 2725 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2726 | else |
---|
| 2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2728 | for as_dir in $PATH |
---|
| 2729 | do |
---|
| 2730 | IFS=$as_save_IFS |
---|
| 2731 | test -z "$as_dir" && as_dir=. |
---|
| 2732 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2734 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2736 | break 2 |
---|
| 2737 | fi |
---|
| 2738 | done |
---|
| 2739 | done |
---|
| 2740 | |
---|
| 2741 | fi |
---|
| 2742 | fi |
---|
| 2743 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2744 | if test -n "$ac_ct_CC"; then |
---|
| 2745 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2746 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2747 | else |
---|
| 2748 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2749 | echo "${ECHO_T}no" >&6 |
---|
| 2750 | fi |
---|
| 2751 | |
---|
| 2752 | CC=$ac_ct_CC |
---|
| 2753 | else |
---|
| 2754 | CC="$ac_cv_prog_CC" |
---|
| 2755 | fi |
---|
| 2756 | |
---|
| 2757 | fi |
---|
| 2758 | if test -z "$CC"; then |
---|
| 2759 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2760 | set dummy cc; ac_word=$2 |
---|
| 2761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2763 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2765 | else |
---|
| 2766 | if test -n "$CC"; then |
---|
| 2767 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2768 | else |
---|
| 2769 | ac_prog_rejected=no |
---|
| 2770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2771 | for as_dir in $PATH |
---|
| 2772 | do |
---|
| 2773 | IFS=$as_save_IFS |
---|
| 2774 | test -z "$as_dir" && as_dir=. |
---|
| 2775 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2777 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2778 | ac_prog_rejected=yes |
---|
| 2779 | continue |
---|
| 2780 | fi |
---|
| 2781 | ac_cv_prog_CC="cc" |
---|
| 2782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2783 | break 2 |
---|
| 2784 | fi |
---|
| 2785 | done |
---|
| 2786 | done |
---|
| 2787 | |
---|
| 2788 | if test $ac_prog_rejected = yes; then |
---|
| 2789 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2790 | set dummy $ac_cv_prog_CC |
---|
| 2791 | shift |
---|
| 2792 | if test $# != 0; then |
---|
| 2793 | # We chose a different compiler from the bogus one. |
---|
| 2794 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2795 | # first if we set CC to just the basename; use the full file name. |
---|
| 2796 | shift |
---|
| 2797 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2798 | fi |
---|
| 2799 | fi |
---|
| 2800 | fi |
---|
| 2801 | fi |
---|
| 2802 | CC=$ac_cv_prog_CC |
---|
| 2803 | if test -n "$CC"; then |
---|
| 2804 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2805 | echo "${ECHO_T}$CC" >&6 |
---|
| 2806 | else |
---|
| 2807 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2808 | echo "${ECHO_T}no" >&6 |
---|
| 2809 | fi |
---|
| 2810 | |
---|
| 2811 | fi |
---|
| 2812 | if test -z "$CC"; then |
---|
| 2813 | if test -n "$ac_tool_prefix"; then |
---|
| 2814 | for ac_prog in cl |
---|
| 2815 | do |
---|
| 2816 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2817 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2820 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2822 | else |
---|
| 2823 | if test -n "$CC"; then |
---|
| 2824 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2825 | else |
---|
| 2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2827 | for as_dir in $PATH |
---|
| 2828 | do |
---|
| 2829 | IFS=$as_save_IFS |
---|
| 2830 | test -z "$as_dir" && as_dir=. |
---|
| 2831 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2833 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2835 | break 2 |
---|
| 2836 | fi |
---|
| 2837 | done |
---|
| 2838 | done |
---|
| 2839 | |
---|
| 2840 | fi |
---|
| 2841 | fi |
---|
| 2842 | CC=$ac_cv_prog_CC |
---|
| 2843 | if test -n "$CC"; then |
---|
| 2844 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2845 | echo "${ECHO_T}$CC" >&6 |
---|
| 2846 | else |
---|
| 2847 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2848 | echo "${ECHO_T}no" >&6 |
---|
| 2849 | fi |
---|
| 2850 | |
---|
| 2851 | test -n "$CC" && break |
---|
| 2852 | done |
---|
| 2853 | fi |
---|
| 2854 | if test -z "$CC"; then |
---|
| 2855 | ac_ct_CC=$CC |
---|
| 2856 | for ac_prog in cl |
---|
| 2857 | do |
---|
| 2858 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2859 | set dummy $ac_prog; ac_word=$2 |
---|
| 2860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2862 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2864 | else |
---|
| 2865 | if test -n "$ac_ct_CC"; then |
---|
| 2866 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2867 | else |
---|
| 2868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2869 | for as_dir in $PATH |
---|
| 2870 | do |
---|
| 2871 | IFS=$as_save_IFS |
---|
| 2872 | test -z "$as_dir" && as_dir=. |
---|
| 2873 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2874 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2875 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2877 | break 2 |
---|
| 2878 | fi |
---|
| 2879 | done |
---|
| 2880 | done |
---|
| 2881 | |
---|
| 2882 | fi |
---|
| 2883 | fi |
---|
| 2884 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2885 | if test -n "$ac_ct_CC"; then |
---|
| 2886 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2887 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2888 | else |
---|
| 2889 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2890 | echo "${ECHO_T}no" >&6 |
---|
| 2891 | fi |
---|
| 2892 | |
---|
| 2893 | test -n "$ac_ct_CC" && break |
---|
| 2894 | done |
---|
| 2895 | |
---|
| 2896 | CC=$ac_ct_CC |
---|
| 2897 | fi |
---|
| 2898 | |
---|
| 2899 | fi |
---|
| 2900 | |
---|
| 2901 | |
---|
| 2902 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2903 | See \`config.log' for more details." >&5 |
---|
| 2904 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2905 | See \`config.log' for more details." >&2;} |
---|
| 2906 | { (exit 1); exit 1; }; } |
---|
| 2907 | |
---|
| 2908 | # Provide some information about the compiler. |
---|
| 2909 | echo "$as_me:$LINENO:" \ |
---|
| 2910 | "checking for C compiler version" >&5 |
---|
| 2911 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2913 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2914 | ac_status=$? |
---|
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2916 | (exit $ac_status); } |
---|
| 2917 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2918 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2919 | ac_status=$? |
---|
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2921 | (exit $ac_status); } |
---|
| 2922 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2923 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2924 | ac_status=$? |
---|
| 2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2926 | (exit $ac_status); } |
---|
| 2927 | |
---|
| 2928 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2929 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2930 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2932 | else |
---|
| 2933 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2934 | /* confdefs.h. */ |
---|
| 2935 | _ACEOF |
---|
| 2936 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2937 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2938 | /* end confdefs.h. */ |
---|
| 2939 | |
---|
| 2940 | int |
---|
| 2941 | main () |
---|
| 2942 | { |
---|
| 2943 | #ifndef __GNUC__ |
---|
| 2944 | choke me |
---|
| 2945 | #endif |
---|
| 2946 | |
---|
| 2947 | ; |
---|
| 2948 | return 0; |
---|
| 2949 | } |
---|
| 2950 | _ACEOF |
---|
| 2951 | rm -f conftest.$ac_objext |
---|
| 2952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2953 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2954 | ac_status=$? |
---|
| 2955 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2956 | rm -f conftest.er1 |
---|
| 2957 | cat conftest.err >&5 |
---|
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2959 | (exit $ac_status); } && |
---|
| 2960 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2961 | || test ! -s conftest.err' |
---|
| 2962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2963 | (eval $ac_try) 2>&5 |
---|
| 2964 | ac_status=$? |
---|
| 2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2966 | (exit $ac_status); }; } && |
---|
| 2967 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2969 | (eval $ac_try) 2>&5 |
---|
| 2970 | ac_status=$? |
---|
| 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2972 | (exit $ac_status); }; }; then |
---|
| 2973 | ac_compiler_gnu=yes |
---|
| 2974 | else |
---|
| 2975 | echo "$as_me: failed program was:" >&5 |
---|
| 2976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2977 | |
---|
| 2978 | ac_compiler_gnu=no |
---|
| 2979 | fi |
---|
| 2980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2981 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2982 | |
---|
| 2983 | fi |
---|
| 2984 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2985 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2986 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2987 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2988 | ac_save_CFLAGS=$CFLAGS |
---|
| 2989 | CFLAGS="-g" |
---|
| 2990 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2991 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2992 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2994 | else |
---|
| 2995 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2996 | /* confdefs.h. */ |
---|
| 2997 | _ACEOF |
---|
| 2998 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2999 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3000 | /* end confdefs.h. */ |
---|
| 3001 | |
---|
| 3002 | int |
---|
| 3003 | main () |
---|
| 3004 | { |
---|
| 3005 | |
---|
| 3006 | ; |
---|
| 3007 | return 0; |
---|
| 3008 | } |
---|
| 3009 | _ACEOF |
---|
| 3010 | rm -f conftest.$ac_objext |
---|
| 3011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3012 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3013 | ac_status=$? |
---|
| 3014 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3015 | rm -f conftest.er1 |
---|
| 3016 | cat conftest.err >&5 |
---|
| 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3018 | (exit $ac_status); } && |
---|
| 3019 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3020 | || test ! -s conftest.err' |
---|
| 3021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3022 | (eval $ac_try) 2>&5 |
---|
| 3023 | ac_status=$? |
---|
| 3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3025 | (exit $ac_status); }; } && |
---|
| 3026 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3028 | (eval $ac_try) 2>&5 |
---|
| 3029 | ac_status=$? |
---|
| 3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3031 | (exit $ac_status); }; }; then |
---|
| 3032 | ac_cv_prog_cc_g=yes |
---|
| 3033 | else |
---|
| 3034 | echo "$as_me: failed program was:" >&5 |
---|
| 3035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3036 | |
---|
| 3037 | ac_cv_prog_cc_g=no |
---|
| 3038 | fi |
---|
| 3039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3040 | fi |
---|
| 3041 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3042 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3043 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3044 | CFLAGS=$ac_save_CFLAGS |
---|
| 3045 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3046 | if test "$GCC" = yes; then |
---|
| 3047 | CFLAGS="-g -O2" |
---|
| 3048 | else |
---|
| 3049 | CFLAGS="-g" |
---|
| 3050 | fi |
---|
| 3051 | else |
---|
| 3052 | if test "$GCC" = yes; then |
---|
| 3053 | CFLAGS="-O2" |
---|
| 3054 | else |
---|
| 3055 | CFLAGS= |
---|
| 3056 | fi |
---|
| 3057 | fi |
---|
| 3058 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3059 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3060 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3062 | else |
---|
| 3063 | ac_cv_prog_cc_stdc=no |
---|
| 3064 | ac_save_CC=$CC |
---|
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3066 | /* confdefs.h. */ |
---|
| 3067 | _ACEOF |
---|
| 3068 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3070 | /* end confdefs.h. */ |
---|
| 3071 | #include <stdarg.h> |
---|
| 3072 | #include <stdio.h> |
---|
| 3073 | #include <sys/types.h> |
---|
| 3074 | #include <sys/stat.h> |
---|
| 3075 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3076 | struct buf { int x; }; |
---|
| 3077 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3078 | static char *e (p, i) |
---|
| 3079 | char **p; |
---|
| 3080 | int i; |
---|
| 3081 | { |
---|
| 3082 | return p[i]; |
---|
| 3083 | } |
---|
| 3084 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3085 | { |
---|
| 3086 | char *s; |
---|
| 3087 | va_list v; |
---|
| 3088 | va_start (v,p); |
---|
| 3089 | s = g (p, va_arg (v,int)); |
---|
| 3090 | va_end (v); |
---|
| 3091 | return s; |
---|
| 3092 | } |
---|
| 3093 | |
---|
| 3094 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3095 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3096 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3097 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3098 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3099 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3100 | that's true only with -std1. */ |
---|
| 3101 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3102 | |
---|
| 3103 | int test (int i, double x); |
---|
| 3104 | struct s1 {int (*f) (int a);}; |
---|
| 3105 | struct s2 {int (*f) (double a);}; |
---|
| 3106 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3107 | int argc; |
---|
| 3108 | char **argv; |
---|
| 3109 | int |
---|
| 3110 | main () |
---|
| 3111 | { |
---|
| 3112 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3113 | ; |
---|
| 3114 | return 0; |
---|
| 3115 | } |
---|
| 3116 | _ACEOF |
---|
| 3117 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3118 | # breaks some systems' header files. |
---|
| 3119 | # AIX -qlanglvl=ansi |
---|
| 3120 | # Ultrix and OSF/1 -std1 |
---|
| 3121 | # HP-UX 10.20 and later -Ae |
---|
| 3122 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3123 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3124 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3125 | do |
---|
| 3126 | CC="$ac_save_CC $ac_arg" |
---|
| 3127 | rm -f conftest.$ac_objext |
---|
| 3128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3129 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3130 | ac_status=$? |
---|
| 3131 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3132 | rm -f conftest.er1 |
---|
| 3133 | cat conftest.err >&5 |
---|
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3135 | (exit $ac_status); } && |
---|
| 3136 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3137 | || test ! -s conftest.err' |
---|
| 3138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3139 | (eval $ac_try) 2>&5 |
---|
| 3140 | ac_status=$? |
---|
| 3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3142 | (exit $ac_status); }; } && |
---|
| 3143 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3145 | (eval $ac_try) 2>&5 |
---|
| 3146 | ac_status=$? |
---|
| 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3148 | (exit $ac_status); }; }; then |
---|
| 3149 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3150 | break |
---|
| 3151 | else |
---|
| 3152 | echo "$as_me: failed program was:" >&5 |
---|
| 3153 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3154 | |
---|
| 3155 | fi |
---|
| 3156 | rm -f conftest.err conftest.$ac_objext |
---|
| 3157 | done |
---|
| 3158 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3159 | CC=$ac_save_CC |
---|
| 3160 | |
---|
| 3161 | fi |
---|
| 3162 | |
---|
| 3163 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3164 | x|xno) |
---|
| 3165 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3166 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3167 | *) |
---|
| 3168 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3169 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3170 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3171 | esac |
---|
| 3172 | |
---|
| 3173 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3174 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3175 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3176 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3178 | #ifndef __cplusplus |
---|
| 3179 | choke me |
---|
| 3180 | #endif |
---|
| 3181 | _ACEOF |
---|
| 3182 | rm -f conftest.$ac_objext |
---|
| 3183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3184 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3185 | ac_status=$? |
---|
| 3186 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3187 | rm -f conftest.er1 |
---|
| 3188 | cat conftest.err >&5 |
---|
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3190 | (exit $ac_status); } && |
---|
| 3191 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3192 | || test ! -s conftest.err' |
---|
| 3193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3194 | (eval $ac_try) 2>&5 |
---|
| 3195 | ac_status=$? |
---|
| 3196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3197 | (exit $ac_status); }; } && |
---|
| 3198 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3200 | (eval $ac_try) 2>&5 |
---|
| 3201 | ac_status=$? |
---|
| 3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3203 | (exit $ac_status); }; }; then |
---|
| 3204 | for ac_declaration in \ |
---|
| 3205 | '' \ |
---|
| 3206 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3207 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3208 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3209 | 'extern "C" void exit (int);' \ |
---|
| 3210 | 'void exit (int);' |
---|
| 3211 | do |
---|
| 3212 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3213 | /* confdefs.h. */ |
---|
| 3214 | _ACEOF |
---|
| 3215 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3216 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3217 | /* end confdefs.h. */ |
---|
| 3218 | $ac_declaration |
---|
| 3219 | #include <stdlib.h> |
---|
| 3220 | int |
---|
| 3221 | main () |
---|
| 3222 | { |
---|
| 3223 | exit (42); |
---|
| 3224 | ; |
---|
| 3225 | return 0; |
---|
| 3226 | } |
---|
| 3227 | _ACEOF |
---|
| 3228 | rm -f conftest.$ac_objext |
---|
| 3229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3230 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3231 | ac_status=$? |
---|
| 3232 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3233 | rm -f conftest.er1 |
---|
| 3234 | cat conftest.err >&5 |
---|
| 3235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3236 | (exit $ac_status); } && |
---|
| 3237 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3238 | || test ! -s conftest.err' |
---|
| 3239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3240 | (eval $ac_try) 2>&5 |
---|
| 3241 | ac_status=$? |
---|
| 3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3243 | (exit $ac_status); }; } && |
---|
| 3244 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3246 | (eval $ac_try) 2>&5 |
---|
| 3247 | ac_status=$? |
---|
| 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3249 | (exit $ac_status); }; }; then |
---|
| 3250 | : |
---|
| 3251 | else |
---|
| 3252 | echo "$as_me: failed program was:" >&5 |
---|
| 3253 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3254 | |
---|
| 3255 | continue |
---|
| 3256 | fi |
---|
| 3257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3258 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3259 | /* confdefs.h. */ |
---|
| 3260 | _ACEOF |
---|
| 3261 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3262 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3263 | /* end confdefs.h. */ |
---|
| 3264 | $ac_declaration |
---|
| 3265 | int |
---|
| 3266 | main () |
---|
| 3267 | { |
---|
| 3268 | exit (42); |
---|
| 3269 | ; |
---|
| 3270 | return 0; |
---|
| 3271 | } |
---|
| 3272 | _ACEOF |
---|
| 3273 | rm -f conftest.$ac_objext |
---|
| 3274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3275 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3276 | ac_status=$? |
---|
| 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3278 | rm -f conftest.er1 |
---|
| 3279 | cat conftest.err >&5 |
---|
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3281 | (exit $ac_status); } && |
---|
| 3282 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3283 | || test ! -s conftest.err' |
---|
| 3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3285 | (eval $ac_try) 2>&5 |
---|
| 3286 | ac_status=$? |
---|
| 3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3288 | (exit $ac_status); }; } && |
---|
| 3289 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3291 | (eval $ac_try) 2>&5 |
---|
| 3292 | ac_status=$? |
---|
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3294 | (exit $ac_status); }; }; then |
---|
| 3295 | break |
---|
| 3296 | else |
---|
| 3297 | echo "$as_me: failed program was:" >&5 |
---|
| 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3299 | |
---|
| 3300 | fi |
---|
| 3301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3302 | done |
---|
| 3303 | rm -f conftest* |
---|
| 3304 | if test -n "$ac_declaration"; then |
---|
| 3305 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3306 | echo $ac_declaration >>confdefs.h |
---|
| 3307 | echo '#endif' >>confdefs.h |
---|
| 3308 | fi |
---|
| 3309 | |
---|
| 3310 | else |
---|
| 3311 | echo "$as_me: failed program was:" >&5 |
---|
| 3312 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3313 | |
---|
| 3314 | fi |
---|
| 3315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3316 | ac_ext=c |
---|
| 3317 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3321 | |
---|
| 3322 | depcc="$CC" am_compiler_list= |
---|
| 3323 | |
---|
| 3324 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3325 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3326 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3328 | else |
---|
| 3329 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3330 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3331 | # making bogus files that we don't know about and never remove. For |
---|
| 3332 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3333 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3334 | # in D'. |
---|
| 3335 | mkdir conftest.dir |
---|
| 3336 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3337 | # using a relative directory. |
---|
| 3338 | cp "$am_depcomp" conftest.dir |
---|
| 3339 | cd conftest.dir |
---|
| 3340 | # We will build objects and dependencies in a subdirectory because |
---|
| 3341 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3342 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3343 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3344 | # the current directory while Tru64 will put them in the object |
---|
| 3345 | # directory. |
---|
| 3346 | mkdir sub |
---|
| 3347 | |
---|
| 3348 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3349 | if test "$am_compiler_list" = ""; then |
---|
| 3350 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3351 | fi |
---|
| 3352 | for depmode in $am_compiler_list; do |
---|
| 3353 | # Setup a source with many dependencies, because some compilers |
---|
| 3354 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3355 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3356 | # |
---|
| 3357 | # We need to recreate these files for each test, as the compiler may |
---|
| 3358 | # overwrite some of them when testing with obscure command lines. |
---|
| 3359 | # This happens at least with the AIX C compiler. |
---|
| 3360 | : > sub/conftest.c |
---|
| 3361 | for i in 1 2 3 4 5 6; do |
---|
| 3362 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 3363 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3364 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3365 | touch sub/conftst$i.h |
---|
[1956] | 3366 | done |
---|
| 3367 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3368 | |
---|
| 3369 | case $depmode in |
---|
| 3370 | nosideeffect) |
---|
| 3371 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3372 | # only be used when explicitly requested |
---|
| 3373 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3374 | continue |
---|
| 3375 | else |
---|
| 3376 | break |
---|
| 3377 | fi |
---|
| 3378 | ;; |
---|
| 3379 | none) break ;; |
---|
| 3380 | esac |
---|
| 3381 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3382 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3383 | # handle `-M -o', and we need to detect this. |
---|
| 3384 | if depmode=$depmode \ |
---|
| 3385 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3386 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3387 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3388 | >/dev/null 2>conftest.err && |
---|
| 3389 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3390 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3391 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3392 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 3393 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3394 | # that says an option was ignored or not supported. |
---|
| 3395 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3396 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3397 | # The diagnosis changed in icc 8.0: |
---|
| 3398 | # icc: Command line remark: option '-MP' not supported |
---|
| 3399 | if (grep 'ignoring option' conftest.err || |
---|
| 3400 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3401 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3402 | break |
---|
| 3403 | fi |
---|
| 3404 | fi |
---|
| 3405 | done |
---|
| 3406 | |
---|
| 3407 | cd .. |
---|
| 3408 | rm -rf conftest.dir |
---|
| 3409 | else |
---|
| 3410 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3411 | fi |
---|
| 3412 | |
---|
| 3413 | fi |
---|
| 3414 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3415 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3416 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3417 | |
---|
| 3418 | |
---|
| 3419 | |
---|
| 3420 | if |
---|
| 3421 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3422 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3423 | am__fastdepCC_TRUE= |
---|
| 3424 | am__fastdepCC_FALSE='#' |
---|
| 3425 | else |
---|
| 3426 | am__fastdepCC_TRUE='#' |
---|
| 3427 | am__fastdepCC_FALSE= |
---|
| 3428 | fi |
---|
| 3429 | |
---|
| 3430 | |
---|
| 3431 | |
---|
[1971] | 3432 | ac_ext=c |
---|
| 3433 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3437 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3438 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3439 | # On Suns, sometimes $CPP names a directory. |
---|
| 3440 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3441 | CPP= |
---|
| 3442 | fi |
---|
| 3443 | if test -z "$CPP"; then |
---|
| 3444 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3446 | else |
---|
[1971] | 3447 | # Double quotes because CPP needs to be expanded |
---|
| 3448 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3449 | do |
---|
| 3450 | ac_preproc_ok=false |
---|
| 3451 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3452 | do |
---|
| 3453 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3454 | # with a fresh cross-compiler works. |
---|
| 3455 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3456 | # <limits.h> exists even on freestanding compilers. |
---|
| 3457 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3458 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3459 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3460 | /* confdefs.h. */ |
---|
| 3461 | _ACEOF |
---|
| 3462 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3463 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3464 | /* end confdefs.h. */ |
---|
| 3465 | #ifdef __STDC__ |
---|
| 3466 | # include <limits.h> |
---|
| 3467 | #else |
---|
| 3468 | # include <assert.h> |
---|
| 3469 | #endif |
---|
| 3470 | Syntax error |
---|
| 3471 | _ACEOF |
---|
| 3472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3474 | ac_status=$? |
---|
| 3475 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3476 | rm -f conftest.er1 |
---|
| 3477 | cat conftest.err >&5 |
---|
| 3478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3479 | (exit $ac_status); } >/dev/null; then |
---|
| 3480 | if test -s conftest.err; then |
---|
| 3481 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3483 | else |
---|
| 3484 | ac_cpp_err= |
---|
| 3485 | fi |
---|
| 3486 | else |
---|
| 3487 | ac_cpp_err=yes |
---|
| 3488 | fi |
---|
| 3489 | if test -z "$ac_cpp_err"; then |
---|
| 3490 | : |
---|
| 3491 | else |
---|
| 3492 | echo "$as_me: failed program was:" >&5 |
---|
| 3493 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3494 | |
---|
| 3495 | # Broken: fails on valid input. |
---|
| 3496 | continue |
---|
| 3497 | fi |
---|
| 3498 | rm -f conftest.err conftest.$ac_ext |
---|
| 3499 | |
---|
| 3500 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3501 | # can be detected and how. |
---|
| 3502 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3503 | /* confdefs.h. */ |
---|
| 3504 | _ACEOF |
---|
| 3505 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3506 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3507 | /* end confdefs.h. */ |
---|
| 3508 | #include <ac_nonexistent.h> |
---|
| 3509 | _ACEOF |
---|
| 3510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3512 | ac_status=$? |
---|
| 3513 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3514 | rm -f conftest.er1 |
---|
| 3515 | cat conftest.err >&5 |
---|
| 3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3517 | (exit $ac_status); } >/dev/null; then |
---|
| 3518 | if test -s conftest.err; then |
---|
| 3519 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3520 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3521 | else |
---|
| 3522 | ac_cpp_err= |
---|
| 3523 | fi |
---|
| 3524 | else |
---|
| 3525 | ac_cpp_err=yes |
---|
| 3526 | fi |
---|
| 3527 | if test -z "$ac_cpp_err"; then |
---|
| 3528 | # Broken: success on invalid input. |
---|
| 3529 | continue |
---|
| 3530 | else |
---|
| 3531 | echo "$as_me: failed program was:" >&5 |
---|
| 3532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3533 | |
---|
| 3534 | # Passes both tests. |
---|
| 3535 | ac_preproc_ok=: |
---|
| 3536 | break |
---|
| 3537 | fi |
---|
| 3538 | rm -f conftest.err conftest.$ac_ext |
---|
| 3539 | |
---|
| 3540 | done |
---|
| 3541 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3542 | rm -f conftest.err conftest.$ac_ext |
---|
| 3543 | if $ac_preproc_ok; then |
---|
| 3544 | break |
---|
| 3545 | fi |
---|
| 3546 | |
---|
| 3547 | done |
---|
| 3548 | ac_cv_prog_CPP=$CPP |
---|
| 3549 | |
---|
| 3550 | fi |
---|
| 3551 | CPP=$ac_cv_prog_CPP |
---|
| 3552 | else |
---|
| 3553 | ac_cv_prog_CPP=$CPP |
---|
| 3554 | fi |
---|
| 3555 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3556 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3557 | ac_preproc_ok=false |
---|
| 3558 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3559 | do |
---|
| 3560 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3561 | # with a fresh cross-compiler works. |
---|
| 3562 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3563 | # <limits.h> exists even on freestanding compilers. |
---|
| 3564 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3565 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3566 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3567 | /* confdefs.h. */ |
---|
| 3568 | _ACEOF |
---|
| 3569 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3570 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3571 | /* end confdefs.h. */ |
---|
| 3572 | #ifdef __STDC__ |
---|
| 3573 | # include <limits.h> |
---|
| 3574 | #else |
---|
| 3575 | # include <assert.h> |
---|
| 3576 | #endif |
---|
| 3577 | Syntax error |
---|
| 3578 | _ACEOF |
---|
| 3579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3580 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3581 | ac_status=$? |
---|
| 3582 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3583 | rm -f conftest.er1 |
---|
| 3584 | cat conftest.err >&5 |
---|
| 3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3586 | (exit $ac_status); } >/dev/null; then |
---|
| 3587 | if test -s conftest.err; then |
---|
| 3588 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3589 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3590 | else |
---|
| 3591 | ac_cpp_err= |
---|
| 3592 | fi |
---|
| 3593 | else |
---|
| 3594 | ac_cpp_err=yes |
---|
| 3595 | fi |
---|
| 3596 | if test -z "$ac_cpp_err"; then |
---|
| 3597 | : |
---|
| 3598 | else |
---|
| 3599 | echo "$as_me: failed program was:" >&5 |
---|
| 3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3601 | |
---|
| 3602 | # Broken: fails on valid input. |
---|
| 3603 | continue |
---|
| 3604 | fi |
---|
| 3605 | rm -f conftest.err conftest.$ac_ext |
---|
| 3606 | |
---|
| 3607 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3608 | # can be detected and how. |
---|
| 3609 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3610 | /* confdefs.h. */ |
---|
| 3611 | _ACEOF |
---|
| 3612 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3613 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3614 | /* end confdefs.h. */ |
---|
| 3615 | #include <ac_nonexistent.h> |
---|
| 3616 | _ACEOF |
---|
| 3617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3619 | ac_status=$? |
---|
| 3620 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3621 | rm -f conftest.er1 |
---|
| 3622 | cat conftest.err >&5 |
---|
| 3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3624 | (exit $ac_status); } >/dev/null; then |
---|
| 3625 | if test -s conftest.err; then |
---|
| 3626 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3628 | else |
---|
| 3629 | ac_cpp_err= |
---|
| 3630 | fi |
---|
| 3631 | else |
---|
| 3632 | ac_cpp_err=yes |
---|
| 3633 | fi |
---|
| 3634 | if test -z "$ac_cpp_err"; then |
---|
| 3635 | # Broken: success on invalid input. |
---|
| 3636 | continue |
---|
| 3637 | else |
---|
| 3638 | echo "$as_me: failed program was:" >&5 |
---|
| 3639 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3640 | |
---|
| 3641 | # Passes both tests. |
---|
| 3642 | ac_preproc_ok=: |
---|
| 3643 | break |
---|
| 3644 | fi |
---|
| 3645 | rm -f conftest.err conftest.$ac_ext |
---|
| 3646 | |
---|
| 3647 | done |
---|
| 3648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3649 | rm -f conftest.err conftest.$ac_ext |
---|
| 3650 | if $ac_preproc_ok; then |
---|
| 3651 | : |
---|
| 3652 | else |
---|
| 3653 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3654 | See \`config.log' for more details." >&5 |
---|
| 3655 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3656 | See \`config.log' for more details." >&2;} |
---|
| 3657 | { (exit 1); exit 1; }; } |
---|
| 3658 | fi |
---|
| 3659 | |
---|
| 3660 | ac_ext=c |
---|
| 3661 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3665 | |
---|
| 3666 | |
---|
| 3667 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3668 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3669 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3671 | else |
---|
| 3672 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3673 | then ac_cv_prog_egrep='grep -E' |
---|
| 3674 | else ac_cv_prog_egrep='egrep' |
---|
| 3675 | fi |
---|
| 3676 | fi |
---|
| 3677 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3678 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3679 | EGREP=$ac_cv_prog_egrep |
---|
| 3680 | |
---|
| 3681 | |
---|
| 3682 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3683 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3684 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3686 | else |
---|
| 3687 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3688 | /* confdefs.h. */ |
---|
| 3689 | _ACEOF |
---|
| 3690 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3691 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3692 | /* end confdefs.h. */ |
---|
| 3693 | #include <stdlib.h> |
---|
| 3694 | #include <stdarg.h> |
---|
| 3695 | #include <string.h> |
---|
| 3696 | #include <float.h> |
---|
| 3697 | |
---|
| 3698 | int |
---|
| 3699 | main () |
---|
| 3700 | { |
---|
| 3701 | |
---|
| 3702 | ; |
---|
| 3703 | return 0; |
---|
| 3704 | } |
---|
| 3705 | _ACEOF |
---|
| 3706 | rm -f conftest.$ac_objext |
---|
| 3707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3708 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3709 | ac_status=$? |
---|
| 3710 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3711 | rm -f conftest.er1 |
---|
| 3712 | cat conftest.err >&5 |
---|
| 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3714 | (exit $ac_status); } && |
---|
| 3715 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3716 | || test ! -s conftest.err' |
---|
| 3717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3718 | (eval $ac_try) 2>&5 |
---|
| 3719 | ac_status=$? |
---|
| 3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3721 | (exit $ac_status); }; } && |
---|
| 3722 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3724 | (eval $ac_try) 2>&5 |
---|
| 3725 | ac_status=$? |
---|
| 3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3727 | (exit $ac_status); }; }; then |
---|
| 3728 | ac_cv_header_stdc=yes |
---|
| 3729 | else |
---|
| 3730 | echo "$as_me: failed program was:" >&5 |
---|
| 3731 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3732 | |
---|
| 3733 | ac_cv_header_stdc=no |
---|
| 3734 | fi |
---|
| 3735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3736 | |
---|
| 3737 | if test $ac_cv_header_stdc = yes; then |
---|
| 3738 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3739 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3740 | /* confdefs.h. */ |
---|
| 3741 | _ACEOF |
---|
| 3742 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3743 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3744 | /* end confdefs.h. */ |
---|
| 3745 | #include <string.h> |
---|
| 3746 | |
---|
| 3747 | _ACEOF |
---|
| 3748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3749 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3750 | : |
---|
| 3751 | else |
---|
| 3752 | ac_cv_header_stdc=no |
---|
| 3753 | fi |
---|
| 3754 | rm -f conftest* |
---|
| 3755 | |
---|
| 3756 | fi |
---|
| 3757 | |
---|
| 3758 | if test $ac_cv_header_stdc = yes; then |
---|
| 3759 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3760 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3761 | /* confdefs.h. */ |
---|
| 3762 | _ACEOF |
---|
| 3763 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3764 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3765 | /* end confdefs.h. */ |
---|
| 3766 | #include <stdlib.h> |
---|
| 3767 | |
---|
| 3768 | _ACEOF |
---|
| 3769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3770 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3771 | : |
---|
| 3772 | else |
---|
| 3773 | ac_cv_header_stdc=no |
---|
| 3774 | fi |
---|
| 3775 | rm -f conftest* |
---|
| 3776 | |
---|
| 3777 | fi |
---|
| 3778 | |
---|
| 3779 | if test $ac_cv_header_stdc = yes; then |
---|
| 3780 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3781 | if test "$cross_compiling" = yes; then |
---|
| 3782 | : |
---|
| 3783 | else |
---|
| 3784 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3785 | /* confdefs.h. */ |
---|
| 3786 | _ACEOF |
---|
| 3787 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3788 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3789 | /* end confdefs.h. */ |
---|
| 3790 | #include <ctype.h> |
---|
| 3791 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3792 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3793 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3794 | #else |
---|
| 3795 | # define ISLOWER(c) \ |
---|
| 3796 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3797 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3798 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3799 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3800 | #endif |
---|
| 3801 | |
---|
| 3802 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3803 | int |
---|
| 3804 | main () |
---|
| 3805 | { |
---|
| 3806 | int i; |
---|
| 3807 | for (i = 0; i < 256; i++) |
---|
| 3808 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3809 | || toupper (i) != TOUPPER (i)) |
---|
| 3810 | exit(2); |
---|
| 3811 | exit (0); |
---|
| 3812 | } |
---|
| 3813 | _ACEOF |
---|
| 3814 | rm -f conftest$ac_exeext |
---|
| 3815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3816 | (eval $ac_link) 2>&5 |
---|
| 3817 | ac_status=$? |
---|
| 3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3819 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3821 | (eval $ac_try) 2>&5 |
---|
| 3822 | ac_status=$? |
---|
| 3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3824 | (exit $ac_status); }; }; then |
---|
| 3825 | : |
---|
| 3826 | else |
---|
| 3827 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3828 | echo "$as_me: failed program was:" >&5 |
---|
| 3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3830 | |
---|
| 3831 | ( exit $ac_status ) |
---|
| 3832 | ac_cv_header_stdc=no |
---|
| 3833 | fi |
---|
| 3834 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3835 | fi |
---|
| 3836 | fi |
---|
| 3837 | fi |
---|
| 3838 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3839 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3840 | if test $ac_cv_header_stdc = yes; then |
---|
| 3841 | |
---|
| 3842 | cat >>confdefs.h <<\_ACEOF |
---|
| 3843 | #define STDC_HEADERS 1 |
---|
| 3844 | _ACEOF |
---|
| 3845 | |
---|
| 3846 | fi |
---|
| 3847 | |
---|
| 3848 | |
---|
[3424] | 3849 | ################################## |
---|
| 3850 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3851 | ################################## |
---|
| 3852 | |
---|
| 3853 | #-----------------# |
---|
| 3854 | # DEBUG-statement # |
---|
| 3855 | #-----------------# |
---|
[3173] | 3856 | DEBUG=no |
---|
| 3857 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3858 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3859 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3860 | if test "${enable_debug+set}" = set; then |
---|
| 3861 | enableval="$enable_debug" |
---|
[3205] | 3862 | DEBUG=$enableval |
---|
[3173] | 3863 | fi; |
---|
| 3864 | |
---|
[3424] | 3865 | if test x$DEBUG = xno; then |
---|
[3205] | 3866 | echo "no" |
---|
[3592] | 3867 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
| 3868 | DEBUG=4 |
---|
[3424] | 3869 | elif test x$DEBUG = xyes; then |
---|
[3205] | 3870 | echo "yes" |
---|
[3424] | 3871 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3872 | DEBUG=4 |
---|
[3205] | 3873 | else |
---|
[3424] | 3874 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3875 | fi |
---|
| 3876 | |
---|
[3173] | 3877 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3878 | #define DEBUG $DEBUG |
---|
[3173] | 3879 | _ACEOF |
---|
| 3880 | |
---|
| 3881 | |
---|
| 3882 | |
---|
| 3883 | |
---|
[3592] | 3884 | #---------------# |
---|
| 3885 | # Modular Debug # |
---|
| 3886 | #---------------# |
---|
| 3887 | MODULAR_DEBUG=yes |
---|
| 3888 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
| 3889 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
| 3890 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
| 3891 | if test "${enable_modular_debug+set}" = set; then |
---|
| 3892 | enableval="$enable_modular_debug" |
---|
| 3893 | MODULAR_DEBUG=$enableval |
---|
| 3894 | fi; |
---|
| 3895 | |
---|
| 3896 | if test x$MODULAR_DEBUG = xno; then |
---|
| 3897 | echo "no" |
---|
| 3898 | elif test x$MODULAR_DEBUG = xyes; then |
---|
| 3899 | echo "yes" |
---|
| 3900 | |
---|
| 3901 | cat >>confdefs.h <<_ACEOF |
---|
| 3902 | #define MODULAR_DEBUG 1 |
---|
| 3903 | _ACEOF |
---|
| 3904 | |
---|
| 3905 | fi |
---|
| 3906 | |
---|
[3424] | 3907 | #--------------# |
---|
| 3908 | # GTK-disabled # |
---|
| 3909 | #--------------# |
---|
[3100] | 3910 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3911 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3912 | |
---|
| 3913 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3914 | if test "${with_gtk+set}" = set; then |
---|
| 3915 | withval="$with_gtk" |
---|
[3100] | 3916 | def_gtk=no |
---|
[3205] | 3917 | else |
---|
| 3918 | def_gtk=yes |
---|
[3100] | 3919 | fi; |
---|
[3424] | 3920 | if test x$def_gtk = xyes; then |
---|
[3100] | 3921 | echo "yes" |
---|
| 3922 | fi |
---|
[3424] | 3923 | if test x$def_gtk = xno; then |
---|
[3100] | 3924 | echo "no" |
---|
| 3925 | fi |
---|
[3423] | 3926 | |
---|
[3424] | 3927 | #------------------# |
---|
| 3928 | # gThread-disabled # |
---|
| 3929 | #------------------# |
---|
[3423] | 3930 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
| 3931 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
| 3932 | |
---|
| 3933 | # Check whether --with-gthread or --without-gthread was given. |
---|
| 3934 | if test "${with_gthread+set}" = set; then |
---|
| 3935 | withval="$with_gthread" |
---|
| 3936 | def_gthread=no |
---|
| 3937 | else |
---|
| 3938 | def_gthread=yes |
---|
| 3939 | fi; |
---|
[3424] | 3940 | if test x$def_gthread = xyes; then |
---|
[3423] | 3941 | echo "yes" |
---|
| 3942 | fi |
---|
[3424] | 3943 | if test x$def_gthread = xno; then |
---|
[3423] | 3944 | echo "no" |
---|
| 3945 | fi |
---|
| 3946 | |
---|
[3424] | 3947 | #------------------# |
---|
| 3948 | # pthread-disabled # |
---|
| 3949 | #------------------# |
---|
[3423] | 3950 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
| 3951 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
| 3952 | |
---|
| 3953 | # Check whether --with-pthread or --without-pthread was given. |
---|
| 3954 | if test "${with_pthread+set}" = set; then |
---|
| 3955 | withval="$with_pthread" |
---|
| 3956 | def_pthread=no |
---|
| 3957 | else |
---|
| 3958 | def_pthread=yes |
---|
| 3959 | fi; |
---|
[3424] | 3960 | if test x$def_pthread = xyes; then |
---|
[3423] | 3961 | echo "yes" |
---|
| 3962 | fi |
---|
[3424] | 3963 | if test x$def_pthread = xno; then |
---|
[3423] | 3964 | echo "no" |
---|
| 3965 | fi |
---|
| 3966 | |
---|
[3424] | 3967 | #------------------# |
---|
| 3968 | # libCurl-disabled # |
---|
| 3969 | #------------------# |
---|
[3423] | 3970 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 3971 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 3972 | |
---|
| 3973 | # Check whether --with-curl or --without-curl was given. |
---|
| 3974 | if test "${with_curl+set}" = set; then |
---|
| 3975 | withval="$with_curl" |
---|
| 3976 | def_curl=no |
---|
| 3977 | else |
---|
| 3978 | def_curl=yes |
---|
| 3979 | fi; |
---|
[3424] | 3980 | if test x$def_curl = xyes; then |
---|
[3423] | 3981 | echo "yes" |
---|
| 3982 | fi |
---|
[3424] | 3983 | if test x$def_curl = xno; then |
---|
[3423] | 3984 | echo "no" |
---|
| 3985 | fi |
---|
| 3986 | |
---|
[3424] | 3987 | #-------------------# |
---|
| 3988 | # SubProject-enable # |
---|
| 3989 | #-------------------# |
---|
| 3990 | def_sub_projects=no |
---|
[3377] | 3991 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 3992 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 3993 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 3994 | if test "${enable_sub_projects+set}" = set; then |
---|
| 3995 | enableval="$enable_sub_projects" |
---|
| 3996 | def_sub_projects=yes |
---|
| 3997 | fi; |
---|
[3424] | 3998 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 3999 | echo "yes" |
---|
| 4000 | fi |
---|
[3424] | 4001 | if test x$def_sub_projects = xno; then |
---|
[3377] | 4002 | echo "no" |
---|
| 4003 | fi |
---|
| 4004 | |
---|
| 4005 | |
---|
| 4006 | if test x$def_sub_projects = xyes; then |
---|
| 4007 | SUB_PROJECTS_TRUE= |
---|
| 4008 | SUB_PROJECTS_FALSE='#' |
---|
| 4009 | else |
---|
| 4010 | SUB_PROJECTS_TRUE='#' |
---|
| 4011 | SUB_PROJECTS_FALSE= |
---|
| 4012 | fi |
---|
| 4013 | |
---|
| 4014 | |
---|
[3788] | 4015 | #-------------------# |
---|
| 4016 | # Profiling Enabled # |
---|
| 4017 | #-------------------# |
---|
| 4018 | def_profiling=no |
---|
| 4019 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
| 4020 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
| 4021 | # Check whether --enable-profile or --disable-profile was given. |
---|
| 4022 | if test "${enable_profile+set}" = set; then |
---|
| 4023 | enableval="$enable_profile" |
---|
| 4024 | def_profiling=yes |
---|
| 4025 | fi; |
---|
| 4026 | if test x$def_profiling = xyes; then |
---|
| 4027 | echo "yes" |
---|
| 4028 | CXXFLAGS="$CXXFLAGS -pg" |
---|
| 4029 | fi |
---|
| 4030 | if test x$def_profiling = xno; then |
---|
| 4031 | echo "no" |
---|
| 4032 | fi |
---|
| 4033 | |
---|
[3863] | 4034 | #----------------# |
---|
| 4035 | # efence Enabled # |
---|
| 4036 | #----------------# |
---|
| 4037 | def_efence=no |
---|
| 4038 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
| 4039 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
| 4040 | # Check whether --enable-efence or --disable-efence was given. |
---|
| 4041 | if test "${enable_efence+set}" = set; then |
---|
| 4042 | enableval="$enable_efence" |
---|
| 4043 | def_efence=yes |
---|
| 4044 | fi; |
---|
| 4045 | if test x$def_efence = xyes; then |
---|
| 4046 | echo "yes" |
---|
| 4047 | fi |
---|
| 4048 | if test x$def_efence = xno; then |
---|
| 4049 | echo "no" |
---|
| 4050 | fi |
---|
| 4051 | |
---|
[3558] | 4052 | #----------------------# |
---|
| 4053 | # Documentation-enable # |
---|
| 4054 | #----------------------# |
---|
| 4055 | def_documentation=no |
---|
| 4056 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
| 4057 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
| 4058 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
| 4059 | if test "${enable_documentation+set}" = set; then |
---|
| 4060 | enableval="$enable_documentation" |
---|
| 4061 | def_documentation=yes |
---|
| 4062 | fi; |
---|
| 4063 | if test x$def_documentation = xyes; then |
---|
| 4064 | echo "yes" |
---|
| 4065 | fi |
---|
| 4066 | if test x$def_documentation = xno; then |
---|
| 4067 | echo "no" |
---|
| 4068 | fi |
---|
| 4069 | |
---|
| 4070 | |
---|
| 4071 | if test x$def_documentation = xyes; then |
---|
| 4072 | DOCUMENTATION_TRUE= |
---|
| 4073 | DOCUMENTATION_FALSE='#' |
---|
| 4074 | else |
---|
| 4075 | DOCUMENTATION_TRUE='#' |
---|
| 4076 | DOCUMENTATION_FALSE= |
---|
| 4077 | fi |
---|
| 4078 | |
---|
[3424] | 4079 | ####################### |
---|
| 4080 | ## PROGRAMM CHECKING ## |
---|
| 4081 | ## 3. party Programs ## |
---|
| 4082 | ####################### |
---|
| 4083 | |
---|
| 4084 | #----------------------# |
---|
| 4085 | # checking for Doxygen # |
---|
| 4086 | #----------------------# |
---|
[3219] | 4087 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4088 | set dummy doxygen; ac_word=$2 |
---|
| 4089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4091 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4093 | else |
---|
| 4094 | case $DOXYGEN in |
---|
| 4095 | [\\/]* | ?:[\\/]*) |
---|
| 4096 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4097 | ;; |
---|
| 4098 | *) |
---|
| 4099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4100 | for as_dir in $PATH |
---|
| 4101 | do |
---|
| 4102 | IFS=$as_save_IFS |
---|
| 4103 | test -z "$as_dir" && as_dir=. |
---|
| 4104 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4106 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4108 | break 2 |
---|
| 4109 | fi |
---|
| 4110 | done |
---|
| 4111 | done |
---|
| 4112 | |
---|
| 4113 | ;; |
---|
| 4114 | esac |
---|
| 4115 | fi |
---|
| 4116 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4117 | |
---|
| 4118 | if test -n "$DOXYGEN"; then |
---|
| 4119 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4120 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4121 | else |
---|
| 4122 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4123 | echo "${ECHO_T}no" >&6 |
---|
| 4124 | fi |
---|
| 4125 | |
---|
| 4126 | |
---|
| 4127 | |
---|
| 4128 | if test $DOXYGEN; then |
---|
| 4129 | DOXYGEN_TRUE= |
---|
| 4130 | DOXYGEN_FALSE='#' |
---|
| 4131 | else |
---|
| 4132 | DOXYGEN_TRUE='#' |
---|
| 4133 | DOXYGEN_FALSE= |
---|
| 4134 | fi |
---|
| 4135 | |
---|
| 4136 | |
---|
[3789] | 4137 | #--------------------# |
---|
| 4138 | # checking for gprof # |
---|
| 4139 | #--------------------# |
---|
| 4140 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
| 4141 | set dummy gprof; ac_word=$2 |
---|
| 4142 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4144 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
| 4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4146 | else |
---|
| 4147 | case $GPROF in |
---|
| 4148 | [\\/]* | ?:[\\/]*) |
---|
| 4149 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
| 4150 | ;; |
---|
| 4151 | *) |
---|
| 4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4153 | for as_dir in $PATH |
---|
| 4154 | do |
---|
| 4155 | IFS=$as_save_IFS |
---|
| 4156 | test -z "$as_dir" && as_dir=. |
---|
| 4157 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4159 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4161 | break 2 |
---|
| 4162 | fi |
---|
| 4163 | done |
---|
| 4164 | done |
---|
| 4165 | |
---|
| 4166 | ;; |
---|
| 4167 | esac |
---|
| 4168 | fi |
---|
| 4169 | GPROF=$ac_cv_path_GPROF |
---|
| 4170 | |
---|
| 4171 | if test -n "$GPROF"; then |
---|
| 4172 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
| 4173 | echo "${ECHO_T}$GPROF" >&6 |
---|
| 4174 | else |
---|
| 4175 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4176 | echo "${ECHO_T}no" >&6 |
---|
| 4177 | fi |
---|
| 4178 | |
---|
| 4179 | |
---|
[3424] | 4180 | ######################### |
---|
| 4181 | ## CHECKING FOR SYSTEM ## |
---|
| 4182 | ######################### |
---|
| 4183 | ## here the system is checked, and openGL is included |
---|
| 4184 | ## also checking for SDL on differen Systems |
---|
[1971] | 4185 | |
---|
[2925] | 4186 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4187 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4188 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4189 | case "$target" in |
---|
[3424] | 4190 | #---------# |
---|
| 4191 | # WINDOWS # |
---|
| 4192 | #---------# |
---|
[2980] | 4193 | *-*-mingw32*) |
---|
[2925] | 4194 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4195 | |
---|
[3790] | 4196 | CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL" |
---|
| 4197 | |
---|
[2925] | 4198 | mingw="yes" |
---|
| 4199 | MSBITFIELDS="-mms-bitfields" |
---|
| 4200 | MWINDOWS="-mwindows" |
---|
[1971] | 4201 | |
---|
[2925] | 4202 | # checking gl header |
---|
| 4203 | #done before loop |
---|
[1971] | 4204 | |
---|
[2968] | 4205 | # checking gl header |
---|
[2925] | 4206 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4207 | |
---|
| 4208 | |
---|
| 4209 | |
---|
| 4210 | |
---|
[2925] | 4211 | |
---|
| 4212 | |
---|
| 4213 | |
---|
| 4214 | |
---|
| 4215 | |
---|
[1971] | 4216 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4217 | inttypes.h stdint.h unistd.h |
---|
| 4218 | do |
---|
| 4219 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4220 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4221 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4224 | else |
---|
| 4225 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4226 | /* confdefs.h. */ |
---|
| 4227 | _ACEOF |
---|
| 4228 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4229 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4230 | /* end confdefs.h. */ |
---|
| 4231 | $ac_includes_default |
---|
| 4232 | |
---|
| 4233 | #include <$ac_header> |
---|
| 4234 | _ACEOF |
---|
| 4235 | rm -f conftest.$ac_objext |
---|
| 4236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4237 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4238 | ac_status=$? |
---|
| 4239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4240 | rm -f conftest.er1 |
---|
| 4241 | cat conftest.err >&5 |
---|
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4243 | (exit $ac_status); } && |
---|
| 4244 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4245 | || test ! -s conftest.err' |
---|
| 4246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4247 | (eval $ac_try) 2>&5 |
---|
| 4248 | ac_status=$? |
---|
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4250 | (exit $ac_status); }; } && |
---|
| 4251 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4253 | (eval $ac_try) 2>&5 |
---|
| 4254 | ac_status=$? |
---|
| 4255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4256 | (exit $ac_status); }; }; then |
---|
| 4257 | eval "$as_ac_Header=yes" |
---|
| 4258 | else |
---|
| 4259 | echo "$as_me: failed program was:" >&5 |
---|
| 4260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4261 | |
---|
| 4262 | eval "$as_ac_Header=no" |
---|
| 4263 | fi |
---|
| 4264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4265 | fi |
---|
| 4266 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4267 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4269 | cat >>confdefs.h <<_ACEOF |
---|
| 4270 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4271 | _ACEOF |
---|
| 4272 | |
---|
| 4273 | fi |
---|
| 4274 | |
---|
| 4275 | done |
---|
| 4276 | |
---|
| 4277 | |
---|
| 4278 | |
---|
[2879] | 4279 | for ac_header in GL/gl.h |
---|
| 4280 | do |
---|
| 4281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4287 | fi |
---|
| 4288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4290 | else |
---|
| 4291 | # Is the header compilable? |
---|
| 4292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4294 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4295 | /* confdefs.h. */ |
---|
| 4296 | _ACEOF |
---|
| 4297 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4299 | /* end confdefs.h. */ |
---|
| 4300 | $ac_includes_default |
---|
| 4301 | #include <$ac_header> |
---|
| 4302 | _ACEOF |
---|
| 4303 | rm -f conftest.$ac_objext |
---|
| 4304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4305 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4306 | ac_status=$? |
---|
| 4307 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4308 | rm -f conftest.er1 |
---|
| 4309 | cat conftest.err >&5 |
---|
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4311 | (exit $ac_status); } && |
---|
| 4312 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4313 | || test ! -s conftest.err' |
---|
| 4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4315 | (eval $ac_try) 2>&5 |
---|
| 4316 | ac_status=$? |
---|
| 4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4318 | (exit $ac_status); }; } && |
---|
| 4319 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4321 | (eval $ac_try) 2>&5 |
---|
| 4322 | ac_status=$? |
---|
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4324 | (exit $ac_status); }; }; then |
---|
| 4325 | ac_header_compiler=yes |
---|
| 4326 | else |
---|
| 4327 | echo "$as_me: failed program was:" >&5 |
---|
| 4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4329 | |
---|
| 4330 | ac_header_compiler=no |
---|
| 4331 | fi |
---|
| 4332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4334 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4335 | |
---|
| 4336 | # Is the header present? |
---|
| 4337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4339 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4340 | /* confdefs.h. */ |
---|
| 4341 | _ACEOF |
---|
| 4342 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4343 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4344 | /* end confdefs.h. */ |
---|
| 4345 | #include <$ac_header> |
---|
| 4346 | _ACEOF |
---|
| 4347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4349 | ac_status=$? |
---|
| 4350 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4351 | rm -f conftest.er1 |
---|
| 4352 | cat conftest.err >&5 |
---|
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4354 | (exit $ac_status); } >/dev/null; then |
---|
| 4355 | if test -s conftest.err; then |
---|
| 4356 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4358 | else |
---|
| 4359 | ac_cpp_err= |
---|
| 4360 | fi |
---|
| 4361 | else |
---|
| 4362 | ac_cpp_err=yes |
---|
| 4363 | fi |
---|
| 4364 | if test -z "$ac_cpp_err"; then |
---|
| 4365 | ac_header_preproc=yes |
---|
| 4366 | else |
---|
| 4367 | echo "$as_me: failed program was:" >&5 |
---|
| 4368 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4369 | |
---|
| 4370 | ac_header_preproc=no |
---|
| 4371 | fi |
---|
| 4372 | rm -f conftest.err conftest.$ac_ext |
---|
| 4373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4374 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4375 | |
---|
| 4376 | # So? What about this header? |
---|
| 4377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4378 | yes:no: ) |
---|
| 4379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4383 | ac_header_preproc=yes |
---|
| 4384 | ;; |
---|
| 4385 | no:yes:* ) |
---|
| 4386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4398 | ( |
---|
| 4399 | cat <<\_ASBOX |
---|
[3240] | 4400 | ## ---------------------------------------------- ## |
---|
| 4401 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4402 | ## ---------------------------------------------- ## |
---|
[2879] | 4403 | _ASBOX |
---|
| 4404 | ) | |
---|
| 4405 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4406 | ;; |
---|
| 4407 | esac |
---|
| 4408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4412 | else |
---|
| 4413 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4414 | fi |
---|
| 4415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4417 | |
---|
| 4418 | fi |
---|
| 4419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4420 | cat >>confdefs.h <<_ACEOF |
---|
| 4421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4422 | _ACEOF |
---|
| 4423 | |
---|
| 4424 | else |
---|
| 4425 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4426 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4427 | { (exit 1); exit 1; }; } |
---|
| 4428 | fi |
---|
| 4429 | |
---|
| 4430 | done |
---|
| 4431 | |
---|
[2701] | 4432 | # checking for Windows openGl library |
---|
[1971] | 4433 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4434 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4435 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4437 | else |
---|
| 4438 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4439 | LIBS="-lopengl32 $LIBS" |
---|
| 4440 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4441 | /* confdefs.h. */ |
---|
[1956] | 4442 | _ACEOF |
---|
[1959] | 4443 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4445 | /* end confdefs.h. */ |
---|
[1956] | 4446 | |
---|
[1971] | 4447 | |
---|
[1959] | 4448 | int |
---|
| 4449 | main () |
---|
| 4450 | { |
---|
[1971] | 4451 | main (); |
---|
[1959] | 4452 | ; |
---|
| 4453 | return 0; |
---|
| 4454 | } |
---|
| 4455 | _ACEOF |
---|
| 4456 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4458 | (eval $ac_link) 2>conftest.er1 |
---|
| 4459 | ac_status=$? |
---|
| 4460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4461 | rm -f conftest.er1 |
---|
| 4462 | cat conftest.err >&5 |
---|
| 4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4464 | (exit $ac_status); } && |
---|
| 4465 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4466 | || test ! -s conftest.err' |
---|
| 4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4468 | (eval $ac_try) 2>&5 |
---|
| 4469 | ac_status=$? |
---|
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4471 | (exit $ac_status); }; } && |
---|
| 4472 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4474 | (eval $ac_try) 2>&5 |
---|
| 4475 | ac_status=$? |
---|
| 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4477 | (exit $ac_status); }; }; then |
---|
[1971] | 4478 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4479 | else |
---|
| 4480 | echo "$as_me: failed program was:" >&5 |
---|
| 4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4482 | |
---|
[1971] | 4483 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4484 | fi |
---|
[1959] | 4485 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4486 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4487 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4488 | fi |
---|
[1971] | 4489 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4490 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4491 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4492 | FOUND_opengl32=yes |
---|
| 4493 | else |
---|
| 4494 | "gl/gl.h" |
---|
[1959] | 4495 | fi |
---|
[1956] | 4496 | |
---|
[3424] | 4497 | if test x$FOUND_opengl32 = xyes ; then |
---|
[1959] | 4498 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4499 | else |
---|
[1959] | 4500 | echo "------------------" |
---|
| 4501 | echo "opengl not found." |
---|
| 4502 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4503 | echo "------------------" |
---|
| 4504 | exit -1 |
---|
| 4505 | fi |
---|
| 4506 | |
---|
[2701] | 4507 | # cheking for GLU-header |
---|
[1971] | 4508 | |
---|
| 4509 | for ac_header in GL/glu.h |
---|
| 4510 | do |
---|
| 4511 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4517 | fi |
---|
| 4518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4520 | else |
---|
| 4521 | # Is the header compilable? |
---|
| 4522 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4524 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4525 | /* confdefs.h. */ |
---|
| 4526 | _ACEOF |
---|
| 4527 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4528 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4529 | /* end confdefs.h. */ |
---|
| 4530 | $ac_includes_default |
---|
| 4531 | #include <$ac_header> |
---|
| 4532 | _ACEOF |
---|
| 4533 | rm -f conftest.$ac_objext |
---|
| 4534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4535 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4536 | ac_status=$? |
---|
| 4537 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4538 | rm -f conftest.er1 |
---|
| 4539 | cat conftest.err >&5 |
---|
| 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4541 | (exit $ac_status); } && |
---|
| 4542 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4543 | || test ! -s conftest.err' |
---|
| 4544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4545 | (eval $ac_try) 2>&5 |
---|
| 4546 | ac_status=$? |
---|
| 4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4548 | (exit $ac_status); }; } && |
---|
| 4549 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4551 | (eval $ac_try) 2>&5 |
---|
| 4552 | ac_status=$? |
---|
| 4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4554 | (exit $ac_status); }; }; then |
---|
| 4555 | ac_header_compiler=yes |
---|
| 4556 | else |
---|
| 4557 | echo "$as_me: failed program was:" >&5 |
---|
| 4558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4559 | |
---|
| 4560 | ac_header_compiler=no |
---|
| 4561 | fi |
---|
| 4562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4563 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4564 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4565 | |
---|
| 4566 | # Is the header present? |
---|
| 4567 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4569 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4570 | /* confdefs.h. */ |
---|
| 4571 | _ACEOF |
---|
| 4572 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4573 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4574 | /* end confdefs.h. */ |
---|
| 4575 | #include <$ac_header> |
---|
| 4576 | _ACEOF |
---|
| 4577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4579 | ac_status=$? |
---|
| 4580 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4581 | rm -f conftest.er1 |
---|
| 4582 | cat conftest.err >&5 |
---|
| 4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4584 | (exit $ac_status); } >/dev/null; then |
---|
| 4585 | if test -s conftest.err; then |
---|
| 4586 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4587 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4588 | else |
---|
| 4589 | ac_cpp_err= |
---|
| 4590 | fi |
---|
| 4591 | else |
---|
| 4592 | ac_cpp_err=yes |
---|
| 4593 | fi |
---|
| 4594 | if test -z "$ac_cpp_err"; then |
---|
| 4595 | ac_header_preproc=yes |
---|
| 4596 | else |
---|
| 4597 | echo "$as_me: failed program was:" >&5 |
---|
| 4598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4599 | |
---|
| 4600 | ac_header_preproc=no |
---|
| 4601 | fi |
---|
| 4602 | rm -f conftest.err conftest.$ac_ext |
---|
| 4603 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4604 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4605 | |
---|
| 4606 | # So? What about this header? |
---|
| 4607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4608 | yes:no: ) |
---|
| 4609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4613 | ac_header_preproc=yes |
---|
| 4614 | ;; |
---|
| 4615 | no:yes:* ) |
---|
| 4616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4628 | ( |
---|
| 4629 | cat <<\_ASBOX |
---|
[3240] | 4630 | ## ---------------------------------------------- ## |
---|
| 4631 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4632 | ## ---------------------------------------------- ## |
---|
[1971] | 4633 | _ASBOX |
---|
| 4634 | ) | |
---|
| 4635 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4636 | ;; |
---|
| 4637 | esac |
---|
| 4638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4642 | else |
---|
| 4643 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4644 | fi |
---|
| 4645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4647 | |
---|
| 4648 | fi |
---|
| 4649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4650 | cat >>confdefs.h <<_ACEOF |
---|
| 4651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4652 | _ACEOF |
---|
| 4653 | |
---|
| 4654 | else |
---|
| 4655 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4656 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4657 | { (exit 1); exit 1; }; } |
---|
| 4658 | fi |
---|
| 4659 | |
---|
| 4660 | done |
---|
| 4661 | |
---|
| 4662 | |
---|
[2701] | 4663 | # checking for libGLU |
---|
| 4664 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4665 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4666 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4668 | else |
---|
| 4669 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4670 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4671 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4672 | /* confdefs.h. */ |
---|
| 4673 | _ACEOF |
---|
| 4674 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4676 | /* end confdefs.h. */ |
---|
| 4677 | |
---|
[2701] | 4678 | |
---|
[1956] | 4679 | int |
---|
| 4680 | main () |
---|
| 4681 | { |
---|
[2701] | 4682 | main (); |
---|
[1956] | 4683 | ; |
---|
| 4684 | return 0; |
---|
| 4685 | } |
---|
| 4686 | _ACEOF |
---|
| 4687 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4689 | (eval $ac_link) 2>conftest.er1 |
---|
| 4690 | ac_status=$? |
---|
| 4691 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4692 | rm -f conftest.er1 |
---|
| 4693 | cat conftest.err >&5 |
---|
| 4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4695 | (exit $ac_status); } && |
---|
| 4696 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4697 | || test ! -s conftest.err' |
---|
| 4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4699 | (eval $ac_try) 2>&5 |
---|
| 4700 | ac_status=$? |
---|
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4702 | (exit $ac_status); }; } && |
---|
| 4703 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4705 | (eval $ac_try) 2>&5 |
---|
| 4706 | ac_status=$? |
---|
| 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4708 | (exit $ac_status); }; }; then |
---|
[2701] | 4709 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4710 | else |
---|
| 4711 | echo "$as_me: failed program was:" >&5 |
---|
| 4712 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4713 | |
---|
[2701] | 4714 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4715 | fi |
---|
| 4716 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4717 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4718 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4719 | fi |
---|
[2701] | 4720 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4721 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4722 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4723 | FOUND_glu32=yes |
---|
[1959] | 4724 | fi |
---|
| 4725 | |
---|
[3424] | 4726 | if test x$FOUND_glu32 = xyes ; then |
---|
[2701] | 4727 | LIBS="$LIBS -lGLU32" |
---|
| 4728 | else |
---|
| 4729 | echo "------------------" |
---|
| 4730 | echo "GLU library not found." |
---|
| 4731 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4732 | echo "------------------" |
---|
| 4733 | exit -1 |
---|
| 4734 | fi |
---|
| 4735 | |
---|
| 4736 | # checking for mingw32 |
---|
| 4737 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4738 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4739 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4741 | else |
---|
| 4742 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4743 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4744 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4745 | /* confdefs.h. */ |
---|
[1956] | 4746 | _ACEOF |
---|
[1959] | 4747 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4748 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4749 | /* end confdefs.h. */ |
---|
[1956] | 4750 | |
---|
[1971] | 4751 | |
---|
[1959] | 4752 | int |
---|
| 4753 | main () |
---|
| 4754 | { |
---|
[1971] | 4755 | main (); |
---|
[1959] | 4756 | ; |
---|
| 4757 | return 0; |
---|
| 4758 | } |
---|
| 4759 | _ACEOF |
---|
| 4760 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4762 | (eval $ac_link) 2>conftest.er1 |
---|
| 4763 | ac_status=$? |
---|
| 4764 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4765 | rm -f conftest.er1 |
---|
| 4766 | cat conftest.err >&5 |
---|
| 4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4768 | (exit $ac_status); } && |
---|
| 4769 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4770 | || test ! -s conftest.err' |
---|
| 4771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4772 | (eval $ac_try) 2>&5 |
---|
| 4773 | ac_status=$? |
---|
| 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4775 | (exit $ac_status); }; } && |
---|
| 4776 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4778 | (eval $ac_try) 2>&5 |
---|
| 4779 | ac_status=$? |
---|
| 4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4781 | (exit $ac_status); }; }; then |
---|
[2701] | 4782 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4783 | else |
---|
| 4784 | echo "$as_me: failed program was:" >&5 |
---|
| 4785 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4786 | |
---|
[2701] | 4787 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4788 | fi |
---|
[1959] | 4789 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4790 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4791 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4792 | fi |
---|
[2701] | 4793 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4794 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4795 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4796 | FOUND_mingw32=yes |
---|
[1959] | 4797 | fi |
---|
[1956] | 4798 | |
---|
[3424] | 4799 | if test x$FOUND_mingw32 = xyes; then |
---|
[2701] | 4800 | LIBS="$LIBS -lmingw32" |
---|
| 4801 | fi |
---|
[2989] | 4802 | # checking for SDL-headers |
---|
[1959] | 4803 | |
---|
[3790] | 4804 | for ac_header in SDL.h |
---|
[2989] | 4805 | do |
---|
| 4806 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4812 | fi |
---|
| 4813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4815 | else |
---|
| 4816 | # Is the header compilable? |
---|
| 4817 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4818 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4819 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4820 | /* confdefs.h. */ |
---|
| 4821 | _ACEOF |
---|
| 4822 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4824 | /* end confdefs.h. */ |
---|
| 4825 | $ac_includes_default |
---|
| 4826 | #include <$ac_header> |
---|
| 4827 | _ACEOF |
---|
| 4828 | rm -f conftest.$ac_objext |
---|
| 4829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4830 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4831 | ac_status=$? |
---|
| 4832 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4833 | rm -f conftest.er1 |
---|
| 4834 | cat conftest.err >&5 |
---|
| 4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4836 | (exit $ac_status); } && |
---|
| 4837 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4838 | || test ! -s conftest.err' |
---|
| 4839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4840 | (eval $ac_try) 2>&5 |
---|
| 4841 | ac_status=$? |
---|
| 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4843 | (exit $ac_status); }; } && |
---|
| 4844 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4846 | (eval $ac_try) 2>&5 |
---|
| 4847 | ac_status=$? |
---|
| 4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4849 | (exit $ac_status); }; }; then |
---|
| 4850 | ac_header_compiler=yes |
---|
| 4851 | else |
---|
| 4852 | echo "$as_me: failed program was:" >&5 |
---|
| 4853 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4854 | |
---|
| 4855 | ac_header_compiler=no |
---|
| 4856 | fi |
---|
| 4857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4858 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4859 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4860 | |
---|
| 4861 | # Is the header present? |
---|
| 4862 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4863 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4864 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4865 | /* confdefs.h. */ |
---|
| 4866 | _ACEOF |
---|
| 4867 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4868 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4869 | /* end confdefs.h. */ |
---|
| 4870 | #include <$ac_header> |
---|
| 4871 | _ACEOF |
---|
| 4872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4874 | ac_status=$? |
---|
| 4875 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4876 | rm -f conftest.er1 |
---|
| 4877 | cat conftest.err >&5 |
---|
| 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4879 | (exit $ac_status); } >/dev/null; then |
---|
| 4880 | if test -s conftest.err; then |
---|
| 4881 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4883 | else |
---|
| 4884 | ac_cpp_err= |
---|
| 4885 | fi |
---|
| 4886 | else |
---|
| 4887 | ac_cpp_err=yes |
---|
| 4888 | fi |
---|
| 4889 | if test -z "$ac_cpp_err"; then |
---|
| 4890 | ac_header_preproc=yes |
---|
| 4891 | else |
---|
| 4892 | echo "$as_me: failed program was:" >&5 |
---|
| 4893 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4894 | |
---|
| 4895 | ac_header_preproc=no |
---|
| 4896 | fi |
---|
| 4897 | rm -f conftest.err conftest.$ac_ext |
---|
| 4898 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4899 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4900 | |
---|
| 4901 | # So? What about this header? |
---|
| 4902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4903 | yes:no: ) |
---|
| 4904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4908 | ac_header_preproc=yes |
---|
[2701] | 4909 | ;; |
---|
[2989] | 4910 | no:yes:* ) |
---|
| 4911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4922 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4923 | ( |
---|
| 4924 | cat <<\_ASBOX |
---|
[3240] | 4925 | ## ---------------------------------------------- ## |
---|
| 4926 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4927 | ## ---------------------------------------------- ## |
---|
[2989] | 4928 | _ASBOX |
---|
| 4929 | ) | |
---|
| 4930 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4931 | ;; |
---|
| 4932 | esac |
---|
| 4933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4937 | else |
---|
| 4938 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4939 | fi |
---|
| 4940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4942 | |
---|
[2989] | 4943 | fi |
---|
| 4944 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4945 | cat >>confdefs.h <<_ACEOF |
---|
| 4946 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4947 | _ACEOF |
---|
| 4948 | |
---|
| 4949 | else |
---|
| 4950 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4951 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4952 | { (exit 1); exit 1; }; } |
---|
| 4953 | fi |
---|
| 4954 | |
---|
| 4955 | done |
---|
| 4956 | |
---|
| 4957 | |
---|
| 4958 | #checking for libSDL |
---|
| 4959 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4960 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4961 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4963 | else |
---|
| 4964 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4965 | LIBS="-lsdlmain $LIBS" |
---|
| 4966 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4967 | /* confdefs.h. */ |
---|
| 4968 | _ACEOF |
---|
| 4969 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4970 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4971 | /* end confdefs.h. */ |
---|
| 4972 | |
---|
| 4973 | |
---|
| 4974 | int |
---|
| 4975 | main () |
---|
| 4976 | { |
---|
| 4977 | main (); |
---|
| 4978 | ; |
---|
| 4979 | return 0; |
---|
| 4980 | } |
---|
| 4981 | _ACEOF |
---|
| 4982 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4984 | (eval $ac_link) 2>conftest.er1 |
---|
| 4985 | ac_status=$? |
---|
| 4986 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4987 | rm -f conftest.er1 |
---|
| 4988 | cat conftest.err >&5 |
---|
| 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4990 | (exit $ac_status); } && |
---|
| 4991 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4992 | || test ! -s conftest.err' |
---|
| 4993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4994 | (eval $ac_try) 2>&5 |
---|
| 4995 | ac_status=$? |
---|
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4997 | (exit $ac_status); }; } && |
---|
| 4998 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5000 | (eval $ac_try) 2>&5 |
---|
| 5001 | ac_status=$? |
---|
| 5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5003 | (exit $ac_status); }; }; then |
---|
| 5004 | ac_cv_lib_sdlmain_main=yes |
---|
| 5005 | else |
---|
| 5006 | echo "$as_me: failed program was:" >&5 |
---|
| 5007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5008 | |
---|
| 5009 | ac_cv_lib_sdlmain_main=no |
---|
| 5010 | fi |
---|
| 5011 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5012 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5013 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5014 | fi |
---|
| 5015 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 5016 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 5017 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 5018 | FOUND_sdlmain=yes |
---|
| 5019 | fi |
---|
| 5020 | |
---|
[3424] | 5021 | if test x$FOUND_sdlmain = xyes ; then |
---|
[2989] | 5022 | LIBS="$LIBS -lsdlmain" |
---|
| 5023 | else |
---|
| 5024 | echo "------------------" |
---|
| 5025 | echo "SDL library not found." |
---|
| 5026 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5027 | echo "------------------" |
---|
| 5028 | exit 1 |
---|
| 5029 | fi |
---|
| 5030 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 5031 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 5032 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5034 | else |
---|
| 5035 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5036 | LIBS="-lsdl $LIBS" |
---|
| 5037 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5038 | /* confdefs.h. */ |
---|
| 5039 | _ACEOF |
---|
| 5040 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5041 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5042 | /* end confdefs.h. */ |
---|
| 5043 | |
---|
| 5044 | |
---|
| 5045 | int |
---|
| 5046 | main () |
---|
| 5047 | { |
---|
| 5048 | main (); |
---|
| 5049 | ; |
---|
| 5050 | return 0; |
---|
| 5051 | } |
---|
| 5052 | _ACEOF |
---|
| 5053 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5055 | (eval $ac_link) 2>conftest.er1 |
---|
| 5056 | ac_status=$? |
---|
| 5057 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5058 | rm -f conftest.er1 |
---|
| 5059 | cat conftest.err >&5 |
---|
| 5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5061 | (exit $ac_status); } && |
---|
| 5062 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5063 | || test ! -s conftest.err' |
---|
| 5064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5065 | (eval $ac_try) 2>&5 |
---|
| 5066 | ac_status=$? |
---|
| 5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5068 | (exit $ac_status); }; } && |
---|
| 5069 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5071 | (eval $ac_try) 2>&5 |
---|
| 5072 | ac_status=$? |
---|
| 5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5074 | (exit $ac_status); }; }; then |
---|
| 5075 | ac_cv_lib_sdl_main=yes |
---|
| 5076 | else |
---|
| 5077 | echo "$as_me: failed program was:" >&5 |
---|
| 5078 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5079 | |
---|
| 5080 | ac_cv_lib_sdl_main=no |
---|
| 5081 | fi |
---|
| 5082 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5083 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5084 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5085 | fi |
---|
| 5086 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 5087 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 5088 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 5089 | FOUND_sdl=yes |
---|
| 5090 | fi |
---|
| 5091 | |
---|
[3424] | 5092 | if test x$FOUND_sdl = xyes ; then |
---|
[2989] | 5093 | LIBS="$LIBS -lsdl" |
---|
| 5094 | else |
---|
| 5095 | echo "------------------" |
---|
| 5096 | echo "SDL library not found." |
---|
| 5097 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5098 | echo "------------------" |
---|
| 5099 | exit -1 |
---|
| 5100 | fi |
---|
| 5101 | |
---|
| 5102 | ;; |
---|
[3424] | 5103 | #-------# |
---|
| 5104 | # LINUX # |
---|
| 5105 | #-------# |
---|
[2980] | 5106 | *-*-linux*) |
---|
[2701] | 5107 | echo "Linux detected" |
---|
[1956] | 5108 | |
---|
[2701] | 5109 | Linux="yes" |
---|
| 5110 | |
---|
[3790] | 5111 | CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL" |
---|
[3385] | 5112 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 5113 | # checking gl header |
---|
[2701] | 5114 | |
---|
[2879] | 5115 | for ac_header in GL/gl.h |
---|
| 5116 | do |
---|
| 5117 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5119 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5123 | fi |
---|
| 5124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5125 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5126 | else |
---|
| 5127 | # Is the header compilable? |
---|
| 5128 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5129 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5130 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5131 | /* confdefs.h. */ |
---|
| 5132 | _ACEOF |
---|
| 5133 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5134 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5135 | /* end confdefs.h. */ |
---|
| 5136 | $ac_includes_default |
---|
| 5137 | #include <$ac_header> |
---|
| 5138 | _ACEOF |
---|
| 5139 | rm -f conftest.$ac_objext |
---|
| 5140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5141 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5142 | ac_status=$? |
---|
| 5143 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5144 | rm -f conftest.er1 |
---|
| 5145 | cat conftest.err >&5 |
---|
| 5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5147 | (exit $ac_status); } && |
---|
| 5148 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5149 | || test ! -s conftest.err' |
---|
| 5150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5151 | (eval $ac_try) 2>&5 |
---|
| 5152 | ac_status=$? |
---|
| 5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5154 | (exit $ac_status); }; } && |
---|
| 5155 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5157 | (eval $ac_try) 2>&5 |
---|
| 5158 | ac_status=$? |
---|
| 5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5160 | (exit $ac_status); }; }; then |
---|
| 5161 | ac_header_compiler=yes |
---|
| 5162 | else |
---|
| 5163 | echo "$as_me: failed program was:" >&5 |
---|
| 5164 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5165 | |
---|
| 5166 | ac_header_compiler=no |
---|
| 5167 | fi |
---|
| 5168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5169 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5170 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5171 | |
---|
| 5172 | # Is the header present? |
---|
| 5173 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5174 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5175 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5176 | /* confdefs.h. */ |
---|
| 5177 | _ACEOF |
---|
| 5178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5180 | /* end confdefs.h. */ |
---|
| 5181 | #include <$ac_header> |
---|
| 5182 | _ACEOF |
---|
| 5183 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5184 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5185 | ac_status=$? |
---|
| 5186 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5187 | rm -f conftest.er1 |
---|
| 5188 | cat conftest.err >&5 |
---|
| 5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5190 | (exit $ac_status); } >/dev/null; then |
---|
| 5191 | if test -s conftest.err; then |
---|
| 5192 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5193 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5194 | else |
---|
| 5195 | ac_cpp_err= |
---|
| 5196 | fi |
---|
| 5197 | else |
---|
| 5198 | ac_cpp_err=yes |
---|
| 5199 | fi |
---|
| 5200 | if test -z "$ac_cpp_err"; then |
---|
| 5201 | ac_header_preproc=yes |
---|
| 5202 | else |
---|
| 5203 | echo "$as_me: failed program was:" >&5 |
---|
| 5204 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5205 | |
---|
| 5206 | ac_header_preproc=no |
---|
| 5207 | fi |
---|
| 5208 | rm -f conftest.err conftest.$ac_ext |
---|
| 5209 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5210 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5211 | |
---|
| 5212 | # So? What about this header? |
---|
| 5213 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5214 | yes:no: ) |
---|
| 5215 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5216 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5218 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5219 | ac_header_preproc=yes |
---|
| 5220 | ;; |
---|
| 5221 | no:yes:* ) |
---|
| 5222 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5223 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5224 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5225 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5226 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5227 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5228 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5229 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5231 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5232 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5233 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5234 | ( |
---|
| 5235 | cat <<\_ASBOX |
---|
[3240] | 5236 | ## ---------------------------------------------- ## |
---|
| 5237 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5238 | ## ---------------------------------------------- ## |
---|
[2879] | 5239 | _ASBOX |
---|
| 5240 | ) | |
---|
| 5241 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5242 | ;; |
---|
| 5243 | esac |
---|
| 5244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5248 | else |
---|
| 5249 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5250 | fi |
---|
| 5251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5252 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5253 | |
---|
| 5254 | fi |
---|
| 5255 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5256 | cat >>confdefs.h <<_ACEOF |
---|
| 5257 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5258 | _ACEOF |
---|
| 5259 | |
---|
| 5260 | else |
---|
| 5261 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5262 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5263 | { (exit 1); exit 1; }; } |
---|
| 5264 | fi |
---|
| 5265 | |
---|
| 5266 | done |
---|
| 5267 | |
---|
| 5268 | |
---|
[2701] | 5269 | # checking for Unix GL |
---|
[3385] | 5270 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5271 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5272 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5274 | else |
---|
| 5275 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5276 | LIBS="-lGL $LIBS" |
---|
[1956] | 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 | |
---|
[3385] | 5284 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5285 | #ifdef __cplusplus |
---|
| 5286 | extern "C" |
---|
| 5287 | #endif |
---|
| 5288 | /* We use char because int might match the return type of a gcc2 |
---|
| 5289 | builtin and then its argument prototype would still apply. */ |
---|
| 5290 | char glLoadIdentity (); |
---|
[1956] | 5291 | int |
---|
| 5292 | main () |
---|
| 5293 | { |
---|
[3385] | 5294 | glLoadIdentity (); |
---|
[1956] | 5295 | ; |
---|
| 5296 | return 0; |
---|
| 5297 | } |
---|
| 5298 | _ACEOF |
---|
| 5299 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5301 | (eval $ac_link) 2>conftest.er1 |
---|
| 5302 | ac_status=$? |
---|
| 5303 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5304 | rm -f conftest.er1 |
---|
| 5305 | cat conftest.err >&5 |
---|
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5307 | (exit $ac_status); } && |
---|
| 5308 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5309 | || test ! -s conftest.err' |
---|
| 5310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5311 | (eval $ac_try) 2>&5 |
---|
| 5312 | ac_status=$? |
---|
| 5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5314 | (exit $ac_status); }; } && |
---|
| 5315 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5317 | (eval $ac_try) 2>&5 |
---|
| 5318 | ac_status=$? |
---|
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5320 | (exit $ac_status); }; }; then |
---|
[3385] | 5321 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5322 | else |
---|
| 5323 | echo "$as_me: failed program was:" >&5 |
---|
| 5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5325 | |
---|
[3385] | 5326 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5327 | fi |
---|
| 5328 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5329 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5330 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5331 | fi |
---|
[3385] | 5332 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5333 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5334 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5335 | FOUND_GL=yes |
---|
| 5336 | fi |
---|
| 5337 | |
---|
[3424] | 5338 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5339 | LIBS="$LIBS -lGL" |
---|
| 5340 | else |
---|
| 5341 | echo "------------------" |
---|
| 5342 | echo "opengl not found." |
---|
| 5343 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5344 | echo "------------------" |
---|
| 5345 | exit -1 |
---|
| 5346 | fi |
---|
| 5347 | |
---|
| 5348 | # cheking for GLU-header |
---|
| 5349 | |
---|
| 5350 | for ac_header in GL/glu.h |
---|
| 5351 | do |
---|
| 5352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5358 | fi |
---|
| 5359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5361 | else |
---|
| 5362 | # Is the header compilable? |
---|
| 5363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5365 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5366 | /* confdefs.h. */ |
---|
[1956] | 5367 | _ACEOF |
---|
[2701] | 5368 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5370 | /* end confdefs.h. */ |
---|
| 5371 | $ac_includes_default |
---|
| 5372 | #include <$ac_header> |
---|
| 5373 | _ACEOF |
---|
| 5374 | rm -f conftest.$ac_objext |
---|
| 5375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5376 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5377 | ac_status=$? |
---|
| 5378 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5379 | rm -f conftest.er1 |
---|
| 5380 | cat conftest.err >&5 |
---|
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5382 | (exit $ac_status); } && |
---|
| 5383 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5384 | || test ! -s conftest.err' |
---|
| 5385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5386 | (eval $ac_try) 2>&5 |
---|
| 5387 | ac_status=$? |
---|
| 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5389 | (exit $ac_status); }; } && |
---|
| 5390 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5392 | (eval $ac_try) 2>&5 |
---|
| 5393 | ac_status=$? |
---|
| 5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5395 | (exit $ac_status); }; }; then |
---|
| 5396 | ac_header_compiler=yes |
---|
| 5397 | else |
---|
| 5398 | echo "$as_me: failed program was:" >&5 |
---|
| 5399 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5400 | |
---|
[2701] | 5401 | ac_header_compiler=no |
---|
| 5402 | fi |
---|
| 5403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5404 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5405 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5406 | |
---|
[2701] | 5407 | # Is the header present? |
---|
| 5408 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5409 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5410 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5411 | /* confdefs.h. */ |
---|
| 5412 | _ACEOF |
---|
| 5413 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5414 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5415 | /* end confdefs.h. */ |
---|
| 5416 | #include <$ac_header> |
---|
| 5417 | _ACEOF |
---|
| 5418 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5419 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5420 | ac_status=$? |
---|
| 5421 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5422 | rm -f conftest.er1 |
---|
| 5423 | cat conftest.err >&5 |
---|
| 5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5425 | (exit $ac_status); } >/dev/null; then |
---|
| 5426 | if test -s conftest.err; then |
---|
| 5427 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5429 | else |
---|
| 5430 | ac_cpp_err= |
---|
| 5431 | fi |
---|
| 5432 | else |
---|
| 5433 | ac_cpp_err=yes |
---|
[1956] | 5434 | fi |
---|
[2701] | 5435 | if test -z "$ac_cpp_err"; then |
---|
| 5436 | ac_header_preproc=yes |
---|
| 5437 | else |
---|
| 5438 | echo "$as_me: failed program was:" >&5 |
---|
| 5439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5440 | |
---|
[2701] | 5441 | ac_header_preproc=no |
---|
| 5442 | fi |
---|
| 5443 | rm -f conftest.err conftest.$ac_ext |
---|
| 5444 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5445 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5446 | |
---|
[2701] | 5447 | # So? What about this header? |
---|
| 5448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5449 | yes:no: ) |
---|
| 5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5451 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5453 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5454 | ac_header_preproc=yes |
---|
| 5455 | ;; |
---|
| 5456 | no:yes:* ) |
---|
| 5457 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5458 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5459 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5460 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5461 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5462 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5463 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5464 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5466 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5467 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5468 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5469 | ( |
---|
| 5470 | cat <<\_ASBOX |
---|
[3240] | 5471 | ## ---------------------------------------------- ## |
---|
| 5472 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5473 | ## ---------------------------------------------- ## |
---|
[2701] | 5474 | _ASBOX |
---|
| 5475 | ) | |
---|
| 5476 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5477 | ;; |
---|
| 5478 | esac |
---|
| 5479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5483 | else |
---|
[2701] | 5484 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5485 | fi |
---|
| 5486 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5487 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5488 | |
---|
| 5489 | fi |
---|
| 5490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5491 | cat >>confdefs.h <<_ACEOF |
---|
| 5492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5493 | _ACEOF |
---|
| 5494 | |
---|
| 5495 | else |
---|
| 5496 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5497 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5498 | { (exit 1); exit 1; }; } |
---|
| 5499 | fi |
---|
| 5500 | |
---|
| 5501 | done |
---|
| 5502 | |
---|
| 5503 | |
---|
| 5504 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5505 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5506 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5508 | else |
---|
[2190] | 5509 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5510 | LIBS="-lGLU $LIBS" |
---|
[2190] | 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 | |
---|
[2701] | 5518 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5519 | #ifdef __cplusplus |
---|
| 5520 | extern "C" |
---|
| 5521 | #endif |
---|
| 5522 | /* We use char because int might match the return type of a gcc2 |
---|
| 5523 | builtin and then its argument prototype would still apply. */ |
---|
| 5524 | char gluProject (); |
---|
[2190] | 5525 | int |
---|
| 5526 | main () |
---|
| 5527 | { |
---|
[2701] | 5528 | gluProject (); |
---|
[2190] | 5529 | ; |
---|
| 5530 | return 0; |
---|
| 5531 | } |
---|
| 5532 | _ACEOF |
---|
| 5533 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5535 | (eval $ac_link) 2>conftest.er1 |
---|
| 5536 | ac_status=$? |
---|
| 5537 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5538 | rm -f conftest.er1 |
---|
| 5539 | cat conftest.err >&5 |
---|
| 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5541 | (exit $ac_status); } && |
---|
| 5542 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5543 | || test ! -s conftest.err' |
---|
| 5544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5545 | (eval $ac_try) 2>&5 |
---|
| 5546 | ac_status=$? |
---|
| 5547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5548 | (exit $ac_status); }; } && |
---|
| 5549 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5551 | (eval $ac_try) 2>&5 |
---|
| 5552 | ac_status=$? |
---|
| 5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5554 | (exit $ac_status); }; }; then |
---|
[2701] | 5555 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5556 | else |
---|
| 5557 | echo "$as_me: failed program was:" >&5 |
---|
| 5558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5559 | |
---|
[2701] | 5560 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5561 | fi |
---|
| 5562 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5563 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5564 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5565 | fi |
---|
[2701] | 5566 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5567 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5568 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5569 | FOUND_GLU=yes |
---|
[2190] | 5570 | fi |
---|
| 5571 | |
---|
[3424] | 5572 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5573 | LIBS="$LIBS -lGLU" |
---|
| 5574 | else |
---|
| 5575 | echo "------------------" |
---|
| 5576 | echo "GLU library not found." |
---|
| 5577 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5578 | echo "------------------" |
---|
| 5579 | exit -1 |
---|
| 5580 | fi |
---|
[2995] | 5581 | |
---|
[2991] | 5582 | # checking for SDL-headers |
---|
[2190] | 5583 | |
---|
[3790] | 5584 | for ac_header in SDL.h |
---|
[2991] | 5585 | do |
---|
| 5586 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5587 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5588 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5590 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5592 | fi |
---|
[2991] | 5593 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5594 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5595 | else |
---|
[2991] | 5596 | # Is the header compilable? |
---|
| 5597 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5598 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5599 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5600 | /* confdefs.h. */ |
---|
| 5601 | _ACEOF |
---|
| 5602 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5603 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5604 | /* end confdefs.h. */ |
---|
[2991] | 5605 | $ac_includes_default |
---|
| 5606 | #include <$ac_header> |
---|
[2190] | 5607 | _ACEOF |
---|
[2991] | 5608 | rm -f conftest.$ac_objext |
---|
| 5609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5610 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5611 | ac_status=$? |
---|
[2991] | 5612 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5613 | rm -f conftest.er1 |
---|
| 5614 | cat conftest.err >&5 |
---|
[2190] | 5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5616 | (exit $ac_status); } && |
---|
| 5617 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5618 | || test ! -s conftest.err' |
---|
[2190] | 5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5620 | (eval $ac_try) 2>&5 |
---|
| 5621 | ac_status=$? |
---|
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5623 | (exit $ac_status); }; } && |
---|
| 5624 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5626 | (eval $ac_try) 2>&5 |
---|
| 5627 | ac_status=$? |
---|
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5629 | (exit $ac_status); }; }; then |
---|
[2991] | 5630 | ac_header_compiler=yes |
---|
[2190] | 5631 | else |
---|
[2991] | 5632 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5633 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5634 | |
---|
[2991] | 5635 | ac_header_compiler=no |
---|
[2190] | 5636 | fi |
---|
[2991] | 5637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5638 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5639 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5640 | |
---|
| 5641 | # Is the header present? |
---|
| 5642 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5644 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5645 | /* confdefs.h. */ |
---|
| 5646 | _ACEOF |
---|
| 5647 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5648 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5649 | /* end confdefs.h. */ |
---|
| 5650 | #include <$ac_header> |
---|
| 5651 | _ACEOF |
---|
| 5652 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5653 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5654 | ac_status=$? |
---|
| 5655 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5656 | rm -f conftest.er1 |
---|
| 5657 | cat conftest.err >&5 |
---|
| 5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5659 | (exit $ac_status); } >/dev/null; then |
---|
| 5660 | if test -s conftest.err; then |
---|
| 5661 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5662 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5663 | else |
---|
| 5664 | ac_cpp_err= |
---|
| 5665 | fi |
---|
| 5666 | else |
---|
| 5667 | ac_cpp_err=yes |
---|
[2190] | 5668 | fi |
---|
[2991] | 5669 | if test -z "$ac_cpp_err"; then |
---|
| 5670 | ac_header_preproc=yes |
---|
| 5671 | else |
---|
| 5672 | echo "$as_me: failed program was:" >&5 |
---|
| 5673 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5674 | |
---|
| 5675 | ac_header_preproc=no |
---|
| 5676 | fi |
---|
| 5677 | rm -f conftest.err conftest.$ac_ext |
---|
| 5678 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5679 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5680 | |
---|
| 5681 | # So? What about this header? |
---|
| 5682 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5683 | yes:no: ) |
---|
| 5684 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5685 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5687 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5688 | ac_header_preproc=yes |
---|
| 5689 | ;; |
---|
| 5690 | no:yes:* ) |
---|
| 5691 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5692 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5693 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5694 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5695 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5696 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5697 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5698 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5699 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5700 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5701 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5702 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5703 | ( |
---|
| 5704 | cat <<\_ASBOX |
---|
[3240] | 5705 | ## ---------------------------------------------- ## |
---|
| 5706 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5707 | ## ---------------------------------------------- ## |
---|
[2991] | 5708 | _ASBOX |
---|
| 5709 | ) | |
---|
| 5710 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5711 | ;; |
---|
| 5712 | esac |
---|
| 5713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5717 | else |
---|
| 5718 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5719 | fi |
---|
| 5720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5722 | |
---|
| 5723 | fi |
---|
| 5724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5725 | cat >>confdefs.h <<_ACEOF |
---|
| 5726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5727 | _ACEOF |
---|
| 5728 | |
---|
| 5729 | else |
---|
| 5730 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5731 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5732 | { (exit 1); exit 1; }; } |
---|
| 5733 | fi |
---|
| 5734 | |
---|
| 5735 | done |
---|
| 5736 | |
---|
| 5737 | |
---|
[3140] | 5738 | # checking for SDL-lib |
---|
[2991] | 5739 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5740 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5741 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5743 | else |
---|
| 5744 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5745 | LIBS="-lSDL $LIBS" |
---|
| 5746 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5747 | /* confdefs.h. */ |
---|
| 5748 | _ACEOF |
---|
| 5749 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5750 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5751 | /* end confdefs.h. */ |
---|
| 5752 | |
---|
| 5753 | |
---|
| 5754 | int |
---|
| 5755 | main () |
---|
| 5756 | { |
---|
[2991] | 5757 | main (); |
---|
[2190] | 5758 | ; |
---|
| 5759 | return 0; |
---|
| 5760 | } |
---|
| 5761 | _ACEOF |
---|
| 5762 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5764 | (eval $ac_link) 2>conftest.er1 |
---|
| 5765 | ac_status=$? |
---|
| 5766 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5767 | rm -f conftest.er1 |
---|
| 5768 | cat conftest.err >&5 |
---|
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5770 | (exit $ac_status); } && |
---|
| 5771 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5772 | || test ! -s conftest.err' |
---|
| 5773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5774 | (eval $ac_try) 2>&5 |
---|
| 5775 | ac_status=$? |
---|
| 5776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5777 | (exit $ac_status); }; } && |
---|
| 5778 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5780 | (eval $ac_try) 2>&5 |
---|
| 5781 | ac_status=$? |
---|
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5783 | (exit $ac_status); }; }; then |
---|
[2991] | 5784 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5785 | else |
---|
| 5786 | echo "$as_me: failed program was:" >&5 |
---|
| 5787 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5788 | |
---|
[2991] | 5789 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5790 | fi |
---|
| 5791 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5792 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5793 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5794 | fi |
---|
| 5795 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5796 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5797 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5798 | FOUND_SDL=yes |
---|
| 5799 | fi |
---|
| 5800 | |
---|
[3424] | 5801 | if test x$FOUND_SDL = xyes ; then |
---|
[2991] | 5802 | LIBS="$LIBS -lSDL" |
---|
| 5803 | else |
---|
| 5804 | echo "------------------" |
---|
| 5805 | echo "SDL library not found." |
---|
| 5806 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5807 | echo "------------------" |
---|
| 5808 | exit -1 |
---|
[2980] | 5809 | fi |
---|
[2701] | 5810 | |
---|
[3140] | 5811 | |
---|
[2991] | 5812 | ## checking for SDL |
---|
| 5813 | # SDL_VERSION=1.2.7 |
---|
| 5814 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5815 | # :, |
---|
| 5816 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5817 | # ) |
---|
| 5818 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5819 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5820 | ;; |
---|
[3424] | 5821 | #-----------# |
---|
| 5822 | # MAC -OS X # |
---|
| 5823 | #-----------# |
---|
[2995] | 5824 | *darwin*) |
---|
[3424] | 5825 | echo "OS X detected" |
---|
[2995] | 5826 | |
---|
| 5827 | osX="yes" |
---|
| 5828 | |
---|
[3953] | 5829 | CPPFLAGS="-I/sw/include -I/sw/include/SDL $CPPFLAGS" |
---|
[2995] | 5830 | # checking gl header |
---|
| 5831 | |
---|
| 5832 | for ac_header in OpenGL/gl.h |
---|
| 5833 | do |
---|
| 5834 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5836 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5837 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5838 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5840 | fi |
---|
| 5841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5843 | else |
---|
| 5844 | # Is the header compilable? |
---|
| 5845 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5846 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5847 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5848 | /* confdefs.h. */ |
---|
| 5849 | _ACEOF |
---|
| 5850 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5852 | /* end confdefs.h. */ |
---|
| 5853 | $ac_includes_default |
---|
| 5854 | #include <$ac_header> |
---|
| 5855 | _ACEOF |
---|
| 5856 | rm -f conftest.$ac_objext |
---|
| 5857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5858 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5859 | ac_status=$? |
---|
| 5860 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5861 | rm -f conftest.er1 |
---|
| 5862 | cat conftest.err >&5 |
---|
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5864 | (exit $ac_status); } && |
---|
| 5865 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5866 | || test ! -s conftest.err' |
---|
| 5867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5868 | (eval $ac_try) 2>&5 |
---|
| 5869 | ac_status=$? |
---|
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5871 | (exit $ac_status); }; } && |
---|
| 5872 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5874 | (eval $ac_try) 2>&5 |
---|
| 5875 | ac_status=$? |
---|
| 5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5877 | (exit $ac_status); }; }; then |
---|
| 5878 | ac_header_compiler=yes |
---|
| 5879 | else |
---|
| 5880 | echo "$as_me: failed program was:" >&5 |
---|
| 5881 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5882 | |
---|
| 5883 | ac_header_compiler=no |
---|
| 5884 | fi |
---|
| 5885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5886 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5887 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5888 | |
---|
| 5889 | # Is the header present? |
---|
| 5890 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5891 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5892 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5893 | /* confdefs.h. */ |
---|
| 5894 | _ACEOF |
---|
| 5895 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5896 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5897 | /* end confdefs.h. */ |
---|
| 5898 | #include <$ac_header> |
---|
| 5899 | _ACEOF |
---|
| 5900 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5901 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5902 | ac_status=$? |
---|
| 5903 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5904 | rm -f conftest.er1 |
---|
| 5905 | cat conftest.err >&5 |
---|
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5907 | (exit $ac_status); } >/dev/null; then |
---|
| 5908 | if test -s conftest.err; then |
---|
| 5909 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5910 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5911 | else |
---|
| 5912 | ac_cpp_err= |
---|
| 5913 | fi |
---|
| 5914 | else |
---|
| 5915 | ac_cpp_err=yes |
---|
| 5916 | fi |
---|
| 5917 | if test -z "$ac_cpp_err"; then |
---|
| 5918 | ac_header_preproc=yes |
---|
| 5919 | else |
---|
| 5920 | echo "$as_me: failed program was:" >&5 |
---|
| 5921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5922 | |
---|
| 5923 | ac_header_preproc=no |
---|
| 5924 | fi |
---|
| 5925 | rm -f conftest.err conftest.$ac_ext |
---|
| 5926 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5927 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5928 | |
---|
| 5929 | # So? What about this header? |
---|
| 5930 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5931 | yes:no: ) |
---|
| 5932 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5933 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5935 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5936 | ac_header_preproc=yes |
---|
| 5937 | ;; |
---|
| 5938 | no:yes:* ) |
---|
| 5939 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5940 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5941 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5942 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5943 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5944 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5945 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5946 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5948 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5949 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5950 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5951 | ( |
---|
| 5952 | cat <<\_ASBOX |
---|
[3240] | 5953 | ## ---------------------------------------------- ## |
---|
| 5954 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5955 | ## ---------------------------------------------- ## |
---|
[2995] | 5956 | _ASBOX |
---|
| 5957 | ) | |
---|
| 5958 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5959 | ;; |
---|
| 5960 | esac |
---|
| 5961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5965 | else |
---|
| 5966 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5967 | fi |
---|
| 5968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5969 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5970 | |
---|
| 5971 | fi |
---|
| 5972 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5973 | cat >>confdefs.h <<_ACEOF |
---|
| 5974 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5975 | _ACEOF |
---|
| 5976 | |
---|
| 5977 | else |
---|
| 5978 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5979 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5980 | { (exit 1); exit 1; }; } |
---|
| 5981 | fi |
---|
| 5982 | |
---|
| 5983 | done |
---|
| 5984 | |
---|
| 5985 | # cheking for GLU-header |
---|
| 5986 | |
---|
| 5987 | for ac_header in OpenGL/glu.h |
---|
| 5988 | do |
---|
| 5989 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5990 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5995 | fi |
---|
| 5996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5998 | else |
---|
| 5999 | # Is the header compilable? |
---|
| 6000 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6002 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6003 | /* confdefs.h. */ |
---|
| 6004 | _ACEOF |
---|
| 6005 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6006 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6007 | /* end confdefs.h. */ |
---|
| 6008 | $ac_includes_default |
---|
| 6009 | #include <$ac_header> |
---|
| 6010 | _ACEOF |
---|
| 6011 | rm -f conftest.$ac_objext |
---|
| 6012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6013 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6014 | ac_status=$? |
---|
| 6015 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6016 | rm -f conftest.er1 |
---|
| 6017 | cat conftest.err >&5 |
---|
| 6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6019 | (exit $ac_status); } && |
---|
| 6020 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6021 | || test ! -s conftest.err' |
---|
| 6022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6023 | (eval $ac_try) 2>&5 |
---|
| 6024 | ac_status=$? |
---|
| 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6026 | (exit $ac_status); }; } && |
---|
| 6027 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6029 | (eval $ac_try) 2>&5 |
---|
| 6030 | ac_status=$? |
---|
| 6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6032 | (exit $ac_status); }; }; then |
---|
| 6033 | ac_header_compiler=yes |
---|
| 6034 | else |
---|
| 6035 | echo "$as_me: failed program was:" >&5 |
---|
| 6036 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6037 | |
---|
| 6038 | ac_header_compiler=no |
---|
| 6039 | fi |
---|
| 6040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6041 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6042 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6043 | |
---|
| 6044 | # Is the header present? |
---|
| 6045 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6046 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6047 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6048 | /* confdefs.h. */ |
---|
| 6049 | _ACEOF |
---|
| 6050 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6051 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6052 | /* end confdefs.h. */ |
---|
| 6053 | #include <$ac_header> |
---|
| 6054 | _ACEOF |
---|
| 6055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6057 | ac_status=$? |
---|
| 6058 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6059 | rm -f conftest.er1 |
---|
| 6060 | cat conftest.err >&5 |
---|
| 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6062 | (exit $ac_status); } >/dev/null; then |
---|
| 6063 | if test -s conftest.err; then |
---|
| 6064 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6066 | else |
---|
| 6067 | ac_cpp_err= |
---|
| 6068 | fi |
---|
| 6069 | else |
---|
| 6070 | ac_cpp_err=yes |
---|
| 6071 | fi |
---|
| 6072 | if test -z "$ac_cpp_err"; then |
---|
| 6073 | ac_header_preproc=yes |
---|
| 6074 | else |
---|
| 6075 | echo "$as_me: failed program was:" >&5 |
---|
| 6076 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6077 | |
---|
| 6078 | ac_header_preproc=no |
---|
| 6079 | fi |
---|
| 6080 | rm -f conftest.err conftest.$ac_ext |
---|
| 6081 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6082 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6083 | |
---|
| 6084 | # So? What about this header? |
---|
| 6085 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6086 | yes:no: ) |
---|
| 6087 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6088 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6089 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6090 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6091 | ac_header_preproc=yes |
---|
| 6092 | ;; |
---|
| 6093 | no:yes:* ) |
---|
| 6094 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6095 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6096 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6097 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6098 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6099 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6100 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6101 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6102 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6103 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6104 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6105 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6106 | ( |
---|
| 6107 | cat <<\_ASBOX |
---|
[3240] | 6108 | ## ---------------------------------------------- ## |
---|
| 6109 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6110 | ## ---------------------------------------------- ## |
---|
[2995] | 6111 | _ASBOX |
---|
| 6112 | ) | |
---|
| 6113 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6114 | ;; |
---|
| 6115 | esac |
---|
| 6116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6120 | else |
---|
| 6121 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6122 | fi |
---|
| 6123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6124 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6125 | |
---|
| 6126 | fi |
---|
| 6127 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6128 | cat >>confdefs.h <<_ACEOF |
---|
| 6129 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6130 | _ACEOF |
---|
| 6131 | |
---|
| 6132 | else |
---|
| 6133 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6134 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6135 | { (exit 1); exit 1; }; } |
---|
| 6136 | fi |
---|
| 6137 | |
---|
| 6138 | done |
---|
| 6139 | |
---|
| 6140 | |
---|
| 6141 | LIBS="$LIBS -framework OpenGL" |
---|
| 6142 | |
---|
[3424] | 6143 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6144 | SDL_LIBS=`sdl-config --libs` |
---|
| 6145 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6146 | LIBS="$LIBS $SDL_LIBS" |
---|
| 6147 | |
---|
| 6148 | |
---|
[2995] | 6149 | # checking for SDL-headers |
---|
[3001] | 6150 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6151 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 6152 | |
---|
| 6153 | ## checking for SDL |
---|
| 6154 | # SDL_VERSION=1.2.7 |
---|
| 6155 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6156 | # :, |
---|
| 6157 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6158 | # ) |
---|
| 6159 | |
---|
[3140] | 6160 | |
---|
[2995] | 6161 | ;; |
---|
| 6162 | |
---|
[2989] | 6163 | *) |
---|
| 6164 | ;; |
---|
| 6165 | esac |
---|
[2980] | 6166 | |
---|
[2981] | 6167 | |
---|
[2989] | 6168 | |
---|
[3424] | 6169 | ################################### |
---|
| 6170 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6171 | ################################### |
---|
| 6172 | |
---|
[3790] | 6173 | #---------# |
---|
| 6174 | # SDL_ttf # |
---|
| 6175 | #---------# |
---|
| 6176 | # checking for SDL_ttf-headers |
---|
| 6177 | |
---|
| 6178 | for ac_header in SDL_ttf.h |
---|
| 6179 | do |
---|
| 6180 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6186 | fi |
---|
| 6187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6189 | else |
---|
| 6190 | # Is the header compilable? |
---|
| 6191 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6192 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6193 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6194 | /* confdefs.h. */ |
---|
| 6195 | _ACEOF |
---|
| 6196 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6197 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6198 | /* end confdefs.h. */ |
---|
| 6199 | $ac_includes_default |
---|
| 6200 | #include <$ac_header> |
---|
| 6201 | _ACEOF |
---|
| 6202 | rm -f conftest.$ac_objext |
---|
| 6203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6204 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6205 | ac_status=$? |
---|
| 6206 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6207 | rm -f conftest.er1 |
---|
| 6208 | cat conftest.err >&5 |
---|
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6210 | (exit $ac_status); } && |
---|
| 6211 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6212 | || test ! -s conftest.err' |
---|
| 6213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6214 | (eval $ac_try) 2>&5 |
---|
| 6215 | ac_status=$? |
---|
| 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6217 | (exit $ac_status); }; } && |
---|
| 6218 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6220 | (eval $ac_try) 2>&5 |
---|
| 6221 | ac_status=$? |
---|
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6223 | (exit $ac_status); }; }; then |
---|
| 6224 | ac_header_compiler=yes |
---|
| 6225 | else |
---|
| 6226 | echo "$as_me: failed program was:" >&5 |
---|
| 6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6228 | |
---|
| 6229 | ac_header_compiler=no |
---|
| 6230 | fi |
---|
| 6231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6232 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6233 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6234 | |
---|
| 6235 | # Is the header present? |
---|
| 6236 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6237 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6238 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6239 | /* confdefs.h. */ |
---|
| 6240 | _ACEOF |
---|
| 6241 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6242 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6243 | /* end confdefs.h. */ |
---|
| 6244 | #include <$ac_header> |
---|
| 6245 | _ACEOF |
---|
| 6246 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6247 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6248 | ac_status=$? |
---|
| 6249 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6250 | rm -f conftest.er1 |
---|
| 6251 | cat conftest.err >&5 |
---|
| 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6253 | (exit $ac_status); } >/dev/null; then |
---|
| 6254 | if test -s conftest.err; then |
---|
| 6255 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6256 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6257 | else |
---|
| 6258 | ac_cpp_err= |
---|
| 6259 | fi |
---|
| 6260 | else |
---|
| 6261 | ac_cpp_err=yes |
---|
| 6262 | fi |
---|
| 6263 | if test -z "$ac_cpp_err"; then |
---|
| 6264 | ac_header_preproc=yes |
---|
| 6265 | else |
---|
| 6266 | echo "$as_me: failed program was:" >&5 |
---|
| 6267 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6268 | |
---|
| 6269 | ac_header_preproc=no |
---|
| 6270 | fi |
---|
| 6271 | rm -f conftest.err conftest.$ac_ext |
---|
| 6272 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6273 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6274 | |
---|
| 6275 | # So? What about this header? |
---|
| 6276 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6277 | yes:no: ) |
---|
| 6278 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6279 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6281 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6282 | ac_header_preproc=yes |
---|
| 6283 | ;; |
---|
| 6284 | no:yes:* ) |
---|
| 6285 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6286 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6287 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6288 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6289 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6290 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6291 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6292 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6294 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6295 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6296 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6297 | ( |
---|
| 6298 | cat <<\_ASBOX |
---|
| 6299 | ## ---------------------------------------------- ## |
---|
| 6300 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6301 | ## ---------------------------------------------- ## |
---|
| 6302 | _ASBOX |
---|
| 6303 | ) | |
---|
| 6304 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6305 | ;; |
---|
| 6306 | esac |
---|
| 6307 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6311 | else |
---|
| 6312 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6313 | fi |
---|
| 6314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6316 | |
---|
| 6317 | fi |
---|
| 6318 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6319 | cat >>confdefs.h <<_ACEOF |
---|
| 6320 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6321 | _ACEOF |
---|
| 6322 | |
---|
| 6323 | else |
---|
| 6324 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
| 6325 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
| 6326 | { (exit 1); exit 1; }; } |
---|
| 6327 | fi |
---|
| 6328 | |
---|
| 6329 | done |
---|
| 6330 | |
---|
| 6331 | #fi |
---|
| 6332 | # checking for SDL_ttf-lib |
---|
| 6333 | echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 |
---|
| 6334 | echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 |
---|
| 6335 | if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then |
---|
| 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6337 | else |
---|
| 6338 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6339 | LIBS="-lSDL_ttf $LIBS" |
---|
| 6340 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6341 | /* confdefs.h. */ |
---|
| 6342 | _ACEOF |
---|
| 6343 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6344 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6345 | /* end confdefs.h. */ |
---|
| 6346 | |
---|
| 6347 | |
---|
| 6348 | int |
---|
| 6349 | main () |
---|
| 6350 | { |
---|
| 6351 | main (); |
---|
| 6352 | ; |
---|
| 6353 | return 0; |
---|
| 6354 | } |
---|
| 6355 | _ACEOF |
---|
| 6356 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6358 | (eval $ac_link) 2>conftest.er1 |
---|
| 6359 | ac_status=$? |
---|
| 6360 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6361 | rm -f conftest.er1 |
---|
| 6362 | cat conftest.err >&5 |
---|
| 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6364 | (exit $ac_status); } && |
---|
| 6365 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6366 | || test ! -s conftest.err' |
---|
| 6367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6368 | (eval $ac_try) 2>&5 |
---|
| 6369 | ac_status=$? |
---|
| 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6371 | (exit $ac_status); }; } && |
---|
| 6372 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6374 | (eval $ac_try) 2>&5 |
---|
| 6375 | ac_status=$? |
---|
| 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6377 | (exit $ac_status); }; }; then |
---|
| 6378 | ac_cv_lib_SDL_ttf_main=yes |
---|
| 6379 | else |
---|
| 6380 | echo "$as_me: failed program was:" >&5 |
---|
| 6381 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6382 | |
---|
| 6383 | ac_cv_lib_SDL_ttf_main=no |
---|
| 6384 | fi |
---|
| 6385 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6386 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6387 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6388 | fi |
---|
| 6389 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 |
---|
| 6390 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 |
---|
| 6391 | if test $ac_cv_lib_SDL_ttf_main = yes; then |
---|
| 6392 | FOUND_SDL_ttf=yes |
---|
| 6393 | fi |
---|
| 6394 | |
---|
| 6395 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
| 6396 | LIBS="$LIBS -lSDL_ttf" |
---|
| 6397 | else |
---|
| 6398 | echo "------------------" |
---|
| 6399 | echo "SDL_ttf library not found." |
---|
| 6400 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
| 6401 | echo "------------------" |
---|
| 6402 | exit -1 |
---|
| 6403 | fi |
---|
| 6404 | |
---|
[3424] | 6405 | #-----------# |
---|
| 6406 | # SDL_Image # |
---|
| 6407 | #-----------# |
---|
[3140] | 6408 | # checking for SDL_image-headers |
---|
[2989] | 6409 | |
---|
[3790] | 6410 | for ac_header in SDL_image.h |
---|
[3140] | 6411 | do |
---|
| 6412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6418 | fi |
---|
| 6419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6421 | else |
---|
| 6422 | # Is the header compilable? |
---|
| 6423 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6425 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6426 | /* confdefs.h. */ |
---|
| 6427 | _ACEOF |
---|
| 6428 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6430 | /* end confdefs.h. */ |
---|
| 6431 | $ac_includes_default |
---|
| 6432 | #include <$ac_header> |
---|
| 6433 | _ACEOF |
---|
| 6434 | rm -f conftest.$ac_objext |
---|
| 6435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6436 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6437 | ac_status=$? |
---|
| 6438 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6439 | rm -f conftest.er1 |
---|
| 6440 | cat conftest.err >&5 |
---|
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6442 | (exit $ac_status); } && |
---|
| 6443 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6444 | || test ! -s conftest.err' |
---|
| 6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6446 | (eval $ac_try) 2>&5 |
---|
| 6447 | ac_status=$? |
---|
| 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6449 | (exit $ac_status); }; } && |
---|
| 6450 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6452 | (eval $ac_try) 2>&5 |
---|
| 6453 | ac_status=$? |
---|
| 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6455 | (exit $ac_status); }; }; then |
---|
| 6456 | ac_header_compiler=yes |
---|
| 6457 | else |
---|
| 6458 | echo "$as_me: failed program was:" >&5 |
---|
| 6459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6460 | |
---|
[3140] | 6461 | ac_header_compiler=no |
---|
| 6462 | fi |
---|
| 6463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6464 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6465 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6466 | |
---|
[3140] | 6467 | # Is the header present? |
---|
| 6468 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6469 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6470 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6471 | /* confdefs.h. */ |
---|
| 6472 | _ACEOF |
---|
| 6473 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6474 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6475 | /* end confdefs.h. */ |
---|
| 6476 | #include <$ac_header> |
---|
| 6477 | _ACEOF |
---|
| 6478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6480 | ac_status=$? |
---|
| 6481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6482 | rm -f conftest.er1 |
---|
| 6483 | cat conftest.err >&5 |
---|
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6485 | (exit $ac_status); } >/dev/null; then |
---|
| 6486 | if test -s conftest.err; then |
---|
| 6487 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6489 | else |
---|
| 6490 | ac_cpp_err= |
---|
| 6491 | fi |
---|
| 6492 | else |
---|
| 6493 | ac_cpp_err=yes |
---|
| 6494 | fi |
---|
| 6495 | if test -z "$ac_cpp_err"; then |
---|
| 6496 | ac_header_preproc=yes |
---|
| 6497 | else |
---|
| 6498 | echo "$as_me: failed program was:" >&5 |
---|
| 6499 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6500 | |
---|
| 6501 | ac_header_preproc=no |
---|
| 6502 | fi |
---|
| 6503 | rm -f conftest.err conftest.$ac_ext |
---|
| 6504 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6505 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6506 | |
---|
| 6507 | # So? What about this header? |
---|
| 6508 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6509 | yes:no: ) |
---|
| 6510 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6511 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6513 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6514 | ac_header_preproc=yes |
---|
| 6515 | ;; |
---|
| 6516 | no:yes:* ) |
---|
| 6517 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6518 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6520 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6521 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6522 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6523 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6524 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6525 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6526 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6527 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6528 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6529 | ( |
---|
| 6530 | cat <<\_ASBOX |
---|
[3240] | 6531 | ## ---------------------------------------------- ## |
---|
| 6532 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6533 | ## ---------------------------------------------- ## |
---|
[3140] | 6534 | _ASBOX |
---|
| 6535 | ) | |
---|
| 6536 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6537 | ;; |
---|
| 6538 | esac |
---|
| 6539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6543 | else |
---|
| 6544 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6545 | fi |
---|
| 6546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6547 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6548 | |
---|
| 6549 | fi |
---|
| 6550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6551 | cat >>confdefs.h <<_ACEOF |
---|
| 6552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6553 | _ACEOF |
---|
| 6554 | |
---|
| 6555 | else |
---|
[3863] | 6556 | echo "sdl_image header not found."; def_sdl_image=no; exit -1 |
---|
[3140] | 6557 | fi |
---|
| 6558 | |
---|
| 6559 | done |
---|
| 6560 | |
---|
| 6561 | # checking for SDL_image-lib |
---|
[3863] | 6562 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
[3140] | 6563 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 6564 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6566 | else |
---|
| 6567 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6568 | LIBS="-lSDL_image $LIBS" |
---|
| 6569 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6570 | /* confdefs.h. */ |
---|
| 6571 | _ACEOF |
---|
| 6572 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6573 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6574 | /* end confdefs.h. */ |
---|
| 6575 | |
---|
| 6576 | |
---|
| 6577 | int |
---|
| 6578 | main () |
---|
| 6579 | { |
---|
| 6580 | main (); |
---|
| 6581 | ; |
---|
| 6582 | return 0; |
---|
| 6583 | } |
---|
| 6584 | _ACEOF |
---|
| 6585 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6587 | (eval $ac_link) 2>conftest.er1 |
---|
| 6588 | ac_status=$? |
---|
| 6589 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6590 | rm -f conftest.er1 |
---|
| 6591 | cat conftest.err >&5 |
---|
| 6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6593 | (exit $ac_status); } && |
---|
| 6594 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6595 | || test ! -s conftest.err' |
---|
| 6596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6597 | (eval $ac_try) 2>&5 |
---|
| 6598 | ac_status=$? |
---|
| 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6600 | (exit $ac_status); }; } && |
---|
| 6601 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6603 | (eval $ac_try) 2>&5 |
---|
| 6604 | ac_status=$? |
---|
| 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6606 | (exit $ac_status); }; }; then |
---|
| 6607 | ac_cv_lib_SDL_image_main=yes |
---|
| 6608 | else |
---|
| 6609 | echo "$as_me: failed program was:" >&5 |
---|
| 6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6611 | |
---|
| 6612 | ac_cv_lib_SDL_image_main=no |
---|
| 6613 | fi |
---|
| 6614 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6615 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6616 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6617 | fi |
---|
| 6618 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6619 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6620 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6621 | FOUND_SDL_image=yes |
---|
| 6622 | fi |
---|
| 6623 | |
---|
[3863] | 6624 | if test x$FOUND_SDL_image = xyes ; then |
---|
| 6625 | LIBS="$LIBS -lSDL_image" |
---|
| 6626 | else |
---|
| 6627 | echo "------------------" |
---|
| 6628 | echo "SDL_image library not found." |
---|
| 6629 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6630 | echo "------------------" |
---|
| 6631 | exit -1 |
---|
| 6632 | fi |
---|
[3140] | 6633 | |
---|
[3424] | 6634 | #-----# |
---|
| 6635 | # GTK # |
---|
| 6636 | #-----# |
---|
| 6637 | if test x$def_gtk = xyes; then |
---|
[3100] | 6638 | |
---|
| 6639 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6640 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 6641 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[3100] | 6642 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6643 | echo "yes" |
---|
| 6644 | have_gtk2=yes |
---|
| 6645 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6646 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
[3101] | 6647 | |
---|
| 6648 | cat >>confdefs.h <<_ACEOF |
---|
| 6649 | #define HAVE_GTK2 1 |
---|
| 6650 | _ACEOF |
---|
| 6651 | |
---|
[3100] | 6652 | else |
---|
| 6653 | echo "no" |
---|
| 6654 | fi |
---|
| 6655 | |
---|
[2980] | 6656 | fi |
---|
[2190] | 6657 | |
---|
[2701] | 6658 | |
---|
| 6659 | |
---|
[2190] | 6660 | |
---|
[3100] | 6661 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 6662 | HAVE_GTK2_TRUE= |
---|
| 6663 | HAVE_GTK2_FALSE='#' |
---|
| 6664 | else |
---|
| 6665 | HAVE_GTK2_TRUE='#' |
---|
| 6666 | HAVE_GTK2_FALSE= |
---|
| 6667 | fi |
---|
| 6668 | |
---|
| 6669 | |
---|
[3424] | 6670 | #---------# |
---|
| 6671 | # gThread # |
---|
| 6672 | #---------# |
---|
| 6673 | if test x$def_gthread = xyes; then |
---|
[2980] | 6674 | |
---|
[3423] | 6675 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
| 6676 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
| 6677 | if `pkg-config --exists gthread-2.0`; then |
---|
| 6678 | echo "yes" |
---|
| 6679 | have_gthread=yes |
---|
| 6680 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
| 6681 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
[3100] | 6682 | |
---|
[3423] | 6683 | cat >>confdefs.h <<_ACEOF |
---|
| 6684 | #define HAVE_GTHREAD 1 |
---|
| 6685 | _ACEOF |
---|
[2190] | 6686 | |
---|
[3423] | 6687 | else |
---|
| 6688 | echo "no" |
---|
| 6689 | fi |
---|
[2190] | 6690 | |
---|
[3423] | 6691 | fi |
---|
| 6692 | |
---|
| 6693 | |
---|
| 6694 | |
---|
| 6695 | |
---|
| 6696 | if test x$have_gthread = xyes; then |
---|
| 6697 | HAVE_GTHREAD_TRUE= |
---|
| 6698 | HAVE_GTHREAD_FALSE='#' |
---|
| 6699 | else |
---|
| 6700 | HAVE_GTHREAD_TRUE='#' |
---|
| 6701 | HAVE_GTHREAD_FALSE= |
---|
| 6702 | fi |
---|
| 6703 | |
---|
| 6704 | |
---|
[3424] | 6705 | #---------# |
---|
| 6706 | # libcURL # |
---|
| 6707 | #---------# |
---|
| 6708 | if test x$def_curl = xyes; then |
---|
[3423] | 6709 | |
---|
| 6710 | |
---|
| 6711 | for ac_header in curl/curl.h |
---|
| 6712 | do |
---|
| 6713 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6719 | fi |
---|
| 6720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6722 | else |
---|
| 6723 | # Is the header compilable? |
---|
| 6724 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6725 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6726 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6727 | /* confdefs.h. */ |
---|
| 6728 | _ACEOF |
---|
| 6729 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6730 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6731 | /* end confdefs.h. */ |
---|
| 6732 | $ac_includes_default |
---|
| 6733 | #include <$ac_header> |
---|
| 6734 | _ACEOF |
---|
| 6735 | rm -f conftest.$ac_objext |
---|
| 6736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6737 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6738 | ac_status=$? |
---|
| 6739 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6740 | rm -f conftest.er1 |
---|
| 6741 | cat conftest.err >&5 |
---|
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6743 | (exit $ac_status); } && |
---|
| 6744 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6745 | || test ! -s conftest.err' |
---|
| 6746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6747 | (eval $ac_try) 2>&5 |
---|
| 6748 | ac_status=$? |
---|
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6750 | (exit $ac_status); }; } && |
---|
| 6751 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6753 | (eval $ac_try) 2>&5 |
---|
| 6754 | ac_status=$? |
---|
| 6755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6756 | (exit $ac_status); }; }; then |
---|
| 6757 | ac_header_compiler=yes |
---|
| 6758 | else |
---|
| 6759 | echo "$as_me: failed program was:" >&5 |
---|
| 6760 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6761 | |
---|
| 6762 | ac_header_compiler=no |
---|
| 6763 | fi |
---|
| 6764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6765 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6766 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6767 | |
---|
| 6768 | # Is the header present? |
---|
| 6769 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6770 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6771 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6772 | /* confdefs.h. */ |
---|
| 6773 | _ACEOF |
---|
| 6774 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6775 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6776 | /* end confdefs.h. */ |
---|
| 6777 | #include <$ac_header> |
---|
| 6778 | _ACEOF |
---|
| 6779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6781 | ac_status=$? |
---|
| 6782 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6783 | rm -f conftest.er1 |
---|
| 6784 | cat conftest.err >&5 |
---|
| 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6786 | (exit $ac_status); } >/dev/null; then |
---|
| 6787 | if test -s conftest.err; then |
---|
| 6788 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6789 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6790 | else |
---|
| 6791 | ac_cpp_err= |
---|
| 6792 | fi |
---|
| 6793 | else |
---|
| 6794 | ac_cpp_err=yes |
---|
| 6795 | fi |
---|
| 6796 | if test -z "$ac_cpp_err"; then |
---|
| 6797 | ac_header_preproc=yes |
---|
| 6798 | else |
---|
| 6799 | echo "$as_me: failed program was:" >&5 |
---|
| 6800 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6801 | |
---|
| 6802 | ac_header_preproc=no |
---|
| 6803 | fi |
---|
| 6804 | rm -f conftest.err conftest.$ac_ext |
---|
| 6805 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6806 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6807 | |
---|
| 6808 | # So? What about this header? |
---|
| 6809 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6810 | yes:no: ) |
---|
| 6811 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6812 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6814 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6815 | ac_header_preproc=yes |
---|
| 6816 | ;; |
---|
| 6817 | no:yes:* ) |
---|
| 6818 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6819 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6820 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6821 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6822 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6823 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6824 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6825 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6827 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6828 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6829 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6830 | ( |
---|
| 6831 | cat <<\_ASBOX |
---|
| 6832 | ## ---------------------------------------------- ## |
---|
| 6833 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6834 | ## ---------------------------------------------- ## |
---|
| 6835 | _ASBOX |
---|
| 6836 | ) | |
---|
| 6837 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6838 | ;; |
---|
| 6839 | esac |
---|
| 6840 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6844 | else |
---|
| 6845 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6846 | fi |
---|
| 6847 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6848 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6849 | |
---|
| 6850 | fi |
---|
| 6851 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6852 | cat >>confdefs.h <<_ACEOF |
---|
| 6853 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6854 | _ACEOF |
---|
| 6855 | curlHeader="yes" |
---|
| 6856 | else |
---|
| 6857 | curlHeader="no" |
---|
| 6858 | fi |
---|
| 6859 | |
---|
| 6860 | done |
---|
| 6861 | |
---|
| 6862 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 6863 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 6864 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6866 | else |
---|
| 6867 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6868 | LIBS="-lcurl $LIBS" |
---|
| 6869 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6870 | /* confdefs.h. */ |
---|
| 6871 | _ACEOF |
---|
| 6872 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6873 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6874 | /* end confdefs.h. */ |
---|
| 6875 | |
---|
| 6876 | |
---|
| 6877 | int |
---|
| 6878 | main () |
---|
| 6879 | { |
---|
| 6880 | main (); |
---|
| 6881 | ; |
---|
| 6882 | return 0; |
---|
| 6883 | } |
---|
| 6884 | _ACEOF |
---|
| 6885 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6887 | (eval $ac_link) 2>conftest.er1 |
---|
| 6888 | ac_status=$? |
---|
| 6889 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6890 | rm -f conftest.er1 |
---|
| 6891 | cat conftest.err >&5 |
---|
| 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6893 | (exit $ac_status); } && |
---|
| 6894 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6895 | || test ! -s conftest.err' |
---|
| 6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6897 | (eval $ac_try) 2>&5 |
---|
| 6898 | ac_status=$? |
---|
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6900 | (exit $ac_status); }; } && |
---|
| 6901 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6903 | (eval $ac_try) 2>&5 |
---|
| 6904 | ac_status=$? |
---|
| 6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6906 | (exit $ac_status); }; }; then |
---|
| 6907 | ac_cv_lib_curl_main=yes |
---|
| 6908 | else |
---|
| 6909 | echo "$as_me: failed program was:" >&5 |
---|
| 6910 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6911 | |
---|
| 6912 | ac_cv_lib_curl_main=no |
---|
| 6913 | fi |
---|
| 6914 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6915 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6916 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6917 | fi |
---|
| 6918 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 6919 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 6920 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 6921 | FOUND_curl=yes |
---|
| 6922 | fi |
---|
| 6923 | |
---|
| 6924 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 6925 | have_curl=yes |
---|
| 6926 | CURL_LIBS=`curl-config --libs` |
---|
| 6927 | CURLCFLAGS=`curl-config --cflags` |
---|
| 6928 | |
---|
| 6929 | cat >>confdefs.h <<_ACEOF |
---|
| 6930 | #define HAVE_CURL 1 |
---|
| 6931 | _ACEOF |
---|
| 6932 | |
---|
| 6933 | else |
---|
| 6934 | have_curl=no |
---|
| 6935 | fi |
---|
| 6936 | |
---|
| 6937 | fi |
---|
| 6938 | |
---|
| 6939 | |
---|
| 6940 | |
---|
| 6941 | |
---|
| 6942 | if test x$have_curl = xyes; then |
---|
| 6943 | HAVE_CURL_TRUE= |
---|
| 6944 | HAVE_CURL_FALSE='#' |
---|
| 6945 | else |
---|
| 6946 | HAVE_CURL_TRUE='#' |
---|
| 6947 | HAVE_CURL_FALSE= |
---|
| 6948 | fi |
---|
| 6949 | |
---|
| 6950 | |
---|
[3424] | 6951 | #---------# |
---|
| 6952 | # pthread # |
---|
| 6953 | #---------# |
---|
[3423] | 6954 | if test x$def_pthread = xyes ; then |
---|
| 6955 | if test x$have_gthread = xyes ; then |
---|
| 6956 | |
---|
| 6957 | for ac_header in pthread.h |
---|
| 6958 | do |
---|
| 6959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6965 | fi |
---|
| 6966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6968 | else |
---|
| 6969 | # Is the header compilable? |
---|
| 6970 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6972 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6973 | /* confdefs.h. */ |
---|
| 6974 | _ACEOF |
---|
| 6975 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6976 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6977 | /* end confdefs.h. */ |
---|
| 6978 | $ac_includes_default |
---|
| 6979 | #include <$ac_header> |
---|
| 6980 | _ACEOF |
---|
| 6981 | rm -f conftest.$ac_objext |
---|
| 6982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6983 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6984 | ac_status=$? |
---|
| 6985 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6986 | rm -f conftest.er1 |
---|
| 6987 | cat conftest.err >&5 |
---|
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6989 | (exit $ac_status); } && |
---|
| 6990 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6991 | || test ! -s conftest.err' |
---|
| 6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6993 | (eval $ac_try) 2>&5 |
---|
| 6994 | ac_status=$? |
---|
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6996 | (exit $ac_status); }; } && |
---|
| 6997 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6999 | (eval $ac_try) 2>&5 |
---|
| 7000 | ac_status=$? |
---|
| 7001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7002 | (exit $ac_status); }; }; then |
---|
| 7003 | ac_header_compiler=yes |
---|
| 7004 | else |
---|
| 7005 | echo "$as_me: failed program was:" >&5 |
---|
| 7006 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7007 | |
---|
| 7008 | ac_header_compiler=no |
---|
| 7009 | fi |
---|
| 7010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7011 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7012 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7013 | |
---|
| 7014 | # Is the header present? |
---|
| 7015 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7016 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7017 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7018 | /* confdefs.h. */ |
---|
| 7019 | _ACEOF |
---|
| 7020 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7021 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7022 | /* end confdefs.h. */ |
---|
| 7023 | #include <$ac_header> |
---|
| 7024 | _ACEOF |
---|
| 7025 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7026 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7027 | ac_status=$? |
---|
| 7028 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7029 | rm -f conftest.er1 |
---|
| 7030 | cat conftest.err >&5 |
---|
| 7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7032 | (exit $ac_status); } >/dev/null; then |
---|
| 7033 | if test -s conftest.err; then |
---|
| 7034 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7035 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7036 | else |
---|
| 7037 | ac_cpp_err= |
---|
| 7038 | fi |
---|
| 7039 | else |
---|
| 7040 | ac_cpp_err=yes |
---|
| 7041 | fi |
---|
| 7042 | if test -z "$ac_cpp_err"; then |
---|
| 7043 | ac_header_preproc=yes |
---|
| 7044 | else |
---|
| 7045 | echo "$as_me: failed program was:" >&5 |
---|
| 7046 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7047 | |
---|
| 7048 | ac_header_preproc=no |
---|
| 7049 | fi |
---|
| 7050 | rm -f conftest.err conftest.$ac_ext |
---|
| 7051 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7052 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7053 | |
---|
| 7054 | # So? What about this header? |
---|
| 7055 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7056 | yes:no: ) |
---|
| 7057 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7058 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7059 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7060 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7061 | ac_header_preproc=yes |
---|
| 7062 | ;; |
---|
| 7063 | no:yes:* ) |
---|
| 7064 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7065 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7066 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7067 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7068 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7069 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7070 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7071 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7073 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7074 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7075 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7076 | ( |
---|
| 7077 | cat <<\_ASBOX |
---|
| 7078 | ## ---------------------------------------------- ## |
---|
| 7079 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7080 | ## ---------------------------------------------- ## |
---|
| 7081 | _ASBOX |
---|
| 7082 | ) | |
---|
| 7083 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7084 | ;; |
---|
| 7085 | esac |
---|
| 7086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7090 | else |
---|
| 7091 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7092 | fi |
---|
| 7093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7095 | |
---|
| 7096 | fi |
---|
| 7097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7098 | cat >>confdefs.h <<_ACEOF |
---|
| 7099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7100 | _ACEOF |
---|
| 7101 | pthreadHeader="yes" |
---|
| 7102 | else |
---|
| 7103 | pthreadHeader="no" |
---|
| 7104 | fi |
---|
| 7105 | |
---|
| 7106 | done |
---|
| 7107 | |
---|
| 7108 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
| 7109 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 7110 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7112 | else |
---|
| 7113 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7114 | LIBS="-lpthread $LIBS" |
---|
| 7115 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7116 | /* confdefs.h. */ |
---|
| 7117 | _ACEOF |
---|
| 7118 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7119 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7120 | /* end confdefs.h. */ |
---|
| 7121 | |
---|
| 7122 | |
---|
| 7123 | int |
---|
| 7124 | main () |
---|
| 7125 | { |
---|
| 7126 | main (); |
---|
| 7127 | ; |
---|
| 7128 | return 0; |
---|
| 7129 | } |
---|
| 7130 | _ACEOF |
---|
| 7131 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7133 | (eval $ac_link) 2>conftest.er1 |
---|
| 7134 | ac_status=$? |
---|
| 7135 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7136 | rm -f conftest.er1 |
---|
| 7137 | cat conftest.err >&5 |
---|
| 7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7139 | (exit $ac_status); } && |
---|
| 7140 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7141 | || test ! -s conftest.err' |
---|
| 7142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7143 | (eval $ac_try) 2>&5 |
---|
| 7144 | ac_status=$? |
---|
| 7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7146 | (exit $ac_status); }; } && |
---|
| 7147 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7149 | (eval $ac_try) 2>&5 |
---|
| 7150 | ac_status=$? |
---|
| 7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7152 | (exit $ac_status); }; }; then |
---|
| 7153 | ac_cv_lib_pthread_main=yes |
---|
| 7154 | else |
---|
| 7155 | echo "$as_me: failed program was:" >&5 |
---|
| 7156 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7157 | |
---|
| 7158 | ac_cv_lib_pthread_main=no |
---|
| 7159 | fi |
---|
| 7160 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7161 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7162 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7163 | fi |
---|
| 7164 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 7165 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 7166 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 7167 | FOUND_pthread=yes |
---|
| 7168 | fi |
---|
| 7169 | |
---|
[3424] | 7170 | if test x$FOUND_pthread = xyes ; then |
---|
[3423] | 7171 | LIBS="$LIBS -lpthread" |
---|
| 7172 | fi |
---|
| 7173 | fi |
---|
| 7174 | fi |
---|
[3424] | 7175 | |
---|
| 7176 | |
---|
[3863] | 7177 | #--------# |
---|
| 7178 | # efence # |
---|
| 7179 | #--------# |
---|
| 7180 | if test x$def_efence = xyes ; then |
---|
| 7181 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
| 7182 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
| 7183 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
| 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7185 | else |
---|
| 7186 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7187 | LIBS="-lefence $LIBS" |
---|
| 7188 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7189 | /* confdefs.h. */ |
---|
| 7190 | _ACEOF |
---|
| 7191 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7192 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7193 | /* end confdefs.h. */ |
---|
| 7194 | |
---|
| 7195 | |
---|
| 7196 | int |
---|
| 7197 | main () |
---|
| 7198 | { |
---|
| 7199 | main (); |
---|
| 7200 | ; |
---|
| 7201 | return 0; |
---|
| 7202 | } |
---|
| 7203 | _ACEOF |
---|
| 7204 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7206 | (eval $ac_link) 2>conftest.er1 |
---|
| 7207 | ac_status=$? |
---|
| 7208 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7209 | rm -f conftest.er1 |
---|
| 7210 | cat conftest.err >&5 |
---|
| 7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7212 | (exit $ac_status); } && |
---|
| 7213 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7214 | || test ! -s conftest.err' |
---|
| 7215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7216 | (eval $ac_try) 2>&5 |
---|
| 7217 | ac_status=$? |
---|
| 7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7219 | (exit $ac_status); }; } && |
---|
| 7220 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7222 | (eval $ac_try) 2>&5 |
---|
| 7223 | ac_status=$? |
---|
| 7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7225 | (exit $ac_status); }; }; then |
---|
| 7226 | ac_cv_lib_efence_main=yes |
---|
| 7227 | else |
---|
| 7228 | echo "$as_me: failed program was:" >&5 |
---|
| 7229 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7230 | |
---|
| 7231 | ac_cv_lib_efence_main=no |
---|
| 7232 | fi |
---|
| 7233 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7234 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7235 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7236 | fi |
---|
| 7237 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
| 7238 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
| 7239 | if test $ac_cv_lib_efence_main = yes; then |
---|
| 7240 | FOUND_efence=yes |
---|
| 7241 | fi |
---|
| 7242 | |
---|
| 7243 | if test x$FOUND_efence = xyes ; then |
---|
| 7244 | LIBS="$LIBS -lefence" |
---|
| 7245 | fi |
---|
| 7246 | |
---|
| 7247 | fi |
---|
| 7248 | |
---|
[1956] | 7249 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 7250 | |
---|
| 7251 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 7252 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 7253 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 7254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7255 | else |
---|
| 7256 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7257 | LIBS="-lm $LIBS" |
---|
| 7258 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7259 | /* confdefs.h. */ |
---|
| 7260 | _ACEOF |
---|
| 7261 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7262 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7263 | /* end confdefs.h. */ |
---|
| 7264 | |
---|
| 7265 | |
---|
| 7266 | int |
---|
| 7267 | main () |
---|
| 7268 | { |
---|
| 7269 | main (); |
---|
| 7270 | ; |
---|
| 7271 | return 0; |
---|
| 7272 | } |
---|
| 7273 | _ACEOF |
---|
| 7274 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7276 | (eval $ac_link) 2>conftest.er1 |
---|
| 7277 | ac_status=$? |
---|
| 7278 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7279 | rm -f conftest.er1 |
---|
| 7280 | cat conftest.err >&5 |
---|
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7282 | (exit $ac_status); } && |
---|
| 7283 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7284 | || test ! -s conftest.err' |
---|
| 7285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7286 | (eval $ac_try) 2>&5 |
---|
| 7287 | ac_status=$? |
---|
| 7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7289 | (exit $ac_status); }; } && |
---|
| 7290 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7292 | (eval $ac_try) 2>&5 |
---|
| 7293 | ac_status=$? |
---|
| 7294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7295 | (exit $ac_status); }; }; then |
---|
| 7296 | ac_cv_lib_m_main=yes |
---|
| 7297 | else |
---|
| 7298 | echo "$as_me: failed program was:" >&5 |
---|
| 7299 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7300 | |
---|
| 7301 | ac_cv_lib_m_main=no |
---|
| 7302 | fi |
---|
| 7303 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7304 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7305 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7306 | fi |
---|
| 7307 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 7308 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 7309 | if test $ac_cv_lib_m_main = yes; then |
---|
| 7310 | cat >>confdefs.h <<_ACEOF |
---|
| 7311 | #define HAVE_LIBM 1 |
---|
| 7312 | _ACEOF |
---|
| 7313 | |
---|
| 7314 | LIBS="-lm $LIBS" |
---|
| 7315 | |
---|
| 7316 | fi |
---|
| 7317 | |
---|
| 7318 | |
---|
[2018] | 7319 | |
---|
[1956] | 7320 | # Checks for header files. |
---|
| 7321 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 7322 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 7323 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 7324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7325 | else |
---|
| 7326 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7327 | /* confdefs.h. */ |
---|
| 7328 | _ACEOF |
---|
| 7329 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7330 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7331 | /* end confdefs.h. */ |
---|
| 7332 | #include <stdlib.h> |
---|
| 7333 | #include <stdarg.h> |
---|
| 7334 | #include <string.h> |
---|
| 7335 | #include <float.h> |
---|
| 7336 | |
---|
| 7337 | int |
---|
| 7338 | main () |
---|
| 7339 | { |
---|
| 7340 | |
---|
| 7341 | ; |
---|
| 7342 | return 0; |
---|
| 7343 | } |
---|
| 7344 | _ACEOF |
---|
| 7345 | rm -f conftest.$ac_objext |
---|
| 7346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7347 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7348 | ac_status=$? |
---|
| 7349 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7350 | rm -f conftest.er1 |
---|
| 7351 | cat conftest.err >&5 |
---|
| 7352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7353 | (exit $ac_status); } && |
---|
| 7354 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7355 | || test ! -s conftest.err' |
---|
| 7356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7357 | (eval $ac_try) 2>&5 |
---|
| 7358 | ac_status=$? |
---|
| 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7360 | (exit $ac_status); }; } && |
---|
| 7361 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7363 | (eval $ac_try) 2>&5 |
---|
| 7364 | ac_status=$? |
---|
| 7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7366 | (exit $ac_status); }; }; then |
---|
| 7367 | ac_cv_header_stdc=yes |
---|
| 7368 | else |
---|
| 7369 | echo "$as_me: failed program was:" >&5 |
---|
| 7370 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7371 | |
---|
| 7372 | ac_cv_header_stdc=no |
---|
| 7373 | fi |
---|
| 7374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7375 | |
---|
| 7376 | if test $ac_cv_header_stdc = yes; then |
---|
| 7377 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 7378 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7379 | /* confdefs.h. */ |
---|
| 7380 | _ACEOF |
---|
| 7381 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7382 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7383 | /* end confdefs.h. */ |
---|
| 7384 | #include <string.h> |
---|
| 7385 | |
---|
| 7386 | _ACEOF |
---|
| 7387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7388 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 7389 | : |
---|
| 7390 | else |
---|
| 7391 | ac_cv_header_stdc=no |
---|
| 7392 | fi |
---|
| 7393 | rm -f conftest* |
---|
| 7394 | |
---|
| 7395 | fi |
---|
| 7396 | |
---|
| 7397 | if test $ac_cv_header_stdc = yes; then |
---|
| 7398 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 7399 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7400 | /* confdefs.h. */ |
---|
| 7401 | _ACEOF |
---|
| 7402 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7403 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7404 | /* end confdefs.h. */ |
---|
| 7405 | #include <stdlib.h> |
---|
| 7406 | |
---|
| 7407 | _ACEOF |
---|
| 7408 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7409 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 7410 | : |
---|
| 7411 | else |
---|
| 7412 | ac_cv_header_stdc=no |
---|
| 7413 | fi |
---|
| 7414 | rm -f conftest* |
---|
| 7415 | |
---|
| 7416 | fi |
---|
| 7417 | |
---|
| 7418 | if test $ac_cv_header_stdc = yes; then |
---|
| 7419 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 7420 | if test "$cross_compiling" = yes; then |
---|
| 7421 | : |
---|
| 7422 | else |
---|
| 7423 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7424 | /* confdefs.h. */ |
---|
| 7425 | _ACEOF |
---|
| 7426 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7428 | /* end confdefs.h. */ |
---|
| 7429 | #include <ctype.h> |
---|
| 7430 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 7431 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 7432 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 7433 | #else |
---|
| 7434 | # define ISLOWER(c) \ |
---|
| 7435 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 7436 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 7437 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 7438 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 7439 | #endif |
---|
| 7440 | |
---|
| 7441 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 7442 | int |
---|
| 7443 | main () |
---|
| 7444 | { |
---|
| 7445 | int i; |
---|
| 7446 | for (i = 0; i < 256; i++) |
---|
| 7447 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 7448 | || toupper (i) != TOUPPER (i)) |
---|
| 7449 | exit(2); |
---|
| 7450 | exit (0); |
---|
| 7451 | } |
---|
| 7452 | _ACEOF |
---|
| 7453 | rm -f conftest$ac_exeext |
---|
| 7454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7455 | (eval $ac_link) 2>&5 |
---|
| 7456 | ac_status=$? |
---|
| 7457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7460 | (eval $ac_try) 2>&5 |
---|
| 7461 | ac_status=$? |
---|
| 7462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7463 | (exit $ac_status); }; }; then |
---|
| 7464 | : |
---|
| 7465 | else |
---|
| 7466 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7467 | echo "$as_me: failed program was:" >&5 |
---|
| 7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7469 | |
---|
| 7470 | ( exit $ac_status ) |
---|
| 7471 | ac_cv_header_stdc=no |
---|
| 7472 | fi |
---|
| 7473 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7474 | fi |
---|
| 7475 | fi |
---|
| 7476 | fi |
---|
| 7477 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 7478 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 7479 | if test $ac_cv_header_stdc = yes; then |
---|
| 7480 | |
---|
| 7481 | cat >>confdefs.h <<\_ACEOF |
---|
| 7482 | #define STDC_HEADERS 1 |
---|
| 7483 | _ACEOF |
---|
| 7484 | |
---|
| 7485 | fi |
---|
| 7486 | |
---|
| 7487 | |
---|
| 7488 | |
---|
| 7489 | for ac_header in stdlib.h string.h |
---|
| 7490 | do |
---|
| 7491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7497 | fi |
---|
| 7498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7500 | else |
---|
| 7501 | # Is the header compilable? |
---|
| 7502 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7503 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7504 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7505 | /* confdefs.h. */ |
---|
| 7506 | _ACEOF |
---|
| 7507 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7509 | /* end confdefs.h. */ |
---|
| 7510 | $ac_includes_default |
---|
| 7511 | #include <$ac_header> |
---|
| 7512 | _ACEOF |
---|
| 7513 | rm -f conftest.$ac_objext |
---|
| 7514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7515 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7516 | ac_status=$? |
---|
| 7517 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7518 | rm -f conftest.er1 |
---|
| 7519 | cat conftest.err >&5 |
---|
| 7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7521 | (exit $ac_status); } && |
---|
| 7522 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7523 | || test ! -s conftest.err' |
---|
| 7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7525 | (eval $ac_try) 2>&5 |
---|
| 7526 | ac_status=$? |
---|
| 7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7528 | (exit $ac_status); }; } && |
---|
| 7529 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7531 | (eval $ac_try) 2>&5 |
---|
| 7532 | ac_status=$? |
---|
| 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7534 | (exit $ac_status); }; }; then |
---|
| 7535 | ac_header_compiler=yes |
---|
| 7536 | else |
---|
| 7537 | echo "$as_me: failed program was:" >&5 |
---|
| 7538 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7539 | |
---|
| 7540 | ac_header_compiler=no |
---|
| 7541 | fi |
---|
| 7542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7544 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7545 | |
---|
| 7546 | # Is the header present? |
---|
| 7547 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7549 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7550 | /* confdefs.h. */ |
---|
| 7551 | _ACEOF |
---|
| 7552 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7554 | /* end confdefs.h. */ |
---|
| 7555 | #include <$ac_header> |
---|
| 7556 | _ACEOF |
---|
| 7557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7559 | ac_status=$? |
---|
| 7560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7561 | rm -f conftest.er1 |
---|
| 7562 | cat conftest.err >&5 |
---|
| 7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7564 | (exit $ac_status); } >/dev/null; then |
---|
| 7565 | if test -s conftest.err; then |
---|
| 7566 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7568 | else |
---|
| 7569 | ac_cpp_err= |
---|
| 7570 | fi |
---|
| 7571 | else |
---|
| 7572 | ac_cpp_err=yes |
---|
| 7573 | fi |
---|
| 7574 | if test -z "$ac_cpp_err"; then |
---|
| 7575 | ac_header_preproc=yes |
---|
| 7576 | else |
---|
| 7577 | echo "$as_me: failed program was:" >&5 |
---|
| 7578 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7579 | |
---|
| 7580 | ac_header_preproc=no |
---|
| 7581 | fi |
---|
| 7582 | rm -f conftest.err conftest.$ac_ext |
---|
| 7583 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7584 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7585 | |
---|
| 7586 | # So? What about this header? |
---|
| 7587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7588 | yes:no: ) |
---|
| 7589 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7590 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7591 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7592 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7593 | ac_header_preproc=yes |
---|
| 7594 | ;; |
---|
| 7595 | no:yes:* ) |
---|
| 7596 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7597 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7598 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7599 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7600 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7601 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7602 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7603 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7606 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7607 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7608 | ( |
---|
| 7609 | cat <<\_ASBOX |
---|
[3240] | 7610 | ## ---------------------------------------------- ## |
---|
| 7611 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7612 | ## ---------------------------------------------- ## |
---|
[1956] | 7613 | _ASBOX |
---|
| 7614 | ) | |
---|
| 7615 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7616 | ;; |
---|
| 7617 | esac |
---|
| 7618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7622 | else |
---|
| 7623 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7624 | fi |
---|
| 7625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7627 | |
---|
| 7628 | fi |
---|
| 7629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7630 | cat >>confdefs.h <<_ACEOF |
---|
| 7631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7632 | _ACEOF |
---|
| 7633 | |
---|
| 7634 | fi |
---|
| 7635 | |
---|
| 7636 | done |
---|
| 7637 | |
---|
| 7638 | |
---|
| 7639 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7640 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7641 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7642 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7644 | else |
---|
| 7645 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7646 | /* confdefs.h. */ |
---|
| 7647 | _ACEOF |
---|
| 7648 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7649 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7650 | /* end confdefs.h. */ |
---|
| 7651 | |
---|
| 7652 | #include <stdbool.h> |
---|
| 7653 | #ifndef bool |
---|
| 7654 | # error bool is not defined |
---|
| 7655 | #endif |
---|
| 7656 | #ifndef false |
---|
| 7657 | # error false is not defined |
---|
| 7658 | #endif |
---|
| 7659 | #if false |
---|
| 7660 | # error false is not 0 |
---|
| 7661 | #endif |
---|
| 7662 | #ifndef true |
---|
| 7663 | # error true is not defined |
---|
| 7664 | #endif |
---|
| 7665 | #if true != 1 |
---|
| 7666 | # error true is not 1 |
---|
| 7667 | #endif |
---|
| 7668 | #ifndef __bool_true_false_are_defined |
---|
| 7669 | # error __bool_true_false_are_defined is not defined |
---|
| 7670 | #endif |
---|
| 7671 | |
---|
| 7672 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7673 | |
---|
| 7674 | char a[true == 1 ? 1 : -1]; |
---|
| 7675 | char b[false == 0 ? 1 : -1]; |
---|
| 7676 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7677 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7678 | bool e = &s; |
---|
| 7679 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7680 | char g[true]; |
---|
| 7681 | char h[sizeof (_Bool)]; |
---|
| 7682 | char i[sizeof s.t]; |
---|
| 7683 | |
---|
| 7684 | int |
---|
| 7685 | main () |
---|
| 7686 | { |
---|
| 7687 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7688 | ; |
---|
| 7689 | return 0; |
---|
| 7690 | } |
---|
| 7691 | _ACEOF |
---|
| 7692 | rm -f conftest.$ac_objext |
---|
| 7693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7694 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7695 | ac_status=$? |
---|
| 7696 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7697 | rm -f conftest.er1 |
---|
| 7698 | cat conftest.err >&5 |
---|
| 7699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7700 | (exit $ac_status); } && |
---|
| 7701 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7702 | || test ! -s conftest.err' |
---|
| 7703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7704 | (eval $ac_try) 2>&5 |
---|
| 7705 | ac_status=$? |
---|
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7707 | (exit $ac_status); }; } && |
---|
| 7708 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7710 | (eval $ac_try) 2>&5 |
---|
| 7711 | ac_status=$? |
---|
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7713 | (exit $ac_status); }; }; then |
---|
| 7714 | ac_cv_header_stdbool_h=yes |
---|
| 7715 | else |
---|
| 7716 | echo "$as_me: failed program was:" >&5 |
---|
| 7717 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7718 | |
---|
| 7719 | ac_cv_header_stdbool_h=no |
---|
| 7720 | fi |
---|
| 7721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7722 | fi |
---|
| 7723 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 7724 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 7725 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 7726 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 7727 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7729 | else |
---|
| 7730 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7731 | /* confdefs.h. */ |
---|
| 7732 | _ACEOF |
---|
| 7733 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7735 | /* end confdefs.h. */ |
---|
| 7736 | $ac_includes_default |
---|
| 7737 | int |
---|
| 7738 | main () |
---|
| 7739 | { |
---|
| 7740 | if ((_Bool *) 0) |
---|
| 7741 | return 0; |
---|
| 7742 | if (sizeof (_Bool)) |
---|
| 7743 | return 0; |
---|
| 7744 | ; |
---|
| 7745 | return 0; |
---|
| 7746 | } |
---|
| 7747 | _ACEOF |
---|
| 7748 | rm -f conftest.$ac_objext |
---|
| 7749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7750 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7751 | ac_status=$? |
---|
| 7752 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7753 | rm -f conftest.er1 |
---|
| 7754 | cat conftest.err >&5 |
---|
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7756 | (exit $ac_status); } && |
---|
| 7757 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7758 | || test ! -s conftest.err' |
---|
| 7759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7760 | (eval $ac_try) 2>&5 |
---|
| 7761 | ac_status=$? |
---|
| 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7763 | (exit $ac_status); }; } && |
---|
| 7764 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7766 | (eval $ac_try) 2>&5 |
---|
| 7767 | ac_status=$? |
---|
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7769 | (exit $ac_status); }; }; then |
---|
| 7770 | ac_cv_type__Bool=yes |
---|
| 7771 | else |
---|
| 7772 | echo "$as_me: failed program was:" >&5 |
---|
| 7773 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7774 | |
---|
| 7775 | ac_cv_type__Bool=no |
---|
| 7776 | fi |
---|
| 7777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7778 | fi |
---|
| 7779 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 7780 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 7781 | if test $ac_cv_type__Bool = yes; then |
---|
| 7782 | |
---|
| 7783 | cat >>confdefs.h <<_ACEOF |
---|
| 7784 | #define HAVE__BOOL 1 |
---|
| 7785 | _ACEOF |
---|
| 7786 | |
---|
| 7787 | |
---|
| 7788 | fi |
---|
| 7789 | |
---|
| 7790 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 7791 | |
---|
| 7792 | cat >>confdefs.h <<\_ACEOF |
---|
| 7793 | #define HAVE_STDBOOL_H 1 |
---|
| 7794 | _ACEOF |
---|
| 7795 | |
---|
| 7796 | fi |
---|
| 7797 | |
---|
| 7798 | |
---|
| 7799 | # Checks for library functions. |
---|
| 7800 | |
---|
| 7801 | for ac_header in stdlib.h |
---|
| 7802 | do |
---|
| 7803 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7809 | fi |
---|
| 7810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7811 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7812 | else |
---|
| 7813 | # Is the header compilable? |
---|
| 7814 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7816 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7817 | /* confdefs.h. */ |
---|
| 7818 | _ACEOF |
---|
| 7819 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7820 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7821 | /* end confdefs.h. */ |
---|
| 7822 | $ac_includes_default |
---|
| 7823 | #include <$ac_header> |
---|
| 7824 | _ACEOF |
---|
| 7825 | rm -f conftest.$ac_objext |
---|
| 7826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7827 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7828 | ac_status=$? |
---|
| 7829 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7830 | rm -f conftest.er1 |
---|
| 7831 | cat conftest.err >&5 |
---|
| 7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7833 | (exit $ac_status); } && |
---|
| 7834 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7835 | || test ! -s conftest.err' |
---|
| 7836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7837 | (eval $ac_try) 2>&5 |
---|
| 7838 | ac_status=$? |
---|
| 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7840 | (exit $ac_status); }; } && |
---|
| 7841 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7843 | (eval $ac_try) 2>&5 |
---|
| 7844 | ac_status=$? |
---|
| 7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7846 | (exit $ac_status); }; }; then |
---|
| 7847 | ac_header_compiler=yes |
---|
| 7848 | else |
---|
| 7849 | echo "$as_me: failed program was:" >&5 |
---|
| 7850 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7851 | |
---|
| 7852 | ac_header_compiler=no |
---|
| 7853 | fi |
---|
| 7854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7856 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7857 | |
---|
| 7858 | # Is the header present? |
---|
| 7859 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7861 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7862 | /* confdefs.h. */ |
---|
| 7863 | _ACEOF |
---|
| 7864 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7865 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7866 | /* end confdefs.h. */ |
---|
| 7867 | #include <$ac_header> |
---|
| 7868 | _ACEOF |
---|
| 7869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7871 | ac_status=$? |
---|
| 7872 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7873 | rm -f conftest.er1 |
---|
| 7874 | cat conftest.err >&5 |
---|
| 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7876 | (exit $ac_status); } >/dev/null; then |
---|
| 7877 | if test -s conftest.err; then |
---|
| 7878 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7880 | else |
---|
| 7881 | ac_cpp_err= |
---|
| 7882 | fi |
---|
| 7883 | else |
---|
| 7884 | ac_cpp_err=yes |
---|
| 7885 | fi |
---|
| 7886 | if test -z "$ac_cpp_err"; then |
---|
| 7887 | ac_header_preproc=yes |
---|
| 7888 | else |
---|
| 7889 | echo "$as_me: failed program was:" >&5 |
---|
| 7890 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7891 | |
---|
| 7892 | ac_header_preproc=no |
---|
| 7893 | fi |
---|
| 7894 | rm -f conftest.err conftest.$ac_ext |
---|
| 7895 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7896 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7897 | |
---|
| 7898 | # So? What about this header? |
---|
| 7899 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7900 | yes:no: ) |
---|
| 7901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7904 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7905 | ac_header_preproc=yes |
---|
| 7906 | ;; |
---|
| 7907 | no:yes:* ) |
---|
| 7908 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7909 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7910 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7911 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7912 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7913 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7914 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7915 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7917 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7918 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7919 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7920 | ( |
---|
| 7921 | cat <<\_ASBOX |
---|
[3240] | 7922 | ## ---------------------------------------------- ## |
---|
| 7923 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7924 | ## ---------------------------------------------- ## |
---|
[1956] | 7925 | _ASBOX |
---|
| 7926 | ) | |
---|
| 7927 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7928 | ;; |
---|
| 7929 | esac |
---|
| 7930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7934 | else |
---|
| 7935 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7936 | fi |
---|
| 7937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7939 | |
---|
| 7940 | fi |
---|
| 7941 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7942 | cat >>confdefs.h <<_ACEOF |
---|
| 7943 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7944 | _ACEOF |
---|
| 7945 | |
---|
| 7946 | fi |
---|
| 7947 | |
---|
| 7948 | done |
---|
| 7949 | |
---|
| 7950 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 7951 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 7952 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 7953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7954 | else |
---|
| 7955 | if test "$cross_compiling" = yes; then |
---|
| 7956 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7957 | else |
---|
| 7958 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7959 | /* confdefs.h. */ |
---|
| 7960 | _ACEOF |
---|
| 7961 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7962 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7963 | /* end confdefs.h. */ |
---|
| 7964 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 7965 | # include <stdlib.h> |
---|
| 7966 | #else |
---|
| 7967 | char *malloc (); |
---|
| 7968 | #endif |
---|
| 7969 | |
---|
| 7970 | int |
---|
| 7971 | main () |
---|
| 7972 | { |
---|
| 7973 | exit (malloc (0) ? 0 : 1); |
---|
| 7974 | ; |
---|
| 7975 | return 0; |
---|
| 7976 | } |
---|
| 7977 | _ACEOF |
---|
| 7978 | rm -f conftest$ac_exeext |
---|
| 7979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7980 | (eval $ac_link) 2>&5 |
---|
| 7981 | ac_status=$? |
---|
| 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7985 | (eval $ac_try) 2>&5 |
---|
| 7986 | ac_status=$? |
---|
| 7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7988 | (exit $ac_status); }; }; then |
---|
| 7989 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 7990 | else |
---|
| 7991 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7992 | echo "$as_me: failed program was:" >&5 |
---|
| 7993 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7994 | |
---|
| 7995 | ( exit $ac_status ) |
---|
| 7996 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7997 | fi |
---|
| 7998 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7999 | fi |
---|
| 8000 | fi |
---|
| 8001 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8002 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8003 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8004 | |
---|
| 8005 | cat >>confdefs.h <<\_ACEOF |
---|
| 8006 | #define HAVE_MALLOC 1 |
---|
| 8007 | _ACEOF |
---|
| 8008 | |
---|
| 8009 | else |
---|
| 8010 | cat >>confdefs.h <<\_ACEOF |
---|
| 8011 | #define HAVE_MALLOC 0 |
---|
| 8012 | _ACEOF |
---|
| 8013 | |
---|
| 8014 | case $LIBOBJS in |
---|
| 8015 | "malloc.$ac_objext" | \ |
---|
| 8016 | *" malloc.$ac_objext" | \ |
---|
| 8017 | "malloc.$ac_objext "* | \ |
---|
| 8018 | *" malloc.$ac_objext "* ) ;; |
---|
| 8019 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8020 | esac |
---|
| 8021 | |
---|
| 8022 | |
---|
| 8023 | cat >>confdefs.h <<\_ACEOF |
---|
| 8024 | #define malloc rpl_malloc |
---|
| 8025 | _ACEOF |
---|
| 8026 | |
---|
| 8027 | fi |
---|
| 8028 | |
---|
| 8029 | |
---|
| 8030 | |
---|
| 8031 | |
---|
| 8032 | |
---|
| 8033 | for ac_func in bzero sqrt |
---|
| 8034 | do |
---|
| 8035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8036 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8038 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8040 | else |
---|
| 8041 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8042 | /* confdefs.h. */ |
---|
| 8043 | _ACEOF |
---|
| 8044 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8045 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8046 | /* end confdefs.h. */ |
---|
| 8047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8049 | #define $ac_func innocuous_$ac_func |
---|
| 8050 | |
---|
| 8051 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8052 | which can conflict with char $ac_func (); below. |
---|
| 8053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8054 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8055 | |
---|
| 8056 | #ifdef __STDC__ |
---|
| 8057 | # include <limits.h> |
---|
| 8058 | #else |
---|
| 8059 | # include <assert.h> |
---|
| 8060 | #endif |
---|
| 8061 | |
---|
| 8062 | #undef $ac_func |
---|
| 8063 | |
---|
| 8064 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8065 | #ifdef __cplusplus |
---|
| 8066 | extern "C" |
---|
| 8067 | { |
---|
| 8068 | #endif |
---|
| 8069 | /* We use char because int might match the return type of a gcc2 |
---|
| 8070 | builtin and then its argument prototype would still apply. */ |
---|
| 8071 | char $ac_func (); |
---|
| 8072 | /* The GNU C library defines this for functions which it implements |
---|
| 8073 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8074 | something starting with __ and the normal name is an alias. */ |
---|
| 8075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8076 | choke me |
---|
| 8077 | #else |
---|
| 8078 | char (*f) () = $ac_func; |
---|
| 8079 | #endif |
---|
| 8080 | #ifdef __cplusplus |
---|
| 8081 | } |
---|
| 8082 | #endif |
---|
| 8083 | |
---|
| 8084 | int |
---|
| 8085 | main () |
---|
| 8086 | { |
---|
| 8087 | return f != $ac_func; |
---|
| 8088 | ; |
---|
| 8089 | return 0; |
---|
| 8090 | } |
---|
| 8091 | _ACEOF |
---|
| 8092 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8094 | (eval $ac_link) 2>conftest.er1 |
---|
| 8095 | ac_status=$? |
---|
| 8096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8097 | rm -f conftest.er1 |
---|
| 8098 | cat conftest.err >&5 |
---|
| 8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8100 | (exit $ac_status); } && |
---|
| 8101 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8102 | || test ! -s conftest.err' |
---|
| 8103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8104 | (eval $ac_try) 2>&5 |
---|
| 8105 | ac_status=$? |
---|
| 8106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8107 | (exit $ac_status); }; } && |
---|
| 8108 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8110 | (eval $ac_try) 2>&5 |
---|
| 8111 | ac_status=$? |
---|
| 8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8113 | (exit $ac_status); }; }; then |
---|
| 8114 | eval "$as_ac_var=yes" |
---|
| 8115 | else |
---|
| 8116 | echo "$as_me: failed program was:" >&5 |
---|
| 8117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8118 | |
---|
| 8119 | eval "$as_ac_var=no" |
---|
| 8120 | fi |
---|
| 8121 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8122 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8123 | fi |
---|
| 8124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8125 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8126 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8127 | cat >>confdefs.h <<_ACEOF |
---|
| 8128 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8129 | _ACEOF |
---|
| 8130 | |
---|
| 8131 | fi |
---|
| 8132 | done |
---|
| 8133 | |
---|
| 8134 | |
---|
[3424] | 8135 | ###################### |
---|
| 8136 | ## OUTPUT CONFIGURE ## |
---|
| 8137 | ###################### |
---|
[3549] | 8138 | 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 src/subprojects/Makefile src/subprojects/testmain/Makefile" |
---|
[1956] | 8139 | |
---|
[3377] | 8140 | |
---|
[1956] | 8141 | cat >confcache <<\_ACEOF |
---|
| 8142 | # This file is a shell script that caches the results of configure |
---|
| 8143 | # tests run on this system so they can be shared between configure |
---|
| 8144 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8145 | # It is not useful on other systems. If it contains results you don't |
---|
| 8146 | # want to keep, you may remove or edit it. |
---|
| 8147 | # |
---|
| 8148 | # config.status only pays attention to the cache file if you give it |
---|
| 8149 | # the --recheck option to rerun configure. |
---|
| 8150 | # |
---|
| 8151 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8152 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8153 | # following values. |
---|
| 8154 | |
---|
| 8155 | _ACEOF |
---|
| 8156 | |
---|
| 8157 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8158 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8159 | # So, don't put newlines in cache variables' values. |
---|
| 8160 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8161 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8162 | { |
---|
| 8163 | (set) 2>&1 | |
---|
| 8164 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8165 | *ac_space=\ *) |
---|
| 8166 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8167 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8168 | sed -n \ |
---|
| 8169 | "s/'/'\\\\''/g; |
---|
| 8170 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8171 | ;; |
---|
| 8172 | *) |
---|
| 8173 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8174 | sed -n \ |
---|
| 8175 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8176 | ;; |
---|
| 8177 | esac; |
---|
| 8178 | } | |
---|
| 8179 | sed ' |
---|
| 8180 | t clear |
---|
| 8181 | : clear |
---|
| 8182 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8183 | t end |
---|
| 8184 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8185 | : end' >>confcache |
---|
| 8186 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8187 | if test -w $cache_file; then |
---|
| 8188 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8189 | cat confcache >$cache_file |
---|
| 8190 | else |
---|
| 8191 | echo "not updating unwritable cache $cache_file" |
---|
| 8192 | fi |
---|
| 8193 | fi |
---|
| 8194 | rm -f confcache |
---|
| 8195 | |
---|
| 8196 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8197 | # Let make expand exec_prefix. |
---|
| 8198 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8199 | |
---|
| 8200 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8201 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8202 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8203 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8204 | if test "x$srcdir" = x.; then |
---|
| 8205 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 8206 | s/:*\$(srcdir):*/:/; |
---|
| 8207 | s/:*\${srcdir}:*/:/; |
---|
| 8208 | s/:*@srcdir@:*/:/; |
---|
| 8209 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 8210 | s/:*$//; |
---|
| 8211 | s/^[^=]*=[ ]*$//; |
---|
| 8212 | }' |
---|
| 8213 | fi |
---|
| 8214 | |
---|
| 8215 | DEFS=-DHAVE_CONFIG_H |
---|
| 8216 | |
---|
| 8217 | ac_libobjs= |
---|
| 8218 | ac_ltlibobjs= |
---|
| 8219 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 8220 | # 1. Remove the extension, and $U if already installed. |
---|
| 8221 | ac_i=`echo "$ac_i" | |
---|
| 8222 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 8223 | # 2. Add them. |
---|
| 8224 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 8225 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 8226 | done |
---|
| 8227 | LIBOBJS=$ac_libobjs |
---|
| 8228 | |
---|
| 8229 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 8230 | |
---|
| 8231 | |
---|
| 8232 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 8233 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 8234 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8235 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 8236 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8237 | { (exit 1); exit 1; }; } |
---|
| 8238 | fi |
---|
| 8239 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 8240 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8241 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8242 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8243 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8244 | { (exit 1); exit 1; }; } |
---|
| 8245 | fi |
---|
| 8246 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 8247 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8248 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8249 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8250 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8251 | { (exit 1); exit 1; }; } |
---|
| 8252 | fi |
---|
[3377] | 8253 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 8254 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8255 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8256 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8257 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8258 | { (exit 1); exit 1; }; } |
---|
| 8259 | fi |
---|
[3558] | 8260 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
| 8261 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 8262 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8263 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 8264 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8265 | { (exit 1); exit 1; }; } |
---|
| 8266 | fi |
---|
[3219] | 8267 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 8268 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8269 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8270 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8271 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8272 | { (exit 1); exit 1; }; } |
---|
| 8273 | fi |
---|
[2980] | 8274 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 8275 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8276 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8277 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8278 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8279 | { (exit 1); exit 1; }; } |
---|
| 8280 | fi |
---|
[3423] | 8281 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
| 8282 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8283 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8284 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8285 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8286 | { (exit 1); exit 1; }; } |
---|
| 8287 | fi |
---|
| 8288 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 8289 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8290 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8291 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8292 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8293 | { (exit 1); exit 1; }; } |
---|
| 8294 | fi |
---|
[1956] | 8295 | |
---|
| 8296 | : ${CONFIG_STATUS=./config.status} |
---|
| 8297 | ac_clean_files_save=$ac_clean_files |
---|
| 8298 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 8299 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 8300 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 8301 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 8302 | #! $SHELL |
---|
| 8303 | # Generated by $as_me. |
---|
| 8304 | # Run this file to recreate the current configuration. |
---|
| 8305 | # Compiler output produced by configure, useful for debugging |
---|
| 8306 | # configure, is in config.log if it exists. |
---|
| 8307 | |
---|
| 8308 | debug=false |
---|
| 8309 | ac_cs_recheck=false |
---|
| 8310 | ac_cs_silent=false |
---|
| 8311 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 8312 | _ACEOF |
---|
| 8313 | |
---|
| 8314 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8315 | ## --------------------- ## |
---|
| 8316 | ## M4sh Initialization. ## |
---|
| 8317 | ## --------------------- ## |
---|
| 8318 | |
---|
| 8319 | # Be Bourne compatible |
---|
| 8320 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 8321 | emulate sh |
---|
| 8322 | NULLCMD=: |
---|
| 8323 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 8324 | # is contrary to our usage. Disable this feature. |
---|
| 8325 | alias -g '${1+"$@"}'='"$@"' |
---|
| 8326 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 8327 | set -o posix |
---|
| 8328 | fi |
---|
| 8329 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 8330 | |
---|
| 8331 | # Support unset when possible. |
---|
| 8332 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 8333 | as_unset=unset |
---|
| 8334 | else |
---|
| 8335 | as_unset=false |
---|
| 8336 | fi |
---|
| 8337 | |
---|
| 8338 | |
---|
| 8339 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 8340 | $as_unset ENV MAIL MAILPATH |
---|
| 8341 | PS1='$ ' |
---|
| 8342 | PS2='> ' |
---|
| 8343 | PS4='+ ' |
---|
| 8344 | |
---|
| 8345 | # NLS nuisances. |
---|
| 8346 | for as_var in \ |
---|
| 8347 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 8348 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 8349 | LC_TELEPHONE LC_TIME |
---|
| 8350 | do |
---|
| 8351 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 8352 | eval $as_var=C; export $as_var |
---|
| 8353 | else |
---|
| 8354 | $as_unset $as_var |
---|
| 8355 | fi |
---|
| 8356 | done |
---|
| 8357 | |
---|
| 8358 | # Required to use basename. |
---|
| 8359 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8360 | as_expr=expr |
---|
| 8361 | else |
---|
| 8362 | as_expr=false |
---|
| 8363 | fi |
---|
| 8364 | |
---|
| 8365 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 8366 | as_basename=basename |
---|
| 8367 | else |
---|
| 8368 | as_basename=false |
---|
| 8369 | fi |
---|
| 8370 | |
---|
| 8371 | |
---|
| 8372 | # Name of the executable. |
---|
| 8373 | as_me=`$as_basename "$0" || |
---|
| 8374 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8375 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8376 | X"$0" : 'X\(/\)$' \| \ |
---|
| 8377 | . : '\(.\)' 2>/dev/null || |
---|
| 8378 | echo X/"$0" | |
---|
| 8379 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 8380 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 8381 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 8382 | s/.*/./; q'` |
---|
| 8383 | |
---|
| 8384 | |
---|
| 8385 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 8386 | # Avoid depending upon Character Ranges. |
---|
| 8387 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8388 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8389 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8390 | as_cr_digits='0123456789' |
---|
| 8391 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8392 | |
---|
| 8393 | # The user is always right. |
---|
| 8394 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 8395 | echo "#! /bin/sh" >conf$$.sh |
---|
| 8396 | echo "exit 0" >>conf$$.sh |
---|
| 8397 | chmod +x conf$$.sh |
---|
| 8398 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 8399 | PATH_SEPARATOR=';' |
---|
| 8400 | else |
---|
| 8401 | PATH_SEPARATOR=: |
---|
| 8402 | fi |
---|
| 8403 | rm -f conf$$.sh |
---|
| 8404 | fi |
---|
| 8405 | |
---|
| 8406 | |
---|
| 8407 | as_lineno_1=$LINENO |
---|
| 8408 | as_lineno_2=$LINENO |
---|
| 8409 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8410 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8411 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 8412 | # Find who we are. Look in the path if we contain no path at all |
---|
| 8413 | # relative or not. |
---|
| 8414 | case $0 in |
---|
| 8415 | *[\\/]* ) as_myself=$0 ;; |
---|
| 8416 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8417 | for as_dir in $PATH |
---|
| 8418 | do |
---|
| 8419 | IFS=$as_save_IFS |
---|
| 8420 | test -z "$as_dir" && as_dir=. |
---|
| 8421 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 8422 | done |
---|
| 8423 | |
---|
| 8424 | ;; |
---|
| 8425 | esac |
---|
| 8426 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 8427 | # in which case we are not to be found in the path. |
---|
| 8428 | if test "x$as_myself" = x; then |
---|
| 8429 | as_myself=$0 |
---|
| 8430 | fi |
---|
| 8431 | if test ! -f "$as_myself"; then |
---|
| 8432 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 8433 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 8434 | { (exit 1); exit 1; }; } |
---|
| 8435 | fi |
---|
| 8436 | case $CONFIG_SHELL in |
---|
| 8437 | '') |
---|
| 8438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8439 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 8440 | do |
---|
| 8441 | IFS=$as_save_IFS |
---|
| 8442 | test -z "$as_dir" && as_dir=. |
---|
| 8443 | for as_base in sh bash ksh sh5; do |
---|
| 8444 | case $as_dir in |
---|
| 8445 | /*) |
---|
| 8446 | if ("$as_dir/$as_base" -c ' |
---|
| 8447 | as_lineno_1=$LINENO |
---|
| 8448 | as_lineno_2=$LINENO |
---|
| 8449 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8450 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8451 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 8452 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 8453 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 8454 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 8455 | export CONFIG_SHELL |
---|
| 8456 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 8457 | fi;; |
---|
| 8458 | esac |
---|
| 8459 | done |
---|
| 8460 | done |
---|
| 8461 | ;; |
---|
| 8462 | esac |
---|
| 8463 | |
---|
| 8464 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 8465 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 8466 | # line-number line before each line; the second 'sed' does the real |
---|
| 8467 | # work. The second script uses 'N' to pair each line-number line |
---|
| 8468 | # with the numbered line, and appends trailing '-' during |
---|
| 8469 | # substitution so that $LINENO is not a special case at line end. |
---|
| 8470 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 8471 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 8472 | sed '=' <$as_myself | |
---|
| 8473 | sed ' |
---|
| 8474 | N |
---|
| 8475 | s,$,-, |
---|
| 8476 | : loop |
---|
| 8477 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 8478 | t loop |
---|
| 8479 | s,-$,, |
---|
| 8480 | s,^['$as_cr_digits']*\n,, |
---|
| 8481 | ' >$as_me.lineno && |
---|
| 8482 | chmod +x $as_me.lineno || |
---|
| 8483 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 8484 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 8485 | { (exit 1); exit 1; }; } |
---|
| 8486 | |
---|
| 8487 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 8488 | # (the dirname of $[0] is not the place where we might find the |
---|
| 8489 | # original and so on. Autoconf is especially sensible to this). |
---|
| 8490 | . ./$as_me.lineno |
---|
| 8491 | # Exit status is that of the last command. |
---|
| 8492 | exit |
---|
| 8493 | } |
---|
| 8494 | |
---|
| 8495 | |
---|
| 8496 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 8497 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 8498 | ' ECHO_T=' ' ;; |
---|
| 8499 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 8500 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 8501 | esac |
---|
| 8502 | |
---|
| 8503 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8504 | as_expr=expr |
---|
| 8505 | else |
---|
| 8506 | as_expr=false |
---|
| 8507 | fi |
---|
| 8508 | |
---|
| 8509 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8510 | echo >conf$$.file |
---|
| 8511 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 8512 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 8513 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 8514 | if test -f conf$$.exe; then |
---|
| 8515 | # Don't use ln at all; we don't have any links |
---|
| 8516 | as_ln_s='cp -p' |
---|
| 8517 | else |
---|
| 8518 | as_ln_s='ln -s' |
---|
| 8519 | fi |
---|
| 8520 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 8521 | as_ln_s=ln |
---|
| 8522 | else |
---|
| 8523 | as_ln_s='cp -p' |
---|
| 8524 | fi |
---|
| 8525 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8526 | |
---|
| 8527 | if mkdir -p . 2>/dev/null; then |
---|
| 8528 | as_mkdir_p=: |
---|
| 8529 | else |
---|
| 8530 | test -d ./-p && rmdir ./-p |
---|
| 8531 | as_mkdir_p=false |
---|
| 8532 | fi |
---|
| 8533 | |
---|
| 8534 | as_executable_p="test -f" |
---|
| 8535 | |
---|
| 8536 | # Sed expression to map a string onto a valid CPP name. |
---|
| 8537 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8538 | |
---|
| 8539 | # Sed expression to map a string onto a valid variable name. |
---|
| 8540 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8541 | |
---|
| 8542 | |
---|
| 8543 | # IFS |
---|
| 8544 | # We need space, tab and new line, in precisely that order. |
---|
| 8545 | as_nl=' |
---|
| 8546 | ' |
---|
| 8547 | IFS=" $as_nl" |
---|
| 8548 | |
---|
| 8549 | # CDPATH. |
---|
| 8550 | $as_unset CDPATH |
---|
| 8551 | |
---|
| 8552 | exec 6>&1 |
---|
| 8553 | |
---|
| 8554 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 8555 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 8556 | # values after options handling. Logging --version etc. is OK. |
---|
| 8557 | exec 5>>config.log |
---|
| 8558 | { |
---|
| 8559 | echo |
---|
| 8560 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 8561 | ## Running $as_me. ## |
---|
| 8562 | _ASBOX |
---|
| 8563 | } >&5 |
---|
| 8564 | cat >&5 <<_CSEOF |
---|
| 8565 | |
---|
[3569] | 8566 | This file was extended by orxonox $as_me 0.2.2-pre-alpha, which was |
---|
[1956] | 8567 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 8568 | |
---|
| 8569 | CONFIG_FILES = $CONFIG_FILES |
---|
| 8570 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 8571 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 8572 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 8573 | $ $0 $@ |
---|
| 8574 | |
---|
| 8575 | _CSEOF |
---|
| 8576 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 8577 | echo >&5 |
---|
| 8578 | _ACEOF |
---|
| 8579 | |
---|
| 8580 | # Files that config.status was made for. |
---|
| 8581 | if test -n "$ac_config_files"; then |
---|
| 8582 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 8583 | fi |
---|
| 8584 | |
---|
| 8585 | if test -n "$ac_config_headers"; then |
---|
| 8586 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 8587 | fi |
---|
| 8588 | |
---|
| 8589 | if test -n "$ac_config_links"; then |
---|
| 8590 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 8591 | fi |
---|
| 8592 | |
---|
| 8593 | if test -n "$ac_config_commands"; then |
---|
| 8594 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 8595 | fi |
---|
| 8596 | |
---|
| 8597 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8598 | |
---|
| 8599 | ac_cs_usage="\ |
---|
| 8600 | \`$as_me' instantiates files from templates according to the |
---|
| 8601 | current configuration. |
---|
| 8602 | |
---|
| 8603 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 8604 | |
---|
| 8605 | -h, --help print this help, then exit |
---|
| 8606 | -V, --version print version number, then exit |
---|
| 8607 | -q, --quiet do not print progress messages |
---|
| 8608 | -d, --debug don't remove temporary files |
---|
| 8609 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8610 | --file=FILE[:TEMPLATE] |
---|
| 8611 | instantiate the configuration file FILE |
---|
| 8612 | --header=FILE[:TEMPLATE] |
---|
| 8613 | instantiate the configuration header FILE |
---|
| 8614 | |
---|
| 8615 | Configuration files: |
---|
| 8616 | $config_files |
---|
| 8617 | |
---|
| 8618 | Configuration headers: |
---|
| 8619 | $config_headers |
---|
| 8620 | |
---|
| 8621 | Configuration commands: |
---|
| 8622 | $config_commands |
---|
| 8623 | |
---|
| 8624 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 8625 | _ACEOF |
---|
| 8626 | |
---|
| 8627 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8628 | ac_cs_version="\\ |
---|
[3569] | 8629 | orxonox config.status 0.2.2-pre-alpha |
---|
[1956] | 8630 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 8631 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 8632 | |
---|
| 8633 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8634 | This config.status script is free software; the Free Software Foundation |
---|
| 8635 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8636 | srcdir=$srcdir |
---|
| 8637 | INSTALL="$INSTALL" |
---|
| 8638 | _ACEOF |
---|
| 8639 | |
---|
| 8640 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8641 | # If no file are specified by the user, then we need to provide default |
---|
| 8642 | # value. By we need to know if files were specified by the user. |
---|
| 8643 | ac_need_defaults=: |
---|
| 8644 | while test $# != 0 |
---|
| 8645 | do |
---|
| 8646 | case $1 in |
---|
| 8647 | --*=*) |
---|
| 8648 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 8649 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 8650 | ac_shift=: |
---|
| 8651 | ;; |
---|
| 8652 | -*) |
---|
| 8653 | ac_option=$1 |
---|
| 8654 | ac_optarg=$2 |
---|
| 8655 | ac_shift=shift |
---|
| 8656 | ;; |
---|
| 8657 | *) # This is not an option, so the user has probably given explicit |
---|
| 8658 | # arguments. |
---|
| 8659 | ac_option=$1 |
---|
| 8660 | ac_need_defaults=false;; |
---|
| 8661 | esac |
---|
| 8662 | |
---|
| 8663 | case $ac_option in |
---|
| 8664 | # Handling of the options. |
---|
| 8665 | _ACEOF |
---|
| 8666 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8667 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8668 | ac_cs_recheck=: ;; |
---|
| 8669 | --version | --vers* | -V ) |
---|
| 8670 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8671 | --he | --h) |
---|
| 8672 | # Conflict between --help and --header |
---|
| 8673 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8674 | Try \`$0 --help' for more information." >&5 |
---|
| 8675 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8676 | Try \`$0 --help' for more information." >&2;} |
---|
| 8677 | { (exit 1); exit 1; }; };; |
---|
| 8678 | --help | --hel | -h ) |
---|
| 8679 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8680 | --debug | --d* | -d ) |
---|
| 8681 | debug=: ;; |
---|
| 8682 | --file | --fil | --fi | --f ) |
---|
| 8683 | $ac_shift |
---|
| 8684 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8685 | ac_need_defaults=false;; |
---|
| 8686 | --header | --heade | --head | --hea ) |
---|
| 8687 | $ac_shift |
---|
| 8688 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8689 | ac_need_defaults=false;; |
---|
| 8690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8691 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8692 | ac_cs_silent=: ;; |
---|
| 8693 | |
---|
| 8694 | # This is an error. |
---|
| 8695 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8696 | Try \`$0 --help' for more information." >&5 |
---|
| 8697 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8698 | Try \`$0 --help' for more information." >&2;} |
---|
| 8699 | { (exit 1); exit 1; }; } ;; |
---|
| 8700 | |
---|
| 8701 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8702 | |
---|
| 8703 | esac |
---|
| 8704 | shift |
---|
| 8705 | done |
---|
| 8706 | |
---|
| 8707 | ac_configure_extra_args= |
---|
| 8708 | |
---|
| 8709 | if $ac_cs_silent; then |
---|
| 8710 | exec 6>/dev/null |
---|
| 8711 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8712 | fi |
---|
| 8713 | |
---|
| 8714 | _ACEOF |
---|
| 8715 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8716 | if \$ac_cs_recheck; then |
---|
| 8717 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8718 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8719 | fi |
---|
| 8720 | |
---|
| 8721 | _ACEOF |
---|
| 8722 | |
---|
| 8723 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8724 | # |
---|
| 8725 | # INIT-COMMANDS section. |
---|
| 8726 | # |
---|
| 8727 | |
---|
| 8728 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8729 | |
---|
| 8730 | _ACEOF |
---|
| 8731 | |
---|
| 8732 | |
---|
| 8733 | |
---|
| 8734 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8735 | for ac_config_target in $ac_config_targets |
---|
| 8736 | do |
---|
| 8737 | case "$ac_config_target" in |
---|
| 8738 | # Handling of arguments. |
---|
| 8739 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 8740 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3493] | 8741 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 8742 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
[3489] | 8743 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
[3493] | 8744 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
[3489] | 8745 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
[3493] | 8746 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
[3549] | 8747 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
| 8748 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
[1956] | 8749 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 8750 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8751 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 8752 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 8753 | { (exit 1); exit 1; }; };; |
---|
| 8754 | esac |
---|
| 8755 | done |
---|
| 8756 | |
---|
| 8757 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8758 | # then the envvar interface is used. Set only those that are not. |
---|
| 8759 | # We use the long form for the default assignment because of an extremely |
---|
| 8760 | # bizarre bug on SunOS 4.1.3. |
---|
| 8761 | if $ac_need_defaults; then |
---|
| 8762 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8763 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8764 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 8765 | fi |
---|
| 8766 | |
---|
| 8767 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8768 | # simply because there is no reason to put it here, and in addition, |
---|
| 8769 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8770 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 8771 | $debug || |
---|
| 8772 | { |
---|
| 8773 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 8774 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 8775 | } |
---|
| 8776 | |
---|
| 8777 | # Create a (secure) tmp directory for tmp files. |
---|
| 8778 | |
---|
| 8779 | { |
---|
| 8780 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 8781 | test -n "$tmp" && test -d "$tmp" |
---|
| 8782 | } || |
---|
| 8783 | { |
---|
| 8784 | tmp=./confstat$$-$RANDOM |
---|
| 8785 | (umask 077 && mkdir $tmp) |
---|
| 8786 | } || |
---|
| 8787 | { |
---|
| 8788 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 8789 | { (exit 1); exit 1; } |
---|
| 8790 | } |
---|
| 8791 | |
---|
| 8792 | _ACEOF |
---|
| 8793 | |
---|
| 8794 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8795 | |
---|
| 8796 | # |
---|
| 8797 | # CONFIG_FILES section. |
---|
| 8798 | # |
---|
| 8799 | |
---|
| 8800 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 8801 | # This happens for instance when ./config.status config.h |
---|
| 8802 | if test -n "\$CONFIG_FILES"; then |
---|
| 8803 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 8804 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 8805 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 8806 | s,@SHELL@,$SHELL,;t t |
---|
| 8807 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 8808 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 8809 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 8810 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 8811 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 8812 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 8813 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 8814 | s,@prefix@,$prefix,;t t |
---|
| 8815 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 8816 | s,@bindir@,$bindir,;t t |
---|
| 8817 | s,@sbindir@,$sbindir,;t t |
---|
| 8818 | s,@libexecdir@,$libexecdir,;t t |
---|
| 8819 | s,@datadir@,$datadir,;t t |
---|
| 8820 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 8821 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 8822 | s,@localstatedir@,$localstatedir,;t t |
---|
| 8823 | s,@libdir@,$libdir,;t t |
---|
| 8824 | s,@includedir@,$includedir,;t t |
---|
| 8825 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 8826 | s,@infodir@,$infodir,;t t |
---|
| 8827 | s,@mandir@,$mandir,;t t |
---|
| 8828 | s,@build_alias@,$build_alias,;t t |
---|
| 8829 | s,@host_alias@,$host_alias,;t t |
---|
| 8830 | s,@target_alias@,$target_alias,;t t |
---|
| 8831 | s,@DEFS@,$DEFS,;t t |
---|
| 8832 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 8833 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 8834 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 8835 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 8836 | s,@build@,$build,;t t |
---|
| 8837 | s,@build_cpu@,$build_cpu,;t t |
---|
| 8838 | s,@build_vendor@,$build_vendor,;t t |
---|
| 8839 | s,@build_os@,$build_os,;t t |
---|
| 8840 | s,@host@,$host,;t t |
---|
| 8841 | s,@host_cpu@,$host_cpu,;t t |
---|
| 8842 | s,@host_vendor@,$host_vendor,;t t |
---|
| 8843 | s,@host_os@,$host_os,;t t |
---|
| 8844 | s,@target@,$target,;t t |
---|
| 8845 | s,@target_cpu@,$target_cpu,;t t |
---|
| 8846 | s,@target_vendor@,$target_vendor,;t t |
---|
| 8847 | s,@target_os@,$target_os,;t t |
---|
[1956] | 8848 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 8849 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 8850 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 8851 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 8852 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 8853 | s,@VERSION@,$VERSION,;t t |
---|
| 8854 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 8855 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 8856 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 8857 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 8858 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 8859 | s,@AMTAR@,$AMTAR,;t t |
---|
| 8860 | s,@install_sh@,$install_sh,;t t |
---|
| 8861 | s,@STRIP@,$STRIP,;t t |
---|
| 8862 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 8863 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 8864 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 8865 | s,@AWK@,$AWK,;t t |
---|
| 8866 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 8867 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 8868 | s,@CXX@,$CXX,;t t |
---|
| 8869 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 8870 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 8871 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 8872 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 8873 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 8874 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 8875 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 8876 | s,@am__include@,$am__include,;t t |
---|
| 8877 | s,@am__quote@,$am__quote,;t t |
---|
| 8878 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 8879 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 8880 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 8881 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 8882 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 8883 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 8884 | s,@CC@,$CC,;t t |
---|
| 8885 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 8886 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 8887 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 8888 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 8889 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 8890 | s,@CPP@,$CPP,;t t |
---|
| 8891 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 8892 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 8893 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 8894 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3558] | 8895 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
| 8896 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
[3219] | 8897 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 8898 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 8899 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[3789] | 8900 | s,@GPROF@,$GPROF,;t t |
---|
[2989] | 8901 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 8902 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 8903 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 8904 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 8905 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3423] | 8906 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
| 8907 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
| 8908 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
| 8909 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
| 8910 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 8911 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 8912 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 8913 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 8914 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 8915 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 8916 | CEOF |
---|
| 8917 | |
---|
| 8918 | _ACEOF |
---|
| 8919 | |
---|
| 8920 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8921 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 8922 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 8923 | ac_max_sed_lines=48 |
---|
| 8924 | ac_sed_frag=1 # Number of current file. |
---|
| 8925 | ac_beg=1 # First line for current file. |
---|
| 8926 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 8927 | ac_more_lines=: |
---|
| 8928 | ac_sed_cmds= |
---|
| 8929 | while $ac_more_lines; do |
---|
| 8930 | if test $ac_beg -gt 1; then |
---|
| 8931 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8932 | else |
---|
| 8933 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8934 | fi |
---|
| 8935 | if test ! -s $tmp/subs.frag; then |
---|
| 8936 | ac_more_lines=false |
---|
| 8937 | else |
---|
| 8938 | # The purpose of the label and of the branching condition is to |
---|
| 8939 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 8940 | # is no need to browse any of the substitutions). |
---|
| 8941 | # These are the two extra sed commands mentioned above. |
---|
| 8942 | (echo ':t |
---|
| 8943 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 8944 | if test -z "$ac_sed_cmds"; then |
---|
| 8945 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8946 | else |
---|
| 8947 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8948 | fi |
---|
| 8949 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 8950 | ac_beg=$ac_end |
---|
| 8951 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 8952 | fi |
---|
| 8953 | done |
---|
| 8954 | if test -z "$ac_sed_cmds"; then |
---|
| 8955 | ac_sed_cmds=cat |
---|
| 8956 | fi |
---|
| 8957 | fi # test -n "$CONFIG_FILES" |
---|
| 8958 | |
---|
| 8959 | _ACEOF |
---|
| 8960 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8961 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 8962 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8963 | case $ac_file in |
---|
| 8964 | - | *:- | *:-:* ) # input from stdin |
---|
| 8965 | cat >$tmp/stdin |
---|
| 8966 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8967 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8968 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8969 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8970 | * ) ac_file_in=$ac_file.in ;; |
---|
| 8971 | esac |
---|
| 8972 | |
---|
| 8973 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 8974 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 8975 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8976 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8977 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8978 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 8979 | . : '\(.\)' 2>/dev/null || |
---|
| 8980 | echo X"$ac_file" | |
---|
| 8981 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8982 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8983 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8984 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8985 | s/.*/./; q'` |
---|
| 8986 | { if $as_mkdir_p; then |
---|
| 8987 | mkdir -p "$ac_dir" |
---|
| 8988 | else |
---|
| 8989 | as_dir="$ac_dir" |
---|
| 8990 | as_dirs= |
---|
| 8991 | while test ! -d "$as_dir"; do |
---|
| 8992 | as_dirs="$as_dir $as_dirs" |
---|
| 8993 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8994 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8995 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8996 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8997 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8998 | . : '\(.\)' 2>/dev/null || |
---|
| 8999 | echo X"$as_dir" | |
---|
| 9000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9001 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9002 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9003 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9004 | s/.*/./; q'` |
---|
| 9005 | done |
---|
| 9006 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9007 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9008 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9009 | { (exit 1); exit 1; }; }; } |
---|
| 9010 | |
---|
| 9011 | ac_builddir=. |
---|
| 9012 | |
---|
| 9013 | if test "$ac_dir" != .; then |
---|
| 9014 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9015 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9016 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9017 | else |
---|
| 9018 | ac_dir_suffix= ac_top_builddir= |
---|
| 9019 | fi |
---|
| 9020 | |
---|
| 9021 | case $srcdir in |
---|
| 9022 | .) # No --srcdir option. We are building in place. |
---|
| 9023 | ac_srcdir=. |
---|
| 9024 | if test -z "$ac_top_builddir"; then |
---|
| 9025 | ac_top_srcdir=. |
---|
| 9026 | else |
---|
| 9027 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9028 | fi ;; |
---|
| 9029 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9030 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9031 | ac_top_srcdir=$srcdir ;; |
---|
| 9032 | *) # Relative path. |
---|
| 9033 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9034 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9035 | esac |
---|
| 9036 | |
---|
| 9037 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9038 | # the directories may not exist. |
---|
| 9039 | case `pwd` in |
---|
| 9040 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9041 | *) |
---|
| 9042 | case "$ac_dir" in |
---|
| 9043 | .) ac_abs_builddir=`pwd`;; |
---|
| 9044 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9045 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9046 | esac;; |
---|
| 9047 | esac |
---|
| 9048 | case $ac_abs_builddir in |
---|
| 9049 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9050 | *) |
---|
| 9051 | case ${ac_top_builddir}. in |
---|
| 9052 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9053 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9054 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9055 | esac;; |
---|
| 9056 | esac |
---|
| 9057 | case $ac_abs_builddir in |
---|
| 9058 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9059 | *) |
---|
| 9060 | case $ac_srcdir in |
---|
| 9061 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9062 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9063 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9064 | esac;; |
---|
| 9065 | esac |
---|
| 9066 | case $ac_abs_builddir in |
---|
| 9067 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9068 | *) |
---|
| 9069 | case $ac_top_srcdir in |
---|
| 9070 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9071 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9072 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9073 | esac;; |
---|
| 9074 | esac |
---|
| 9075 | |
---|
| 9076 | |
---|
| 9077 | case $INSTALL in |
---|
| 9078 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9079 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9080 | esac |
---|
| 9081 | |
---|
| 9082 | if test x"$ac_file" != x-; then |
---|
| 9083 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9084 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9085 | rm -f "$ac_file" |
---|
| 9086 | fi |
---|
| 9087 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9088 | # use $as_me), people would be surprised to read: |
---|
| 9089 | # /* config.h. Generated by config.status. */ |
---|
| 9090 | if test x"$ac_file" = x-; then |
---|
| 9091 | configure_input= |
---|
| 9092 | else |
---|
| 9093 | configure_input="$ac_file. " |
---|
| 9094 | fi |
---|
| 9095 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9096 | sed 's,.*/,,'` by configure." |
---|
| 9097 | |
---|
| 9098 | # First look for the input files in the build tree, otherwise in the |
---|
| 9099 | # src tree. |
---|
| 9100 | ac_file_inputs=`IFS=: |
---|
| 9101 | for f in $ac_file_in; do |
---|
| 9102 | case $f in |
---|
| 9103 | -) echo $tmp/stdin ;; |
---|
| 9104 | [\\/$]*) |
---|
| 9105 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9106 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9107 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9108 | { (exit 1); exit 1; }; } |
---|
| 9109 | echo "$f";; |
---|
| 9110 | *) # Relative |
---|
| 9111 | if test -f "$f"; then |
---|
| 9112 | # Build tree |
---|
| 9113 | echo "$f" |
---|
| 9114 | elif test -f "$srcdir/$f"; then |
---|
| 9115 | # Source tree |
---|
| 9116 | echo "$srcdir/$f" |
---|
| 9117 | else |
---|
| 9118 | # /dev/null tree |
---|
| 9119 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9120 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9121 | { (exit 1); exit 1; }; } |
---|
| 9122 | fi;; |
---|
| 9123 | esac |
---|
| 9124 | done` || { (exit 1); exit 1; } |
---|
| 9125 | _ACEOF |
---|
| 9126 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9127 | sed "$ac_vpsub |
---|
| 9128 | $extrasub |
---|
| 9129 | _ACEOF |
---|
| 9130 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9131 | :t |
---|
| 9132 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9133 | s,@configure_input@,$configure_input,;t t |
---|
| 9134 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9135 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9136 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9137 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9138 | s,@builddir@,$ac_builddir,;t t |
---|
| 9139 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9140 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9141 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9142 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9143 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9144 | rm -f $tmp/stdin |
---|
| 9145 | if test x"$ac_file" != x-; then |
---|
| 9146 | mv $tmp/out $ac_file |
---|
| 9147 | else |
---|
| 9148 | cat $tmp/out |
---|
| 9149 | rm -f $tmp/out |
---|
| 9150 | fi |
---|
| 9151 | |
---|
| 9152 | done |
---|
| 9153 | _ACEOF |
---|
| 9154 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9155 | |
---|
| 9156 | # |
---|
| 9157 | # CONFIG_HEADER section. |
---|
| 9158 | # |
---|
| 9159 | |
---|
| 9160 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9161 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9162 | # |
---|
| 9163 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9164 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9165 | ac_dB='[ ].*$,\1#\2' |
---|
| 9166 | ac_dC=' ' |
---|
| 9167 | ac_dD=',;t' |
---|
| 9168 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9169 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9170 | ac_uB='$,\1#\2define\3' |
---|
| 9171 | ac_uC=' ' |
---|
| 9172 | ac_uD=',;t' |
---|
| 9173 | |
---|
| 9174 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9175 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9176 | case $ac_file in |
---|
| 9177 | - | *:- | *:-:* ) # input from stdin |
---|
| 9178 | cat >$tmp/stdin |
---|
| 9179 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9180 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9181 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9182 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9183 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9184 | esac |
---|
| 9185 | |
---|
| 9186 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9187 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9188 | |
---|
| 9189 | # First look for the input files in the build tree, otherwise in the |
---|
| 9190 | # src tree. |
---|
| 9191 | ac_file_inputs=`IFS=: |
---|
| 9192 | for f in $ac_file_in; do |
---|
| 9193 | case $f in |
---|
| 9194 | -) echo $tmp/stdin ;; |
---|
| 9195 | [\\/$]*) |
---|
| 9196 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9197 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9198 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9199 | { (exit 1); exit 1; }; } |
---|
| 9200 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9201 | echo "$f";; |
---|
| 9202 | *) # Relative |
---|
| 9203 | if test -f "$f"; then |
---|
| 9204 | # Build tree |
---|
| 9205 | echo "$f" |
---|
| 9206 | elif test -f "$srcdir/$f"; then |
---|
| 9207 | # Source tree |
---|
| 9208 | echo "$srcdir/$f" |
---|
| 9209 | else |
---|
| 9210 | # /dev/null tree |
---|
| 9211 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9212 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9213 | { (exit 1); exit 1; }; } |
---|
| 9214 | fi;; |
---|
| 9215 | esac |
---|
| 9216 | done` || { (exit 1); exit 1; } |
---|
| 9217 | # Remove the trailing spaces. |
---|
| 9218 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 9219 | |
---|
| 9220 | _ACEOF |
---|
| 9221 | |
---|
| 9222 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 9223 | # `conftest.undefs', that substitutes the proper values into |
---|
| 9224 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 9225 | # templates, and the second `#undef' templates. |
---|
| 9226 | # And first: Protect against being on the right side of a sed subst in |
---|
| 9227 | # config.status. Protect against being in an unquoted here document |
---|
| 9228 | # in config.status. |
---|
| 9229 | rm -f conftest.defines conftest.undefs |
---|
| 9230 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 9231 | # Putting comments in sed scripts is not portable. |
---|
| 9232 | # |
---|
| 9233 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 9234 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 9235 | # See the Autoconf documentation for `clear'. |
---|
| 9236 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 9237 | s/[\\&,]/\\&/g |
---|
| 9238 | s,[\\$`],\\&,g |
---|
| 9239 | t clear |
---|
| 9240 | : clear |
---|
| 9241 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 9242 | t end |
---|
| 9243 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 9244 | : end |
---|
| 9245 | _ACEOF |
---|
| 9246 | # If some macros were called several times there might be several times |
---|
| 9247 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 9248 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 9249 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 9250 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 9251 | rm -f confdef2sed.sed |
---|
| 9252 | |
---|
| 9253 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 9254 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 9255 | # on some systems where configure will not decide to define it. |
---|
| 9256 | cat >>conftest.undefs <<\_ACEOF |
---|
| 9257 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 9258 | _ACEOF |
---|
| 9259 | |
---|
| 9260 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 9261 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9262 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 9263 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 9264 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 9265 | echo ' :' >>$CONFIG_STATUS |
---|
| 9266 | rm -f conftest.tail |
---|
| 9267 | while grep . conftest.defines >/dev/null |
---|
| 9268 | do |
---|
| 9269 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 9270 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9271 | # Speed up: don't consider the non `#define' lines. |
---|
| 9272 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 9273 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9274 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9275 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9276 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 9277 | echo 'CEOF |
---|
| 9278 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 9279 | rm -f $tmp/in |
---|
| 9280 | mv $tmp/out $tmp/in |
---|
| 9281 | ' >>$CONFIG_STATUS |
---|
| 9282 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 9283 | rm -f conftest.defines |
---|
| 9284 | mv conftest.tail conftest.defines |
---|
| 9285 | done |
---|
| 9286 | rm -f conftest.defines |
---|
| 9287 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 9288 | echo >>$CONFIG_STATUS |
---|
| 9289 | |
---|
| 9290 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 9291 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9292 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 9293 | rm -f conftest.tail |
---|
| 9294 | while grep . conftest.undefs >/dev/null |
---|
| 9295 | do |
---|
| 9296 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 9297 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9298 | # Speed up: don't consider the non `#undef' |
---|
| 9299 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 9300 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9301 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9302 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9303 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 9304 | echo 'CEOF |
---|
| 9305 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 9306 | rm -f $tmp/in |
---|
| 9307 | mv $tmp/out $tmp/in |
---|
| 9308 | ' >>$CONFIG_STATUS |
---|
| 9309 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 9310 | rm -f conftest.undefs |
---|
| 9311 | mv conftest.tail conftest.undefs |
---|
| 9312 | done |
---|
| 9313 | rm -f conftest.undefs |
---|
| 9314 | |
---|
| 9315 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9316 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9317 | # use $as_me), people would be surprised to read: |
---|
| 9318 | # /* config.h. Generated by config.status. */ |
---|
| 9319 | if test x"$ac_file" = x-; then |
---|
| 9320 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 9321 | else |
---|
| 9322 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 9323 | fi |
---|
| 9324 | cat $tmp/in >>$tmp/config.h |
---|
| 9325 | rm -f $tmp/in |
---|
| 9326 | if test x"$ac_file" != x-; then |
---|
| 9327 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 9328 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 9329 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 9330 | else |
---|
| 9331 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9332 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9333 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9334 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9335 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9336 | . : '\(.\)' 2>/dev/null || |
---|
| 9337 | echo X"$ac_file" | |
---|
| 9338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9339 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9340 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9341 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9342 | s/.*/./; q'` |
---|
| 9343 | { if $as_mkdir_p; then |
---|
| 9344 | mkdir -p "$ac_dir" |
---|
| 9345 | else |
---|
| 9346 | as_dir="$ac_dir" |
---|
| 9347 | as_dirs= |
---|
| 9348 | while test ! -d "$as_dir"; do |
---|
| 9349 | as_dirs="$as_dir $as_dirs" |
---|
| 9350 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9351 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9352 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9353 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9354 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9355 | . : '\(.\)' 2>/dev/null || |
---|
| 9356 | echo X"$as_dir" | |
---|
| 9357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9358 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9359 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9360 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9361 | s/.*/./; q'` |
---|
| 9362 | done |
---|
| 9363 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9364 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9365 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9366 | { (exit 1); exit 1; }; }; } |
---|
| 9367 | |
---|
| 9368 | rm -f $ac_file |
---|
| 9369 | mv $tmp/config.h $ac_file |
---|
| 9370 | fi |
---|
| 9371 | else |
---|
| 9372 | cat $tmp/config.h |
---|
| 9373 | rm -f $tmp/config.h |
---|
| 9374 | fi |
---|
| 9375 | # Compute $ac_file's index in $config_headers. |
---|
| 9376 | _am_stamp_count=1 |
---|
| 9377 | for _am_header in $config_headers :; do |
---|
| 9378 | case $_am_header in |
---|
| 9379 | $ac_file | $ac_file:* ) |
---|
| 9380 | break ;; |
---|
| 9381 | * ) |
---|
| 9382 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 9383 | esac |
---|
| 9384 | done |
---|
| 9385 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 9386 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9387 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 9388 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 9389 | X$ac_file : 'X\(/\)' \| \ |
---|
| 9390 | . : '\(.\)' 2>/dev/null || |
---|
| 9391 | echo X$ac_file | |
---|
| 9392 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9393 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9394 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9395 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9396 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 9397 | done |
---|
| 9398 | _ACEOF |
---|
| 9399 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9400 | |
---|
| 9401 | # |
---|
| 9402 | # CONFIG_COMMANDS section. |
---|
| 9403 | # |
---|
| 9404 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 9405 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 9406 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9407 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 9408 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9409 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 9410 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 9411 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 9412 | . : '\(.\)' 2>/dev/null || |
---|
| 9413 | echo X"$ac_dest" | |
---|
| 9414 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9415 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9416 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9417 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9418 | s/.*/./; q'` |
---|
| 9419 | { if $as_mkdir_p; then |
---|
| 9420 | mkdir -p "$ac_dir" |
---|
| 9421 | else |
---|
| 9422 | as_dir="$ac_dir" |
---|
| 9423 | as_dirs= |
---|
| 9424 | while test ! -d "$as_dir"; do |
---|
| 9425 | as_dirs="$as_dir $as_dirs" |
---|
| 9426 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9427 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9428 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9429 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9430 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9431 | . : '\(.\)' 2>/dev/null || |
---|
| 9432 | echo X"$as_dir" | |
---|
| 9433 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9434 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9435 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9436 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9437 | s/.*/./; q'` |
---|
| 9438 | done |
---|
| 9439 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9440 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9441 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9442 | { (exit 1); exit 1; }; }; } |
---|
| 9443 | |
---|
| 9444 | ac_builddir=. |
---|
| 9445 | |
---|
| 9446 | if test "$ac_dir" != .; then |
---|
| 9447 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9448 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9449 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9450 | else |
---|
| 9451 | ac_dir_suffix= ac_top_builddir= |
---|
| 9452 | fi |
---|
| 9453 | |
---|
| 9454 | case $srcdir in |
---|
| 9455 | .) # No --srcdir option. We are building in place. |
---|
| 9456 | ac_srcdir=. |
---|
| 9457 | if test -z "$ac_top_builddir"; then |
---|
| 9458 | ac_top_srcdir=. |
---|
| 9459 | else |
---|
| 9460 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9461 | fi ;; |
---|
| 9462 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9463 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9464 | ac_top_srcdir=$srcdir ;; |
---|
| 9465 | *) # Relative path. |
---|
| 9466 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9467 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9468 | esac |
---|
| 9469 | |
---|
| 9470 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9471 | # the directories may not exist. |
---|
| 9472 | case `pwd` in |
---|
| 9473 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9474 | *) |
---|
| 9475 | case "$ac_dir" in |
---|
| 9476 | .) ac_abs_builddir=`pwd`;; |
---|
| 9477 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9478 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9479 | esac;; |
---|
| 9480 | esac |
---|
| 9481 | case $ac_abs_builddir in |
---|
| 9482 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9483 | *) |
---|
| 9484 | case ${ac_top_builddir}. in |
---|
| 9485 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9486 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9487 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9488 | esac;; |
---|
| 9489 | esac |
---|
| 9490 | case $ac_abs_builddir in |
---|
| 9491 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9492 | *) |
---|
| 9493 | case $ac_srcdir in |
---|
| 9494 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9495 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9496 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9497 | esac;; |
---|
| 9498 | esac |
---|
| 9499 | case $ac_abs_builddir in |
---|
| 9500 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9501 | *) |
---|
| 9502 | case $ac_top_srcdir in |
---|
| 9503 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9504 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9505 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9506 | esac;; |
---|
| 9507 | esac |
---|
| 9508 | |
---|
| 9509 | |
---|
| 9510 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 9511 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 9512 | case $ac_dest in |
---|
| 9513 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 9514 | # Strip MF so we end up with the name of the file. |
---|
| 9515 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 9516 | # Check whether this is an Automake generated Makefile or not. |
---|
| 9517 | # We used to match only the files named `Makefile.in', but |
---|
| 9518 | # some people rename them; so instead we look at the file content. |
---|
| 9519 | # Grep'ing the first line is not enough: some people post-process |
---|
| 9520 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 9521 | # So let's grep whole file. |
---|
| 9522 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 9523 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 9524 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9525 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 9526 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 9527 | X"$mf" : 'X\(/\)' \| \ |
---|
| 9528 | . : '\(.\)' 2>/dev/null || |
---|
| 9529 | echo X"$mf" | |
---|
| 9530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9531 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9532 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9533 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9534 | s/.*/./; q'` |
---|
| 9535 | else |
---|
| 9536 | continue |
---|
| 9537 | fi |
---|
| 9538 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 9539 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 9540 | # running `make'. |
---|
[2819] | 9541 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 9542 | test -z "$DEPDIR" && continue |
---|
| 9543 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2819] | 9544 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 9545 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 9546 | # We invoke sed twice because it is the simplest approach to |
---|
| 9547 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2819] | 9548 | for file in `sed -n ' |
---|
[1956] | 9549 | /^DEP_FILES = .*\\\\$/ { |
---|
| 9550 | s/^DEP_FILES = // |
---|
| 9551 | :loop |
---|
| 9552 | s/\\\\$// |
---|
| 9553 | p |
---|
| 9554 | n |
---|
| 9555 | /\\\\$/ b loop |
---|
| 9556 | p |
---|
| 9557 | } |
---|
| 9558 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 9559 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 9560 | # Make sure the directory exists. |
---|
| 9561 | test -f "$dirpart/$file" && continue |
---|
| 9562 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 9563 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9564 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 9565 | X"$file" : 'X\(//\)$' \| \ |
---|
| 9566 | X"$file" : 'X\(/\)' \| \ |
---|
| 9567 | . : '\(.\)' 2>/dev/null || |
---|
| 9568 | echo X"$file" | |
---|
| 9569 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9570 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9571 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9572 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9573 | s/.*/./; q'` |
---|
| 9574 | { if $as_mkdir_p; then |
---|
| 9575 | mkdir -p $dirpart/$fdir |
---|
| 9576 | else |
---|
| 9577 | as_dir=$dirpart/$fdir |
---|
| 9578 | as_dirs= |
---|
| 9579 | while test ! -d "$as_dir"; do |
---|
| 9580 | as_dirs="$as_dir $as_dirs" |
---|
| 9581 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9582 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9583 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9584 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9585 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9586 | . : '\(.\)' 2>/dev/null || |
---|
| 9587 | echo X"$as_dir" | |
---|
| 9588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9589 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9590 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9591 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9592 | s/.*/./; q'` |
---|
| 9593 | done |
---|
| 9594 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9595 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 9596 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 9597 | { (exit 1); exit 1; }; }; } |
---|
| 9598 | |
---|
| 9599 | # echo "creating $dirpart/$file" |
---|
| 9600 | echo '# dummy' > "$dirpart/$file" |
---|
| 9601 | done |
---|
| 9602 | done |
---|
| 9603 | ;; |
---|
| 9604 | esac |
---|
| 9605 | done |
---|
| 9606 | _ACEOF |
---|
| 9607 | |
---|
| 9608 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9609 | |
---|
| 9610 | { (exit 0); exit 0; } |
---|
| 9611 | _ACEOF |
---|
| 9612 | chmod +x $CONFIG_STATUS |
---|
| 9613 | ac_clean_files=$ac_clean_files_save |
---|
| 9614 | |
---|
| 9615 | |
---|
| 9616 | # configure is writing to config.log, and then calls config.status. |
---|
| 9617 | # config.status does its own redirection, appending to config.log. |
---|
| 9618 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 9619 | # by configure, so config.status won't be able to write to it; its |
---|
| 9620 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 9621 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 9622 | # appended to by config.status. When coming back to configure, we |
---|
| 9623 | # need to make the FD available again. |
---|
| 9624 | if test "$no_create" != yes; then |
---|
| 9625 | ac_cs_success=: |
---|
| 9626 | ac_config_status_args= |
---|
| 9627 | test "$silent" = yes && |
---|
| 9628 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 9629 | exec 5>/dev/null |
---|
| 9630 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 9631 | exec 5>>config.log |
---|
| 9632 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 9633 | # would make configure fail if this is the last instruction. |
---|
| 9634 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 9635 | fi |
---|
| 9636 | |
---|