[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha. |
---|
| 4 | # |
---|
| 5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 6 | # |
---|
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
[1853] | 13 | |
---|
[1956] | 14 | # Be Bourne compatible |
---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 22 | set -o posix |
---|
| 23 | fi |
---|
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[1853] | 25 | |
---|
[1956] | 26 | # Support unset when possible. |
---|
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
[1853] | 32 | |
---|
| 33 | |
---|
[1956] | 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
[1853] | 39 | |
---|
[1956] | 40 | # NLS nuisances. |
---|
| 41 | for as_var in \ |
---|
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 44 | LC_TELEPHONE LC_TIME |
---|
| 45 | do |
---|
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 47 | eval $as_var=C; export $as_var |
---|
| 48 | else |
---|
| 49 | $as_unset $as_var |
---|
| 50 | fi |
---|
| 51 | done |
---|
[1853] | 52 | |
---|
[1956] | 53 | # Required to use basename. |
---|
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 55 | as_expr=expr |
---|
| 56 | else |
---|
| 57 | as_expr=false |
---|
| 58 | fi |
---|
[1853] | 59 | |
---|
[1956] | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 61 | as_basename=basename |
---|
| 62 | else |
---|
| 63 | as_basename=false |
---|
| 64 | fi |
---|
[1853] | 65 | |
---|
[1956] | 66 | |
---|
| 67 | # Name of the executable. |
---|
| 68 | as_me=`$as_basename "$0" || |
---|
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 70 | X"$0" : 'X\(//\)$' \| \ |
---|
| 71 | X"$0" : 'X\(/\)$' \| \ |
---|
| 72 | . : '\(.\)' 2>/dev/null || |
---|
| 73 | echo X/"$0" | |
---|
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 77 | s/.*/./; q'` |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 81 | # Avoid depending upon Character Ranges. |
---|
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 85 | as_cr_digits='0123456789' |
---|
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 87 | |
---|
| 88 | # The user is always right. |
---|
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 90 | echo "#! /bin/sh" >conf$$.sh |
---|
| 91 | echo "exit 0" >>conf$$.sh |
---|
| 92 | chmod +x conf$$.sh |
---|
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 94 | PATH_SEPARATOR=';' |
---|
| 95 | else |
---|
| 96 | PATH_SEPARATOR=: |
---|
| 97 | fi |
---|
| 98 | rm -f conf$$.sh |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | as_lineno_1=$LINENO |
---|
| 103 | as_lineno_2=$LINENO |
---|
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 107 | # Find who we are. Look in the path if we contain no path at all |
---|
| 108 | # relative or not. |
---|
| 109 | case $0 in |
---|
| 110 | *[\\/]* ) as_myself=$0 ;; |
---|
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 112 | for as_dir in $PATH |
---|
| 113 | do |
---|
| 114 | IFS=$as_save_IFS |
---|
| 115 | test -z "$as_dir" && as_dir=. |
---|
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 117 | done |
---|
| 118 | |
---|
| 119 | ;; |
---|
| 120 | esac |
---|
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 122 | # in which case we are not to be found in the path. |
---|
| 123 | if test "x$as_myself" = x; then |
---|
| 124 | as_myself=$0 |
---|
| 125 | fi |
---|
| 126 | if test ! -f "$as_myself"; then |
---|
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 128 | { (exit 1); exit 1; }; } |
---|
| 129 | fi |
---|
| 130 | case $CONFIG_SHELL in |
---|
| 131 | '') |
---|
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 134 | do |
---|
| 135 | IFS=$as_save_IFS |
---|
| 136 | test -z "$as_dir" && as_dir=. |
---|
| 137 | for as_base in sh bash ksh sh5; do |
---|
| 138 | case $as_dir in |
---|
| 139 | /*) |
---|
| 140 | if ("$as_dir/$as_base" -c ' |
---|
| 141 | as_lineno_1=$LINENO |
---|
| 142 | as_lineno_2=$LINENO |
---|
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 148 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 149 | export CONFIG_SHELL |
---|
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 151 | fi;; |
---|
| 152 | esac |
---|
| 153 | done |
---|
| 154 | done |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 160 | # line-number line before each line; the second 'sed' does the real |
---|
| 161 | # work. The second script uses 'N' to pair each line-number line |
---|
| 162 | # with the numbered line, and appends trailing '-' during |
---|
| 163 | # substitution so that $LINENO is not a special case at line end. |
---|
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 166 | sed '=' <$as_myself | |
---|
| 167 | sed ' |
---|
| 168 | N |
---|
| 169 | s,$,-, |
---|
| 170 | : loop |
---|
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 172 | t loop |
---|
| 173 | s,-$,, |
---|
| 174 | s,^['$as_cr_digits']*\n,, |
---|
| 175 | ' >$as_me.lineno && |
---|
| 176 | chmod +x $as_me.lineno || |
---|
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 178 | { (exit 1); exit 1; }; } |
---|
| 179 | |
---|
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 181 | # (the dirname of $[0] is not the place where we might find the |
---|
| 182 | # original and so on. Autoconf is especially sensible to this). |
---|
| 183 | . ./$as_me.lineno |
---|
| 184 | # Exit status is that of the last command. |
---|
| 185 | exit |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 191 | ' ECHO_T=' ' ;; |
---|
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 194 | esac |
---|
| 195 | |
---|
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 197 | as_expr=expr |
---|
[1853] | 198 | else |
---|
[1956] | 199 | as_expr=false |
---|
[1853] | 200 | fi |
---|
| 201 | |
---|
[1956] | 202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 203 | echo >conf$$.file |
---|
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 207 | if test -f conf$$.exe; then |
---|
| 208 | # Don't use ln at all; we don't have any links |
---|
| 209 | as_ln_s='cp -p' |
---|
| 210 | else |
---|
| 211 | as_ln_s='ln -s' |
---|
| 212 | fi |
---|
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 214 | as_ln_s=ln |
---|
| 215 | else |
---|
| 216 | as_ln_s='cp -p' |
---|
[1853] | 217 | fi |
---|
[1956] | 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[1853] | 219 | |
---|
[1956] | 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
| 223 | test -d ./-p && rmdir ./-p |
---|
| 224 | as_mkdir_p=false |
---|
| 225 | fi |
---|
[1853] | 226 | |
---|
[1956] | 227 | as_executable_p="test -f" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
---|
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 231 | |
---|
| 232 | # Sed expression to map a string onto a valid variable name. |
---|
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | # IFS |
---|
| 237 | # We need space, tab and new line, in precisely that order. |
---|
| 238 | as_nl=' |
---|
| 239 | ' |
---|
| 240 | IFS=" $as_nl" |
---|
| 241 | |
---|
| 242 | # CDPATH. |
---|
| 243 | $as_unset CDPATH |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | # Name of the host. |
---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 248 | # so uname gets run too. |
---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 250 | |
---|
| 251 | exec 6>&1 |
---|
| 252 | |
---|
| 253 | # |
---|
| 254 | # Initializations. |
---|
| 255 | # |
---|
| 256 | ac_default_prefix=/usr/local |
---|
| 257 | ac_config_libobj_dir=. |
---|
| 258 | cross_compiling=no |
---|
| 259 | subdirs= |
---|
| 260 | MFLAGS= |
---|
| 261 | MAKEFLAGS= |
---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 263 | |
---|
| 264 | # Maximum number of lines to put in a shell here document. |
---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
---|
| 266 | # only ac_max_sed_lines should be used. |
---|
| 267 | : ${ac_max_here_lines=38} |
---|
| 268 | |
---|
| 269 | # Identity of this package. |
---|
| 270 | PACKAGE_NAME='orxonox' |
---|
| 271 | PACKAGE_TARNAME='orxonox' |
---|
| 272 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
| 274 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
| 275 | |
---|
| 276 | ac_unique_file="." |
---|
| 277 | # Factoring default headers for most tests. |
---|
| 278 | ac_includes_default="\ |
---|
| 279 | #include <stdio.h> |
---|
| 280 | #if HAVE_SYS_TYPES_H |
---|
| 281 | # include <sys/types.h> |
---|
| 282 | #endif |
---|
| 283 | #if HAVE_SYS_STAT_H |
---|
| 284 | # include <sys/stat.h> |
---|
| 285 | #endif |
---|
| 286 | #if STDC_HEADERS |
---|
| 287 | # include <stdlib.h> |
---|
| 288 | # include <stddef.h> |
---|
| 289 | #else |
---|
| 290 | # if HAVE_STDLIB_H |
---|
| 291 | # include <stdlib.h> |
---|
| 292 | # endif |
---|
| 293 | #endif |
---|
| 294 | #if HAVE_STRING_H |
---|
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 296 | # include <memory.h> |
---|
| 297 | # endif |
---|
| 298 | # include <string.h> |
---|
| 299 | #endif |
---|
| 300 | #if HAVE_STRINGS_H |
---|
| 301 | # include <strings.h> |
---|
| 302 | #endif |
---|
| 303 | #if HAVE_INTTYPES_H |
---|
| 304 | # include <inttypes.h> |
---|
| 305 | #else |
---|
| 306 | # if HAVE_STDINT_H |
---|
| 307 | # include <stdint.h> |
---|
| 308 | # endif |
---|
| 309 | #endif |
---|
| 310 | #if HAVE_UNISTD_H |
---|
| 311 | # include <unistd.h> |
---|
| 312 | #endif" |
---|
| 313 | |
---|
[3105] | 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 MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_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 |
---|
| 791 | \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems. |
---|
| 792 | |
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 794 | |
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 797 | |
---|
| 798 | Defaults for the options are specified in brackets. |
---|
| 799 | |
---|
| 800 | Configuration: |
---|
| 801 | -h, --help display this help and exit |
---|
| 802 | --help=short display options specific to this package |
---|
| 803 | --help=recursive display the short help of all the included packages |
---|
| 804 | -V, --version display version information and exit |
---|
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 808 | -n, --no-create do not create output files |
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 810 | |
---|
| 811 | _ACEOF |
---|
| 812 | |
---|
| 813 | cat <<_ACEOF |
---|
| 814 | Installation directories: |
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 816 | [$ac_default_prefix] |
---|
| 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 818 | [PREFIX] |
---|
| 819 | |
---|
| 820 | By default, \`make install' will install all the files in |
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 823 | for instance \`--prefix=\$HOME'. |
---|
| 824 | |
---|
| 825 | For better control, use the options below. |
---|
| 826 | |
---|
| 827 | Fine tuning of the installation directories: |
---|
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 836 | --includedir=DIR C header files [PREFIX/include] |
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 838 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 839 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 840 | _ACEOF |
---|
| 841 | |
---|
| 842 | cat <<\_ACEOF |
---|
| 843 | |
---|
| 844 | Program names: |
---|
| 845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
[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 |
---|
| 858 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
| 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 |
---|
[3105] | 867 | --disable-gtk Prevents GTK from being loaded |
---|
| 868 | --disabel-sdl-image Prevents SDL_image from being loaded |
---|
[1956] | 869 | |
---|
| 870 | Some influential environment variables: |
---|
| 871 | CXX C++ compiler command |
---|
| 872 | CXXFLAGS C++ compiler flags |
---|
| 873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 874 | nonstandard directory <lib dir> |
---|
| 875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 876 | headers in a nonstandard directory <include dir> |
---|
| 877 | CC C compiler command |
---|
| 878 | CFLAGS C compiler flags |
---|
| 879 | CPP C preprocessor |
---|
| 880 | |
---|
| 881 | Use these variables to override the choices made by `configure' or to help |
---|
| 882 | it to find libraries and programs with nonstandard names/locations. |
---|
| 883 | |
---|
| 884 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 885 | _ACEOF |
---|
| 886 | fi |
---|
| 887 | |
---|
| 888 | if test "$ac_init_help" = "recursive"; then |
---|
| 889 | # If there are subdirs, report their specific --help. |
---|
| 890 | ac_popdir=`pwd` |
---|
| 891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 892 | test -d $ac_dir || continue |
---|
| 893 | ac_builddir=. |
---|
| 894 | |
---|
| 895 | if test "$ac_dir" != .; then |
---|
| 896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 897 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 899 | else |
---|
| 900 | ac_dir_suffix= ac_top_builddir= |
---|
| 901 | fi |
---|
| 902 | |
---|
| 903 | case $srcdir in |
---|
| 904 | .) # No --srcdir option. We are building in place. |
---|
| 905 | ac_srcdir=. |
---|
| 906 | if test -z "$ac_top_builddir"; then |
---|
| 907 | ac_top_srcdir=. |
---|
| 908 | else |
---|
| 909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 910 | fi ;; |
---|
| 911 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 912 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 913 | ac_top_srcdir=$srcdir ;; |
---|
| 914 | *) # Relative path. |
---|
| 915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 917 | esac |
---|
| 918 | |
---|
| 919 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 920 | # the directories may not exist. |
---|
| 921 | case `pwd` in |
---|
| 922 | .) ac_abs_builddir="$ac_dir";; |
---|
| 923 | *) |
---|
| 924 | case "$ac_dir" in |
---|
| 925 | .) ac_abs_builddir=`pwd`;; |
---|
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 927 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 928 | esac;; |
---|
| 929 | esac |
---|
| 930 | case $ac_abs_builddir in |
---|
| 931 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 932 | *) |
---|
| 933 | case ${ac_top_builddir}. in |
---|
| 934 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 937 | esac;; |
---|
| 938 | esac |
---|
| 939 | case $ac_abs_builddir in |
---|
| 940 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 941 | *) |
---|
| 942 | case $ac_srcdir in |
---|
| 943 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 946 | esac;; |
---|
| 947 | esac |
---|
| 948 | case $ac_abs_builddir in |
---|
| 949 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 950 | *) |
---|
| 951 | case $ac_top_srcdir in |
---|
| 952 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 955 | esac;; |
---|
| 956 | esac |
---|
| 957 | |
---|
| 958 | cd $ac_dir |
---|
| 959 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 960 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 961 | echo |
---|
| 962 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 963 | elif test -f $ac_srcdir/configure; then |
---|
| 964 | echo |
---|
| 965 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 966 | elif test -f $ac_srcdir/configure.ac || |
---|
| 967 | test -f $ac_srcdir/configure.in; then |
---|
| 968 | echo |
---|
| 969 | $ac_configure --help |
---|
| 970 | else |
---|
| 971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 972 | fi |
---|
| 973 | cd $ac_popdir |
---|
| 974 | done |
---|
| 975 | fi |
---|
| 976 | |
---|
| 977 | test -n "$ac_init_help" && exit 0 |
---|
| 978 | if $ac_init_version; then |
---|
| 979 | cat <<\_ACEOF |
---|
| 980 | orxonox configure 0.1-pre-alpha |
---|
| 981 | generated by GNU Autoconf 2.59 |
---|
| 982 | |
---|
| 983 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 984 | This configure script is free software; the Free Software Foundation |
---|
| 985 | gives unlimited permission to copy, distribute and modify it. |
---|
| 986 | _ACEOF |
---|
| 987 | exit 0 |
---|
| 988 | fi |
---|
| 989 | exec 5>config.log |
---|
| 990 | cat >&5 <<_ACEOF |
---|
| 991 | This file contains any messages produced by compilers while |
---|
| 992 | running configure, to aid debugging if configure makes a mistake. |
---|
| 993 | |
---|
| 994 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 995 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 996 | |
---|
| 997 | $ $0 $@ |
---|
| 998 | |
---|
| 999 | _ACEOF |
---|
| 1000 | { |
---|
| 1001 | cat <<_ASUNAME |
---|
| 1002 | ## --------- ## |
---|
| 1003 | ## Platform. ## |
---|
| 1004 | ## --------- ## |
---|
| 1005 | |
---|
| 1006 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1007 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1008 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1009 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1010 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1011 | |
---|
| 1012 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1013 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1014 | |
---|
| 1015 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1016 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1017 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1018 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1019 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1020 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1021 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1022 | |
---|
| 1023 | _ASUNAME |
---|
| 1024 | |
---|
| 1025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1026 | for as_dir in $PATH |
---|
| 1027 | do |
---|
| 1028 | IFS=$as_save_IFS |
---|
| 1029 | test -z "$as_dir" && as_dir=. |
---|
| 1030 | echo "PATH: $as_dir" |
---|
| 1031 | done |
---|
| 1032 | |
---|
| 1033 | } >&5 |
---|
| 1034 | |
---|
| 1035 | cat >&5 <<_ACEOF |
---|
| 1036 | |
---|
| 1037 | |
---|
| 1038 | ## ----------- ## |
---|
| 1039 | ## Core tests. ## |
---|
| 1040 | ## ----------- ## |
---|
| 1041 | |
---|
| 1042 | _ACEOF |
---|
| 1043 | |
---|
| 1044 | |
---|
| 1045 | # Keep a trace of the command line. |
---|
| 1046 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1047 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1048 | # Also quote any args containing shell meta-characters. |
---|
| 1049 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1050 | ac_configure_args= |
---|
| 1051 | ac_configure_args0= |
---|
| 1052 | ac_configure_args1= |
---|
| 1053 | ac_sep= |
---|
| 1054 | ac_must_keep_next=false |
---|
| 1055 | for ac_pass in 1 2 |
---|
| 1056 | do |
---|
| 1057 | for ac_arg |
---|
| 1058 | do |
---|
| 1059 | case $ac_arg in |
---|
| 1060 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1062 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1063 | continue ;; |
---|
| 1064 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1065 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1066 | esac |
---|
| 1067 | case $ac_pass in |
---|
| 1068 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1069 | 2) |
---|
| 1070 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1071 | if test $ac_must_keep_next = true; then |
---|
| 1072 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1073 | else |
---|
| 1074 | case $ac_arg in |
---|
| 1075 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1076 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1077 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1078 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1079 | case "$ac_configure_args0 " in |
---|
| 1080 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1081 | esac |
---|
| 1082 | ;; |
---|
| 1083 | -* ) ac_must_keep_next=true ;; |
---|
| 1084 | esac |
---|
| 1085 | fi |
---|
| 1086 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1087 | # Get rid of the leading space. |
---|
| 1088 | ac_sep=" " |
---|
| 1089 | ;; |
---|
| 1090 | esac |
---|
| 1091 | done |
---|
| 1092 | done |
---|
| 1093 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1094 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1095 | |
---|
| 1096 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1097 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1098 | # would cause problems or look ugly. |
---|
| 1099 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1100 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1101 | trap 'exit_status=$? |
---|
| 1102 | # Save into config.log some information that might help in debugging. |
---|
| 1103 | { |
---|
| 1104 | echo |
---|
| 1105 | |
---|
| 1106 | cat <<\_ASBOX |
---|
| 1107 | ## ---------------- ## |
---|
| 1108 | ## Cache variables. ## |
---|
| 1109 | ## ---------------- ## |
---|
| 1110 | _ASBOX |
---|
| 1111 | echo |
---|
| 1112 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1113 | { |
---|
| 1114 | (set) 2>&1 | |
---|
| 1115 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1116 | *ac_space=\ *) |
---|
| 1117 | sed -n \ |
---|
| 1118 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1120 | ;; |
---|
| 1121 | *) |
---|
| 1122 | sed -n \ |
---|
| 1123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1124 | ;; |
---|
| 1125 | esac; |
---|
| 1126 | } |
---|
| 1127 | echo |
---|
| 1128 | |
---|
| 1129 | cat <<\_ASBOX |
---|
| 1130 | ## ----------------- ## |
---|
| 1131 | ## Output variables. ## |
---|
| 1132 | ## ----------------- ## |
---|
| 1133 | _ASBOX |
---|
| 1134 | echo |
---|
| 1135 | for ac_var in $ac_subst_vars |
---|
| 1136 | do |
---|
| 1137 | eval ac_val=$`echo $ac_var` |
---|
| 1138 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1139 | done | sort |
---|
| 1140 | echo |
---|
| 1141 | |
---|
| 1142 | if test -n "$ac_subst_files"; then |
---|
| 1143 | cat <<\_ASBOX |
---|
| 1144 | ## ------------- ## |
---|
| 1145 | ## Output files. ## |
---|
| 1146 | ## ------------- ## |
---|
| 1147 | _ASBOX |
---|
| 1148 | echo |
---|
| 1149 | for ac_var in $ac_subst_files |
---|
| 1150 | do |
---|
| 1151 | eval ac_val=$`echo $ac_var` |
---|
| 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1153 | done | sort |
---|
| 1154 | echo |
---|
| 1155 | fi |
---|
| 1156 | |
---|
| 1157 | if test -s confdefs.h; then |
---|
| 1158 | cat <<\_ASBOX |
---|
| 1159 | ## ----------- ## |
---|
| 1160 | ## confdefs.h. ## |
---|
| 1161 | ## ----------- ## |
---|
| 1162 | _ASBOX |
---|
| 1163 | echo |
---|
| 1164 | sed "/^$/d" confdefs.h | sort |
---|
| 1165 | echo |
---|
| 1166 | fi |
---|
| 1167 | test "$ac_signal" != 0 && |
---|
| 1168 | echo "$as_me: caught signal $ac_signal" |
---|
| 1169 | echo "$as_me: exit $exit_status" |
---|
| 1170 | } >&5 |
---|
| 1171 | rm -f core *.core && |
---|
| 1172 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1173 | exit $exit_status |
---|
| 1174 | ' 0 |
---|
| 1175 | for ac_signal in 1 2 13 15; do |
---|
| 1176 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1177 | done |
---|
| 1178 | ac_signal=0 |
---|
| 1179 | |
---|
| 1180 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1181 | rm -rf conftest* confdefs.h |
---|
| 1182 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1183 | echo >confdefs.h |
---|
| 1184 | |
---|
| 1185 | # Predefined preprocessor variables. |
---|
| 1186 | |
---|
| 1187 | cat >>confdefs.h <<_ACEOF |
---|
| 1188 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1189 | _ACEOF |
---|
| 1190 | |
---|
| 1191 | |
---|
| 1192 | cat >>confdefs.h <<_ACEOF |
---|
| 1193 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1194 | _ACEOF |
---|
| 1195 | |
---|
| 1196 | |
---|
| 1197 | cat >>confdefs.h <<_ACEOF |
---|
| 1198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1199 | _ACEOF |
---|
| 1200 | |
---|
| 1201 | |
---|
| 1202 | cat >>confdefs.h <<_ACEOF |
---|
| 1203 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1204 | _ACEOF |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | cat >>confdefs.h <<_ACEOF |
---|
| 1208 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1209 | _ACEOF |
---|
| 1210 | |
---|
| 1211 | |
---|
| 1212 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1213 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1214 | if test -z "$CONFIG_SITE"; then |
---|
| 1215 | if test "x$prefix" != xNONE; then |
---|
| 1216 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1217 | else |
---|
| 1218 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1219 | fi |
---|
| 1220 | fi |
---|
| 1221 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1222 | if test -r "$ac_site_file"; then |
---|
| 1223 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1224 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1225 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1226 | . "$ac_site_file" |
---|
| 1227 | fi |
---|
| 1228 | done |
---|
| 1229 | |
---|
| 1230 | if test -r "$cache_file"; then |
---|
| 1231 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1232 | # files actually), so we avoid doing that. |
---|
| 1233 | if test -f "$cache_file"; then |
---|
| 1234 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1235 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1236 | case $cache_file in |
---|
| 1237 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1238 | *) . ./$cache_file;; |
---|
| 1239 | esac |
---|
| 1240 | fi |
---|
| 1241 | else |
---|
| 1242 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1243 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1244 | >$cache_file |
---|
| 1245 | fi |
---|
| 1246 | |
---|
| 1247 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1248 | # value. |
---|
| 1249 | ac_cache_corrupted=false |
---|
| 1250 | for ac_var in `(set) 2>&1 | |
---|
| 1251 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1252 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1253 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1254 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1255 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1256 | case $ac_old_set,$ac_new_set in |
---|
| 1257 | set,) |
---|
| 1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1259 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1260 | ac_cache_corrupted=: ;; |
---|
| 1261 | ,set) |
---|
| 1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1263 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1264 | ac_cache_corrupted=: ;; |
---|
| 1265 | ,);; |
---|
| 1266 | *) |
---|
| 1267 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1269 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1270 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1271 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1272 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1273 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1274 | ac_cache_corrupted=: |
---|
| 1275 | fi;; |
---|
| 1276 | esac |
---|
| 1277 | # Pass precious variables to config.status. |
---|
| 1278 | if test "$ac_new_set" = set; then |
---|
| 1279 | case $ac_new_val in |
---|
| 1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1281 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1282 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1283 | esac |
---|
| 1284 | case " $ac_configure_args " in |
---|
| 1285 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1286 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1287 | esac |
---|
| 1288 | fi |
---|
| 1289 | done |
---|
| 1290 | if $ac_cache_corrupted; then |
---|
| 1291 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1292 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1293 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1294 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1295 | { (exit 1); exit 1; }; } |
---|
| 1296 | fi |
---|
| 1297 | |
---|
| 1298 | ac_ext=c |
---|
| 1299 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1303 | |
---|
| 1304 | |
---|
| 1305 | |
---|
| 1306 | |
---|
| 1307 | |
---|
| 1308 | |
---|
| 1309 | |
---|
| 1310 | |
---|
| 1311 | |
---|
| 1312 | |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
[2980] | 1330 | |
---|
| 1331 | # Detect the canonical host and target build environment. |
---|
[1956] | 1332 | ac_aux_dir= |
---|
| 1333 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1334 | if test -f $ac_dir/install-sh; then |
---|
| 1335 | ac_aux_dir=$ac_dir |
---|
| 1336 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1337 | break |
---|
| 1338 | elif test -f $ac_dir/install.sh; then |
---|
| 1339 | ac_aux_dir=$ac_dir |
---|
| 1340 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1341 | break |
---|
| 1342 | elif test -f $ac_dir/shtool; then |
---|
| 1343 | ac_aux_dir=$ac_dir |
---|
| 1344 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1345 | break |
---|
| 1346 | fi |
---|
| 1347 | done |
---|
| 1348 | if test -z "$ac_aux_dir"; then |
---|
| 1349 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1350 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1351 | { (exit 1); exit 1; }; } |
---|
| 1352 | fi |
---|
| 1353 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1354 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1355 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1356 | |
---|
[2980] | 1357 | # Make sure we can run config.sub. |
---|
| 1358 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1359 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1360 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1361 | { (exit 1); exit 1; }; } |
---|
| 1362 | |
---|
| 1363 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1364 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1365 | if test "${ac_cv_build+set}" = set; then |
---|
| 1366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1367 | else |
---|
| 1368 | ac_cv_build_alias=$build_alias |
---|
| 1369 | test -z "$ac_cv_build_alias" && |
---|
| 1370 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1371 | test -z "$ac_cv_build_alias" && |
---|
| 1372 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1373 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1374 | { (exit 1); exit 1; }; } |
---|
| 1375 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1376 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1377 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1378 | { (exit 1); exit 1; }; } |
---|
| 1379 | |
---|
| 1380 | fi |
---|
| 1381 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1382 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1383 | build=$ac_cv_build |
---|
| 1384 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1385 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1386 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1387 | |
---|
| 1388 | |
---|
| 1389 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1390 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1391 | if test "${ac_cv_host+set}" = set; then |
---|
| 1392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1393 | else |
---|
| 1394 | ac_cv_host_alias=$host_alias |
---|
| 1395 | test -z "$ac_cv_host_alias" && |
---|
| 1396 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1397 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1398 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1399 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1400 | { (exit 1); exit 1; }; } |
---|
| 1401 | |
---|
| 1402 | fi |
---|
| 1403 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1404 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1405 | host=$ac_cv_host |
---|
| 1406 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1407 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1408 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1409 | |
---|
| 1410 | |
---|
| 1411 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1412 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1413 | if test "${ac_cv_target+set}" = set; then |
---|
| 1414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1415 | else |
---|
| 1416 | ac_cv_target_alias=$target_alias |
---|
| 1417 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1418 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1419 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1420 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1421 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1422 | { (exit 1); exit 1; }; } |
---|
| 1423 | |
---|
| 1424 | fi |
---|
| 1425 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1426 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1427 | target=$ac_cv_target |
---|
| 1428 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1429 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1430 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1431 | |
---|
| 1432 | |
---|
| 1433 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1434 | # will get canonicalized. |
---|
| 1435 | test -n "$target_alias" && |
---|
| 1436 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1437 | NONENONEs,x,x, && |
---|
| 1438 | program_prefix=${target_alias}- |
---|
| 1439 | |
---|
| 1440 | |
---|
| 1441 | am__api_version="1.8" |
---|
[1956] | 1442 | # Find a good install program. We prefer a C program (faster), |
---|
| 1443 | # so one script is as good as another. But avoid the broken or |
---|
| 1444 | # incompatible versions: |
---|
| 1445 | # SysV /etc/install, /usr/sbin/install |
---|
| 1446 | # SunOS /usr/etc/install |
---|
| 1447 | # IRIX /sbin/install |
---|
| 1448 | # AIX /bin/install |
---|
| 1449 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1450 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1451 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1452 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1453 | # OS/2's system install, which has a completely different semantic |
---|
| 1454 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1455 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1456 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1457 | if test -z "$INSTALL"; then |
---|
| 1458 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1460 | else |
---|
| 1461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1462 | for as_dir in $PATH |
---|
| 1463 | do |
---|
| 1464 | IFS=$as_save_IFS |
---|
| 1465 | test -z "$as_dir" && as_dir=. |
---|
| 1466 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1467 | case $as_dir/ in |
---|
| 1468 | ./ | .// | /cC/* | \ |
---|
| 1469 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1470 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1471 | /usr/ucb/* ) ;; |
---|
| 1472 | *) |
---|
| 1473 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1474 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1475 | # by default. |
---|
| 1476 | for ac_prog in ginstall scoinst install; do |
---|
| 1477 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1478 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1479 | if test $ac_prog = install && |
---|
| 1480 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1481 | # AIX install. It has an incompatible calling convention. |
---|
| 1482 | : |
---|
| 1483 | elif test $ac_prog = install && |
---|
| 1484 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1485 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1486 | : |
---|
| 1487 | else |
---|
| 1488 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1489 | break 3 |
---|
| 1490 | fi |
---|
[1853] | 1491 | fi |
---|
[1956] | 1492 | done |
---|
| 1493 | done |
---|
| 1494 | ;; |
---|
| 1495 | esac |
---|
| 1496 | done |
---|
| 1497 | |
---|
| 1498 | |
---|
[1853] | 1499 | fi |
---|
[1956] | 1500 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1501 | INSTALL=$ac_cv_path_install |
---|
| 1502 | else |
---|
| 1503 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1504 | # path for INSTALL within a source directory, because that will |
---|
| 1505 | # break other packages using the cache if that directory is |
---|
| 1506 | # removed, or if the path is relative. |
---|
| 1507 | INSTALL=$ac_install_sh |
---|
| 1508 | fi |
---|
| 1509 | fi |
---|
| 1510 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1511 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1512 | |
---|
| 1513 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1514 | # It thinks the first close brace ends the variable substitution. |
---|
| 1515 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1516 | |
---|
| 1517 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1518 | |
---|
| 1519 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1520 | |
---|
| 1521 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1522 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1523 | # Just in case |
---|
| 1524 | sleep 1 |
---|
| 1525 | echo timestamp > conftest.file |
---|
| 1526 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1527 | # arguments. Must try -L first in case configure is actually a |
---|
| 1528 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1529 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1530 | # directory). |
---|
| 1531 | if ( |
---|
| 1532 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1533 | if test "$*" = "X"; then |
---|
| 1534 | # -L didn't work. |
---|
| 1535 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1536 | fi |
---|
| 1537 | rm -f conftest.file |
---|
| 1538 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1539 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1540 | |
---|
| 1541 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1542 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1543 | # broken ls alias from the environment. This has actually |
---|
| 1544 | # happened. Such a system could not be considered "sane". |
---|
| 1545 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1546 | alias in your environment" >&5 |
---|
| 1547 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1548 | alias in your environment" >&2;} |
---|
| 1549 | { (exit 1); exit 1; }; } |
---|
| 1550 | fi |
---|
| 1551 | |
---|
| 1552 | test "$2" = conftest.file |
---|
| 1553 | ) |
---|
| 1554 | then |
---|
| 1555 | # Ok. |
---|
| 1556 | : |
---|
[1853] | 1557 | else |
---|
[1956] | 1558 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1559 | Check your system clock" >&5 |
---|
| 1560 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1561 | Check your system clock" >&2;} |
---|
| 1562 | { (exit 1); exit 1; }; } |
---|
[1853] | 1563 | fi |
---|
[1956] | 1564 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1565 | echo "${ECHO_T}yes" >&6 |
---|
| 1566 | test "$program_prefix" != NONE && |
---|
| 1567 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1568 | # Use a double $ so make ignores it. |
---|
| 1569 | test "$program_suffix" != NONE && |
---|
| 1570 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1571 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1572 | # By default was `s,x,x', remove it if useless. |
---|
| 1573 | cat <<\_ACEOF >conftest.sed |
---|
| 1574 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1575 | _ACEOF |
---|
| 1576 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1577 | rm conftest.sed |
---|
[1853] | 1578 | |
---|
[1956] | 1579 | # expand $ac_aux_dir to an absolute path |
---|
| 1580 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1581 | |
---|
| 1582 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1583 | # Use eval to expand $SHELL |
---|
| 1584 | if eval "$MISSING --run true"; then |
---|
| 1585 | am_missing_run="$MISSING --run " |
---|
| 1586 | else |
---|
| 1587 | am_missing_run= |
---|
| 1588 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1589 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1590 | fi |
---|
| 1591 | |
---|
[2819] | 1592 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1593 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1594 | # argument. Indeed, we sometimes output rules like |
---|
| 1595 | # $(mkdir_p) $(somedir) |
---|
| 1596 | # where $(somedir) is conditionally defined. |
---|
| 1597 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1598 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1599 | mkdir_p='mkdir -p -- .' |
---|
| 1600 | else |
---|
| 1601 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1602 | # recognize any option. It will interpret all options as |
---|
| 1603 | # directories to create, and then abort because `.' already |
---|
| 1604 | # exists. |
---|
[2819] | 1605 | for d in ./-p ./--version; |
---|
[2706] | 1606 | do |
---|
| 1607 | test -d $d && rmdir $d |
---|
| 1608 | done |
---|
| 1609 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1610 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1611 | mkdir_p='$(mkinstalldirs)' |
---|
| 1612 | else |
---|
| 1613 | mkdir_p='$(install_sh) -d' |
---|
| 1614 | fi |
---|
| 1615 | fi |
---|
| 1616 | |
---|
[1956] | 1617 | for ac_prog in gawk mawk nawk awk |
---|
| 1618 | do |
---|
| 1619 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1620 | set dummy $ac_prog; ac_word=$2 |
---|
| 1621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1623 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1625 | else |
---|
| 1626 | if test -n "$AWK"; then |
---|
| 1627 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1628 | else |
---|
| 1629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1630 | for as_dir in $PATH |
---|
| 1631 | do |
---|
| 1632 | IFS=$as_save_IFS |
---|
| 1633 | test -z "$as_dir" && as_dir=. |
---|
| 1634 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1636 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1638 | break 2 |
---|
| 1639 | fi |
---|
| 1640 | done |
---|
| 1641 | done |
---|
| 1642 | |
---|
| 1643 | fi |
---|
| 1644 | fi |
---|
| 1645 | AWK=$ac_cv_prog_AWK |
---|
| 1646 | if test -n "$AWK"; then |
---|
| 1647 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1648 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1649 | else |
---|
| 1650 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1651 | echo "${ECHO_T}no" >&6 |
---|
| 1652 | fi |
---|
| 1653 | |
---|
| 1654 | test -n "$AWK" && break |
---|
| 1655 | done |
---|
| 1656 | |
---|
| 1657 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1658 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1659 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1660 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1662 | else |
---|
| 1663 | cat >conftest.make <<\_ACEOF |
---|
| 1664 | all: |
---|
| 1665 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1666 | _ACEOF |
---|
| 1667 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1668 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1669 | if test -n "$ac_maketemp"; then |
---|
| 1670 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1671 | else |
---|
| 1672 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1673 | fi |
---|
| 1674 | rm -f conftest.make |
---|
| 1675 | fi |
---|
| 1676 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1677 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1678 | echo "${ECHO_T}yes" >&6 |
---|
| 1679 | SET_MAKE= |
---|
| 1680 | else |
---|
| 1681 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1682 | echo "${ECHO_T}no" >&6 |
---|
| 1683 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1684 | fi |
---|
| 1685 | |
---|
| 1686 | rm -rf .tst 2>/dev/null |
---|
| 1687 | mkdir .tst 2>/dev/null |
---|
| 1688 | if test -d .tst; then |
---|
| 1689 | am__leading_dot=. |
---|
| 1690 | else |
---|
| 1691 | am__leading_dot=_ |
---|
| 1692 | fi |
---|
| 1693 | rmdir .tst 2>/dev/null |
---|
| 1694 | |
---|
[2706] | 1695 | # test to see if srcdir already configured |
---|
[1956] | 1696 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1697 | test -f $srcdir/config.status; then |
---|
| 1698 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1699 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1700 | { (exit 1); exit 1; }; } |
---|
| 1701 | fi |
---|
| 1702 | |
---|
| 1703 | # test whether we have cygpath |
---|
| 1704 | if test -z "$CYGPATH_W"; then |
---|
| 1705 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1706 | CYGPATH_W='cygpath -w' |
---|
| 1707 | else |
---|
| 1708 | CYGPATH_W=echo |
---|
| 1709 | fi |
---|
| 1710 | fi |
---|
| 1711 | |
---|
| 1712 | |
---|
| 1713 | # Define the identity of the package. |
---|
| 1714 | PACKAGE='orxonox' |
---|
| 1715 | VERSION='0.1-pre-alpha' |
---|
| 1716 | |
---|
| 1717 | |
---|
| 1718 | cat >>confdefs.h <<_ACEOF |
---|
| 1719 | #define PACKAGE "$PACKAGE" |
---|
| 1720 | _ACEOF |
---|
| 1721 | |
---|
| 1722 | |
---|
| 1723 | cat >>confdefs.h <<_ACEOF |
---|
| 1724 | #define VERSION "$VERSION" |
---|
| 1725 | _ACEOF |
---|
| 1726 | |
---|
| 1727 | # Some tools Automake needs. |
---|
| 1728 | |
---|
| 1729 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1730 | |
---|
| 1731 | |
---|
| 1732 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1733 | |
---|
| 1734 | |
---|
| 1735 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1736 | |
---|
| 1737 | |
---|
| 1738 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1739 | |
---|
| 1740 | |
---|
| 1741 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1742 | |
---|
| 1743 | |
---|
| 1744 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1745 | |
---|
| 1746 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1747 | |
---|
| 1748 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1749 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1750 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1751 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1752 | if test "$cross_compiling" != no; then |
---|
| 1753 | if test -n "$ac_tool_prefix"; then |
---|
| 1754 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1755 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1758 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1760 | else |
---|
| 1761 | if test -n "$STRIP"; then |
---|
| 1762 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1763 | else |
---|
| 1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1765 | for as_dir in $PATH |
---|
| 1766 | do |
---|
| 1767 | IFS=$as_save_IFS |
---|
| 1768 | test -z "$as_dir" && as_dir=. |
---|
| 1769 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1771 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1773 | break 2 |
---|
| 1774 | fi |
---|
| 1775 | done |
---|
| 1776 | done |
---|
| 1777 | |
---|
| 1778 | fi |
---|
| 1779 | fi |
---|
| 1780 | STRIP=$ac_cv_prog_STRIP |
---|
| 1781 | if test -n "$STRIP"; then |
---|
| 1782 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1783 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1784 | else |
---|
| 1785 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1786 | echo "${ECHO_T}no" >&6 |
---|
| 1787 | fi |
---|
| 1788 | |
---|
| 1789 | fi |
---|
| 1790 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1791 | ac_ct_STRIP=$STRIP |
---|
| 1792 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1793 | set dummy strip; ac_word=$2 |
---|
| 1794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1796 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1798 | else |
---|
| 1799 | if test -n "$ac_ct_STRIP"; then |
---|
| 1800 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1801 | else |
---|
| 1802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1803 | for as_dir in $PATH |
---|
| 1804 | do |
---|
| 1805 | IFS=$as_save_IFS |
---|
| 1806 | test -z "$as_dir" && as_dir=. |
---|
| 1807 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1809 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1811 | break 2 |
---|
| 1812 | fi |
---|
| 1813 | done |
---|
| 1814 | done |
---|
| 1815 | |
---|
| 1816 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1817 | fi |
---|
| 1818 | fi |
---|
| 1819 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1820 | if test -n "$ac_ct_STRIP"; then |
---|
| 1821 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1822 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1823 | else |
---|
| 1824 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1825 | echo "${ECHO_T}no" >&6 |
---|
| 1826 | fi |
---|
| 1827 | |
---|
| 1828 | STRIP=$ac_ct_STRIP |
---|
| 1829 | else |
---|
| 1830 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1831 | fi |
---|
| 1832 | |
---|
| 1833 | fi |
---|
| 1834 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1835 | |
---|
| 1836 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1837 | # some platforms. |
---|
| 1838 | |
---|
| 1839 | |
---|
| 1840 | |
---|
| 1841 | |
---|
[2627] | 1842 | |
---|
[1959] | 1843 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1844 | |
---|
| 1845 | |
---|
[2018] | 1846 | |
---|
[1956] | 1847 | # Checks for programs. |
---|
| 1848 | ac_ext=cc |
---|
| 1849 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1850 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1851 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1852 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1853 | if test -n "$ac_tool_prefix"; then |
---|
| 1854 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1855 | do |
---|
| 1856 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1857 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1860 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1862 | else |
---|
| 1863 | if test -n "$CXX"; then |
---|
| 1864 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1865 | else |
---|
| 1866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1867 | for as_dir in $PATH |
---|
| 1868 | do |
---|
| 1869 | IFS=$as_save_IFS |
---|
| 1870 | test -z "$as_dir" && as_dir=. |
---|
| 1871 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1873 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1875 | break 2 |
---|
| 1876 | fi |
---|
| 1877 | done |
---|
| 1878 | done |
---|
| 1879 | |
---|
| 1880 | fi |
---|
| 1881 | fi |
---|
| 1882 | CXX=$ac_cv_prog_CXX |
---|
| 1883 | if test -n "$CXX"; then |
---|
| 1884 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1885 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1886 | else |
---|
| 1887 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1888 | echo "${ECHO_T}no" >&6 |
---|
| 1889 | fi |
---|
| 1890 | |
---|
| 1891 | test -n "$CXX" && break |
---|
| 1892 | done |
---|
| 1893 | fi |
---|
| 1894 | if test -z "$CXX"; then |
---|
| 1895 | ac_ct_CXX=$CXX |
---|
| 1896 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1897 | do |
---|
| 1898 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1899 | set dummy $ac_prog; ac_word=$2 |
---|
| 1900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1902 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1904 | else |
---|
| 1905 | if test -n "$ac_ct_CXX"; then |
---|
| 1906 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1907 | else |
---|
| 1908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1909 | for as_dir in $PATH |
---|
| 1910 | do |
---|
| 1911 | IFS=$as_save_IFS |
---|
| 1912 | test -z "$as_dir" && as_dir=. |
---|
| 1913 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1915 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1917 | break 2 |
---|
| 1918 | fi |
---|
| 1919 | done |
---|
| 1920 | done |
---|
| 1921 | |
---|
| 1922 | fi |
---|
| 1923 | fi |
---|
| 1924 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1925 | if test -n "$ac_ct_CXX"; then |
---|
| 1926 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1927 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1928 | else |
---|
| 1929 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1930 | echo "${ECHO_T}no" >&6 |
---|
| 1931 | fi |
---|
| 1932 | |
---|
| 1933 | test -n "$ac_ct_CXX" && break |
---|
| 1934 | done |
---|
| 1935 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1936 | |
---|
| 1937 | CXX=$ac_ct_CXX |
---|
| 1938 | fi |
---|
| 1939 | |
---|
| 1940 | |
---|
| 1941 | # Provide some information about the compiler. |
---|
| 1942 | echo "$as_me:$LINENO:" \ |
---|
| 1943 | "checking for C++ compiler version" >&5 |
---|
| 1944 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1945 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1946 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1947 | ac_status=$? |
---|
| 1948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1949 | (exit $ac_status); } |
---|
| 1950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1951 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1952 | ac_status=$? |
---|
| 1953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1954 | (exit $ac_status); } |
---|
| 1955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1956 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1957 | ac_status=$? |
---|
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1959 | (exit $ac_status); } |
---|
| 1960 | |
---|
| 1961 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1962 | /* confdefs.h. */ |
---|
| 1963 | _ACEOF |
---|
| 1964 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1965 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1966 | /* end confdefs.h. */ |
---|
| 1967 | |
---|
| 1968 | int |
---|
| 1969 | main () |
---|
| 1970 | { |
---|
| 1971 | |
---|
| 1972 | ; |
---|
| 1973 | return 0; |
---|
| 1974 | } |
---|
| 1975 | _ACEOF |
---|
| 1976 | ac_clean_files_save=$ac_clean_files |
---|
| 1977 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1978 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1979 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1980 | # of exeext. |
---|
| 1981 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1982 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1983 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1984 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1985 | (eval $ac_link_default) 2>&5 |
---|
| 1986 | ac_status=$? |
---|
| 1987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1988 | (exit $ac_status); }; then |
---|
| 1989 | # Find the output, starting from the most likely. This scheme is |
---|
| 1990 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1991 | # resort. |
---|
| 1992 | |
---|
| 1993 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1994 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1995 | ac_cv_exeext= |
---|
| 1996 | # b.out is created by i960 compilers. |
---|
| 1997 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1998 | do |
---|
| 1999 | test -f "$ac_file" || continue |
---|
| 2000 | case $ac_file in |
---|
| 2001 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2002 | ;; |
---|
| 2003 | conftest.$ac_ext ) |
---|
| 2004 | # This is the source file. |
---|
| 2005 | ;; |
---|
| 2006 | [ab].out ) |
---|
| 2007 | # We found the default executable, but exeext='' is most |
---|
| 2008 | # certainly right. |
---|
| 2009 | break;; |
---|
| 2010 | *.* ) |
---|
| 2011 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2012 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2013 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2014 | # maintain Libtool? --akim. |
---|
| 2015 | export ac_cv_exeext |
---|
| 2016 | break;; |
---|
| 2017 | * ) |
---|
| 2018 | break;; |
---|
| 2019 | esac |
---|
| 2020 | done |
---|
| 2021 | else |
---|
| 2022 | echo "$as_me: failed program was:" >&5 |
---|
| 2023 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2024 | |
---|
| 2025 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2026 | See \`config.log' for more details." >&5 |
---|
| 2027 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2028 | See \`config.log' for more details." >&2;} |
---|
| 2029 | { (exit 77); exit 77; }; } |
---|
| 2030 | fi |
---|
| 2031 | |
---|
| 2032 | ac_exeext=$ac_cv_exeext |
---|
| 2033 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2034 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2035 | |
---|
| 2036 | # Check the compiler produces executables we can run. If not, either |
---|
| 2037 | # the compiler is broken, or we cross compile. |
---|
| 2038 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2039 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2040 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2041 | # If not cross compiling, check that we can run a simple program. |
---|
| 2042 | if test "$cross_compiling" != yes; then |
---|
| 2043 | if { ac_try='./$ac_file' |
---|
| 2044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2045 | (eval $ac_try) 2>&5 |
---|
| 2046 | ac_status=$? |
---|
| 2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2048 | (exit $ac_status); }; }; then |
---|
| 2049 | cross_compiling=no |
---|
| 2050 | else |
---|
| 2051 | if test "$cross_compiling" = maybe; then |
---|
| 2052 | cross_compiling=yes |
---|
| 2053 | else |
---|
| 2054 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2055 | If you meant to cross compile, use \`--host'. |
---|
| 2056 | See \`config.log' for more details." >&5 |
---|
| 2057 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2058 | If you meant to cross compile, use \`--host'. |
---|
| 2059 | See \`config.log' for more details." >&2;} |
---|
| 2060 | { (exit 1); exit 1; }; } |
---|
| 2061 | fi |
---|
| 2062 | fi |
---|
| 2063 | fi |
---|
| 2064 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2065 | echo "${ECHO_T}yes" >&6 |
---|
| 2066 | |
---|
| 2067 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2068 | ac_clean_files=$ac_clean_files_save |
---|
| 2069 | # Check the compiler produces executables we can run. If not, either |
---|
| 2070 | # the compiler is broken, or we cross compile. |
---|
| 2071 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2072 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2073 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2074 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2075 | |
---|
| 2076 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2077 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2079 | (eval $ac_link) 2>&5 |
---|
| 2080 | ac_status=$? |
---|
| 2081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2082 | (exit $ac_status); }; then |
---|
| 2083 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2084 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2085 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2086 | # `rm'. |
---|
| 2087 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2088 | test -f "$ac_file" || continue |
---|
| 2089 | case $ac_file in |
---|
| 2090 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2091 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2092 | export ac_cv_exeext |
---|
| 2093 | break;; |
---|
| 2094 | * ) break;; |
---|
| 2095 | esac |
---|
| 2096 | done |
---|
| 2097 | else |
---|
| 2098 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2099 | See \`config.log' for more details." >&5 |
---|
| 2100 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2101 | See \`config.log' for more details." >&2;} |
---|
| 2102 | { (exit 1); exit 1; }; } |
---|
| 2103 | fi |
---|
| 2104 | |
---|
| 2105 | rm -f conftest$ac_cv_exeext |
---|
| 2106 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2107 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2108 | |
---|
| 2109 | rm -f conftest.$ac_ext |
---|
| 2110 | EXEEXT=$ac_cv_exeext |
---|
| 2111 | ac_exeext=$EXEEXT |
---|
| 2112 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2113 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2114 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2116 | else |
---|
| 2117 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2118 | /* confdefs.h. */ |
---|
| 2119 | _ACEOF |
---|
| 2120 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2121 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2122 | /* end confdefs.h. */ |
---|
| 2123 | |
---|
| 2124 | int |
---|
| 2125 | main () |
---|
| 2126 | { |
---|
| 2127 | |
---|
| 2128 | ; |
---|
| 2129 | return 0; |
---|
| 2130 | } |
---|
| 2131 | _ACEOF |
---|
| 2132 | rm -f conftest.o conftest.obj |
---|
| 2133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2134 | (eval $ac_compile) 2>&5 |
---|
| 2135 | ac_status=$? |
---|
| 2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2137 | (exit $ac_status); }; then |
---|
| 2138 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2139 | case $ac_file in |
---|
| 2140 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2141 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2142 | break;; |
---|
| 2143 | esac |
---|
| 2144 | done |
---|
| 2145 | else |
---|
| 2146 | echo "$as_me: failed program was:" >&5 |
---|
| 2147 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2148 | |
---|
| 2149 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2150 | See \`config.log' for more details." >&5 |
---|
| 2151 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2152 | See \`config.log' for more details." >&2;} |
---|
| 2153 | { (exit 1); exit 1; }; } |
---|
| 2154 | fi |
---|
| 2155 | |
---|
| 2156 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2157 | fi |
---|
| 2158 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2159 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2160 | OBJEXT=$ac_cv_objext |
---|
| 2161 | ac_objext=$OBJEXT |
---|
| 2162 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2163 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2164 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2166 | else |
---|
| 2167 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2168 | /* confdefs.h. */ |
---|
| 2169 | _ACEOF |
---|
| 2170 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2171 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2172 | /* end confdefs.h. */ |
---|
| 2173 | |
---|
| 2174 | int |
---|
| 2175 | main () |
---|
| 2176 | { |
---|
| 2177 | #ifndef __GNUC__ |
---|
| 2178 | choke me |
---|
| 2179 | #endif |
---|
| 2180 | |
---|
| 2181 | ; |
---|
| 2182 | return 0; |
---|
| 2183 | } |
---|
| 2184 | _ACEOF |
---|
| 2185 | rm -f conftest.$ac_objext |
---|
| 2186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2187 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2188 | ac_status=$? |
---|
| 2189 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2190 | rm -f conftest.er1 |
---|
| 2191 | cat conftest.err >&5 |
---|
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2193 | (exit $ac_status); } && |
---|
| 2194 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2195 | || test ! -s conftest.err' |
---|
| 2196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2197 | (eval $ac_try) 2>&5 |
---|
| 2198 | ac_status=$? |
---|
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2200 | (exit $ac_status); }; } && |
---|
| 2201 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2203 | (eval $ac_try) 2>&5 |
---|
| 2204 | ac_status=$? |
---|
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2206 | (exit $ac_status); }; }; then |
---|
| 2207 | ac_compiler_gnu=yes |
---|
| 2208 | else |
---|
| 2209 | echo "$as_me: failed program was:" >&5 |
---|
| 2210 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2211 | |
---|
| 2212 | ac_compiler_gnu=no |
---|
| 2213 | fi |
---|
| 2214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2215 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2216 | |
---|
| 2217 | fi |
---|
| 2218 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2219 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2220 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2221 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2222 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2223 | CXXFLAGS="-g" |
---|
| 2224 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2225 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2226 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2228 | else |
---|
| 2229 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2230 | /* confdefs.h. */ |
---|
| 2231 | _ACEOF |
---|
| 2232 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2233 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2234 | /* end confdefs.h. */ |
---|
| 2235 | |
---|
| 2236 | int |
---|
| 2237 | main () |
---|
| 2238 | { |
---|
| 2239 | |
---|
| 2240 | ; |
---|
| 2241 | return 0; |
---|
| 2242 | } |
---|
| 2243 | _ACEOF |
---|
| 2244 | rm -f conftest.$ac_objext |
---|
| 2245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2246 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2247 | ac_status=$? |
---|
| 2248 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2249 | rm -f conftest.er1 |
---|
| 2250 | cat conftest.err >&5 |
---|
| 2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2252 | (exit $ac_status); } && |
---|
| 2253 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2254 | || test ! -s conftest.err' |
---|
| 2255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2256 | (eval $ac_try) 2>&5 |
---|
| 2257 | ac_status=$? |
---|
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2259 | (exit $ac_status); }; } && |
---|
| 2260 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2262 | (eval $ac_try) 2>&5 |
---|
| 2263 | ac_status=$? |
---|
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2265 | (exit $ac_status); }; }; then |
---|
| 2266 | ac_cv_prog_cxx_g=yes |
---|
| 2267 | else |
---|
| 2268 | echo "$as_me: failed program was:" >&5 |
---|
| 2269 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2270 | |
---|
| 2271 | ac_cv_prog_cxx_g=no |
---|
| 2272 | fi |
---|
| 2273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2274 | fi |
---|
| 2275 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2276 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2277 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2278 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2279 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2280 | if test "$GXX" = yes; then |
---|
| 2281 | CXXFLAGS="-g -O2" |
---|
| 2282 | else |
---|
| 2283 | CXXFLAGS="-g" |
---|
| 2284 | fi |
---|
| 2285 | else |
---|
| 2286 | if test "$GXX" = yes; then |
---|
| 2287 | CXXFLAGS="-O2" |
---|
| 2288 | else |
---|
| 2289 | CXXFLAGS= |
---|
| 2290 | fi |
---|
| 2291 | fi |
---|
| 2292 | for ac_declaration in \ |
---|
| 2293 | '' \ |
---|
| 2294 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2295 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2296 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2297 | 'extern "C" void exit (int);' \ |
---|
| 2298 | 'void exit (int);' |
---|
| 2299 | do |
---|
| 2300 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2301 | /* confdefs.h. */ |
---|
| 2302 | _ACEOF |
---|
| 2303 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2304 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2305 | /* end confdefs.h. */ |
---|
| 2306 | $ac_declaration |
---|
| 2307 | #include <stdlib.h> |
---|
| 2308 | int |
---|
| 2309 | main () |
---|
| 2310 | { |
---|
| 2311 | exit (42); |
---|
| 2312 | ; |
---|
| 2313 | return 0; |
---|
| 2314 | } |
---|
| 2315 | _ACEOF |
---|
| 2316 | rm -f conftest.$ac_objext |
---|
| 2317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2318 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2319 | ac_status=$? |
---|
| 2320 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2321 | rm -f conftest.er1 |
---|
| 2322 | cat conftest.err >&5 |
---|
| 2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2324 | (exit $ac_status); } && |
---|
| 2325 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2326 | || test ! -s conftest.err' |
---|
| 2327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2328 | (eval $ac_try) 2>&5 |
---|
| 2329 | ac_status=$? |
---|
| 2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2331 | (exit $ac_status); }; } && |
---|
| 2332 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2334 | (eval $ac_try) 2>&5 |
---|
| 2335 | ac_status=$? |
---|
| 2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2337 | (exit $ac_status); }; }; then |
---|
| 2338 | : |
---|
| 2339 | else |
---|
| 2340 | echo "$as_me: failed program was:" >&5 |
---|
| 2341 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2342 | |
---|
| 2343 | continue |
---|
| 2344 | fi |
---|
| 2345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2346 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2347 | /* confdefs.h. */ |
---|
| 2348 | _ACEOF |
---|
| 2349 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2350 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2351 | /* end confdefs.h. */ |
---|
| 2352 | $ac_declaration |
---|
| 2353 | int |
---|
| 2354 | main () |
---|
| 2355 | { |
---|
| 2356 | exit (42); |
---|
| 2357 | ; |
---|
| 2358 | return 0; |
---|
| 2359 | } |
---|
| 2360 | _ACEOF |
---|
| 2361 | rm -f conftest.$ac_objext |
---|
| 2362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2363 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2364 | ac_status=$? |
---|
| 2365 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2366 | rm -f conftest.er1 |
---|
| 2367 | cat conftest.err >&5 |
---|
| 2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2369 | (exit $ac_status); } && |
---|
| 2370 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2371 | || test ! -s conftest.err' |
---|
| 2372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2373 | (eval $ac_try) 2>&5 |
---|
| 2374 | ac_status=$? |
---|
| 2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2376 | (exit $ac_status); }; } && |
---|
| 2377 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2379 | (eval $ac_try) 2>&5 |
---|
| 2380 | ac_status=$? |
---|
| 2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2382 | (exit $ac_status); }; }; then |
---|
| 2383 | break |
---|
| 2384 | else |
---|
| 2385 | echo "$as_me: failed program was:" >&5 |
---|
| 2386 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2387 | |
---|
| 2388 | fi |
---|
| 2389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2390 | done |
---|
| 2391 | rm -f conftest* |
---|
| 2392 | if test -n "$ac_declaration"; then |
---|
| 2393 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2394 | echo $ac_declaration >>confdefs.h |
---|
| 2395 | echo '#endif' >>confdefs.h |
---|
| 2396 | fi |
---|
| 2397 | |
---|
| 2398 | ac_ext=c |
---|
| 2399 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2403 | DEPDIR="${am__leading_dot}deps" |
---|
| 2404 | |
---|
| 2405 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2406 | |
---|
| 2407 | |
---|
| 2408 | am_make=${MAKE-make} |
---|
| 2409 | cat > confinc << 'END' |
---|
| 2410 | am__doit: |
---|
| 2411 | @echo done |
---|
| 2412 | .PHONY: am__doit |
---|
| 2413 | END |
---|
| 2414 | # If we don't find an include directive, just comment out the code. |
---|
| 2415 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2416 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2417 | am__include="#" |
---|
| 2418 | am__quote= |
---|
| 2419 | _am_result=none |
---|
| 2420 | # First try GNU make style include. |
---|
| 2421 | echo "include confinc" > confmf |
---|
| 2422 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2423 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2424 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2425 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2426 | # case it prints its new name instead of `make'. |
---|
| 2427 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2428 | am__include=include |
---|
| 2429 | am__quote= |
---|
| 2430 | _am_result=GNU |
---|
| 2431 | fi |
---|
| 2432 | # Now try BSD make style include. |
---|
| 2433 | if test "$am__include" = "#"; then |
---|
| 2434 | echo '.include "confinc"' > confmf |
---|
| 2435 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2436 | am__include=.include |
---|
| 2437 | am__quote="\"" |
---|
| 2438 | _am_result=BSD |
---|
| 2439 | fi |
---|
| 2440 | fi |
---|
| 2441 | |
---|
| 2442 | |
---|
| 2443 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2444 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2445 | rm -f confinc confmf |
---|
| 2446 | |
---|
| 2447 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2448 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2449 | enableval="$enable_dependency_tracking" |
---|
| 2450 | |
---|
| 2451 | fi; |
---|
| 2452 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2453 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2454 | AMDEPBACKSLASH='\' |
---|
| 2455 | fi |
---|
| 2456 | |
---|
| 2457 | |
---|
| 2458 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2459 | AMDEP_TRUE= |
---|
| 2460 | AMDEP_FALSE='#' |
---|
| 2461 | else |
---|
| 2462 | AMDEP_TRUE='#' |
---|
| 2463 | AMDEP_FALSE= |
---|
| 2464 | fi |
---|
| 2465 | |
---|
| 2466 | |
---|
| 2467 | |
---|
| 2468 | |
---|
| 2469 | depcc="$CXX" am_compiler_list= |
---|
| 2470 | |
---|
| 2471 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2472 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2473 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2475 | else |
---|
| 2476 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2477 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2478 | # making bogus files that we don't know about and never remove. For |
---|
| 2479 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2480 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2481 | # in D'. |
---|
| 2482 | mkdir conftest.dir |
---|
| 2483 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2484 | # using a relative directory. |
---|
| 2485 | cp "$am_depcomp" conftest.dir |
---|
| 2486 | cd conftest.dir |
---|
| 2487 | # We will build objects and dependencies in a subdirectory because |
---|
| 2488 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2489 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2490 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2491 | # the current directory while Tru64 will put them in the object |
---|
| 2492 | # directory. |
---|
| 2493 | mkdir sub |
---|
| 2494 | |
---|
| 2495 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2496 | if test "$am_compiler_list" = ""; then |
---|
| 2497 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2498 | fi |
---|
| 2499 | for depmode in $am_compiler_list; do |
---|
| 2500 | # Setup a source with many dependencies, because some compilers |
---|
| 2501 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2502 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2503 | # |
---|
| 2504 | # We need to recreate these files for each test, as the compiler may |
---|
| 2505 | # overwrite some of them when testing with obscure command lines. |
---|
| 2506 | # This happens at least with the AIX C compiler. |
---|
| 2507 | : > sub/conftest.c |
---|
| 2508 | for i in 1 2 3 4 5 6; do |
---|
| 2509 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 2510 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2511 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2512 | touch sub/conftst$i.h |
---|
[1956] | 2513 | done |
---|
| 2514 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2515 | |
---|
| 2516 | case $depmode in |
---|
| 2517 | nosideeffect) |
---|
| 2518 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2519 | # only be used when explicitly requested |
---|
| 2520 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2521 | continue |
---|
| 2522 | else |
---|
| 2523 | break |
---|
| 2524 | fi |
---|
| 2525 | ;; |
---|
| 2526 | none) break ;; |
---|
| 2527 | esac |
---|
| 2528 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2529 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2530 | # handle `-M -o', and we need to detect this. |
---|
| 2531 | if depmode=$depmode \ |
---|
| 2532 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2533 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2534 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2535 | >/dev/null 2>conftest.err && |
---|
| 2536 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2537 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2538 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2539 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 2540 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2541 | # that says an option was ignored or not supported. |
---|
| 2542 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2543 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2544 | # The diagnosis changed in icc 8.0: |
---|
| 2545 | # icc: Command line remark: option '-MP' not supported |
---|
| 2546 | if (grep 'ignoring option' conftest.err || |
---|
| 2547 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2548 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2549 | break |
---|
| 2550 | fi |
---|
| 2551 | fi |
---|
| 2552 | done |
---|
| 2553 | |
---|
| 2554 | cd .. |
---|
| 2555 | rm -rf conftest.dir |
---|
| 2556 | else |
---|
| 2557 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2558 | fi |
---|
| 2559 | |
---|
| 2560 | fi |
---|
| 2561 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2562 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2563 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2564 | |
---|
| 2565 | |
---|
| 2566 | |
---|
| 2567 | if |
---|
| 2568 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2569 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2570 | am__fastdepCXX_TRUE= |
---|
| 2571 | am__fastdepCXX_FALSE='#' |
---|
| 2572 | else |
---|
| 2573 | am__fastdepCXX_TRUE='#' |
---|
| 2574 | am__fastdepCXX_FALSE= |
---|
| 2575 | fi |
---|
| 2576 | |
---|
| 2577 | |
---|
| 2578 | ac_ext=c |
---|
| 2579 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2583 | if test -n "$ac_tool_prefix"; then |
---|
| 2584 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2585 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2588 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2590 | else |
---|
| 2591 | if test -n "$CC"; then |
---|
| 2592 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2593 | else |
---|
| 2594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2595 | for as_dir in $PATH |
---|
| 2596 | do |
---|
| 2597 | IFS=$as_save_IFS |
---|
| 2598 | test -z "$as_dir" && as_dir=. |
---|
| 2599 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2601 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2603 | break 2 |
---|
| 2604 | fi |
---|
| 2605 | done |
---|
| 2606 | done |
---|
| 2607 | |
---|
| 2608 | fi |
---|
| 2609 | fi |
---|
| 2610 | CC=$ac_cv_prog_CC |
---|
| 2611 | if test -n "$CC"; then |
---|
| 2612 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2613 | echo "${ECHO_T}$CC" >&6 |
---|
| 2614 | else |
---|
| 2615 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2616 | echo "${ECHO_T}no" >&6 |
---|
| 2617 | fi |
---|
| 2618 | |
---|
| 2619 | fi |
---|
| 2620 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2621 | ac_ct_CC=$CC |
---|
| 2622 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2623 | set dummy gcc; ac_word=$2 |
---|
| 2624 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2626 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2628 | else |
---|
| 2629 | if test -n "$ac_ct_CC"; then |
---|
| 2630 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2631 | else |
---|
| 2632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2633 | for as_dir in $PATH |
---|
| 2634 | do |
---|
| 2635 | IFS=$as_save_IFS |
---|
| 2636 | test -z "$as_dir" && as_dir=. |
---|
| 2637 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2639 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2641 | break 2 |
---|
| 2642 | fi |
---|
| 2643 | done |
---|
| 2644 | done |
---|
| 2645 | |
---|
| 2646 | fi |
---|
| 2647 | fi |
---|
| 2648 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2649 | if test -n "$ac_ct_CC"; then |
---|
| 2650 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2651 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2652 | else |
---|
| 2653 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2654 | echo "${ECHO_T}no" >&6 |
---|
| 2655 | fi |
---|
| 2656 | |
---|
| 2657 | CC=$ac_ct_CC |
---|
| 2658 | else |
---|
| 2659 | CC="$ac_cv_prog_CC" |
---|
| 2660 | fi |
---|
| 2661 | |
---|
| 2662 | if test -z "$CC"; then |
---|
| 2663 | if test -n "$ac_tool_prefix"; then |
---|
| 2664 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2665 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2668 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2670 | else |
---|
| 2671 | if test -n "$CC"; then |
---|
| 2672 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2673 | else |
---|
| 2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2675 | for as_dir in $PATH |
---|
| 2676 | do |
---|
| 2677 | IFS=$as_save_IFS |
---|
| 2678 | test -z "$as_dir" && as_dir=. |
---|
| 2679 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2681 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2683 | break 2 |
---|
| 2684 | fi |
---|
| 2685 | done |
---|
| 2686 | done |
---|
| 2687 | |
---|
| 2688 | fi |
---|
| 2689 | fi |
---|
| 2690 | CC=$ac_cv_prog_CC |
---|
| 2691 | if test -n "$CC"; then |
---|
| 2692 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2693 | echo "${ECHO_T}$CC" >&6 |
---|
| 2694 | else |
---|
| 2695 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2696 | echo "${ECHO_T}no" >&6 |
---|
| 2697 | fi |
---|
| 2698 | |
---|
| 2699 | fi |
---|
| 2700 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2701 | ac_ct_CC=$CC |
---|
| 2702 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2703 | set dummy cc; ac_word=$2 |
---|
| 2704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2706 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2708 | else |
---|
| 2709 | if test -n "$ac_ct_CC"; then |
---|
| 2710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2711 | else |
---|
| 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2713 | for as_dir in $PATH |
---|
| 2714 | do |
---|
| 2715 | IFS=$as_save_IFS |
---|
| 2716 | test -z "$as_dir" && as_dir=. |
---|
| 2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2719 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2721 | break 2 |
---|
| 2722 | fi |
---|
| 2723 | done |
---|
| 2724 | done |
---|
| 2725 | |
---|
| 2726 | fi |
---|
| 2727 | fi |
---|
| 2728 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2729 | if test -n "$ac_ct_CC"; then |
---|
| 2730 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2731 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2732 | else |
---|
| 2733 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2734 | echo "${ECHO_T}no" >&6 |
---|
| 2735 | fi |
---|
| 2736 | |
---|
| 2737 | CC=$ac_ct_CC |
---|
| 2738 | else |
---|
| 2739 | CC="$ac_cv_prog_CC" |
---|
| 2740 | fi |
---|
| 2741 | |
---|
| 2742 | fi |
---|
| 2743 | if test -z "$CC"; then |
---|
| 2744 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2745 | set dummy cc; ac_word=$2 |
---|
| 2746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2748 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2750 | else |
---|
| 2751 | if test -n "$CC"; then |
---|
| 2752 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2753 | else |
---|
| 2754 | ac_prog_rejected=no |
---|
| 2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2756 | for as_dir in $PATH |
---|
| 2757 | do |
---|
| 2758 | IFS=$as_save_IFS |
---|
| 2759 | test -z "$as_dir" && as_dir=. |
---|
| 2760 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2762 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2763 | ac_prog_rejected=yes |
---|
| 2764 | continue |
---|
| 2765 | fi |
---|
| 2766 | ac_cv_prog_CC="cc" |
---|
| 2767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2768 | break 2 |
---|
| 2769 | fi |
---|
| 2770 | done |
---|
| 2771 | done |
---|
| 2772 | |
---|
| 2773 | if test $ac_prog_rejected = yes; then |
---|
| 2774 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2775 | set dummy $ac_cv_prog_CC |
---|
| 2776 | shift |
---|
| 2777 | if test $# != 0; then |
---|
| 2778 | # We chose a different compiler from the bogus one. |
---|
| 2779 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2780 | # first if we set CC to just the basename; use the full file name. |
---|
| 2781 | shift |
---|
| 2782 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2783 | fi |
---|
| 2784 | fi |
---|
| 2785 | fi |
---|
| 2786 | fi |
---|
| 2787 | CC=$ac_cv_prog_CC |
---|
| 2788 | if test -n "$CC"; then |
---|
| 2789 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2790 | echo "${ECHO_T}$CC" >&6 |
---|
| 2791 | else |
---|
| 2792 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2793 | echo "${ECHO_T}no" >&6 |
---|
| 2794 | fi |
---|
| 2795 | |
---|
| 2796 | fi |
---|
| 2797 | if test -z "$CC"; then |
---|
| 2798 | if test -n "$ac_tool_prefix"; then |
---|
| 2799 | for ac_prog in cl |
---|
| 2800 | do |
---|
| 2801 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2802 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2805 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2807 | else |
---|
| 2808 | if test -n "$CC"; then |
---|
| 2809 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2810 | else |
---|
| 2811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2812 | for as_dir in $PATH |
---|
| 2813 | do |
---|
| 2814 | IFS=$as_save_IFS |
---|
| 2815 | test -z "$as_dir" && as_dir=. |
---|
| 2816 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2818 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2820 | break 2 |
---|
| 2821 | fi |
---|
| 2822 | done |
---|
| 2823 | done |
---|
| 2824 | |
---|
| 2825 | fi |
---|
| 2826 | fi |
---|
| 2827 | CC=$ac_cv_prog_CC |
---|
| 2828 | if test -n "$CC"; then |
---|
| 2829 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2830 | echo "${ECHO_T}$CC" >&6 |
---|
| 2831 | else |
---|
| 2832 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2833 | echo "${ECHO_T}no" >&6 |
---|
| 2834 | fi |
---|
| 2835 | |
---|
| 2836 | test -n "$CC" && break |
---|
| 2837 | done |
---|
| 2838 | fi |
---|
| 2839 | if test -z "$CC"; then |
---|
| 2840 | ac_ct_CC=$CC |
---|
| 2841 | for ac_prog in cl |
---|
| 2842 | do |
---|
| 2843 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2844 | set dummy $ac_prog; ac_word=$2 |
---|
| 2845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2847 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2849 | else |
---|
| 2850 | if test -n "$ac_ct_CC"; then |
---|
| 2851 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2852 | else |
---|
| 2853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2854 | for as_dir in $PATH |
---|
| 2855 | do |
---|
| 2856 | IFS=$as_save_IFS |
---|
| 2857 | test -z "$as_dir" && as_dir=. |
---|
| 2858 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2860 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2862 | break 2 |
---|
| 2863 | fi |
---|
| 2864 | done |
---|
| 2865 | done |
---|
| 2866 | |
---|
| 2867 | fi |
---|
| 2868 | fi |
---|
| 2869 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2870 | if test -n "$ac_ct_CC"; then |
---|
| 2871 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2872 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2873 | else |
---|
| 2874 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2875 | echo "${ECHO_T}no" >&6 |
---|
| 2876 | fi |
---|
| 2877 | |
---|
| 2878 | test -n "$ac_ct_CC" && break |
---|
| 2879 | done |
---|
| 2880 | |
---|
| 2881 | CC=$ac_ct_CC |
---|
| 2882 | fi |
---|
| 2883 | |
---|
| 2884 | fi |
---|
| 2885 | |
---|
| 2886 | |
---|
| 2887 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2888 | See \`config.log' for more details." >&5 |
---|
| 2889 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2890 | See \`config.log' for more details." >&2;} |
---|
| 2891 | { (exit 1); exit 1; }; } |
---|
| 2892 | |
---|
| 2893 | # Provide some information about the compiler. |
---|
| 2894 | echo "$as_me:$LINENO:" \ |
---|
| 2895 | "checking for C compiler version" >&5 |
---|
| 2896 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2897 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2898 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2899 | ac_status=$? |
---|
| 2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2901 | (exit $ac_status); } |
---|
| 2902 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2903 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2904 | ac_status=$? |
---|
| 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2906 | (exit $ac_status); } |
---|
| 2907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2908 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2909 | ac_status=$? |
---|
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2911 | (exit $ac_status); } |
---|
| 2912 | |
---|
| 2913 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2914 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2915 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2917 | else |
---|
| 2918 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2919 | /* confdefs.h. */ |
---|
| 2920 | _ACEOF |
---|
| 2921 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2922 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2923 | /* end confdefs.h. */ |
---|
| 2924 | |
---|
| 2925 | int |
---|
| 2926 | main () |
---|
| 2927 | { |
---|
| 2928 | #ifndef __GNUC__ |
---|
| 2929 | choke me |
---|
| 2930 | #endif |
---|
| 2931 | |
---|
| 2932 | ; |
---|
| 2933 | return 0; |
---|
| 2934 | } |
---|
| 2935 | _ACEOF |
---|
| 2936 | rm -f conftest.$ac_objext |
---|
| 2937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2938 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2939 | ac_status=$? |
---|
| 2940 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2941 | rm -f conftest.er1 |
---|
| 2942 | cat conftest.err >&5 |
---|
| 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2944 | (exit $ac_status); } && |
---|
| 2945 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2946 | || test ! -s conftest.err' |
---|
| 2947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2948 | (eval $ac_try) 2>&5 |
---|
| 2949 | ac_status=$? |
---|
| 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2951 | (exit $ac_status); }; } && |
---|
| 2952 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2954 | (eval $ac_try) 2>&5 |
---|
| 2955 | ac_status=$? |
---|
| 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2957 | (exit $ac_status); }; }; then |
---|
| 2958 | ac_compiler_gnu=yes |
---|
| 2959 | else |
---|
| 2960 | echo "$as_me: failed program was:" >&5 |
---|
| 2961 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2962 | |
---|
| 2963 | ac_compiler_gnu=no |
---|
| 2964 | fi |
---|
| 2965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2966 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2967 | |
---|
| 2968 | fi |
---|
| 2969 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2970 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2971 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2972 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2973 | ac_save_CFLAGS=$CFLAGS |
---|
| 2974 | CFLAGS="-g" |
---|
| 2975 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2976 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2977 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2979 | else |
---|
| 2980 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2981 | /* confdefs.h. */ |
---|
| 2982 | _ACEOF |
---|
| 2983 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2985 | /* end confdefs.h. */ |
---|
| 2986 | |
---|
| 2987 | int |
---|
| 2988 | main () |
---|
| 2989 | { |
---|
| 2990 | |
---|
| 2991 | ; |
---|
| 2992 | return 0; |
---|
| 2993 | } |
---|
| 2994 | _ACEOF |
---|
| 2995 | rm -f conftest.$ac_objext |
---|
| 2996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2997 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2998 | ac_status=$? |
---|
| 2999 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3000 | rm -f conftest.er1 |
---|
| 3001 | cat conftest.err >&5 |
---|
| 3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3003 | (exit $ac_status); } && |
---|
| 3004 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3005 | || test ! -s conftest.err' |
---|
| 3006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3007 | (eval $ac_try) 2>&5 |
---|
| 3008 | ac_status=$? |
---|
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3010 | (exit $ac_status); }; } && |
---|
| 3011 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3013 | (eval $ac_try) 2>&5 |
---|
| 3014 | ac_status=$? |
---|
| 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3016 | (exit $ac_status); }; }; then |
---|
| 3017 | ac_cv_prog_cc_g=yes |
---|
| 3018 | else |
---|
| 3019 | echo "$as_me: failed program was:" >&5 |
---|
| 3020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3021 | |
---|
| 3022 | ac_cv_prog_cc_g=no |
---|
| 3023 | fi |
---|
| 3024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3025 | fi |
---|
| 3026 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3027 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3028 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3029 | CFLAGS=$ac_save_CFLAGS |
---|
| 3030 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3031 | if test "$GCC" = yes; then |
---|
| 3032 | CFLAGS="-g -O2" |
---|
| 3033 | else |
---|
| 3034 | CFLAGS="-g" |
---|
| 3035 | fi |
---|
| 3036 | else |
---|
| 3037 | if test "$GCC" = yes; then |
---|
| 3038 | CFLAGS="-O2" |
---|
| 3039 | else |
---|
| 3040 | CFLAGS= |
---|
| 3041 | fi |
---|
| 3042 | fi |
---|
| 3043 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3044 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3045 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3047 | else |
---|
| 3048 | ac_cv_prog_cc_stdc=no |
---|
| 3049 | ac_save_CC=$CC |
---|
| 3050 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3051 | /* confdefs.h. */ |
---|
| 3052 | _ACEOF |
---|
| 3053 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3055 | /* end confdefs.h. */ |
---|
| 3056 | #include <stdarg.h> |
---|
| 3057 | #include <stdio.h> |
---|
| 3058 | #include <sys/types.h> |
---|
| 3059 | #include <sys/stat.h> |
---|
| 3060 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3061 | struct buf { int x; }; |
---|
| 3062 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3063 | static char *e (p, i) |
---|
| 3064 | char **p; |
---|
| 3065 | int i; |
---|
| 3066 | { |
---|
| 3067 | return p[i]; |
---|
| 3068 | } |
---|
| 3069 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3070 | { |
---|
| 3071 | char *s; |
---|
| 3072 | va_list v; |
---|
| 3073 | va_start (v,p); |
---|
| 3074 | s = g (p, va_arg (v,int)); |
---|
| 3075 | va_end (v); |
---|
| 3076 | return s; |
---|
| 3077 | } |
---|
| 3078 | |
---|
| 3079 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3080 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3081 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3082 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3083 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3084 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3085 | that's true only with -std1. */ |
---|
| 3086 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3087 | |
---|
| 3088 | int test (int i, double x); |
---|
| 3089 | struct s1 {int (*f) (int a);}; |
---|
| 3090 | struct s2 {int (*f) (double a);}; |
---|
| 3091 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3092 | int argc; |
---|
| 3093 | char **argv; |
---|
| 3094 | int |
---|
| 3095 | main () |
---|
| 3096 | { |
---|
| 3097 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3098 | ; |
---|
| 3099 | return 0; |
---|
| 3100 | } |
---|
| 3101 | _ACEOF |
---|
| 3102 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3103 | # breaks some systems' header files. |
---|
| 3104 | # AIX -qlanglvl=ansi |
---|
| 3105 | # Ultrix and OSF/1 -std1 |
---|
| 3106 | # HP-UX 10.20 and later -Ae |
---|
| 3107 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3108 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3109 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3110 | do |
---|
| 3111 | CC="$ac_save_CC $ac_arg" |
---|
| 3112 | rm -f conftest.$ac_objext |
---|
| 3113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3114 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3115 | ac_status=$? |
---|
| 3116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3117 | rm -f conftest.er1 |
---|
| 3118 | cat conftest.err >&5 |
---|
| 3119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3120 | (exit $ac_status); } && |
---|
| 3121 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3122 | || test ! -s conftest.err' |
---|
| 3123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3124 | (eval $ac_try) 2>&5 |
---|
| 3125 | ac_status=$? |
---|
| 3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3127 | (exit $ac_status); }; } && |
---|
| 3128 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3130 | (eval $ac_try) 2>&5 |
---|
| 3131 | ac_status=$? |
---|
| 3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3133 | (exit $ac_status); }; }; then |
---|
| 3134 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3135 | break |
---|
| 3136 | else |
---|
| 3137 | echo "$as_me: failed program was:" >&5 |
---|
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3139 | |
---|
| 3140 | fi |
---|
| 3141 | rm -f conftest.err conftest.$ac_objext |
---|
| 3142 | done |
---|
| 3143 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3144 | CC=$ac_save_CC |
---|
| 3145 | |
---|
| 3146 | fi |
---|
| 3147 | |
---|
| 3148 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3149 | x|xno) |
---|
| 3150 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3151 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3152 | *) |
---|
| 3153 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3154 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3155 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3156 | esac |
---|
| 3157 | |
---|
| 3158 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3159 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3160 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3161 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3162 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3163 | #ifndef __cplusplus |
---|
| 3164 | choke me |
---|
| 3165 | #endif |
---|
| 3166 | _ACEOF |
---|
| 3167 | rm -f conftest.$ac_objext |
---|
| 3168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3169 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3170 | ac_status=$? |
---|
| 3171 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3172 | rm -f conftest.er1 |
---|
| 3173 | cat conftest.err >&5 |
---|
| 3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3175 | (exit $ac_status); } && |
---|
| 3176 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3177 | || test ! -s conftest.err' |
---|
| 3178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3179 | (eval $ac_try) 2>&5 |
---|
| 3180 | ac_status=$? |
---|
| 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3182 | (exit $ac_status); }; } && |
---|
| 3183 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3185 | (eval $ac_try) 2>&5 |
---|
| 3186 | ac_status=$? |
---|
| 3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3188 | (exit $ac_status); }; }; then |
---|
| 3189 | for ac_declaration in \ |
---|
| 3190 | '' \ |
---|
| 3191 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3192 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3193 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3194 | 'extern "C" void exit (int);' \ |
---|
| 3195 | 'void exit (int);' |
---|
| 3196 | do |
---|
| 3197 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3198 | /* confdefs.h. */ |
---|
| 3199 | _ACEOF |
---|
| 3200 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3202 | /* end confdefs.h. */ |
---|
| 3203 | $ac_declaration |
---|
| 3204 | #include <stdlib.h> |
---|
| 3205 | int |
---|
| 3206 | main () |
---|
| 3207 | { |
---|
| 3208 | exit (42); |
---|
| 3209 | ; |
---|
| 3210 | return 0; |
---|
| 3211 | } |
---|
| 3212 | _ACEOF |
---|
| 3213 | rm -f conftest.$ac_objext |
---|
| 3214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3215 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3216 | ac_status=$? |
---|
| 3217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3218 | rm -f conftest.er1 |
---|
| 3219 | cat conftest.err >&5 |
---|
| 3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3221 | (exit $ac_status); } && |
---|
| 3222 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3223 | || test ! -s conftest.err' |
---|
| 3224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3225 | (eval $ac_try) 2>&5 |
---|
| 3226 | ac_status=$? |
---|
| 3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3228 | (exit $ac_status); }; } && |
---|
| 3229 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3231 | (eval $ac_try) 2>&5 |
---|
| 3232 | ac_status=$? |
---|
| 3233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3234 | (exit $ac_status); }; }; then |
---|
| 3235 | : |
---|
| 3236 | else |
---|
| 3237 | echo "$as_me: failed program was:" >&5 |
---|
| 3238 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3239 | |
---|
| 3240 | continue |
---|
| 3241 | fi |
---|
| 3242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3243 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3244 | /* confdefs.h. */ |
---|
| 3245 | _ACEOF |
---|
| 3246 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3247 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3248 | /* end confdefs.h. */ |
---|
| 3249 | $ac_declaration |
---|
| 3250 | int |
---|
| 3251 | main () |
---|
| 3252 | { |
---|
| 3253 | exit (42); |
---|
| 3254 | ; |
---|
| 3255 | return 0; |
---|
| 3256 | } |
---|
| 3257 | _ACEOF |
---|
| 3258 | rm -f conftest.$ac_objext |
---|
| 3259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3260 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3261 | ac_status=$? |
---|
| 3262 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3263 | rm -f conftest.er1 |
---|
| 3264 | cat conftest.err >&5 |
---|
| 3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3266 | (exit $ac_status); } && |
---|
| 3267 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3268 | || test ! -s conftest.err' |
---|
| 3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3270 | (eval $ac_try) 2>&5 |
---|
| 3271 | ac_status=$? |
---|
| 3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3273 | (exit $ac_status); }; } && |
---|
| 3274 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3276 | (eval $ac_try) 2>&5 |
---|
| 3277 | ac_status=$? |
---|
| 3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3279 | (exit $ac_status); }; }; then |
---|
| 3280 | break |
---|
| 3281 | else |
---|
| 3282 | echo "$as_me: failed program was:" >&5 |
---|
| 3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3284 | |
---|
| 3285 | fi |
---|
| 3286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3287 | done |
---|
| 3288 | rm -f conftest* |
---|
| 3289 | if test -n "$ac_declaration"; then |
---|
| 3290 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3291 | echo $ac_declaration >>confdefs.h |
---|
| 3292 | echo '#endif' >>confdefs.h |
---|
| 3293 | fi |
---|
| 3294 | |
---|
| 3295 | else |
---|
| 3296 | echo "$as_me: failed program was:" >&5 |
---|
| 3297 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3298 | |
---|
| 3299 | fi |
---|
| 3300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3301 | ac_ext=c |
---|
| 3302 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3306 | |
---|
| 3307 | depcc="$CC" am_compiler_list= |
---|
| 3308 | |
---|
| 3309 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3310 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3311 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3313 | else |
---|
| 3314 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3315 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3316 | # making bogus files that we don't know about and never remove. For |
---|
| 3317 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3318 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3319 | # in D'. |
---|
| 3320 | mkdir conftest.dir |
---|
| 3321 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3322 | # using a relative directory. |
---|
| 3323 | cp "$am_depcomp" conftest.dir |
---|
| 3324 | cd conftest.dir |
---|
| 3325 | # We will build objects and dependencies in a subdirectory because |
---|
| 3326 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3327 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3328 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3329 | # the current directory while Tru64 will put them in the object |
---|
| 3330 | # directory. |
---|
| 3331 | mkdir sub |
---|
| 3332 | |
---|
| 3333 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3334 | if test "$am_compiler_list" = ""; then |
---|
| 3335 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3336 | fi |
---|
| 3337 | for depmode in $am_compiler_list; do |
---|
| 3338 | # Setup a source with many dependencies, because some compilers |
---|
| 3339 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3340 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3341 | # |
---|
| 3342 | # We need to recreate these files for each test, as the compiler may |
---|
| 3343 | # overwrite some of them when testing with obscure command lines. |
---|
| 3344 | # This happens at least with the AIX C compiler. |
---|
| 3345 | : > sub/conftest.c |
---|
| 3346 | for i in 1 2 3 4 5 6; do |
---|
| 3347 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 3348 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3349 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3350 | touch sub/conftst$i.h |
---|
[1956] | 3351 | done |
---|
| 3352 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3353 | |
---|
| 3354 | case $depmode in |
---|
| 3355 | nosideeffect) |
---|
| 3356 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3357 | # only be used when explicitly requested |
---|
| 3358 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3359 | continue |
---|
| 3360 | else |
---|
| 3361 | break |
---|
| 3362 | fi |
---|
| 3363 | ;; |
---|
| 3364 | none) break ;; |
---|
| 3365 | esac |
---|
| 3366 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3367 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3368 | # handle `-M -o', and we need to detect this. |
---|
| 3369 | if depmode=$depmode \ |
---|
| 3370 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3371 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3372 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3373 | >/dev/null 2>conftest.err && |
---|
| 3374 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3375 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3376 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3377 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 3378 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3379 | # that says an option was ignored or not supported. |
---|
| 3380 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3381 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3382 | # The diagnosis changed in icc 8.0: |
---|
| 3383 | # icc: Command line remark: option '-MP' not supported |
---|
| 3384 | if (grep 'ignoring option' conftest.err || |
---|
| 3385 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3386 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3387 | break |
---|
| 3388 | fi |
---|
| 3389 | fi |
---|
| 3390 | done |
---|
| 3391 | |
---|
| 3392 | cd .. |
---|
| 3393 | rm -rf conftest.dir |
---|
| 3394 | else |
---|
| 3395 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3396 | fi |
---|
| 3397 | |
---|
| 3398 | fi |
---|
| 3399 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3400 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3401 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3402 | |
---|
| 3403 | |
---|
| 3404 | |
---|
| 3405 | if |
---|
| 3406 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3407 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3408 | am__fastdepCC_TRUE= |
---|
| 3409 | am__fastdepCC_FALSE='#' |
---|
| 3410 | else |
---|
| 3411 | am__fastdepCC_TRUE='#' |
---|
| 3412 | am__fastdepCC_FALSE= |
---|
| 3413 | fi |
---|
| 3414 | |
---|
| 3415 | |
---|
| 3416 | |
---|
[1971] | 3417 | ac_ext=c |
---|
| 3418 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3422 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3423 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3424 | # On Suns, sometimes $CPP names a directory. |
---|
| 3425 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3426 | CPP= |
---|
| 3427 | fi |
---|
| 3428 | if test -z "$CPP"; then |
---|
| 3429 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3431 | else |
---|
[1971] | 3432 | # Double quotes because CPP needs to be expanded |
---|
| 3433 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3434 | do |
---|
| 3435 | ac_preproc_ok=false |
---|
| 3436 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3437 | do |
---|
| 3438 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3439 | # with a fresh cross-compiler works. |
---|
| 3440 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3441 | # <limits.h> exists even on freestanding compilers. |
---|
| 3442 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3443 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3444 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3445 | /* confdefs.h. */ |
---|
| 3446 | _ACEOF |
---|
| 3447 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3448 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3449 | /* end confdefs.h. */ |
---|
| 3450 | #ifdef __STDC__ |
---|
| 3451 | # include <limits.h> |
---|
| 3452 | #else |
---|
| 3453 | # include <assert.h> |
---|
| 3454 | #endif |
---|
| 3455 | Syntax error |
---|
| 3456 | _ACEOF |
---|
| 3457 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3459 | ac_status=$? |
---|
| 3460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3461 | rm -f conftest.er1 |
---|
| 3462 | cat conftest.err >&5 |
---|
| 3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3464 | (exit $ac_status); } >/dev/null; then |
---|
| 3465 | if test -s conftest.err; then |
---|
| 3466 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3467 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3468 | else |
---|
| 3469 | ac_cpp_err= |
---|
| 3470 | fi |
---|
| 3471 | else |
---|
| 3472 | ac_cpp_err=yes |
---|
| 3473 | fi |
---|
| 3474 | if test -z "$ac_cpp_err"; then |
---|
| 3475 | : |
---|
| 3476 | else |
---|
| 3477 | echo "$as_me: failed program was:" >&5 |
---|
| 3478 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3479 | |
---|
| 3480 | # Broken: fails on valid input. |
---|
| 3481 | continue |
---|
| 3482 | fi |
---|
| 3483 | rm -f conftest.err conftest.$ac_ext |
---|
| 3484 | |
---|
| 3485 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3486 | # can be detected and how. |
---|
| 3487 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3488 | /* confdefs.h. */ |
---|
| 3489 | _ACEOF |
---|
| 3490 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3491 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3492 | /* end confdefs.h. */ |
---|
| 3493 | #include <ac_nonexistent.h> |
---|
| 3494 | _ACEOF |
---|
| 3495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3497 | ac_status=$? |
---|
| 3498 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3499 | rm -f conftest.er1 |
---|
| 3500 | cat conftest.err >&5 |
---|
| 3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3502 | (exit $ac_status); } >/dev/null; then |
---|
| 3503 | if test -s conftest.err; then |
---|
| 3504 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3505 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3506 | else |
---|
| 3507 | ac_cpp_err= |
---|
| 3508 | fi |
---|
| 3509 | else |
---|
| 3510 | ac_cpp_err=yes |
---|
| 3511 | fi |
---|
| 3512 | if test -z "$ac_cpp_err"; then |
---|
| 3513 | # Broken: success on invalid input. |
---|
| 3514 | continue |
---|
| 3515 | else |
---|
| 3516 | echo "$as_me: failed program was:" >&5 |
---|
| 3517 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3518 | |
---|
| 3519 | # Passes both tests. |
---|
| 3520 | ac_preproc_ok=: |
---|
| 3521 | break |
---|
| 3522 | fi |
---|
| 3523 | rm -f conftest.err conftest.$ac_ext |
---|
| 3524 | |
---|
| 3525 | done |
---|
| 3526 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3527 | rm -f conftest.err conftest.$ac_ext |
---|
| 3528 | if $ac_preproc_ok; then |
---|
| 3529 | break |
---|
| 3530 | fi |
---|
| 3531 | |
---|
| 3532 | done |
---|
| 3533 | ac_cv_prog_CPP=$CPP |
---|
| 3534 | |
---|
| 3535 | fi |
---|
| 3536 | CPP=$ac_cv_prog_CPP |
---|
| 3537 | else |
---|
| 3538 | ac_cv_prog_CPP=$CPP |
---|
| 3539 | fi |
---|
| 3540 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3541 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3542 | ac_preproc_ok=false |
---|
| 3543 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3544 | do |
---|
| 3545 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3546 | # with a fresh cross-compiler works. |
---|
| 3547 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3548 | # <limits.h> exists even on freestanding compilers. |
---|
| 3549 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3550 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3551 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3552 | /* confdefs.h. */ |
---|
| 3553 | _ACEOF |
---|
| 3554 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3556 | /* end confdefs.h. */ |
---|
| 3557 | #ifdef __STDC__ |
---|
| 3558 | # include <limits.h> |
---|
| 3559 | #else |
---|
| 3560 | # include <assert.h> |
---|
| 3561 | #endif |
---|
| 3562 | Syntax error |
---|
| 3563 | _ACEOF |
---|
| 3564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3566 | ac_status=$? |
---|
| 3567 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3568 | rm -f conftest.er1 |
---|
| 3569 | cat conftest.err >&5 |
---|
| 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3571 | (exit $ac_status); } >/dev/null; then |
---|
| 3572 | if test -s conftest.err; then |
---|
| 3573 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3575 | else |
---|
| 3576 | ac_cpp_err= |
---|
| 3577 | fi |
---|
| 3578 | else |
---|
| 3579 | ac_cpp_err=yes |
---|
| 3580 | fi |
---|
| 3581 | if test -z "$ac_cpp_err"; then |
---|
| 3582 | : |
---|
| 3583 | else |
---|
| 3584 | echo "$as_me: failed program was:" >&5 |
---|
| 3585 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3586 | |
---|
| 3587 | # Broken: fails on valid input. |
---|
| 3588 | continue |
---|
| 3589 | fi |
---|
| 3590 | rm -f conftest.err conftest.$ac_ext |
---|
| 3591 | |
---|
| 3592 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3593 | # can be detected and how. |
---|
| 3594 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3595 | /* confdefs.h. */ |
---|
| 3596 | _ACEOF |
---|
| 3597 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3598 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3599 | /* end confdefs.h. */ |
---|
| 3600 | #include <ac_nonexistent.h> |
---|
| 3601 | _ACEOF |
---|
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3603 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3604 | ac_status=$? |
---|
| 3605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3606 | rm -f conftest.er1 |
---|
| 3607 | cat conftest.err >&5 |
---|
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3609 | (exit $ac_status); } >/dev/null; then |
---|
| 3610 | if test -s conftest.err; then |
---|
| 3611 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3612 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3613 | else |
---|
| 3614 | ac_cpp_err= |
---|
| 3615 | fi |
---|
| 3616 | else |
---|
| 3617 | ac_cpp_err=yes |
---|
| 3618 | fi |
---|
| 3619 | if test -z "$ac_cpp_err"; then |
---|
| 3620 | # Broken: success on invalid input. |
---|
| 3621 | continue |
---|
| 3622 | else |
---|
| 3623 | echo "$as_me: failed program was:" >&5 |
---|
| 3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3625 | |
---|
| 3626 | # Passes both tests. |
---|
| 3627 | ac_preproc_ok=: |
---|
| 3628 | break |
---|
| 3629 | fi |
---|
| 3630 | rm -f conftest.err conftest.$ac_ext |
---|
| 3631 | |
---|
| 3632 | done |
---|
| 3633 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3634 | rm -f conftest.err conftest.$ac_ext |
---|
| 3635 | if $ac_preproc_ok; then |
---|
| 3636 | : |
---|
| 3637 | else |
---|
| 3638 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3639 | See \`config.log' for more details." >&5 |
---|
| 3640 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3641 | See \`config.log' for more details." >&2;} |
---|
| 3642 | { (exit 1); exit 1; }; } |
---|
| 3643 | fi |
---|
| 3644 | |
---|
| 3645 | ac_ext=c |
---|
| 3646 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3650 | |
---|
| 3651 | |
---|
| 3652 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3653 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3654 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3656 | else |
---|
| 3657 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3658 | then ac_cv_prog_egrep='grep -E' |
---|
| 3659 | else ac_cv_prog_egrep='egrep' |
---|
| 3660 | fi |
---|
| 3661 | fi |
---|
| 3662 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3663 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3664 | EGREP=$ac_cv_prog_egrep |
---|
| 3665 | |
---|
| 3666 | |
---|
| 3667 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3668 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3669 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3671 | else |
---|
| 3672 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3673 | /* confdefs.h. */ |
---|
| 3674 | _ACEOF |
---|
| 3675 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3676 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3677 | /* end confdefs.h. */ |
---|
| 3678 | #include <stdlib.h> |
---|
| 3679 | #include <stdarg.h> |
---|
| 3680 | #include <string.h> |
---|
| 3681 | #include <float.h> |
---|
| 3682 | |
---|
| 3683 | int |
---|
| 3684 | main () |
---|
| 3685 | { |
---|
| 3686 | |
---|
| 3687 | ; |
---|
| 3688 | return 0; |
---|
| 3689 | } |
---|
| 3690 | _ACEOF |
---|
| 3691 | rm -f conftest.$ac_objext |
---|
| 3692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3693 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3694 | ac_status=$? |
---|
| 3695 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3696 | rm -f conftest.er1 |
---|
| 3697 | cat conftest.err >&5 |
---|
| 3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3699 | (exit $ac_status); } && |
---|
| 3700 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3701 | || test ! -s conftest.err' |
---|
| 3702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3703 | (eval $ac_try) 2>&5 |
---|
| 3704 | ac_status=$? |
---|
| 3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3706 | (exit $ac_status); }; } && |
---|
| 3707 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3709 | (eval $ac_try) 2>&5 |
---|
| 3710 | ac_status=$? |
---|
| 3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3712 | (exit $ac_status); }; }; then |
---|
| 3713 | ac_cv_header_stdc=yes |
---|
| 3714 | else |
---|
| 3715 | echo "$as_me: failed program was:" >&5 |
---|
| 3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3717 | |
---|
| 3718 | ac_cv_header_stdc=no |
---|
| 3719 | fi |
---|
| 3720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3721 | |
---|
| 3722 | if test $ac_cv_header_stdc = yes; then |
---|
| 3723 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3724 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3725 | /* confdefs.h. */ |
---|
| 3726 | _ACEOF |
---|
| 3727 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3728 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3729 | /* end confdefs.h. */ |
---|
| 3730 | #include <string.h> |
---|
| 3731 | |
---|
| 3732 | _ACEOF |
---|
| 3733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3734 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3735 | : |
---|
| 3736 | else |
---|
| 3737 | ac_cv_header_stdc=no |
---|
| 3738 | fi |
---|
| 3739 | rm -f conftest* |
---|
| 3740 | |
---|
| 3741 | fi |
---|
| 3742 | |
---|
| 3743 | if test $ac_cv_header_stdc = yes; then |
---|
| 3744 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3745 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3746 | /* confdefs.h. */ |
---|
| 3747 | _ACEOF |
---|
| 3748 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3750 | /* end confdefs.h. */ |
---|
| 3751 | #include <stdlib.h> |
---|
| 3752 | |
---|
| 3753 | _ACEOF |
---|
| 3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3755 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3756 | : |
---|
| 3757 | else |
---|
| 3758 | ac_cv_header_stdc=no |
---|
| 3759 | fi |
---|
| 3760 | rm -f conftest* |
---|
| 3761 | |
---|
| 3762 | fi |
---|
| 3763 | |
---|
| 3764 | if test $ac_cv_header_stdc = yes; then |
---|
| 3765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3766 | if test "$cross_compiling" = yes; then |
---|
| 3767 | : |
---|
| 3768 | else |
---|
| 3769 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3770 | /* confdefs.h. */ |
---|
| 3771 | _ACEOF |
---|
| 3772 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3773 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3774 | /* end confdefs.h. */ |
---|
| 3775 | #include <ctype.h> |
---|
| 3776 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3777 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3778 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3779 | #else |
---|
| 3780 | # define ISLOWER(c) \ |
---|
| 3781 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3782 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3783 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3784 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3785 | #endif |
---|
| 3786 | |
---|
| 3787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3788 | int |
---|
| 3789 | main () |
---|
| 3790 | { |
---|
| 3791 | int i; |
---|
| 3792 | for (i = 0; i < 256; i++) |
---|
| 3793 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3794 | || toupper (i) != TOUPPER (i)) |
---|
| 3795 | exit(2); |
---|
| 3796 | exit (0); |
---|
| 3797 | } |
---|
| 3798 | _ACEOF |
---|
| 3799 | rm -f conftest$ac_exeext |
---|
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3801 | (eval $ac_link) 2>&5 |
---|
| 3802 | ac_status=$? |
---|
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3806 | (eval $ac_try) 2>&5 |
---|
| 3807 | ac_status=$? |
---|
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3809 | (exit $ac_status); }; }; then |
---|
| 3810 | : |
---|
| 3811 | else |
---|
| 3812 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3813 | echo "$as_me: failed program was:" >&5 |
---|
| 3814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3815 | |
---|
| 3816 | ( exit $ac_status ) |
---|
| 3817 | ac_cv_header_stdc=no |
---|
| 3818 | fi |
---|
| 3819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3820 | fi |
---|
| 3821 | fi |
---|
| 3822 | fi |
---|
| 3823 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3824 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3825 | if test $ac_cv_header_stdc = yes; then |
---|
| 3826 | |
---|
| 3827 | cat >>confdefs.h <<\_ACEOF |
---|
| 3828 | #define STDC_HEADERS 1 |
---|
| 3829 | _ACEOF |
---|
| 3830 | |
---|
| 3831 | fi |
---|
| 3832 | |
---|
| 3833 | |
---|
[3105] | 3834 | |
---|
| 3835 | ### CHECKING OPTIONAT ARGUMENTS |
---|
| 3836 | ## GTK-disabled |
---|
| 3837 | def_gtk=yes |
---|
| 3838 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3839 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
| 3840 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
| 3841 | if test "${enable_gtk+set}" = set; then |
---|
| 3842 | enableval="$enable_gtk" |
---|
| 3843 | def_gtk=no |
---|
| 3844 | fi; |
---|
| 3845 | if test "$def_gtk" = yes; then |
---|
| 3846 | echo "yes" |
---|
| 3847 | fi |
---|
| 3848 | if test "$def_gtk" = no; then |
---|
| 3849 | echo "no" |
---|
| 3850 | fi |
---|
| 3851 | ### SDL_image-disable |
---|
| 3852 | def_sdl_image=yes |
---|
| 3853 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
| 3854 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
| 3855 | # Check whether --enable-sdl_image or --disable-sdl_image was given. |
---|
| 3856 | if test "${enable_sdl_image+set}" = set; then |
---|
| 3857 | enableval="$enable_sdl_image" |
---|
| 3858 | def_sdl_image=no |
---|
| 3859 | fi; |
---|
| 3860 | if test "$def_sdl_image" = yes; then |
---|
| 3861 | echo "yes" |
---|
| 3862 | fi |
---|
| 3863 | if test "$def_sdl_image" = no; then |
---|
| 3864 | echo "no" |
---|
| 3865 | fi |
---|
| 3866 | |
---|
[2925] | 3867 | ### CHECKING FOR SYSTEM ### |
---|
[1971] | 3868 | |
---|
[2925] | 3869 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 3870 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 3871 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 3872 | case "$target" in |
---|
[2925] | 3873 | ### WINDOWS ### |
---|
[2980] | 3874 | *-*-mingw32*) |
---|
[2925] | 3875 | echo "mingw-WINDOWS detected" |
---|
[1971] | 3876 | |
---|
[2925] | 3877 | mingw="yes" |
---|
| 3878 | MSBITFIELDS="-mms-bitfields" |
---|
| 3879 | MWINDOWS="-mwindows" |
---|
[1971] | 3880 | |
---|
[2925] | 3881 | # checking gl header |
---|
| 3882 | #done before loop |
---|
[1971] | 3883 | |
---|
[2968] | 3884 | # checking gl header |
---|
[2925] | 3885 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 3886 | |
---|
| 3887 | |
---|
| 3888 | |
---|
| 3889 | |
---|
[2925] | 3890 | |
---|
| 3891 | |
---|
| 3892 | |
---|
| 3893 | |
---|
| 3894 | |
---|
[1971] | 3895 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3896 | inttypes.h stdint.h unistd.h |
---|
| 3897 | do |
---|
| 3898 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3903 | else |
---|
| 3904 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3905 | /* confdefs.h. */ |
---|
| 3906 | _ACEOF |
---|
| 3907 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3908 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3909 | /* end confdefs.h. */ |
---|
| 3910 | $ac_includes_default |
---|
| 3911 | |
---|
| 3912 | #include <$ac_header> |
---|
| 3913 | _ACEOF |
---|
| 3914 | rm -f conftest.$ac_objext |
---|
| 3915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3916 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3917 | ac_status=$? |
---|
| 3918 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3919 | rm -f conftest.er1 |
---|
| 3920 | cat conftest.err >&5 |
---|
| 3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3922 | (exit $ac_status); } && |
---|
| 3923 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3924 | || test ! -s conftest.err' |
---|
| 3925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3926 | (eval $ac_try) 2>&5 |
---|
| 3927 | ac_status=$? |
---|
| 3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3929 | (exit $ac_status); }; } && |
---|
| 3930 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3932 | (eval $ac_try) 2>&5 |
---|
| 3933 | ac_status=$? |
---|
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3935 | (exit $ac_status); }; }; then |
---|
| 3936 | eval "$as_ac_Header=yes" |
---|
| 3937 | else |
---|
| 3938 | echo "$as_me: failed program was:" >&5 |
---|
| 3939 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3940 | |
---|
| 3941 | eval "$as_ac_Header=no" |
---|
| 3942 | fi |
---|
| 3943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3944 | fi |
---|
| 3945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3947 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3948 | cat >>confdefs.h <<_ACEOF |
---|
| 3949 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3950 | _ACEOF |
---|
| 3951 | |
---|
| 3952 | fi |
---|
| 3953 | |
---|
| 3954 | done |
---|
| 3955 | |
---|
| 3956 | |
---|
| 3957 | |
---|
[2879] | 3958 | for ac_header in GL/gl.h |
---|
| 3959 | do |
---|
| 3960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3966 | fi |
---|
| 3967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3969 | else |
---|
| 3970 | # Is the header compilable? |
---|
| 3971 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3973 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3974 | /* confdefs.h. */ |
---|
| 3975 | _ACEOF |
---|
| 3976 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3977 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3978 | /* end confdefs.h. */ |
---|
| 3979 | $ac_includes_default |
---|
| 3980 | #include <$ac_header> |
---|
| 3981 | _ACEOF |
---|
| 3982 | rm -f conftest.$ac_objext |
---|
| 3983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3984 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3985 | ac_status=$? |
---|
| 3986 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3987 | rm -f conftest.er1 |
---|
| 3988 | cat conftest.err >&5 |
---|
| 3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3990 | (exit $ac_status); } && |
---|
| 3991 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3992 | || test ! -s conftest.err' |
---|
| 3993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3994 | (eval $ac_try) 2>&5 |
---|
| 3995 | ac_status=$? |
---|
| 3996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3997 | (exit $ac_status); }; } && |
---|
| 3998 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4000 | (eval $ac_try) 2>&5 |
---|
| 4001 | ac_status=$? |
---|
| 4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4003 | (exit $ac_status); }; }; then |
---|
| 4004 | ac_header_compiler=yes |
---|
| 4005 | else |
---|
| 4006 | echo "$as_me: failed program was:" >&5 |
---|
| 4007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4008 | |
---|
| 4009 | ac_header_compiler=no |
---|
| 4010 | fi |
---|
| 4011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4012 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4013 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4014 | |
---|
| 4015 | # Is the header present? |
---|
| 4016 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4017 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4018 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4019 | /* confdefs.h. */ |
---|
| 4020 | _ACEOF |
---|
| 4021 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4022 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4023 | /* end confdefs.h. */ |
---|
| 4024 | #include <$ac_header> |
---|
| 4025 | _ACEOF |
---|
| 4026 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4027 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4028 | ac_status=$? |
---|
| 4029 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4030 | rm -f conftest.er1 |
---|
| 4031 | cat conftest.err >&5 |
---|
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4033 | (exit $ac_status); } >/dev/null; then |
---|
| 4034 | if test -s conftest.err; then |
---|
| 4035 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4036 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4037 | else |
---|
| 4038 | ac_cpp_err= |
---|
| 4039 | fi |
---|
| 4040 | else |
---|
| 4041 | ac_cpp_err=yes |
---|
| 4042 | fi |
---|
| 4043 | if test -z "$ac_cpp_err"; then |
---|
| 4044 | ac_header_preproc=yes |
---|
| 4045 | else |
---|
| 4046 | echo "$as_me: failed program was:" >&5 |
---|
| 4047 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4048 | |
---|
| 4049 | ac_header_preproc=no |
---|
| 4050 | fi |
---|
| 4051 | rm -f conftest.err conftest.$ac_ext |
---|
| 4052 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4053 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4054 | |
---|
| 4055 | # So? What about this header? |
---|
| 4056 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4057 | yes:no: ) |
---|
| 4058 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4059 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4060 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4061 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4062 | ac_header_preproc=yes |
---|
| 4063 | ;; |
---|
| 4064 | no:yes:* ) |
---|
| 4065 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4066 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4067 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4068 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4069 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4070 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4071 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4072 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4074 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4075 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4076 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4077 | ( |
---|
| 4078 | cat <<\_ASBOX |
---|
| 4079 | ## ------------------------------------------- ## |
---|
| 4080 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4081 | ## ------------------------------------------- ## |
---|
| 4082 | _ASBOX |
---|
| 4083 | ) | |
---|
| 4084 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4085 | ;; |
---|
| 4086 | esac |
---|
| 4087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4091 | else |
---|
| 4092 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4093 | fi |
---|
| 4094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4096 | |
---|
| 4097 | fi |
---|
| 4098 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4099 | cat >>confdefs.h <<_ACEOF |
---|
| 4100 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4101 | _ACEOF |
---|
| 4102 | |
---|
| 4103 | else |
---|
| 4104 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4105 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4106 | { (exit 1); exit 1; }; } |
---|
| 4107 | fi |
---|
| 4108 | |
---|
| 4109 | done |
---|
| 4110 | |
---|
[2701] | 4111 | # checking for Windows openGl library |
---|
[1971] | 4112 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4113 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4114 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4116 | else |
---|
| 4117 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4118 | LIBS="-lopengl32 $LIBS" |
---|
| 4119 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4120 | /* confdefs.h. */ |
---|
[1956] | 4121 | _ACEOF |
---|
[1959] | 4122 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4123 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4124 | /* end confdefs.h. */ |
---|
[1956] | 4125 | |
---|
[1971] | 4126 | |
---|
[1959] | 4127 | int |
---|
| 4128 | main () |
---|
| 4129 | { |
---|
[1971] | 4130 | main (); |
---|
[1959] | 4131 | ; |
---|
| 4132 | return 0; |
---|
| 4133 | } |
---|
| 4134 | _ACEOF |
---|
| 4135 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4137 | (eval $ac_link) 2>conftest.er1 |
---|
| 4138 | ac_status=$? |
---|
| 4139 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4140 | rm -f conftest.er1 |
---|
| 4141 | cat conftest.err >&5 |
---|
| 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4143 | (exit $ac_status); } && |
---|
| 4144 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4145 | || test ! -s conftest.err' |
---|
| 4146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4147 | (eval $ac_try) 2>&5 |
---|
| 4148 | ac_status=$? |
---|
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4150 | (exit $ac_status); }; } && |
---|
| 4151 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4153 | (eval $ac_try) 2>&5 |
---|
| 4154 | ac_status=$? |
---|
| 4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4156 | (exit $ac_status); }; }; then |
---|
[1971] | 4157 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4158 | else |
---|
| 4159 | echo "$as_me: failed program was:" >&5 |
---|
| 4160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4161 | |
---|
[1971] | 4162 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4163 | fi |
---|
[1959] | 4164 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4165 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4166 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4167 | fi |
---|
[1971] | 4168 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4169 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4170 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4171 | FOUND_opengl32=yes |
---|
| 4172 | else |
---|
| 4173 | "gl/gl.h" |
---|
[1959] | 4174 | fi |
---|
[1956] | 4175 | |
---|
[1971] | 4176 | if test "$FOUND_opengl32" = "yes" ; then |
---|
[1959] | 4177 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4178 | else |
---|
[1959] | 4179 | echo "------------------" |
---|
| 4180 | echo "opengl not found." |
---|
| 4181 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4182 | echo "------------------" |
---|
| 4183 | exit -1 |
---|
| 4184 | fi |
---|
| 4185 | |
---|
[2701] | 4186 | # cheking for GLU-header |
---|
[1971] | 4187 | |
---|
| 4188 | for ac_header in GL/glu.h |
---|
| 4189 | do |
---|
| 4190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4196 | fi |
---|
| 4197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4199 | else |
---|
| 4200 | # Is the header compilable? |
---|
| 4201 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4202 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4203 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4204 | /* confdefs.h. */ |
---|
| 4205 | _ACEOF |
---|
| 4206 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4207 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4208 | /* end confdefs.h. */ |
---|
| 4209 | $ac_includes_default |
---|
| 4210 | #include <$ac_header> |
---|
| 4211 | _ACEOF |
---|
| 4212 | rm -f conftest.$ac_objext |
---|
| 4213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4214 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4215 | ac_status=$? |
---|
| 4216 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4217 | rm -f conftest.er1 |
---|
| 4218 | cat conftest.err >&5 |
---|
| 4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4220 | (exit $ac_status); } && |
---|
| 4221 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4222 | || test ! -s conftest.err' |
---|
| 4223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4224 | (eval $ac_try) 2>&5 |
---|
| 4225 | ac_status=$? |
---|
| 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4227 | (exit $ac_status); }; } && |
---|
| 4228 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4230 | (eval $ac_try) 2>&5 |
---|
| 4231 | ac_status=$? |
---|
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4233 | (exit $ac_status); }; }; then |
---|
| 4234 | ac_header_compiler=yes |
---|
| 4235 | else |
---|
| 4236 | echo "$as_me: failed program was:" >&5 |
---|
| 4237 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4238 | |
---|
| 4239 | ac_header_compiler=no |
---|
| 4240 | fi |
---|
| 4241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4242 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4243 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4244 | |
---|
| 4245 | # Is the header present? |
---|
| 4246 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4248 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4249 | /* confdefs.h. */ |
---|
| 4250 | _ACEOF |
---|
| 4251 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4252 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4253 | /* end confdefs.h. */ |
---|
| 4254 | #include <$ac_header> |
---|
| 4255 | _ACEOF |
---|
| 4256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4258 | ac_status=$? |
---|
| 4259 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4260 | rm -f conftest.er1 |
---|
| 4261 | cat conftest.err >&5 |
---|
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4263 | (exit $ac_status); } >/dev/null; then |
---|
| 4264 | if test -s conftest.err; then |
---|
| 4265 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4267 | else |
---|
| 4268 | ac_cpp_err= |
---|
| 4269 | fi |
---|
| 4270 | else |
---|
| 4271 | ac_cpp_err=yes |
---|
| 4272 | fi |
---|
| 4273 | if test -z "$ac_cpp_err"; then |
---|
| 4274 | ac_header_preproc=yes |
---|
| 4275 | else |
---|
| 4276 | echo "$as_me: failed program was:" >&5 |
---|
| 4277 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4278 | |
---|
| 4279 | ac_header_preproc=no |
---|
| 4280 | fi |
---|
| 4281 | rm -f conftest.err conftest.$ac_ext |
---|
| 4282 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4283 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4284 | |
---|
| 4285 | # So? What about this header? |
---|
| 4286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4287 | yes:no: ) |
---|
| 4288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4292 | ac_header_preproc=yes |
---|
| 4293 | ;; |
---|
| 4294 | no:yes:* ) |
---|
| 4295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4307 | ( |
---|
| 4308 | cat <<\_ASBOX |
---|
| 4309 | ## ------------------------------------------- ## |
---|
| 4310 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4311 | ## ------------------------------------------- ## |
---|
| 4312 | _ASBOX |
---|
| 4313 | ) | |
---|
| 4314 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4315 | ;; |
---|
| 4316 | esac |
---|
| 4317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4321 | else |
---|
| 4322 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4323 | fi |
---|
| 4324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4326 | |
---|
| 4327 | fi |
---|
| 4328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4329 | cat >>confdefs.h <<_ACEOF |
---|
| 4330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4331 | _ACEOF |
---|
| 4332 | |
---|
| 4333 | else |
---|
| 4334 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4335 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4336 | { (exit 1); exit 1; }; } |
---|
| 4337 | fi |
---|
| 4338 | |
---|
| 4339 | done |
---|
| 4340 | |
---|
| 4341 | |
---|
[2701] | 4342 | # checking for libGLU |
---|
| 4343 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4344 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4345 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4347 | else |
---|
| 4348 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4349 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4350 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4351 | /* confdefs.h. */ |
---|
| 4352 | _ACEOF |
---|
| 4353 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4354 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4355 | /* end confdefs.h. */ |
---|
| 4356 | |
---|
[2701] | 4357 | |
---|
[1956] | 4358 | int |
---|
| 4359 | main () |
---|
| 4360 | { |
---|
[2701] | 4361 | main (); |
---|
[1956] | 4362 | ; |
---|
| 4363 | return 0; |
---|
| 4364 | } |
---|
| 4365 | _ACEOF |
---|
| 4366 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4368 | (eval $ac_link) 2>conftest.er1 |
---|
| 4369 | ac_status=$? |
---|
| 4370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4371 | rm -f conftest.er1 |
---|
| 4372 | cat conftest.err >&5 |
---|
| 4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4374 | (exit $ac_status); } && |
---|
| 4375 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4376 | || test ! -s conftest.err' |
---|
| 4377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4378 | (eval $ac_try) 2>&5 |
---|
| 4379 | ac_status=$? |
---|
| 4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4381 | (exit $ac_status); }; } && |
---|
| 4382 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4384 | (eval $ac_try) 2>&5 |
---|
| 4385 | ac_status=$? |
---|
| 4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4387 | (exit $ac_status); }; }; then |
---|
[2701] | 4388 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4389 | else |
---|
| 4390 | echo "$as_me: failed program was:" >&5 |
---|
| 4391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4392 | |
---|
[2701] | 4393 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4394 | fi |
---|
| 4395 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4396 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4397 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4398 | fi |
---|
[2701] | 4399 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4400 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4401 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4402 | FOUND_glu32=yes |
---|
[1959] | 4403 | fi |
---|
| 4404 | |
---|
[2701] | 4405 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4406 | LIBS="$LIBS -lGLU32" |
---|
| 4407 | else |
---|
| 4408 | echo "------------------" |
---|
| 4409 | echo "GLU library not found." |
---|
| 4410 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4411 | echo "------------------" |
---|
| 4412 | exit -1 |
---|
| 4413 | fi |
---|
| 4414 | |
---|
| 4415 | # checking for mingw32 |
---|
| 4416 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4417 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4418 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4420 | else |
---|
| 4421 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4422 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4423 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4424 | /* confdefs.h. */ |
---|
[1956] | 4425 | _ACEOF |
---|
[1959] | 4426 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4427 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4428 | /* end confdefs.h. */ |
---|
[1956] | 4429 | |
---|
[1971] | 4430 | |
---|
[1959] | 4431 | int |
---|
| 4432 | main () |
---|
| 4433 | { |
---|
[1971] | 4434 | main (); |
---|
[1959] | 4435 | ; |
---|
| 4436 | return 0; |
---|
| 4437 | } |
---|
| 4438 | _ACEOF |
---|
| 4439 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4441 | (eval $ac_link) 2>conftest.er1 |
---|
| 4442 | ac_status=$? |
---|
| 4443 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4444 | rm -f conftest.er1 |
---|
| 4445 | cat conftest.err >&5 |
---|
| 4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4447 | (exit $ac_status); } && |
---|
| 4448 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4449 | || test ! -s conftest.err' |
---|
| 4450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4451 | (eval $ac_try) 2>&5 |
---|
| 4452 | ac_status=$? |
---|
| 4453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4454 | (exit $ac_status); }; } && |
---|
| 4455 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4457 | (eval $ac_try) 2>&5 |
---|
| 4458 | ac_status=$? |
---|
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4460 | (exit $ac_status); }; }; then |
---|
[2701] | 4461 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4462 | else |
---|
| 4463 | echo "$as_me: failed program was:" >&5 |
---|
| 4464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4465 | |
---|
[2701] | 4466 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4467 | fi |
---|
[1959] | 4468 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4469 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4470 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4471 | fi |
---|
[2701] | 4472 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4473 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4474 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4475 | FOUND_mingw32=yes |
---|
[1959] | 4476 | fi |
---|
[1956] | 4477 | |
---|
[2701] | 4478 | if test $FOUND_mingw32 = "yes"; then |
---|
| 4479 | LIBS="$LIBS -lmingw32" |
---|
| 4480 | fi |
---|
[2989] | 4481 | # checking for SDL-headers |
---|
[1959] | 4482 | |
---|
[2989] | 4483 | for ac_header in SDL/SDL.h |
---|
| 4484 | do |
---|
| 4485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4486 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4487 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4491 | fi |
---|
| 4492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4494 | else |
---|
| 4495 | # Is the header compilable? |
---|
| 4496 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4497 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4498 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4499 | /* confdefs.h. */ |
---|
| 4500 | _ACEOF |
---|
| 4501 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4503 | /* end confdefs.h. */ |
---|
| 4504 | $ac_includes_default |
---|
| 4505 | #include <$ac_header> |
---|
| 4506 | _ACEOF |
---|
| 4507 | rm -f conftest.$ac_objext |
---|
| 4508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4509 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4510 | ac_status=$? |
---|
| 4511 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4512 | rm -f conftest.er1 |
---|
| 4513 | cat conftest.err >&5 |
---|
| 4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4515 | (exit $ac_status); } && |
---|
| 4516 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4517 | || test ! -s conftest.err' |
---|
| 4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4519 | (eval $ac_try) 2>&5 |
---|
| 4520 | ac_status=$? |
---|
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4522 | (exit $ac_status); }; } && |
---|
| 4523 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4525 | (eval $ac_try) 2>&5 |
---|
| 4526 | ac_status=$? |
---|
| 4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4528 | (exit $ac_status); }; }; then |
---|
| 4529 | ac_header_compiler=yes |
---|
| 4530 | else |
---|
| 4531 | echo "$as_me: failed program was:" >&5 |
---|
| 4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4533 | |
---|
| 4534 | ac_header_compiler=no |
---|
| 4535 | fi |
---|
| 4536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4537 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4538 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4539 | |
---|
| 4540 | # Is the header present? |
---|
| 4541 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4542 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4543 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4544 | /* confdefs.h. */ |
---|
| 4545 | _ACEOF |
---|
| 4546 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4547 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4548 | /* end confdefs.h. */ |
---|
| 4549 | #include <$ac_header> |
---|
| 4550 | _ACEOF |
---|
| 4551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4553 | ac_status=$? |
---|
| 4554 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4555 | rm -f conftest.er1 |
---|
| 4556 | cat conftest.err >&5 |
---|
| 4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4558 | (exit $ac_status); } >/dev/null; then |
---|
| 4559 | if test -s conftest.err; then |
---|
| 4560 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4562 | else |
---|
| 4563 | ac_cpp_err= |
---|
| 4564 | fi |
---|
| 4565 | else |
---|
| 4566 | ac_cpp_err=yes |
---|
| 4567 | fi |
---|
| 4568 | if test -z "$ac_cpp_err"; then |
---|
| 4569 | ac_header_preproc=yes |
---|
| 4570 | else |
---|
| 4571 | echo "$as_me: failed program was:" >&5 |
---|
| 4572 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4573 | |
---|
| 4574 | ac_header_preproc=no |
---|
| 4575 | fi |
---|
| 4576 | rm -f conftest.err conftest.$ac_ext |
---|
| 4577 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4578 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4579 | |
---|
| 4580 | # So? What about this header? |
---|
| 4581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4582 | yes:no: ) |
---|
| 4583 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4584 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4585 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4586 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4587 | ac_header_preproc=yes |
---|
[2701] | 4588 | ;; |
---|
[2989] | 4589 | no:yes:* ) |
---|
| 4590 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4591 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4592 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4593 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4594 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4595 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4596 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4597 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4599 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4600 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4601 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4602 | ( |
---|
| 4603 | cat <<\_ASBOX |
---|
| 4604 | ## ------------------------------------------- ## |
---|
| 4605 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4606 | ## ------------------------------------------- ## |
---|
| 4607 | _ASBOX |
---|
| 4608 | ) | |
---|
| 4609 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4610 | ;; |
---|
| 4611 | esac |
---|
| 4612 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4616 | else |
---|
| 4617 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4618 | fi |
---|
| 4619 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4620 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4621 | |
---|
[2989] | 4622 | fi |
---|
| 4623 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4624 | cat >>confdefs.h <<_ACEOF |
---|
| 4625 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4626 | _ACEOF |
---|
| 4627 | |
---|
| 4628 | else |
---|
| 4629 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4630 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4631 | { (exit 1); exit 1; }; } |
---|
| 4632 | fi |
---|
| 4633 | |
---|
| 4634 | done |
---|
| 4635 | |
---|
| 4636 | |
---|
| 4637 | #checking for libSDL |
---|
| 4638 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4639 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4640 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4642 | else |
---|
| 4643 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4644 | LIBS="-lsdlmain $LIBS" |
---|
| 4645 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4646 | /* confdefs.h. */ |
---|
| 4647 | _ACEOF |
---|
| 4648 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4649 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4650 | /* end confdefs.h. */ |
---|
| 4651 | |
---|
| 4652 | |
---|
| 4653 | int |
---|
| 4654 | main () |
---|
| 4655 | { |
---|
| 4656 | main (); |
---|
| 4657 | ; |
---|
| 4658 | return 0; |
---|
| 4659 | } |
---|
| 4660 | _ACEOF |
---|
| 4661 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4663 | (eval $ac_link) 2>conftest.er1 |
---|
| 4664 | ac_status=$? |
---|
| 4665 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4666 | rm -f conftest.er1 |
---|
| 4667 | cat conftest.err >&5 |
---|
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4669 | (exit $ac_status); } && |
---|
| 4670 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4671 | || test ! -s conftest.err' |
---|
| 4672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4673 | (eval $ac_try) 2>&5 |
---|
| 4674 | ac_status=$? |
---|
| 4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4676 | (exit $ac_status); }; } && |
---|
| 4677 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4679 | (eval $ac_try) 2>&5 |
---|
| 4680 | ac_status=$? |
---|
| 4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4682 | (exit $ac_status); }; }; then |
---|
| 4683 | ac_cv_lib_sdlmain_main=yes |
---|
| 4684 | else |
---|
| 4685 | echo "$as_me: failed program was:" >&5 |
---|
| 4686 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4687 | |
---|
| 4688 | ac_cv_lib_sdlmain_main=no |
---|
| 4689 | fi |
---|
| 4690 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4691 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4692 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4693 | fi |
---|
| 4694 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4695 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4696 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4697 | FOUND_sdlmain=yes |
---|
| 4698 | fi |
---|
| 4699 | |
---|
| 4700 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
| 4701 | LIBS="$LIBS -lsdlmain" |
---|
| 4702 | else |
---|
| 4703 | echo "------------------" |
---|
| 4704 | echo "SDL library not found." |
---|
| 4705 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4706 | echo "------------------" |
---|
| 4707 | exit 1 |
---|
| 4708 | fi |
---|
| 4709 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4710 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4711 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4713 | else |
---|
| 4714 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4715 | LIBS="-lsdl $LIBS" |
---|
| 4716 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4717 | /* confdefs.h. */ |
---|
| 4718 | _ACEOF |
---|
| 4719 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4720 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4721 | /* end confdefs.h. */ |
---|
| 4722 | |
---|
| 4723 | |
---|
| 4724 | int |
---|
| 4725 | main () |
---|
| 4726 | { |
---|
| 4727 | main (); |
---|
| 4728 | ; |
---|
| 4729 | return 0; |
---|
| 4730 | } |
---|
| 4731 | _ACEOF |
---|
| 4732 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4734 | (eval $ac_link) 2>conftest.er1 |
---|
| 4735 | ac_status=$? |
---|
| 4736 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4737 | rm -f conftest.er1 |
---|
| 4738 | cat conftest.err >&5 |
---|
| 4739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4740 | (exit $ac_status); } && |
---|
| 4741 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4742 | || test ! -s conftest.err' |
---|
| 4743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4744 | (eval $ac_try) 2>&5 |
---|
| 4745 | ac_status=$? |
---|
| 4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4747 | (exit $ac_status); }; } && |
---|
| 4748 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4750 | (eval $ac_try) 2>&5 |
---|
| 4751 | ac_status=$? |
---|
| 4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4753 | (exit $ac_status); }; }; then |
---|
| 4754 | ac_cv_lib_sdl_main=yes |
---|
| 4755 | else |
---|
| 4756 | echo "$as_me: failed program was:" >&5 |
---|
| 4757 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4758 | |
---|
| 4759 | ac_cv_lib_sdl_main=no |
---|
| 4760 | fi |
---|
| 4761 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4762 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4763 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4764 | fi |
---|
| 4765 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4766 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4767 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4768 | FOUND_sdl=yes |
---|
| 4769 | fi |
---|
| 4770 | |
---|
| 4771 | if test "$FOUND_sdl" = "yes" ; then |
---|
| 4772 | LIBS="$LIBS -lsdl" |
---|
| 4773 | else |
---|
| 4774 | echo "------------------" |
---|
| 4775 | echo "SDL library not found." |
---|
| 4776 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4777 | echo "------------------" |
---|
| 4778 | exit -1 |
---|
| 4779 | fi |
---|
| 4780 | |
---|
| 4781 | ;; |
---|
| 4782 | |
---|
[2701] | 4783 | ### LINUX ### |
---|
[2980] | 4784 | *-*-linux*) |
---|
[2701] | 4785 | echo "Linux detected" |
---|
[1956] | 4786 | |
---|
[2701] | 4787 | Linux="yes" |
---|
| 4788 | |
---|
[2968] | 4789 | # checking gl header |
---|
[2701] | 4790 | |
---|
[2879] | 4791 | for ac_header in GL/gl.h |
---|
| 4792 | do |
---|
| 4793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4795 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4799 | fi |
---|
| 4800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4801 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4802 | else |
---|
| 4803 | # Is the header compilable? |
---|
| 4804 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4805 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4806 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4807 | /* confdefs.h. */ |
---|
| 4808 | _ACEOF |
---|
| 4809 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4810 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4811 | /* end confdefs.h. */ |
---|
| 4812 | $ac_includes_default |
---|
| 4813 | #include <$ac_header> |
---|
| 4814 | _ACEOF |
---|
| 4815 | rm -f conftest.$ac_objext |
---|
| 4816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4817 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4818 | ac_status=$? |
---|
| 4819 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4820 | rm -f conftest.er1 |
---|
| 4821 | cat conftest.err >&5 |
---|
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4823 | (exit $ac_status); } && |
---|
| 4824 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4825 | || test ! -s conftest.err' |
---|
| 4826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4827 | (eval $ac_try) 2>&5 |
---|
| 4828 | ac_status=$? |
---|
| 4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4830 | (exit $ac_status); }; } && |
---|
| 4831 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4833 | (eval $ac_try) 2>&5 |
---|
| 4834 | ac_status=$? |
---|
| 4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4836 | (exit $ac_status); }; }; then |
---|
| 4837 | ac_header_compiler=yes |
---|
| 4838 | else |
---|
| 4839 | echo "$as_me: failed program was:" >&5 |
---|
| 4840 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4841 | |
---|
| 4842 | ac_header_compiler=no |
---|
| 4843 | fi |
---|
| 4844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4846 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4847 | |
---|
| 4848 | # Is the header present? |
---|
| 4849 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4850 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4851 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4852 | /* confdefs.h. */ |
---|
| 4853 | _ACEOF |
---|
| 4854 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4855 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4856 | /* end confdefs.h. */ |
---|
| 4857 | #include <$ac_header> |
---|
| 4858 | _ACEOF |
---|
| 4859 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4860 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4861 | ac_status=$? |
---|
| 4862 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4863 | rm -f conftest.er1 |
---|
| 4864 | cat conftest.err >&5 |
---|
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4866 | (exit $ac_status); } >/dev/null; then |
---|
| 4867 | if test -s conftest.err; then |
---|
| 4868 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4869 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4870 | else |
---|
| 4871 | ac_cpp_err= |
---|
| 4872 | fi |
---|
| 4873 | else |
---|
| 4874 | ac_cpp_err=yes |
---|
| 4875 | fi |
---|
| 4876 | if test -z "$ac_cpp_err"; then |
---|
| 4877 | ac_header_preproc=yes |
---|
| 4878 | else |
---|
| 4879 | echo "$as_me: failed program was:" >&5 |
---|
| 4880 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4881 | |
---|
| 4882 | ac_header_preproc=no |
---|
| 4883 | fi |
---|
| 4884 | rm -f conftest.err conftest.$ac_ext |
---|
| 4885 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4886 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4887 | |
---|
| 4888 | # So? What about this header? |
---|
| 4889 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4890 | yes:no: ) |
---|
| 4891 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4892 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4894 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4895 | ac_header_preproc=yes |
---|
| 4896 | ;; |
---|
| 4897 | no:yes:* ) |
---|
| 4898 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4899 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4900 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4901 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4902 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4903 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4904 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4905 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4907 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4908 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4909 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4910 | ( |
---|
| 4911 | cat <<\_ASBOX |
---|
| 4912 | ## ------------------------------------------- ## |
---|
| 4913 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4914 | ## ------------------------------------------- ## |
---|
| 4915 | _ASBOX |
---|
| 4916 | ) | |
---|
| 4917 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4918 | ;; |
---|
| 4919 | esac |
---|
| 4920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4924 | else |
---|
| 4925 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4926 | fi |
---|
| 4927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4929 | |
---|
| 4930 | fi |
---|
| 4931 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4932 | cat >>confdefs.h <<_ACEOF |
---|
| 4933 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4934 | _ACEOF |
---|
| 4935 | |
---|
| 4936 | else |
---|
| 4937 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4938 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4939 | { (exit 1); exit 1; }; } |
---|
| 4940 | fi |
---|
| 4941 | |
---|
| 4942 | done |
---|
| 4943 | |
---|
| 4944 | |
---|
[2701] | 4945 | # checking for Unix GL |
---|
| 4946 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 4947 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 4948 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
[1956] | 4949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4950 | else |
---|
| 4951 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4952 | LIBS="-lGL $LIBS" |
---|
[1956] | 4953 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4954 | /* confdefs.h. */ |
---|
| 4955 | _ACEOF |
---|
| 4956 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4957 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4958 | /* end confdefs.h. */ |
---|
| 4959 | |
---|
| 4960 | |
---|
| 4961 | int |
---|
| 4962 | main () |
---|
| 4963 | { |
---|
| 4964 | main (); |
---|
| 4965 | ; |
---|
| 4966 | return 0; |
---|
| 4967 | } |
---|
| 4968 | _ACEOF |
---|
| 4969 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4971 | (eval $ac_link) 2>conftest.er1 |
---|
| 4972 | ac_status=$? |
---|
| 4973 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4974 | rm -f conftest.er1 |
---|
| 4975 | cat conftest.err >&5 |
---|
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4977 | (exit $ac_status); } && |
---|
| 4978 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4979 | || test ! -s conftest.err' |
---|
| 4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4981 | (eval $ac_try) 2>&5 |
---|
| 4982 | ac_status=$? |
---|
| 4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4984 | (exit $ac_status); }; } && |
---|
| 4985 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4987 | (eval $ac_try) 2>&5 |
---|
| 4988 | ac_status=$? |
---|
| 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4990 | (exit $ac_status); }; }; then |
---|
[2701] | 4991 | ac_cv_lib_GL_main=yes |
---|
[1956] | 4992 | else |
---|
| 4993 | echo "$as_me: failed program was:" >&5 |
---|
| 4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4995 | |
---|
[2701] | 4996 | ac_cv_lib_GL_main=no |
---|
[1956] | 4997 | fi |
---|
| 4998 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4999 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5000 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5001 | fi |
---|
[2701] | 5002 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 5003 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 5004 | if test $ac_cv_lib_GL_main = yes; then |
---|
| 5005 | FOUND_GL=yes |
---|
| 5006 | fi |
---|
| 5007 | |
---|
| 5008 | if test "$FOUND_GL" = "yes" ; then |
---|
| 5009 | LIBS="$LIBS -lGL" |
---|
| 5010 | else |
---|
| 5011 | echo "------------------" |
---|
| 5012 | echo "opengl not found." |
---|
| 5013 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5014 | echo "------------------" |
---|
| 5015 | exit -1 |
---|
| 5016 | fi |
---|
| 5017 | |
---|
| 5018 | # cheking for GLU-header |
---|
| 5019 | |
---|
| 5020 | for ac_header in GL/glu.h |
---|
| 5021 | do |
---|
| 5022 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5028 | fi |
---|
| 5029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5031 | else |
---|
| 5032 | # Is the header compilable? |
---|
| 5033 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5034 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5035 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5036 | /* confdefs.h. */ |
---|
[1956] | 5037 | _ACEOF |
---|
[2701] | 5038 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5039 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5040 | /* end confdefs.h. */ |
---|
| 5041 | $ac_includes_default |
---|
| 5042 | #include <$ac_header> |
---|
| 5043 | _ACEOF |
---|
| 5044 | rm -f conftest.$ac_objext |
---|
| 5045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5046 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5047 | ac_status=$? |
---|
| 5048 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5049 | rm -f conftest.er1 |
---|
| 5050 | cat conftest.err >&5 |
---|
| 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5052 | (exit $ac_status); } && |
---|
| 5053 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5054 | || test ! -s conftest.err' |
---|
| 5055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5056 | (eval $ac_try) 2>&5 |
---|
| 5057 | ac_status=$? |
---|
| 5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5059 | (exit $ac_status); }; } && |
---|
| 5060 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5062 | (eval $ac_try) 2>&5 |
---|
| 5063 | ac_status=$? |
---|
| 5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5065 | (exit $ac_status); }; }; then |
---|
| 5066 | ac_header_compiler=yes |
---|
| 5067 | else |
---|
| 5068 | echo "$as_me: failed program was:" >&5 |
---|
| 5069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5070 | |
---|
[2701] | 5071 | ac_header_compiler=no |
---|
| 5072 | fi |
---|
| 5073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5074 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5075 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5076 | |
---|
[2701] | 5077 | # Is the header present? |
---|
| 5078 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5079 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5080 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5081 | /* confdefs.h. */ |
---|
| 5082 | _ACEOF |
---|
| 5083 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5084 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5085 | /* end confdefs.h. */ |
---|
| 5086 | #include <$ac_header> |
---|
| 5087 | _ACEOF |
---|
| 5088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5090 | ac_status=$? |
---|
| 5091 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5092 | rm -f conftest.er1 |
---|
| 5093 | cat conftest.err >&5 |
---|
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5095 | (exit $ac_status); } >/dev/null; then |
---|
| 5096 | if test -s conftest.err; then |
---|
| 5097 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5098 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5099 | else |
---|
| 5100 | ac_cpp_err= |
---|
| 5101 | fi |
---|
| 5102 | else |
---|
| 5103 | ac_cpp_err=yes |
---|
[1956] | 5104 | fi |
---|
[2701] | 5105 | if test -z "$ac_cpp_err"; then |
---|
| 5106 | ac_header_preproc=yes |
---|
| 5107 | else |
---|
| 5108 | echo "$as_me: failed program was:" >&5 |
---|
| 5109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5110 | |
---|
[2701] | 5111 | ac_header_preproc=no |
---|
| 5112 | fi |
---|
| 5113 | rm -f conftest.err conftest.$ac_ext |
---|
| 5114 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5115 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5116 | |
---|
[2701] | 5117 | # So? What about this header? |
---|
| 5118 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5119 | yes:no: ) |
---|
| 5120 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5121 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5123 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5124 | ac_header_preproc=yes |
---|
| 5125 | ;; |
---|
| 5126 | no:yes:* ) |
---|
| 5127 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5128 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5129 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5130 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5131 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5132 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5133 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5134 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5135 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5136 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5137 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5138 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5139 | ( |
---|
| 5140 | cat <<\_ASBOX |
---|
| 5141 | ## ------------------------------------------- ## |
---|
| 5142 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5143 | ## ------------------------------------------- ## |
---|
| 5144 | _ASBOX |
---|
| 5145 | ) | |
---|
| 5146 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5147 | ;; |
---|
| 5148 | esac |
---|
| 5149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5153 | else |
---|
[2701] | 5154 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5155 | fi |
---|
| 5156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5157 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5158 | |
---|
| 5159 | fi |
---|
| 5160 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5161 | cat >>confdefs.h <<_ACEOF |
---|
| 5162 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5163 | _ACEOF |
---|
| 5164 | |
---|
| 5165 | else |
---|
| 5166 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5167 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5168 | { (exit 1); exit 1; }; } |
---|
| 5169 | fi |
---|
| 5170 | |
---|
| 5171 | done |
---|
| 5172 | |
---|
| 5173 | |
---|
| 5174 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5175 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5176 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5178 | else |
---|
[2190] | 5179 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5180 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5181 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5182 | /* confdefs.h. */ |
---|
| 5183 | _ACEOF |
---|
| 5184 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5185 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5186 | /* end confdefs.h. */ |
---|
| 5187 | |
---|
[2701] | 5188 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5189 | #ifdef __cplusplus |
---|
| 5190 | extern "C" |
---|
| 5191 | #endif |
---|
| 5192 | /* We use char because int might match the return type of a gcc2 |
---|
| 5193 | builtin and then its argument prototype would still apply. */ |
---|
| 5194 | char gluProject (); |
---|
[2190] | 5195 | int |
---|
| 5196 | main () |
---|
| 5197 | { |
---|
[2701] | 5198 | gluProject (); |
---|
[2190] | 5199 | ; |
---|
| 5200 | return 0; |
---|
| 5201 | } |
---|
| 5202 | _ACEOF |
---|
| 5203 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5205 | (eval $ac_link) 2>conftest.er1 |
---|
| 5206 | ac_status=$? |
---|
| 5207 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5208 | rm -f conftest.er1 |
---|
| 5209 | cat conftest.err >&5 |
---|
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5211 | (exit $ac_status); } && |
---|
| 5212 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5213 | || test ! -s conftest.err' |
---|
| 5214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5215 | (eval $ac_try) 2>&5 |
---|
| 5216 | ac_status=$? |
---|
| 5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5218 | (exit $ac_status); }; } && |
---|
| 5219 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5221 | (eval $ac_try) 2>&5 |
---|
| 5222 | ac_status=$? |
---|
| 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5224 | (exit $ac_status); }; }; then |
---|
[2701] | 5225 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5226 | else |
---|
| 5227 | echo "$as_me: failed program was:" >&5 |
---|
| 5228 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5229 | |
---|
[2701] | 5230 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5231 | fi |
---|
| 5232 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5233 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5234 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5235 | fi |
---|
[2701] | 5236 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5237 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5238 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5239 | FOUND_GLU=yes |
---|
[2190] | 5240 | fi |
---|
| 5241 | |
---|
[2701] | 5242 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 5243 | LIBS="$LIBS -lGLU" |
---|
| 5244 | else |
---|
| 5245 | echo "------------------" |
---|
| 5246 | echo "GLU library not found." |
---|
| 5247 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5248 | echo "------------------" |
---|
| 5249 | exit -1 |
---|
| 5250 | fi |
---|
[2995] | 5251 | |
---|
[2991] | 5252 | # checking for SDL-headers |
---|
[2190] | 5253 | |
---|
[2991] | 5254 | for ac_header in SDL/SDL.h |
---|
| 5255 | do |
---|
| 5256 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5258 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5260 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5262 | fi |
---|
[2991] | 5263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5265 | else |
---|
[2991] | 5266 | # Is the header compilable? |
---|
| 5267 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5269 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5270 | /* confdefs.h. */ |
---|
| 5271 | _ACEOF |
---|
| 5272 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5273 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5274 | /* end confdefs.h. */ |
---|
[2991] | 5275 | $ac_includes_default |
---|
| 5276 | #include <$ac_header> |
---|
[2190] | 5277 | _ACEOF |
---|
[2991] | 5278 | rm -f conftest.$ac_objext |
---|
| 5279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5280 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5281 | ac_status=$? |
---|
[2991] | 5282 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5283 | rm -f conftest.er1 |
---|
| 5284 | cat conftest.err >&5 |
---|
[2190] | 5285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5286 | (exit $ac_status); } && |
---|
| 5287 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5288 | || test ! -s conftest.err' |
---|
[2190] | 5289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5290 | (eval $ac_try) 2>&5 |
---|
| 5291 | ac_status=$? |
---|
| 5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5293 | (exit $ac_status); }; } && |
---|
| 5294 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5296 | (eval $ac_try) 2>&5 |
---|
| 5297 | ac_status=$? |
---|
| 5298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5299 | (exit $ac_status); }; }; then |
---|
[2991] | 5300 | ac_header_compiler=yes |
---|
[2190] | 5301 | else |
---|
[2991] | 5302 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5303 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5304 | |
---|
[2991] | 5305 | ac_header_compiler=no |
---|
[2190] | 5306 | fi |
---|
[2991] | 5307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5308 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5309 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5310 | |
---|
| 5311 | # Is the header present? |
---|
| 5312 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5313 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5314 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5315 | /* confdefs.h. */ |
---|
| 5316 | _ACEOF |
---|
| 5317 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5318 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5319 | /* end confdefs.h. */ |
---|
| 5320 | #include <$ac_header> |
---|
| 5321 | _ACEOF |
---|
| 5322 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5323 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5324 | ac_status=$? |
---|
| 5325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5326 | rm -f conftest.er1 |
---|
| 5327 | cat conftest.err >&5 |
---|
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5329 | (exit $ac_status); } >/dev/null; then |
---|
| 5330 | if test -s conftest.err; then |
---|
| 5331 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5332 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5333 | else |
---|
| 5334 | ac_cpp_err= |
---|
| 5335 | fi |
---|
| 5336 | else |
---|
| 5337 | ac_cpp_err=yes |
---|
[2190] | 5338 | fi |
---|
[2991] | 5339 | if test -z "$ac_cpp_err"; then |
---|
| 5340 | ac_header_preproc=yes |
---|
| 5341 | else |
---|
| 5342 | echo "$as_me: failed program was:" >&5 |
---|
| 5343 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5344 | |
---|
| 5345 | ac_header_preproc=no |
---|
| 5346 | fi |
---|
| 5347 | rm -f conftest.err conftest.$ac_ext |
---|
| 5348 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5349 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5350 | |
---|
| 5351 | # So? What about this header? |
---|
| 5352 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5353 | yes:no: ) |
---|
| 5354 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5355 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5357 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5358 | ac_header_preproc=yes |
---|
| 5359 | ;; |
---|
| 5360 | no:yes:* ) |
---|
| 5361 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5362 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5363 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5364 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5365 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5366 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5367 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5368 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5369 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5370 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5371 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5372 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5373 | ( |
---|
| 5374 | cat <<\_ASBOX |
---|
| 5375 | ## ------------------------------------------- ## |
---|
| 5376 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5377 | ## ------------------------------------------- ## |
---|
| 5378 | _ASBOX |
---|
| 5379 | ) | |
---|
| 5380 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5381 | ;; |
---|
| 5382 | esac |
---|
| 5383 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5387 | else |
---|
| 5388 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5389 | fi |
---|
| 5390 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5391 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5392 | |
---|
| 5393 | fi |
---|
| 5394 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5395 | cat >>confdefs.h <<_ACEOF |
---|
| 5396 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5397 | _ACEOF |
---|
| 5398 | |
---|
| 5399 | else |
---|
| 5400 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5401 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5402 | { (exit 1); exit 1; }; } |
---|
| 5403 | fi |
---|
| 5404 | |
---|
| 5405 | done |
---|
| 5406 | |
---|
| 5407 | |
---|
[3104] | 5408 | # checking for SDL-lib |
---|
[2991] | 5409 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5410 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5411 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5413 | else |
---|
| 5414 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5415 | LIBS="-lSDL $LIBS" |
---|
| 5416 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5417 | /* confdefs.h. */ |
---|
| 5418 | _ACEOF |
---|
| 5419 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5420 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5421 | /* end confdefs.h. */ |
---|
| 5422 | |
---|
| 5423 | |
---|
| 5424 | int |
---|
| 5425 | main () |
---|
| 5426 | { |
---|
[2991] | 5427 | main (); |
---|
[2190] | 5428 | ; |
---|
| 5429 | return 0; |
---|
| 5430 | } |
---|
| 5431 | _ACEOF |
---|
| 5432 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5434 | (eval $ac_link) 2>conftest.er1 |
---|
| 5435 | ac_status=$? |
---|
| 5436 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5437 | rm -f conftest.er1 |
---|
| 5438 | cat conftest.err >&5 |
---|
| 5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5440 | (exit $ac_status); } && |
---|
| 5441 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5442 | || test ! -s conftest.err' |
---|
| 5443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5444 | (eval $ac_try) 2>&5 |
---|
| 5445 | ac_status=$? |
---|
| 5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5447 | (exit $ac_status); }; } && |
---|
| 5448 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5450 | (eval $ac_try) 2>&5 |
---|
| 5451 | ac_status=$? |
---|
| 5452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5453 | (exit $ac_status); }; }; then |
---|
[2991] | 5454 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5455 | else |
---|
| 5456 | echo "$as_me: failed program was:" >&5 |
---|
| 5457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5458 | |
---|
[2991] | 5459 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5460 | fi |
---|
| 5461 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5462 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5463 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5464 | fi |
---|
| 5465 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5466 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5467 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5468 | FOUND_SDL=yes |
---|
| 5469 | fi |
---|
| 5470 | |
---|
| 5471 | if test "$FOUND_SDL" = "yes" ; then |
---|
| 5472 | LIBS="$LIBS -lSDL" |
---|
| 5473 | else |
---|
| 5474 | echo "------------------" |
---|
| 5475 | echo "SDL library not found." |
---|
| 5476 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5477 | echo "------------------" |
---|
| 5478 | exit -1 |
---|
[2980] | 5479 | fi |
---|
[2701] | 5480 | |
---|
[3104] | 5481 | |
---|
[3108] | 5482 | ## checking for SDL |
---|
| 5483 | # SDL_VERSION=1.2.7 |
---|
| 5484 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5485 | # :, |
---|
| 5486 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5487 | # ) |
---|
| 5488 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5489 | # LIBS="$LIBS $SDL_LIBS" |
---|
| 5490 | ;; |
---|
| 5491 | |
---|
| 5492 | ### OS X ### |
---|
| 5493 | *darwin*) |
---|
| 5494 | echo "OS X detected" |
---|
| 5495 | |
---|
| 5496 | osX="yes" |
---|
| 5497 | |
---|
[3110] | 5498 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
[3108] | 5499 | # checking gl header |
---|
| 5500 | |
---|
| 5501 | for ac_header in OpenGL/gl.h |
---|
[3104] | 5502 | do |
---|
| 5503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5509 | fi |
---|
| 5510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5512 | else |
---|
| 5513 | # Is the header compilable? |
---|
| 5514 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5515 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5516 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5517 | /* confdefs.h. */ |
---|
| 5518 | _ACEOF |
---|
| 5519 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5520 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5521 | /* end confdefs.h. */ |
---|
| 5522 | $ac_includes_default |
---|
| 5523 | #include <$ac_header> |
---|
| 5524 | _ACEOF |
---|
| 5525 | rm -f conftest.$ac_objext |
---|
| 5526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5527 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5528 | ac_status=$? |
---|
| 5529 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5530 | rm -f conftest.er1 |
---|
| 5531 | cat conftest.err >&5 |
---|
| 5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5533 | (exit $ac_status); } && |
---|
| 5534 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5535 | || test ! -s conftest.err' |
---|
| 5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5537 | (eval $ac_try) 2>&5 |
---|
| 5538 | ac_status=$? |
---|
| 5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5540 | (exit $ac_status); }; } && |
---|
| 5541 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5543 | (eval $ac_try) 2>&5 |
---|
| 5544 | ac_status=$? |
---|
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5546 | (exit $ac_status); }; }; then |
---|
| 5547 | ac_header_compiler=yes |
---|
| 5548 | else |
---|
| 5549 | echo "$as_me: failed program was:" >&5 |
---|
| 5550 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5551 | |
---|
| 5552 | ac_header_compiler=no |
---|
| 5553 | fi |
---|
| 5554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5555 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5556 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5557 | |
---|
| 5558 | # Is the header present? |
---|
| 5559 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5560 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5561 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5562 | /* confdefs.h. */ |
---|
| 5563 | _ACEOF |
---|
| 5564 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5565 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5566 | /* end confdefs.h. */ |
---|
| 5567 | #include <$ac_header> |
---|
| 5568 | _ACEOF |
---|
| 5569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5571 | ac_status=$? |
---|
| 5572 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5573 | rm -f conftest.er1 |
---|
| 5574 | cat conftest.err >&5 |
---|
| 5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5576 | (exit $ac_status); } >/dev/null; then |
---|
| 5577 | if test -s conftest.err; then |
---|
| 5578 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5579 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5580 | else |
---|
| 5581 | ac_cpp_err= |
---|
| 5582 | fi |
---|
| 5583 | else |
---|
| 5584 | ac_cpp_err=yes |
---|
| 5585 | fi |
---|
| 5586 | if test -z "$ac_cpp_err"; then |
---|
| 5587 | ac_header_preproc=yes |
---|
| 5588 | else |
---|
| 5589 | echo "$as_me: failed program was:" >&5 |
---|
| 5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5591 | |
---|
| 5592 | ac_header_preproc=no |
---|
| 5593 | fi |
---|
| 5594 | rm -f conftest.err conftest.$ac_ext |
---|
| 5595 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5596 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5597 | |
---|
| 5598 | # So? What about this header? |
---|
| 5599 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5600 | yes:no: ) |
---|
| 5601 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5602 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5604 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5605 | ac_header_preproc=yes |
---|
| 5606 | ;; |
---|
| 5607 | no:yes:* ) |
---|
| 5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5609 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5610 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5611 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5612 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5613 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5614 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5615 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5617 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5618 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5619 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5620 | ( |
---|
| 5621 | cat <<\_ASBOX |
---|
| 5622 | ## ------------------------------------------- ## |
---|
| 5623 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5624 | ## ------------------------------------------- ## |
---|
| 5625 | _ASBOX |
---|
| 5626 | ) | |
---|
| 5627 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5628 | ;; |
---|
| 5629 | esac |
---|
| 5630 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5634 | else |
---|
| 5635 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5636 | fi |
---|
| 5637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5638 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5639 | |
---|
| 5640 | fi |
---|
| 5641 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5642 | cat >>confdefs.h <<_ACEOF |
---|
| 5643 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5644 | _ACEOF |
---|
| 5645 | |
---|
| 5646 | else |
---|
[3108] | 5647 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5648 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5649 | { (exit 1); exit 1; }; } |
---|
[3104] | 5650 | fi |
---|
| 5651 | |
---|
| 5652 | done |
---|
| 5653 | |
---|
[3108] | 5654 | # cheking for GLU-header |
---|
[3104] | 5655 | |
---|
[3108] | 5656 | for ac_header in OpenGL/glu.h |
---|
[2995] | 5657 | do |
---|
| 5658 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5660 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5664 | fi |
---|
| 5665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5667 | else |
---|
| 5668 | # Is the header compilable? |
---|
| 5669 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5670 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5671 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5672 | /* confdefs.h. */ |
---|
| 5673 | _ACEOF |
---|
| 5674 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5675 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5676 | /* end confdefs.h. */ |
---|
| 5677 | $ac_includes_default |
---|
| 5678 | #include <$ac_header> |
---|
| 5679 | _ACEOF |
---|
| 5680 | rm -f conftest.$ac_objext |
---|
| 5681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5682 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5683 | ac_status=$? |
---|
| 5684 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5685 | rm -f conftest.er1 |
---|
| 5686 | cat conftest.err >&5 |
---|
| 5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5688 | (exit $ac_status); } && |
---|
| 5689 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5690 | || test ! -s conftest.err' |
---|
| 5691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5692 | (eval $ac_try) 2>&5 |
---|
| 5693 | ac_status=$? |
---|
| 5694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5695 | (exit $ac_status); }; } && |
---|
| 5696 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5698 | (eval $ac_try) 2>&5 |
---|
| 5699 | ac_status=$? |
---|
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5701 | (exit $ac_status); }; }; then |
---|
| 5702 | ac_header_compiler=yes |
---|
| 5703 | else |
---|
| 5704 | echo "$as_me: failed program was:" >&5 |
---|
| 5705 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5706 | |
---|
| 5707 | ac_header_compiler=no |
---|
| 5708 | fi |
---|
| 5709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5710 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5711 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5712 | |
---|
| 5713 | # Is the header present? |
---|
| 5714 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5715 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5716 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5717 | /* confdefs.h. */ |
---|
| 5718 | _ACEOF |
---|
| 5719 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5720 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5721 | /* end confdefs.h. */ |
---|
| 5722 | #include <$ac_header> |
---|
| 5723 | _ACEOF |
---|
| 5724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5726 | ac_status=$? |
---|
| 5727 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5728 | rm -f conftest.er1 |
---|
| 5729 | cat conftest.err >&5 |
---|
| 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5731 | (exit $ac_status); } >/dev/null; then |
---|
| 5732 | if test -s conftest.err; then |
---|
| 5733 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5734 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5735 | else |
---|
| 5736 | ac_cpp_err= |
---|
| 5737 | fi |
---|
| 5738 | else |
---|
| 5739 | ac_cpp_err=yes |
---|
| 5740 | fi |
---|
| 5741 | if test -z "$ac_cpp_err"; then |
---|
| 5742 | ac_header_preproc=yes |
---|
| 5743 | else |
---|
| 5744 | echo "$as_me: failed program was:" >&5 |
---|
| 5745 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5746 | |
---|
| 5747 | ac_header_preproc=no |
---|
| 5748 | fi |
---|
| 5749 | rm -f conftest.err conftest.$ac_ext |
---|
| 5750 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5751 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5752 | |
---|
| 5753 | # So? What about this header? |
---|
| 5754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5755 | yes:no: ) |
---|
| 5756 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5757 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5758 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5759 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5760 | ac_header_preproc=yes |
---|
| 5761 | ;; |
---|
| 5762 | no:yes:* ) |
---|
| 5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5764 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5765 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5766 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5767 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5768 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5769 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5770 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5772 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5773 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5774 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5775 | ( |
---|
| 5776 | cat <<\_ASBOX |
---|
| 5777 | ## ------------------------------------------- ## |
---|
| 5778 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5779 | ## ------------------------------------------- ## |
---|
| 5780 | _ASBOX |
---|
| 5781 | ) | |
---|
| 5782 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5783 | ;; |
---|
| 5784 | esac |
---|
| 5785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5789 | else |
---|
| 5790 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5791 | fi |
---|
| 5792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5793 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5794 | |
---|
| 5795 | fi |
---|
| 5796 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5797 | cat >>confdefs.h <<_ACEOF |
---|
| 5798 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5799 | _ACEOF |
---|
| 5800 | |
---|
| 5801 | else |
---|
| 5802 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5803 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5804 | { (exit 1); exit 1; }; } |
---|
| 5805 | fi |
---|
| 5806 | |
---|
| 5807 | done |
---|
| 5808 | |
---|
| 5809 | |
---|
[3108] | 5810 | LIBS="$LIBS -framework OpenGL" |
---|
| 5811 | |
---|
| 5812 | # checking for SDL-headers |
---|
| 5813 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 5814 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
| 5815 | |
---|
| 5816 | ## checking for SDL |
---|
| 5817 | # SDL_VERSION=1.2.7 |
---|
| 5818 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5819 | # :, |
---|
| 5820 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5821 | # ) |
---|
| 5822 | |
---|
| 5823 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 5824 | SDL_LIBS=`sdl-config --libs` |
---|
| 5825 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5826 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5827 | |
---|
| 5828 | ;; |
---|
| 5829 | |
---|
| 5830 | *) |
---|
| 5831 | ;; |
---|
| 5832 | esac |
---|
| 5833 | |
---|
| 5834 | |
---|
| 5835 | |
---|
| 5836 | ## check for SDL_Image |
---|
| 5837 | if test "$def_sdl_image" = "yes"; then |
---|
| 5838 | # checking for SDL_image-headers |
---|
| 5839 | |
---|
| 5840 | for ac_header in SDL/SDL_image.h |
---|
[2995] | 5841 | do |
---|
| 5842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5848 | fi |
---|
| 5849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5851 | else |
---|
| 5852 | # Is the header compilable? |
---|
| 5853 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5854 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5855 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5856 | /* confdefs.h. */ |
---|
| 5857 | _ACEOF |
---|
| 5858 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5859 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5860 | /* end confdefs.h. */ |
---|
| 5861 | $ac_includes_default |
---|
| 5862 | #include <$ac_header> |
---|
| 5863 | _ACEOF |
---|
| 5864 | rm -f conftest.$ac_objext |
---|
| 5865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5866 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5867 | ac_status=$? |
---|
| 5868 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5869 | rm -f conftest.er1 |
---|
| 5870 | cat conftest.err >&5 |
---|
| 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5872 | (exit $ac_status); } && |
---|
| 5873 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5874 | || test ! -s conftest.err' |
---|
| 5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5876 | (eval $ac_try) 2>&5 |
---|
| 5877 | ac_status=$? |
---|
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5879 | (exit $ac_status); }; } && |
---|
| 5880 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5882 | (eval $ac_try) 2>&5 |
---|
| 5883 | ac_status=$? |
---|
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5885 | (exit $ac_status); }; }; then |
---|
| 5886 | ac_header_compiler=yes |
---|
| 5887 | else |
---|
| 5888 | echo "$as_me: failed program was:" >&5 |
---|
| 5889 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5890 | |
---|
| 5891 | ac_header_compiler=no |
---|
| 5892 | fi |
---|
| 5893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5894 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5895 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5896 | |
---|
| 5897 | # Is the header present? |
---|
| 5898 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5900 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5901 | /* confdefs.h. */ |
---|
| 5902 | _ACEOF |
---|
| 5903 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5904 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5905 | /* end confdefs.h. */ |
---|
| 5906 | #include <$ac_header> |
---|
| 5907 | _ACEOF |
---|
| 5908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5910 | ac_status=$? |
---|
| 5911 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5912 | rm -f conftest.er1 |
---|
| 5913 | cat conftest.err >&5 |
---|
| 5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5915 | (exit $ac_status); } >/dev/null; then |
---|
| 5916 | if test -s conftest.err; then |
---|
| 5917 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5918 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5919 | else |
---|
| 5920 | ac_cpp_err= |
---|
| 5921 | fi |
---|
| 5922 | else |
---|
| 5923 | ac_cpp_err=yes |
---|
| 5924 | fi |
---|
| 5925 | if test -z "$ac_cpp_err"; then |
---|
| 5926 | ac_header_preproc=yes |
---|
| 5927 | else |
---|
| 5928 | echo "$as_me: failed program was:" >&5 |
---|
| 5929 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5930 | |
---|
| 5931 | ac_header_preproc=no |
---|
| 5932 | fi |
---|
| 5933 | rm -f conftest.err conftest.$ac_ext |
---|
| 5934 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5935 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5936 | |
---|
| 5937 | # So? What about this header? |
---|
| 5938 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5939 | yes:no: ) |
---|
| 5940 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5941 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5943 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5944 | ac_header_preproc=yes |
---|
| 5945 | ;; |
---|
| 5946 | no:yes:* ) |
---|
| 5947 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5948 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5949 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5950 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5951 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5952 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5953 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5954 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5956 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5957 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5958 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5959 | ( |
---|
| 5960 | cat <<\_ASBOX |
---|
| 5961 | ## ------------------------------------------- ## |
---|
| 5962 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5963 | ## ------------------------------------------- ## |
---|
| 5964 | _ASBOX |
---|
| 5965 | ) | |
---|
| 5966 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5967 | ;; |
---|
| 5968 | esac |
---|
| 5969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5973 | else |
---|
| 5974 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5975 | fi |
---|
| 5976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5978 | |
---|
| 5979 | fi |
---|
| 5980 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5981 | cat >>confdefs.h <<_ACEOF |
---|
| 5982 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5983 | _ACEOF |
---|
| 5984 | |
---|
| 5985 | else |
---|
[3108] | 5986 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
[2995] | 5987 | fi |
---|
| 5988 | |
---|
| 5989 | done |
---|
| 5990 | |
---|
[3108] | 5991 | fi |
---|
| 5992 | if test "$def_sdl_image" = "yes"; then |
---|
| 5993 | # checking for SDL_image-lib |
---|
| 5994 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 5995 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 5996 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 5997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5998 | else |
---|
| 5999 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6000 | LIBS="-lSDL_image $LIBS" |
---|
| 6001 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6002 | /* confdefs.h. */ |
---|
| 6003 | _ACEOF |
---|
| 6004 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6005 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6006 | /* end confdefs.h. */ |
---|
[2995] | 6007 | |
---|
| 6008 | |
---|
[3108] | 6009 | int |
---|
| 6010 | main () |
---|
| 6011 | { |
---|
| 6012 | main (); |
---|
| 6013 | ; |
---|
| 6014 | return 0; |
---|
| 6015 | } |
---|
| 6016 | _ACEOF |
---|
| 6017 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6019 | (eval $ac_link) 2>conftest.er1 |
---|
| 6020 | ac_status=$? |
---|
| 6021 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6022 | rm -f conftest.er1 |
---|
| 6023 | cat conftest.err >&5 |
---|
| 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6025 | (exit $ac_status); } && |
---|
| 6026 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6027 | || test ! -s conftest.err' |
---|
| 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); }; } && |
---|
| 6033 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6035 | (eval $ac_try) 2>&5 |
---|
| 6036 | ac_status=$? |
---|
| 6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6038 | (exit $ac_status); }; }; then |
---|
| 6039 | ac_cv_lib_SDL_image_main=yes |
---|
| 6040 | else |
---|
| 6041 | echo "$as_me: failed program was:" >&5 |
---|
| 6042 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2995] | 6043 | |
---|
[3108] | 6044 | ac_cv_lib_SDL_image_main=no |
---|
| 6045 | fi |
---|
| 6046 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6047 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6048 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6049 | fi |
---|
| 6050 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6051 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6052 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6053 | FOUND_SDL_image=yes |
---|
| 6054 | fi |
---|
[2995] | 6055 | |
---|
[3108] | 6056 | if test "$FOUND_SDL_image" = "yes" ; then |
---|
| 6057 | LIBS="$LIBS -lSDL_image" |
---|
| 6058 | else |
---|
| 6059 | echo "------------------" |
---|
| 6060 | echo "SDL_image library not found." |
---|
| 6061 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6062 | echo "------------------" |
---|
| 6063 | exit -1 |
---|
| 6064 | fi |
---|
| 6065 | fi |
---|
[3105] | 6066 | |
---|
[2995] | 6067 | |
---|
[3105] | 6068 | if test "$def_sdl_image" = "no"; then |
---|
| 6069 | ## checking for libjpeg |
---|
[2989] | 6070 | |
---|
[3086] | 6071 | for ac_header in jpeglib.h |
---|
| 6072 | do |
---|
| 6073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6079 | fi |
---|
| 6080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6081 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6082 | else |
---|
| 6083 | # Is the header compilable? |
---|
| 6084 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6085 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6086 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6087 | /* confdefs.h. */ |
---|
| 6088 | _ACEOF |
---|
| 6089 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6090 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6091 | /* end confdefs.h. */ |
---|
| 6092 | $ac_includes_default |
---|
| 6093 | #include <$ac_header> |
---|
| 6094 | _ACEOF |
---|
| 6095 | rm -f conftest.$ac_objext |
---|
| 6096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6097 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6098 | ac_status=$? |
---|
| 6099 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6100 | rm -f conftest.er1 |
---|
| 6101 | cat conftest.err >&5 |
---|
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6103 | (exit $ac_status); } && |
---|
| 6104 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6105 | || test ! -s conftest.err' |
---|
| 6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6107 | (eval $ac_try) 2>&5 |
---|
| 6108 | ac_status=$? |
---|
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6110 | (exit $ac_status); }; } && |
---|
| 6111 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6113 | (eval $ac_try) 2>&5 |
---|
| 6114 | ac_status=$? |
---|
| 6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6116 | (exit $ac_status); }; }; then |
---|
| 6117 | ac_header_compiler=yes |
---|
| 6118 | else |
---|
| 6119 | echo "$as_me: failed program was:" >&5 |
---|
| 6120 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6121 | |
---|
[3086] | 6122 | ac_header_compiler=no |
---|
| 6123 | fi |
---|
| 6124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6125 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6126 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6127 | |
---|
[3086] | 6128 | # Is the header present? |
---|
| 6129 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6130 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6131 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6132 | /* confdefs.h. */ |
---|
| 6133 | _ACEOF |
---|
| 6134 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6135 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6136 | /* end confdefs.h. */ |
---|
| 6137 | #include <$ac_header> |
---|
| 6138 | _ACEOF |
---|
| 6139 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6140 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6141 | ac_status=$? |
---|
| 6142 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6143 | rm -f conftest.er1 |
---|
| 6144 | cat conftest.err >&5 |
---|
| 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6146 | (exit $ac_status); } >/dev/null; then |
---|
| 6147 | if test -s conftest.err; then |
---|
| 6148 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6149 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6150 | else |
---|
| 6151 | ac_cpp_err= |
---|
| 6152 | fi |
---|
| 6153 | else |
---|
| 6154 | ac_cpp_err=yes |
---|
| 6155 | fi |
---|
| 6156 | if test -z "$ac_cpp_err"; then |
---|
| 6157 | ac_header_preproc=yes |
---|
| 6158 | else |
---|
| 6159 | echo "$as_me: failed program was:" >&5 |
---|
| 6160 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6161 | |
---|
| 6162 | ac_header_preproc=no |
---|
| 6163 | fi |
---|
| 6164 | rm -f conftest.err conftest.$ac_ext |
---|
| 6165 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6166 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6167 | |
---|
| 6168 | # So? What about this header? |
---|
| 6169 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6170 | yes:no: ) |
---|
| 6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6172 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6174 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6175 | ac_header_preproc=yes |
---|
| 6176 | ;; |
---|
| 6177 | no:yes:* ) |
---|
| 6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6179 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6181 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6183 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6184 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6185 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6187 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6188 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6189 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6190 | ( |
---|
| 6191 | cat <<\_ASBOX |
---|
| 6192 | ## ------------------------------------------- ## |
---|
| 6193 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 6194 | ## ------------------------------------------- ## |
---|
| 6195 | _ASBOX |
---|
| 6196 | ) | |
---|
| 6197 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6198 | ;; |
---|
| 6199 | esac |
---|
| 6200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6204 | else |
---|
| 6205 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6206 | fi |
---|
| 6207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6209 | |
---|
| 6210 | fi |
---|
| 6211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6212 | cat >>confdefs.h <<_ACEOF |
---|
| 6213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6214 | _ACEOF |
---|
[3110] | 6215 | jpegHeader="yes" |
---|
[3086] | 6216 | else |
---|
[3110] | 6217 | jpegHeader="no" |
---|
[3086] | 6218 | fi |
---|
| 6219 | |
---|
| 6220 | done |
---|
| 6221 | |
---|
[3110] | 6222 | if test $jpegHeader = "no"; then |
---|
| 6223 | echo " not including jpeg." |
---|
| 6224 | else |
---|
| 6225 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
[3086] | 6226 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
| 6227 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
| 6228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6229 | else |
---|
| 6230 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6231 | LIBS="-ljpeg $LIBS" |
---|
| 6232 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6233 | /* confdefs.h. */ |
---|
| 6234 | _ACEOF |
---|
| 6235 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6237 | /* end confdefs.h. */ |
---|
| 6238 | |
---|
| 6239 | |
---|
| 6240 | int |
---|
| 6241 | main () |
---|
| 6242 | { |
---|
| 6243 | main (); |
---|
| 6244 | ; |
---|
| 6245 | return 0; |
---|
| 6246 | } |
---|
| 6247 | _ACEOF |
---|
| 6248 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6250 | (eval $ac_link) 2>conftest.er1 |
---|
| 6251 | ac_status=$? |
---|
| 6252 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6253 | rm -f conftest.er1 |
---|
| 6254 | cat conftest.err >&5 |
---|
| 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6256 | (exit $ac_status); } && |
---|
| 6257 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6258 | || test ! -s conftest.err' |
---|
| 6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6260 | (eval $ac_try) 2>&5 |
---|
| 6261 | ac_status=$? |
---|
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6263 | (exit $ac_status); }; } && |
---|
| 6264 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6266 | (eval $ac_try) 2>&5 |
---|
| 6267 | ac_status=$? |
---|
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6269 | (exit $ac_status); }; }; then |
---|
| 6270 | ac_cv_lib_jpeg_main=yes |
---|
| 6271 | else |
---|
| 6272 | echo "$as_me: failed program was:" >&5 |
---|
| 6273 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6274 | |
---|
| 6275 | ac_cv_lib_jpeg_main=no |
---|
| 6276 | fi |
---|
| 6277 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6278 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6279 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6280 | fi |
---|
| 6281 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
| 6282 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
| 6283 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
| 6284 | FOUND_jpeg=yes |
---|
| 6285 | fi |
---|
| 6286 | |
---|
| 6287 | if test "$FOUND_jpeg" = "yes" ; then |
---|
| 6288 | LIBS="$LIBS -ljpeg" |
---|
| 6289 | else |
---|
| 6290 | echo "------------------" |
---|
| 6291 | echo "jpeg library not found." |
---|
| 6292 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
| 6293 | echo "------------------" |
---|
| 6294 | exit -1 |
---|
| 6295 | fi |
---|
[3110] | 6296 | fi |
---|
[3086] | 6297 | |
---|
[3105] | 6298 | ## checking for libpng |
---|
[3098] | 6299 | |
---|
| 6300 | for ac_header in png.h |
---|
| 6301 | do |
---|
| 6302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6308 | fi |
---|
| 6309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6311 | else |
---|
| 6312 | # Is the header compilable? |
---|
| 6313 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6315 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6316 | /* confdefs.h. */ |
---|
| 6317 | _ACEOF |
---|
| 6318 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6319 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6320 | /* end confdefs.h. */ |
---|
| 6321 | $ac_includes_default |
---|
| 6322 | #include <$ac_header> |
---|
| 6323 | _ACEOF |
---|
| 6324 | rm -f conftest.$ac_objext |
---|
| 6325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6326 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6327 | ac_status=$? |
---|
| 6328 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6329 | rm -f conftest.er1 |
---|
| 6330 | cat conftest.err >&5 |
---|
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6332 | (exit $ac_status); } && |
---|
| 6333 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6334 | || test ! -s conftest.err' |
---|
| 6335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6336 | (eval $ac_try) 2>&5 |
---|
| 6337 | ac_status=$? |
---|
| 6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6339 | (exit $ac_status); }; } && |
---|
| 6340 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6342 | (eval $ac_try) 2>&5 |
---|
| 6343 | ac_status=$? |
---|
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6345 | (exit $ac_status); }; }; then |
---|
| 6346 | ac_header_compiler=yes |
---|
| 6347 | else |
---|
| 6348 | echo "$as_me: failed program was:" >&5 |
---|
| 6349 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6350 | |
---|
| 6351 | ac_header_compiler=no |
---|
| 6352 | fi |
---|
| 6353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6354 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6355 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6356 | |
---|
| 6357 | # Is the header present? |
---|
| 6358 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6359 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6360 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6361 | /* confdefs.h. */ |
---|
| 6362 | _ACEOF |
---|
| 6363 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6364 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6365 | /* end confdefs.h. */ |
---|
| 6366 | #include <$ac_header> |
---|
| 6367 | _ACEOF |
---|
| 6368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6370 | ac_status=$? |
---|
| 6371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6372 | rm -f conftest.er1 |
---|
| 6373 | cat conftest.err >&5 |
---|
| 6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6375 | (exit $ac_status); } >/dev/null; then |
---|
| 6376 | if test -s conftest.err; then |
---|
| 6377 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6379 | else |
---|
| 6380 | ac_cpp_err= |
---|
| 6381 | fi |
---|
| 6382 | else |
---|
| 6383 | ac_cpp_err=yes |
---|
| 6384 | fi |
---|
| 6385 | if test -z "$ac_cpp_err"; then |
---|
| 6386 | ac_header_preproc=yes |
---|
| 6387 | else |
---|
| 6388 | echo "$as_me: failed program was:" >&5 |
---|
| 6389 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6390 | |
---|
| 6391 | ac_header_preproc=no |
---|
| 6392 | fi |
---|
| 6393 | rm -f conftest.err conftest.$ac_ext |
---|
| 6394 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6395 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6396 | |
---|
| 6397 | # So? What about this header? |
---|
| 6398 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6399 | yes:no: ) |
---|
| 6400 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6401 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6403 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6404 | ac_header_preproc=yes |
---|
| 6405 | ;; |
---|
| 6406 | no:yes:* ) |
---|
| 6407 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6408 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6409 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6410 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6411 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6412 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6413 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6414 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6416 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6417 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6418 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6419 | ( |
---|
| 6420 | cat <<\_ASBOX |
---|
| 6421 | ## ------------------------------------------- ## |
---|
| 6422 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 6423 | ## ------------------------------------------- ## |
---|
| 6424 | _ASBOX |
---|
| 6425 | ) | |
---|
| 6426 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6427 | ;; |
---|
| 6428 | esac |
---|
| 6429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6433 | else |
---|
| 6434 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6435 | fi |
---|
| 6436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6438 | |
---|
| 6439 | fi |
---|
| 6440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6441 | cat >>confdefs.h <<_ACEOF |
---|
| 6442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6443 | _ACEOF |
---|
[3110] | 6444 | pngHeader="yes" |
---|
[3098] | 6445 | else |
---|
[3110] | 6446 | pngHeader="no" |
---|
[3098] | 6447 | fi |
---|
| 6448 | |
---|
| 6449 | done |
---|
| 6450 | |
---|
[3110] | 6451 | if test $pngHeader = "no"; then |
---|
| 6452 | echo " not including png." |
---|
| 6453 | else |
---|
| 6454 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
[3098] | 6455 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
| 6456 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
| 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6458 | else |
---|
| 6459 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6460 | LIBS="-lpng $LIBS" |
---|
| 6461 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6462 | /* confdefs.h. */ |
---|
| 6463 | _ACEOF |
---|
| 6464 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6466 | /* end confdefs.h. */ |
---|
| 6467 | |
---|
| 6468 | |
---|
| 6469 | int |
---|
| 6470 | main () |
---|
| 6471 | { |
---|
| 6472 | main (); |
---|
| 6473 | ; |
---|
| 6474 | return 0; |
---|
| 6475 | } |
---|
| 6476 | _ACEOF |
---|
| 6477 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6479 | (eval $ac_link) 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); } && |
---|
| 6486 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6487 | || test ! -s conftest.err' |
---|
| 6488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6489 | (eval $ac_try) 2>&5 |
---|
| 6490 | ac_status=$? |
---|
| 6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6492 | (exit $ac_status); }; } && |
---|
| 6493 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6495 | (eval $ac_try) 2>&5 |
---|
| 6496 | ac_status=$? |
---|
| 6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6498 | (exit $ac_status); }; }; then |
---|
| 6499 | ac_cv_lib_png_main=yes |
---|
| 6500 | else |
---|
| 6501 | echo "$as_me: failed program was:" >&5 |
---|
| 6502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6503 | |
---|
| 6504 | ac_cv_lib_png_main=no |
---|
| 6505 | fi |
---|
| 6506 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6507 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6508 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6509 | fi |
---|
| 6510 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
| 6511 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
| 6512 | if test $ac_cv_lib_png_main = yes; then |
---|
| 6513 | FOUND_png=yes |
---|
| 6514 | fi |
---|
| 6515 | |
---|
| 6516 | if test "$FOUND_png" = "yes" ; then |
---|
| 6517 | LIBS="$LIBS -lpng" |
---|
| 6518 | else |
---|
| 6519 | echo "------------------" |
---|
| 6520 | echo "png library not found." |
---|
| 6521 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
| 6522 | echo "------------------" |
---|
| 6523 | exit -1 |
---|
| 6524 | fi |
---|
[3110] | 6525 | fi |
---|
[3105] | 6526 | fi |
---|
[3098] | 6527 | |
---|
[2980] | 6528 | ## checking for GTK |
---|
[3105] | 6529 | if test "$def_gtk" = yes; then |
---|
[2980] | 6530 | |
---|
[3105] | 6531 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6532 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
| 6533 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
| 6534 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6535 | echo "yes" |
---|
| 6536 | have_gtk2=yes |
---|
| 6537 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6538 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
[2980] | 6539 | |
---|
[3105] | 6540 | cat >>confdefs.h <<_ACEOF |
---|
| 6541 | #define HAVE_GTK2 1 |
---|
| 6542 | _ACEOF |
---|
[2190] | 6543 | |
---|
[3105] | 6544 | else |
---|
| 6545 | echo "no" |
---|
| 6546 | fi |
---|
[2190] | 6547 | |
---|
| 6548 | fi |
---|
[2701] | 6549 | |
---|
| 6550 | |
---|
[2190] | 6551 | |
---|
[2701] | 6552 | |
---|
[3105] | 6553 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 6554 | HAVE_GTK2_TRUE= |
---|
| 6555 | HAVE_GTK2_FALSE='#' |
---|
| 6556 | else |
---|
| 6557 | HAVE_GTK2_TRUE='#' |
---|
| 6558 | HAVE_GTK2_FALSE= |
---|
| 6559 | fi |
---|
| 6560 | |
---|
| 6561 | |
---|
| 6562 | |
---|
[3105] | 6563 | |
---|
[2190] | 6564 | #checking for pthread libs |
---|
[2968] | 6565 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
[2190] | 6566 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 6567 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6569 | else |
---|
| 6570 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6571 | LIBS="-lpthread $LIBS" |
---|
| 6572 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6573 | /* confdefs.h. */ |
---|
| 6574 | _ACEOF |
---|
| 6575 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6576 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6577 | /* end confdefs.h. */ |
---|
| 6578 | |
---|
| 6579 | |
---|
| 6580 | int |
---|
| 6581 | main () |
---|
| 6582 | { |
---|
| 6583 | main (); |
---|
| 6584 | ; |
---|
| 6585 | return 0; |
---|
| 6586 | } |
---|
| 6587 | _ACEOF |
---|
| 6588 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6590 | (eval $ac_link) 2>conftest.er1 |
---|
| 6591 | ac_status=$? |
---|
| 6592 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6593 | rm -f conftest.er1 |
---|
| 6594 | cat conftest.err >&5 |
---|
| 6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6596 | (exit $ac_status); } && |
---|
| 6597 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6598 | || test ! -s conftest.err' |
---|
| 6599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6600 | (eval $ac_try) 2>&5 |
---|
| 6601 | ac_status=$? |
---|
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6603 | (exit $ac_status); }; } && |
---|
| 6604 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6606 | (eval $ac_try) 2>&5 |
---|
| 6607 | ac_status=$? |
---|
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6609 | (exit $ac_status); }; }; then |
---|
| 6610 | ac_cv_lib_pthread_main=yes |
---|
| 6611 | else |
---|
| 6612 | echo "$as_me: failed program was:" >&5 |
---|
| 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6614 | |
---|
| 6615 | ac_cv_lib_pthread_main=no |
---|
| 6616 | fi |
---|
| 6617 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6618 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6619 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6620 | fi |
---|
| 6621 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 6622 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 6623 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 6624 | FOUND_pthread=yes |
---|
| 6625 | fi |
---|
| 6626 | |
---|
[2968] | 6627 | if test "$FOUND_pthread" = "yes" ; then |
---|
[2190] | 6628 | LIBS="$LIBS -lpthread" |
---|
[2968] | 6629 | fi |
---|
[2190] | 6630 | |
---|
| 6631 | |
---|
[1956] | 6632 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 6633 | |
---|
| 6634 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 6635 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 6636 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 6637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6638 | else |
---|
| 6639 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6640 | LIBS="-lm $LIBS" |
---|
| 6641 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6642 | /* confdefs.h. */ |
---|
| 6643 | _ACEOF |
---|
| 6644 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6645 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6646 | /* end confdefs.h. */ |
---|
| 6647 | |
---|
| 6648 | |
---|
| 6649 | int |
---|
| 6650 | main () |
---|
| 6651 | { |
---|
| 6652 | main (); |
---|
| 6653 | ; |
---|
| 6654 | return 0; |
---|
| 6655 | } |
---|
| 6656 | _ACEOF |
---|
| 6657 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6659 | (eval $ac_link) 2>conftest.er1 |
---|
| 6660 | ac_status=$? |
---|
| 6661 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6662 | rm -f conftest.er1 |
---|
| 6663 | cat conftest.err >&5 |
---|
| 6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6665 | (exit $ac_status); } && |
---|
| 6666 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6667 | || test ! -s conftest.err' |
---|
| 6668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6669 | (eval $ac_try) 2>&5 |
---|
| 6670 | ac_status=$? |
---|
| 6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6672 | (exit $ac_status); }; } && |
---|
| 6673 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6675 | (eval $ac_try) 2>&5 |
---|
| 6676 | ac_status=$? |
---|
| 6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6678 | (exit $ac_status); }; }; then |
---|
| 6679 | ac_cv_lib_m_main=yes |
---|
| 6680 | else |
---|
| 6681 | echo "$as_me: failed program was:" >&5 |
---|
| 6682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6683 | |
---|
| 6684 | ac_cv_lib_m_main=no |
---|
| 6685 | fi |
---|
| 6686 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6687 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6688 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6689 | fi |
---|
| 6690 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 6691 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 6692 | if test $ac_cv_lib_m_main = yes; then |
---|
| 6693 | cat >>confdefs.h <<_ACEOF |
---|
| 6694 | #define HAVE_LIBM 1 |
---|
| 6695 | _ACEOF |
---|
| 6696 | |
---|
| 6697 | LIBS="-lm $LIBS" |
---|
| 6698 | |
---|
| 6699 | fi |
---|
| 6700 | |
---|
| 6701 | |
---|
[2018] | 6702 | |
---|
[1956] | 6703 | # Checks for header files. |
---|
| 6704 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 6705 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 6706 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 6707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6708 | else |
---|
| 6709 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6710 | /* confdefs.h. */ |
---|
| 6711 | _ACEOF |
---|
| 6712 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6714 | /* end confdefs.h. */ |
---|
| 6715 | #include <stdlib.h> |
---|
| 6716 | #include <stdarg.h> |
---|
| 6717 | #include <string.h> |
---|
| 6718 | #include <float.h> |
---|
| 6719 | |
---|
| 6720 | int |
---|
| 6721 | main () |
---|
| 6722 | { |
---|
| 6723 | |
---|
| 6724 | ; |
---|
| 6725 | return 0; |
---|
| 6726 | } |
---|
| 6727 | _ACEOF |
---|
| 6728 | rm -f conftest.$ac_objext |
---|
| 6729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6730 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6731 | ac_status=$? |
---|
| 6732 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6733 | rm -f conftest.er1 |
---|
| 6734 | cat conftest.err >&5 |
---|
| 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6736 | (exit $ac_status); } && |
---|
| 6737 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6738 | || test ! -s conftest.err' |
---|
| 6739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6740 | (eval $ac_try) 2>&5 |
---|
| 6741 | ac_status=$? |
---|
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6743 | (exit $ac_status); }; } && |
---|
| 6744 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6746 | (eval $ac_try) 2>&5 |
---|
| 6747 | ac_status=$? |
---|
| 6748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6749 | (exit $ac_status); }; }; then |
---|
| 6750 | ac_cv_header_stdc=yes |
---|
| 6751 | else |
---|
| 6752 | echo "$as_me: failed program was:" >&5 |
---|
| 6753 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6754 | |
---|
| 6755 | ac_cv_header_stdc=no |
---|
| 6756 | fi |
---|
| 6757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6758 | |
---|
| 6759 | if test $ac_cv_header_stdc = yes; then |
---|
| 6760 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 6761 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6762 | /* confdefs.h. */ |
---|
| 6763 | _ACEOF |
---|
| 6764 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6765 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6766 | /* end confdefs.h. */ |
---|
| 6767 | #include <string.h> |
---|
| 6768 | |
---|
| 6769 | _ACEOF |
---|
| 6770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6771 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 6772 | : |
---|
| 6773 | else |
---|
| 6774 | ac_cv_header_stdc=no |
---|
| 6775 | fi |
---|
| 6776 | rm -f conftest* |
---|
| 6777 | |
---|
| 6778 | fi |
---|
| 6779 | |
---|
| 6780 | if test $ac_cv_header_stdc = yes; then |
---|
| 6781 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 6782 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6783 | /* confdefs.h. */ |
---|
| 6784 | _ACEOF |
---|
| 6785 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6786 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6787 | /* end confdefs.h. */ |
---|
| 6788 | #include <stdlib.h> |
---|
| 6789 | |
---|
| 6790 | _ACEOF |
---|
| 6791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6792 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 6793 | : |
---|
| 6794 | else |
---|
| 6795 | ac_cv_header_stdc=no |
---|
| 6796 | fi |
---|
| 6797 | rm -f conftest* |
---|
| 6798 | |
---|
| 6799 | fi |
---|
| 6800 | |
---|
| 6801 | if test $ac_cv_header_stdc = yes; then |
---|
| 6802 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 6803 | if test "$cross_compiling" = yes; then |
---|
| 6804 | : |
---|
| 6805 | else |
---|
| 6806 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6807 | /* confdefs.h. */ |
---|
| 6808 | _ACEOF |
---|
| 6809 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6810 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6811 | /* end confdefs.h. */ |
---|
| 6812 | #include <ctype.h> |
---|
| 6813 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 6814 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 6815 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 6816 | #else |
---|
| 6817 | # define ISLOWER(c) \ |
---|
| 6818 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 6819 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 6820 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 6821 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 6822 | #endif |
---|
| 6823 | |
---|
| 6824 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 6825 | int |
---|
| 6826 | main () |
---|
| 6827 | { |
---|
| 6828 | int i; |
---|
| 6829 | for (i = 0; i < 256; i++) |
---|
| 6830 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 6831 | || toupper (i) != TOUPPER (i)) |
---|
| 6832 | exit(2); |
---|
| 6833 | exit (0); |
---|
| 6834 | } |
---|
| 6835 | _ACEOF |
---|
| 6836 | rm -f conftest$ac_exeext |
---|
| 6837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6838 | (eval $ac_link) 2>&5 |
---|
| 6839 | ac_status=$? |
---|
| 6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6843 | (eval $ac_try) 2>&5 |
---|
| 6844 | ac_status=$? |
---|
| 6845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6846 | (exit $ac_status); }; }; then |
---|
| 6847 | : |
---|
| 6848 | else |
---|
| 6849 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6850 | echo "$as_me: failed program was:" >&5 |
---|
| 6851 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6852 | |
---|
| 6853 | ( exit $ac_status ) |
---|
| 6854 | ac_cv_header_stdc=no |
---|
| 6855 | fi |
---|
| 6856 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 6857 | fi |
---|
| 6858 | fi |
---|
| 6859 | fi |
---|
| 6860 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 6861 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 6862 | if test $ac_cv_header_stdc = yes; then |
---|
| 6863 | |
---|
| 6864 | cat >>confdefs.h <<\_ACEOF |
---|
| 6865 | #define STDC_HEADERS 1 |
---|
| 6866 | _ACEOF |
---|
| 6867 | |
---|
| 6868 | fi |
---|
| 6869 | |
---|
| 6870 | |
---|
| 6871 | |
---|
| 6872 | for ac_header in stdlib.h string.h |
---|
| 6873 | do |
---|
| 6874 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6876 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6877 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6880 | fi |
---|
| 6881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6883 | else |
---|
| 6884 | # Is the header compilable? |
---|
| 6885 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6886 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6887 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6888 | /* confdefs.h. */ |
---|
| 6889 | _ACEOF |
---|
| 6890 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6891 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6892 | /* end confdefs.h. */ |
---|
| 6893 | $ac_includes_default |
---|
| 6894 | #include <$ac_header> |
---|
| 6895 | _ACEOF |
---|
| 6896 | rm -f conftest.$ac_objext |
---|
| 6897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6898 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6899 | ac_status=$? |
---|
| 6900 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6901 | rm -f conftest.er1 |
---|
| 6902 | cat conftest.err >&5 |
---|
| 6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6904 | (exit $ac_status); } && |
---|
| 6905 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6906 | || test ! -s conftest.err' |
---|
| 6907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6908 | (eval $ac_try) 2>&5 |
---|
| 6909 | ac_status=$? |
---|
| 6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6911 | (exit $ac_status); }; } && |
---|
| 6912 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6914 | (eval $ac_try) 2>&5 |
---|
| 6915 | ac_status=$? |
---|
| 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6917 | (exit $ac_status); }; }; then |
---|
| 6918 | ac_header_compiler=yes |
---|
| 6919 | else |
---|
| 6920 | echo "$as_me: failed program was:" >&5 |
---|
| 6921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6922 | |
---|
| 6923 | ac_header_compiler=no |
---|
| 6924 | fi |
---|
| 6925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6927 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6928 | |
---|
| 6929 | # Is the header present? |
---|
| 6930 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6931 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6932 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6933 | /* confdefs.h. */ |
---|
| 6934 | _ACEOF |
---|
| 6935 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6936 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6937 | /* end confdefs.h. */ |
---|
| 6938 | #include <$ac_header> |
---|
| 6939 | _ACEOF |
---|
| 6940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6942 | ac_status=$? |
---|
| 6943 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6944 | rm -f conftest.er1 |
---|
| 6945 | cat conftest.err >&5 |
---|
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6947 | (exit $ac_status); } >/dev/null; then |
---|
| 6948 | if test -s conftest.err; then |
---|
| 6949 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6951 | else |
---|
| 6952 | ac_cpp_err= |
---|
| 6953 | fi |
---|
| 6954 | else |
---|
| 6955 | ac_cpp_err=yes |
---|
| 6956 | fi |
---|
| 6957 | if test -z "$ac_cpp_err"; then |
---|
| 6958 | ac_header_preproc=yes |
---|
| 6959 | else |
---|
| 6960 | echo "$as_me: failed program was:" >&5 |
---|
| 6961 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6962 | |
---|
| 6963 | ac_header_preproc=no |
---|
| 6964 | fi |
---|
| 6965 | rm -f conftest.err conftest.$ac_ext |
---|
| 6966 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6967 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6968 | |
---|
| 6969 | # So? What about this header? |
---|
| 6970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6971 | yes:no: ) |
---|
| 6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6976 | ac_header_preproc=yes |
---|
| 6977 | ;; |
---|
| 6978 | no:yes:* ) |
---|
| 6979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6991 | ( |
---|
| 6992 | cat <<\_ASBOX |
---|
| 6993 | ## ------------------------------------------- ## |
---|
| 6994 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 6995 | ## ------------------------------------------- ## |
---|
| 6996 | _ASBOX |
---|
| 6997 | ) | |
---|
| 6998 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6999 | ;; |
---|
| 7000 | esac |
---|
| 7001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7005 | else |
---|
| 7006 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7007 | fi |
---|
| 7008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7010 | |
---|
| 7011 | fi |
---|
| 7012 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7013 | cat >>confdefs.h <<_ACEOF |
---|
| 7014 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7015 | _ACEOF |
---|
| 7016 | |
---|
| 7017 | fi |
---|
| 7018 | |
---|
| 7019 | done |
---|
| 7020 | |
---|
| 7021 | |
---|
| 7022 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7023 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7024 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7025 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7027 | else |
---|
| 7028 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7029 | /* confdefs.h. */ |
---|
| 7030 | _ACEOF |
---|
| 7031 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7032 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7033 | /* end confdefs.h. */ |
---|
| 7034 | |
---|
| 7035 | #include <stdbool.h> |
---|
| 7036 | #ifndef bool |
---|
| 7037 | # error bool is not defined |
---|
| 7038 | #endif |
---|
| 7039 | #ifndef false |
---|
| 7040 | # error false is not defined |
---|
| 7041 | #endif |
---|
| 7042 | #if false |
---|
| 7043 | # error false is not 0 |
---|
| 7044 | #endif |
---|
| 7045 | #ifndef true |
---|
| 7046 | # error true is not defined |
---|
| 7047 | #endif |
---|
| 7048 | #if true != 1 |
---|
| 7049 | # error true is not 1 |
---|
| 7050 | #endif |
---|
| 7051 | #ifndef __bool_true_false_are_defined |
---|
| 7052 | # error __bool_true_false_are_defined is not defined |
---|
| 7053 | #endif |
---|
| 7054 | |
---|
| 7055 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7056 | |
---|
| 7057 | char a[true == 1 ? 1 : -1]; |
---|
| 7058 | char b[false == 0 ? 1 : -1]; |
---|
| 7059 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7060 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7061 | bool e = &s; |
---|
| 7062 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7063 | char g[true]; |
---|
| 7064 | char h[sizeof (_Bool)]; |
---|
| 7065 | char i[sizeof s.t]; |
---|
| 7066 | |
---|
| 7067 | int |
---|
| 7068 | main () |
---|
| 7069 | { |
---|
| 7070 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7071 | ; |
---|
| 7072 | return 0; |
---|
| 7073 | } |
---|
| 7074 | _ACEOF |
---|
| 7075 | rm -f conftest.$ac_objext |
---|
| 7076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7077 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7078 | ac_status=$? |
---|
| 7079 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7080 | rm -f conftest.er1 |
---|
| 7081 | cat conftest.err >&5 |
---|
| 7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7083 | (exit $ac_status); } && |
---|
| 7084 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7085 | || test ! -s conftest.err' |
---|
| 7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7087 | (eval $ac_try) 2>&5 |
---|
| 7088 | ac_status=$? |
---|
| 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7090 | (exit $ac_status); }; } && |
---|
| 7091 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7093 | (eval $ac_try) 2>&5 |
---|
| 7094 | ac_status=$? |
---|
| 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7096 | (exit $ac_status); }; }; then |
---|
| 7097 | ac_cv_header_stdbool_h=yes |
---|
| 7098 | else |
---|
| 7099 | echo "$as_me: failed program was:" >&5 |
---|
| 7100 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7101 | |
---|
| 7102 | ac_cv_header_stdbool_h=no |
---|
| 7103 | fi |
---|
| 7104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7105 | fi |
---|
| 7106 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 7107 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 7108 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 7109 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 7110 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7112 | else |
---|
| 7113 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7114 | /* confdefs.h. */ |
---|
| 7115 | _ACEOF |
---|
| 7116 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7117 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7118 | /* end confdefs.h. */ |
---|
| 7119 | $ac_includes_default |
---|
| 7120 | int |
---|
| 7121 | main () |
---|
| 7122 | { |
---|
| 7123 | if ((_Bool *) 0) |
---|
| 7124 | return 0; |
---|
| 7125 | if (sizeof (_Bool)) |
---|
| 7126 | return 0; |
---|
| 7127 | ; |
---|
| 7128 | return 0; |
---|
| 7129 | } |
---|
| 7130 | _ACEOF |
---|
| 7131 | rm -f conftest.$ac_objext |
---|
| 7132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7133 | (eval $ac_compile) 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_objext' |
---|
| 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_type__Bool=yes |
---|
| 7154 | else |
---|
| 7155 | echo "$as_me: failed program was:" >&5 |
---|
| 7156 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7157 | |
---|
| 7158 | ac_cv_type__Bool=no |
---|
| 7159 | fi |
---|
| 7160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7161 | fi |
---|
| 7162 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 7163 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 7164 | if test $ac_cv_type__Bool = yes; then |
---|
| 7165 | |
---|
| 7166 | cat >>confdefs.h <<_ACEOF |
---|
| 7167 | #define HAVE__BOOL 1 |
---|
| 7168 | _ACEOF |
---|
| 7169 | |
---|
| 7170 | |
---|
| 7171 | fi |
---|
| 7172 | |
---|
| 7173 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 7174 | |
---|
| 7175 | cat >>confdefs.h <<\_ACEOF |
---|
| 7176 | #define HAVE_STDBOOL_H 1 |
---|
| 7177 | _ACEOF |
---|
| 7178 | |
---|
| 7179 | fi |
---|
| 7180 | |
---|
| 7181 | |
---|
| 7182 | # Checks for library functions. |
---|
| 7183 | |
---|
| 7184 | for ac_header in stdlib.h |
---|
| 7185 | do |
---|
| 7186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7192 | fi |
---|
| 7193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7195 | else |
---|
| 7196 | # Is the header compilable? |
---|
| 7197 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7198 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7199 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7200 | /* confdefs.h. */ |
---|
| 7201 | _ACEOF |
---|
| 7202 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7203 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7204 | /* end confdefs.h. */ |
---|
| 7205 | $ac_includes_default |
---|
| 7206 | #include <$ac_header> |
---|
| 7207 | _ACEOF |
---|
| 7208 | rm -f conftest.$ac_objext |
---|
| 7209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7210 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7211 | ac_status=$? |
---|
| 7212 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7213 | rm -f conftest.er1 |
---|
| 7214 | cat conftest.err >&5 |
---|
| 7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7216 | (exit $ac_status); } && |
---|
| 7217 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7218 | || test ! -s conftest.err' |
---|
| 7219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7220 | (eval $ac_try) 2>&5 |
---|
| 7221 | ac_status=$? |
---|
| 7222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7223 | (exit $ac_status); }; } && |
---|
| 7224 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7226 | (eval $ac_try) 2>&5 |
---|
| 7227 | ac_status=$? |
---|
| 7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7229 | (exit $ac_status); }; }; then |
---|
| 7230 | ac_header_compiler=yes |
---|
| 7231 | else |
---|
| 7232 | echo "$as_me: failed program was:" >&5 |
---|
| 7233 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7234 | |
---|
| 7235 | ac_header_compiler=no |
---|
| 7236 | fi |
---|
| 7237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7238 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7239 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7240 | |
---|
| 7241 | # Is the header present? |
---|
| 7242 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7243 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7244 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7245 | /* confdefs.h. */ |
---|
| 7246 | _ACEOF |
---|
| 7247 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7249 | /* end confdefs.h. */ |
---|
| 7250 | #include <$ac_header> |
---|
| 7251 | _ACEOF |
---|
| 7252 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7254 | ac_status=$? |
---|
| 7255 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7256 | rm -f conftest.er1 |
---|
| 7257 | cat conftest.err >&5 |
---|
| 7258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7259 | (exit $ac_status); } >/dev/null; then |
---|
| 7260 | if test -s conftest.err; then |
---|
| 7261 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7262 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7263 | else |
---|
| 7264 | ac_cpp_err= |
---|
| 7265 | fi |
---|
| 7266 | else |
---|
| 7267 | ac_cpp_err=yes |
---|
| 7268 | fi |
---|
| 7269 | if test -z "$ac_cpp_err"; then |
---|
| 7270 | ac_header_preproc=yes |
---|
| 7271 | else |
---|
| 7272 | echo "$as_me: failed program was:" >&5 |
---|
| 7273 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7274 | |
---|
| 7275 | ac_header_preproc=no |
---|
| 7276 | fi |
---|
| 7277 | rm -f conftest.err conftest.$ac_ext |
---|
| 7278 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7279 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7280 | |
---|
| 7281 | # So? What about this header? |
---|
| 7282 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7283 | yes:no: ) |
---|
| 7284 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7285 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7287 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7288 | ac_header_preproc=yes |
---|
| 7289 | ;; |
---|
| 7290 | no:yes:* ) |
---|
| 7291 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7292 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7293 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7294 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7295 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7296 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7297 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7298 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7300 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7301 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7302 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7303 | ( |
---|
| 7304 | cat <<\_ASBOX |
---|
| 7305 | ## ------------------------------------------- ## |
---|
| 7306 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 7307 | ## ------------------------------------------- ## |
---|
| 7308 | _ASBOX |
---|
| 7309 | ) | |
---|
| 7310 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7311 | ;; |
---|
| 7312 | esac |
---|
| 7313 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7315 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7317 | else |
---|
| 7318 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7319 | fi |
---|
| 7320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7321 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7322 | |
---|
| 7323 | fi |
---|
| 7324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7325 | cat >>confdefs.h <<_ACEOF |
---|
| 7326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7327 | _ACEOF |
---|
| 7328 | |
---|
| 7329 | fi |
---|
| 7330 | |
---|
| 7331 | done |
---|
| 7332 | |
---|
| 7333 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 7334 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 7335 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 7336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7337 | else |
---|
| 7338 | if test "$cross_compiling" = yes; then |
---|
| 7339 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7340 | else |
---|
| 7341 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7342 | /* confdefs.h. */ |
---|
| 7343 | _ACEOF |
---|
| 7344 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7345 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7346 | /* end confdefs.h. */ |
---|
| 7347 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 7348 | # include <stdlib.h> |
---|
| 7349 | #else |
---|
| 7350 | char *malloc (); |
---|
| 7351 | #endif |
---|
| 7352 | |
---|
| 7353 | int |
---|
| 7354 | main () |
---|
| 7355 | { |
---|
| 7356 | exit (malloc (0) ? 0 : 1); |
---|
| 7357 | ; |
---|
| 7358 | return 0; |
---|
| 7359 | } |
---|
| 7360 | _ACEOF |
---|
| 7361 | rm -f conftest$ac_exeext |
---|
| 7362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7363 | (eval $ac_link) 2>&5 |
---|
| 7364 | ac_status=$? |
---|
| 7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7368 | (eval $ac_try) 2>&5 |
---|
| 7369 | ac_status=$? |
---|
| 7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7371 | (exit $ac_status); }; }; then |
---|
| 7372 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 7373 | else |
---|
| 7374 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7375 | echo "$as_me: failed program was:" >&5 |
---|
| 7376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7377 | |
---|
| 7378 | ( exit $ac_status ) |
---|
| 7379 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7380 | fi |
---|
| 7381 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7382 | fi |
---|
| 7383 | fi |
---|
| 7384 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 7385 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 7386 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 7387 | |
---|
| 7388 | cat >>confdefs.h <<\_ACEOF |
---|
| 7389 | #define HAVE_MALLOC 1 |
---|
| 7390 | _ACEOF |
---|
| 7391 | |
---|
| 7392 | else |
---|
| 7393 | cat >>confdefs.h <<\_ACEOF |
---|
| 7394 | #define HAVE_MALLOC 0 |
---|
| 7395 | _ACEOF |
---|
| 7396 | |
---|
| 7397 | case $LIBOBJS in |
---|
| 7398 | "malloc.$ac_objext" | \ |
---|
| 7399 | *" malloc.$ac_objext" | \ |
---|
| 7400 | "malloc.$ac_objext "* | \ |
---|
| 7401 | *" malloc.$ac_objext "* ) ;; |
---|
| 7402 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 7403 | esac |
---|
| 7404 | |
---|
| 7405 | |
---|
| 7406 | cat >>confdefs.h <<\_ACEOF |
---|
| 7407 | #define malloc rpl_malloc |
---|
| 7408 | _ACEOF |
---|
| 7409 | |
---|
| 7410 | fi |
---|
| 7411 | |
---|
| 7412 | |
---|
| 7413 | |
---|
| 7414 | |
---|
| 7415 | |
---|
| 7416 | for ac_func in bzero sqrt |
---|
| 7417 | do |
---|
| 7418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 7419 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 7420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 7421 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7423 | else |
---|
| 7424 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7425 | /* confdefs.h. */ |
---|
| 7426 | _ACEOF |
---|
| 7427 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7428 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7429 | /* end confdefs.h. */ |
---|
| 7430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 7431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 7432 | #define $ac_func innocuous_$ac_func |
---|
| 7433 | |
---|
| 7434 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 7435 | which can conflict with char $ac_func (); below. |
---|
| 7436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 7437 | <limits.h> exists even on freestanding compilers. */ |
---|
| 7438 | |
---|
| 7439 | #ifdef __STDC__ |
---|
| 7440 | # include <limits.h> |
---|
| 7441 | #else |
---|
| 7442 | # include <assert.h> |
---|
| 7443 | #endif |
---|
| 7444 | |
---|
| 7445 | #undef $ac_func |
---|
| 7446 | |
---|
| 7447 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 7448 | #ifdef __cplusplus |
---|
| 7449 | extern "C" |
---|
| 7450 | { |
---|
| 7451 | #endif |
---|
| 7452 | /* We use char because int might match the return type of a gcc2 |
---|
| 7453 | builtin and then its argument prototype would still apply. */ |
---|
| 7454 | char $ac_func (); |
---|
| 7455 | /* The GNU C library defines this for functions which it implements |
---|
| 7456 | to always fail with ENOSYS. Some functions are actually named |
---|
| 7457 | something starting with __ and the normal name is an alias. */ |
---|
| 7458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 7459 | choke me |
---|
| 7460 | #else |
---|
| 7461 | char (*f) () = $ac_func; |
---|
| 7462 | #endif |
---|
| 7463 | #ifdef __cplusplus |
---|
| 7464 | } |
---|
| 7465 | #endif |
---|
| 7466 | |
---|
| 7467 | int |
---|
| 7468 | main () |
---|
| 7469 | { |
---|
| 7470 | return f != $ac_func; |
---|
| 7471 | ; |
---|
| 7472 | return 0; |
---|
| 7473 | } |
---|
| 7474 | _ACEOF |
---|
| 7475 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7477 | (eval $ac_link) 2>conftest.er1 |
---|
| 7478 | ac_status=$? |
---|
| 7479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7480 | rm -f conftest.er1 |
---|
| 7481 | cat conftest.err >&5 |
---|
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7483 | (exit $ac_status); } && |
---|
| 7484 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7485 | || test ! -s conftest.err' |
---|
| 7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7487 | (eval $ac_try) 2>&5 |
---|
| 7488 | ac_status=$? |
---|
| 7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7490 | (exit $ac_status); }; } && |
---|
| 7491 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7493 | (eval $ac_try) 2>&5 |
---|
| 7494 | ac_status=$? |
---|
| 7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7496 | (exit $ac_status); }; }; then |
---|
| 7497 | eval "$as_ac_var=yes" |
---|
| 7498 | else |
---|
| 7499 | echo "$as_me: failed program was:" >&5 |
---|
| 7500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7501 | |
---|
| 7502 | eval "$as_ac_var=no" |
---|
| 7503 | fi |
---|
| 7504 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7505 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7506 | fi |
---|
| 7507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 7508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 7509 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 7510 | cat >>confdefs.h <<_ACEOF |
---|
| 7511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 7512 | _ACEOF |
---|
| 7513 | |
---|
| 7514 | fi |
---|
| 7515 | done |
---|
| 7516 | |
---|
| 7517 | |
---|
[2819] | 7518 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile" |
---|
[1956] | 7519 | |
---|
| 7520 | cat >confcache <<\_ACEOF |
---|
| 7521 | # This file is a shell script that caches the results of configure |
---|
| 7522 | # tests run on this system so they can be shared between configure |
---|
| 7523 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 7524 | # It is not useful on other systems. If it contains results you don't |
---|
| 7525 | # want to keep, you may remove or edit it. |
---|
| 7526 | # |
---|
| 7527 | # config.status only pays attention to the cache file if you give it |
---|
| 7528 | # the --recheck option to rerun configure. |
---|
| 7529 | # |
---|
| 7530 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 7531 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 7532 | # following values. |
---|
| 7533 | |
---|
| 7534 | _ACEOF |
---|
| 7535 | |
---|
| 7536 | # The following way of writing the cache mishandles newlines in values, |
---|
| 7537 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 7538 | # So, don't put newlines in cache variables' values. |
---|
| 7539 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 7540 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 7541 | { |
---|
| 7542 | (set) 2>&1 | |
---|
| 7543 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 7544 | *ac_space=\ *) |
---|
| 7545 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 7546 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 7547 | sed -n \ |
---|
| 7548 | "s/'/'\\\\''/g; |
---|
| 7549 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 7550 | ;; |
---|
| 7551 | *) |
---|
| 7552 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 7553 | sed -n \ |
---|
| 7554 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 7555 | ;; |
---|
| 7556 | esac; |
---|
| 7557 | } | |
---|
| 7558 | sed ' |
---|
| 7559 | t clear |
---|
| 7560 | : clear |
---|
| 7561 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 7562 | t end |
---|
| 7563 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 7564 | : end' >>confcache |
---|
| 7565 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 7566 | if test -w $cache_file; then |
---|
| 7567 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 7568 | cat confcache >$cache_file |
---|
| 7569 | else |
---|
| 7570 | echo "not updating unwritable cache $cache_file" |
---|
| 7571 | fi |
---|
| 7572 | fi |
---|
| 7573 | rm -f confcache |
---|
| 7574 | |
---|
| 7575 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 7576 | # Let make expand exec_prefix. |
---|
| 7577 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 7578 | |
---|
| 7579 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 7580 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 7581 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 7582 | # (actually we leave an empty line to preserve line numbers). |
---|
| 7583 | if test "x$srcdir" = x.; then |
---|
| 7584 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 7585 | s/:*\$(srcdir):*/:/; |
---|
| 7586 | s/:*\${srcdir}:*/:/; |
---|
| 7587 | s/:*@srcdir@:*/:/; |
---|
| 7588 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 7589 | s/:*$//; |
---|
| 7590 | s/^[^=]*=[ ]*$//; |
---|
| 7591 | }' |
---|
| 7592 | fi |
---|
| 7593 | |
---|
| 7594 | DEFS=-DHAVE_CONFIG_H |
---|
| 7595 | |
---|
| 7596 | ac_libobjs= |
---|
| 7597 | ac_ltlibobjs= |
---|
| 7598 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 7599 | # 1. Remove the extension, and $U if already installed. |
---|
| 7600 | ac_i=`echo "$ac_i" | |
---|
| 7601 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 7602 | # 2. Add them. |
---|
| 7603 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 7604 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 7605 | done |
---|
| 7606 | LIBOBJS=$ac_libobjs |
---|
| 7607 | |
---|
| 7608 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 7609 | |
---|
| 7610 | |
---|
| 7611 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 7612 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 7613 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7614 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 7615 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7616 | { (exit 1); exit 1; }; } |
---|
| 7617 | fi |
---|
| 7618 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 7619 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 7620 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7621 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 7622 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7623 | { (exit 1); exit 1; }; } |
---|
| 7624 | fi |
---|
| 7625 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 7626 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 7627 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7628 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 7629 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7630 | { (exit 1); exit 1; }; } |
---|
| 7631 | fi |
---|
[2980] | 7632 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 7633 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 7634 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7635 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 7636 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7637 | { (exit 1); exit 1; }; } |
---|
| 7638 | fi |
---|
[1956] | 7639 | |
---|
| 7640 | : ${CONFIG_STATUS=./config.status} |
---|
| 7641 | ac_clean_files_save=$ac_clean_files |
---|
| 7642 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 7643 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 7644 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 7645 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 7646 | #! $SHELL |
---|
| 7647 | # Generated by $as_me. |
---|
| 7648 | # Run this file to recreate the current configuration. |
---|
| 7649 | # Compiler output produced by configure, useful for debugging |
---|
| 7650 | # configure, is in config.log if it exists. |
---|
| 7651 | |
---|
| 7652 | debug=false |
---|
| 7653 | ac_cs_recheck=false |
---|
| 7654 | ac_cs_silent=false |
---|
| 7655 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 7656 | _ACEOF |
---|
| 7657 | |
---|
| 7658 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7659 | ## --------------------- ## |
---|
| 7660 | ## M4sh Initialization. ## |
---|
| 7661 | ## --------------------- ## |
---|
| 7662 | |
---|
| 7663 | # Be Bourne compatible |
---|
| 7664 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 7665 | emulate sh |
---|
| 7666 | NULLCMD=: |
---|
| 7667 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 7668 | # is contrary to our usage. Disable this feature. |
---|
| 7669 | alias -g '${1+"$@"}'='"$@"' |
---|
| 7670 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 7671 | set -o posix |
---|
| 7672 | fi |
---|
| 7673 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 7674 | |
---|
| 7675 | # Support unset when possible. |
---|
| 7676 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 7677 | as_unset=unset |
---|
| 7678 | else |
---|
| 7679 | as_unset=false |
---|
| 7680 | fi |
---|
| 7681 | |
---|
| 7682 | |
---|
| 7683 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 7684 | $as_unset ENV MAIL MAILPATH |
---|
| 7685 | PS1='$ ' |
---|
| 7686 | PS2='> ' |
---|
| 7687 | PS4='+ ' |
---|
| 7688 | |
---|
| 7689 | # NLS nuisances. |
---|
| 7690 | for as_var in \ |
---|
| 7691 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 7692 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 7693 | LC_TELEPHONE LC_TIME |
---|
| 7694 | do |
---|
| 7695 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 7696 | eval $as_var=C; export $as_var |
---|
| 7697 | else |
---|
| 7698 | $as_unset $as_var |
---|
| 7699 | fi |
---|
| 7700 | done |
---|
| 7701 | |
---|
| 7702 | # Required to use basename. |
---|
| 7703 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 7704 | as_expr=expr |
---|
| 7705 | else |
---|
| 7706 | as_expr=false |
---|
| 7707 | fi |
---|
| 7708 | |
---|
| 7709 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 7710 | as_basename=basename |
---|
| 7711 | else |
---|
| 7712 | as_basename=false |
---|
| 7713 | fi |
---|
| 7714 | |
---|
| 7715 | |
---|
| 7716 | # Name of the executable. |
---|
| 7717 | as_me=`$as_basename "$0" || |
---|
| 7718 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 7719 | X"$0" : 'X\(//\)$' \| \ |
---|
| 7720 | X"$0" : 'X\(/\)$' \| \ |
---|
| 7721 | . : '\(.\)' 2>/dev/null || |
---|
| 7722 | echo X/"$0" | |
---|
| 7723 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 7724 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 7725 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 7726 | s/.*/./; q'` |
---|
| 7727 | |
---|
| 7728 | |
---|
| 7729 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 7730 | # Avoid depending upon Character Ranges. |
---|
| 7731 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 7732 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 7733 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 7734 | as_cr_digits='0123456789' |
---|
| 7735 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 7736 | |
---|
| 7737 | # The user is always right. |
---|
| 7738 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 7739 | echo "#! /bin/sh" >conf$$.sh |
---|
| 7740 | echo "exit 0" >>conf$$.sh |
---|
| 7741 | chmod +x conf$$.sh |
---|
| 7742 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 7743 | PATH_SEPARATOR=';' |
---|
| 7744 | else |
---|
| 7745 | PATH_SEPARATOR=: |
---|
| 7746 | fi |
---|
| 7747 | rm -f conf$$.sh |
---|
| 7748 | fi |
---|
| 7749 | |
---|
| 7750 | |
---|
| 7751 | as_lineno_1=$LINENO |
---|
| 7752 | as_lineno_2=$LINENO |
---|
| 7753 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 7754 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 7755 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 7756 | # Find who we are. Look in the path if we contain no path at all |
---|
| 7757 | # relative or not. |
---|
| 7758 | case $0 in |
---|
| 7759 | *[\\/]* ) as_myself=$0 ;; |
---|
| 7760 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7761 | for as_dir in $PATH |
---|
| 7762 | do |
---|
| 7763 | IFS=$as_save_IFS |
---|
| 7764 | test -z "$as_dir" && as_dir=. |
---|
| 7765 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 7766 | done |
---|
| 7767 | |
---|
| 7768 | ;; |
---|
| 7769 | esac |
---|
| 7770 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 7771 | # in which case we are not to be found in the path. |
---|
| 7772 | if test "x$as_myself" = x; then |
---|
| 7773 | as_myself=$0 |
---|
| 7774 | fi |
---|
| 7775 | if test ! -f "$as_myself"; then |
---|
| 7776 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 7777 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 7778 | { (exit 1); exit 1; }; } |
---|
| 7779 | fi |
---|
| 7780 | case $CONFIG_SHELL in |
---|
| 7781 | '') |
---|
| 7782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7783 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 7784 | do |
---|
| 7785 | IFS=$as_save_IFS |
---|
| 7786 | test -z "$as_dir" && as_dir=. |
---|
| 7787 | for as_base in sh bash ksh sh5; do |
---|
| 7788 | case $as_dir in |
---|
| 7789 | /*) |
---|
| 7790 | if ("$as_dir/$as_base" -c ' |
---|
| 7791 | as_lineno_1=$LINENO |
---|
| 7792 | as_lineno_2=$LINENO |
---|
| 7793 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 7794 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 7795 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 7796 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 7797 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 7798 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 7799 | export CONFIG_SHELL |
---|
| 7800 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 7801 | fi;; |
---|
| 7802 | esac |
---|
| 7803 | done |
---|
| 7804 | done |
---|
| 7805 | ;; |
---|
| 7806 | esac |
---|
| 7807 | |
---|
| 7808 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 7809 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 7810 | # line-number line before each line; the second 'sed' does the real |
---|
| 7811 | # work. The second script uses 'N' to pair each line-number line |
---|
| 7812 | # with the numbered line, and appends trailing '-' during |
---|
| 7813 | # substitution so that $LINENO is not a special case at line end. |
---|
| 7814 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 7815 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 7816 | sed '=' <$as_myself | |
---|
| 7817 | sed ' |
---|
| 7818 | N |
---|
| 7819 | s,$,-, |
---|
| 7820 | : loop |
---|
| 7821 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 7822 | t loop |
---|
| 7823 | s,-$,, |
---|
| 7824 | s,^['$as_cr_digits']*\n,, |
---|
| 7825 | ' >$as_me.lineno && |
---|
| 7826 | chmod +x $as_me.lineno || |
---|
| 7827 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 7828 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 7829 | { (exit 1); exit 1; }; } |
---|
| 7830 | |
---|
| 7831 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 7832 | # (the dirname of $[0] is not the place where we might find the |
---|
| 7833 | # original and so on. Autoconf is especially sensible to this). |
---|
| 7834 | . ./$as_me.lineno |
---|
| 7835 | # Exit status is that of the last command. |
---|
| 7836 | exit |
---|
| 7837 | } |
---|
| 7838 | |
---|
| 7839 | |
---|
| 7840 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 7841 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 7842 | ' ECHO_T=' ' ;; |
---|
| 7843 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 7844 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 7845 | esac |
---|
| 7846 | |
---|
| 7847 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 7848 | as_expr=expr |
---|
| 7849 | else |
---|
| 7850 | as_expr=false |
---|
| 7851 | fi |
---|
| 7852 | |
---|
| 7853 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 7854 | echo >conf$$.file |
---|
| 7855 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 7856 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 7857 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 7858 | if test -f conf$$.exe; then |
---|
| 7859 | # Don't use ln at all; we don't have any links |
---|
| 7860 | as_ln_s='cp -p' |
---|
| 7861 | else |
---|
| 7862 | as_ln_s='ln -s' |
---|
| 7863 | fi |
---|
| 7864 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 7865 | as_ln_s=ln |
---|
| 7866 | else |
---|
| 7867 | as_ln_s='cp -p' |
---|
| 7868 | fi |
---|
| 7869 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 7870 | |
---|
| 7871 | if mkdir -p . 2>/dev/null; then |
---|
| 7872 | as_mkdir_p=: |
---|
| 7873 | else |
---|
| 7874 | test -d ./-p && rmdir ./-p |
---|
| 7875 | as_mkdir_p=false |
---|
| 7876 | fi |
---|
| 7877 | |
---|
| 7878 | as_executable_p="test -f" |
---|
| 7879 | |
---|
| 7880 | # Sed expression to map a string onto a valid CPP name. |
---|
| 7881 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 7882 | |
---|
| 7883 | # Sed expression to map a string onto a valid variable name. |
---|
| 7884 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 7885 | |
---|
| 7886 | |
---|
| 7887 | # IFS |
---|
| 7888 | # We need space, tab and new line, in precisely that order. |
---|
| 7889 | as_nl=' |
---|
| 7890 | ' |
---|
| 7891 | IFS=" $as_nl" |
---|
| 7892 | |
---|
| 7893 | # CDPATH. |
---|
| 7894 | $as_unset CDPATH |
---|
| 7895 | |
---|
| 7896 | exec 6>&1 |
---|
| 7897 | |
---|
| 7898 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 7899 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 7900 | # values after options handling. Logging --version etc. is OK. |
---|
| 7901 | exec 5>>config.log |
---|
| 7902 | { |
---|
| 7903 | echo |
---|
| 7904 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 7905 | ## Running $as_me. ## |
---|
| 7906 | _ASBOX |
---|
| 7907 | } >&5 |
---|
| 7908 | cat >&5 <<_CSEOF |
---|
| 7909 | |
---|
| 7910 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 7911 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 7912 | |
---|
| 7913 | CONFIG_FILES = $CONFIG_FILES |
---|
| 7914 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 7915 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 7916 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 7917 | $ $0 $@ |
---|
| 7918 | |
---|
| 7919 | _CSEOF |
---|
| 7920 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 7921 | echo >&5 |
---|
| 7922 | _ACEOF |
---|
| 7923 | |
---|
| 7924 | # Files that config.status was made for. |
---|
| 7925 | if test -n "$ac_config_files"; then |
---|
| 7926 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 7927 | fi |
---|
| 7928 | |
---|
| 7929 | if test -n "$ac_config_headers"; then |
---|
| 7930 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 7931 | fi |
---|
| 7932 | |
---|
| 7933 | if test -n "$ac_config_links"; then |
---|
| 7934 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 7935 | fi |
---|
| 7936 | |
---|
| 7937 | if test -n "$ac_config_commands"; then |
---|
| 7938 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 7939 | fi |
---|
| 7940 | |
---|
| 7941 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7942 | |
---|
| 7943 | ac_cs_usage="\ |
---|
| 7944 | \`$as_me' instantiates files from templates according to the |
---|
| 7945 | current configuration. |
---|
| 7946 | |
---|
| 7947 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 7948 | |
---|
| 7949 | -h, --help print this help, then exit |
---|
| 7950 | -V, --version print version number, then exit |
---|
| 7951 | -q, --quiet do not print progress messages |
---|
| 7952 | -d, --debug don't remove temporary files |
---|
| 7953 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 7954 | --file=FILE[:TEMPLATE] |
---|
| 7955 | instantiate the configuration file FILE |
---|
| 7956 | --header=FILE[:TEMPLATE] |
---|
| 7957 | instantiate the configuration header FILE |
---|
| 7958 | |
---|
| 7959 | Configuration files: |
---|
| 7960 | $config_files |
---|
| 7961 | |
---|
| 7962 | Configuration headers: |
---|
| 7963 | $config_headers |
---|
| 7964 | |
---|
| 7965 | Configuration commands: |
---|
| 7966 | $config_commands |
---|
| 7967 | |
---|
| 7968 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 7969 | _ACEOF |
---|
| 7970 | |
---|
| 7971 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7972 | ac_cs_version="\\ |
---|
| 7973 | orxonox config.status 0.1-pre-alpha |
---|
| 7974 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 7975 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 7976 | |
---|
| 7977 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 7978 | This config.status script is free software; the Free Software Foundation |
---|
| 7979 | gives unlimited permission to copy, distribute and modify it." |
---|
| 7980 | srcdir=$srcdir |
---|
| 7981 | INSTALL="$INSTALL" |
---|
| 7982 | _ACEOF |
---|
| 7983 | |
---|
| 7984 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7985 | # If no file are specified by the user, then we need to provide default |
---|
| 7986 | # value. By we need to know if files were specified by the user. |
---|
| 7987 | ac_need_defaults=: |
---|
| 7988 | while test $# != 0 |
---|
| 7989 | do |
---|
| 7990 | case $1 in |
---|
| 7991 | --*=*) |
---|
| 7992 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 7993 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 7994 | ac_shift=: |
---|
| 7995 | ;; |
---|
| 7996 | -*) |
---|
| 7997 | ac_option=$1 |
---|
| 7998 | ac_optarg=$2 |
---|
| 7999 | ac_shift=shift |
---|
| 8000 | ;; |
---|
| 8001 | *) # This is not an option, so the user has probably given explicit |
---|
| 8002 | # arguments. |
---|
| 8003 | ac_option=$1 |
---|
| 8004 | ac_need_defaults=false;; |
---|
| 8005 | esac |
---|
| 8006 | |
---|
| 8007 | case $ac_option in |
---|
| 8008 | # Handling of the options. |
---|
| 8009 | _ACEOF |
---|
| 8010 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8011 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8012 | ac_cs_recheck=: ;; |
---|
| 8013 | --version | --vers* | -V ) |
---|
| 8014 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8015 | --he | --h) |
---|
| 8016 | # Conflict between --help and --header |
---|
| 8017 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8018 | Try \`$0 --help' for more information." >&5 |
---|
| 8019 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8020 | Try \`$0 --help' for more information." >&2;} |
---|
| 8021 | { (exit 1); exit 1; }; };; |
---|
| 8022 | --help | --hel | -h ) |
---|
| 8023 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8024 | --debug | --d* | -d ) |
---|
| 8025 | debug=: ;; |
---|
| 8026 | --file | --fil | --fi | --f ) |
---|
| 8027 | $ac_shift |
---|
| 8028 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8029 | ac_need_defaults=false;; |
---|
| 8030 | --header | --heade | --head | --hea ) |
---|
| 8031 | $ac_shift |
---|
| 8032 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8033 | ac_need_defaults=false;; |
---|
| 8034 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8035 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8036 | ac_cs_silent=: ;; |
---|
| 8037 | |
---|
| 8038 | # This is an error. |
---|
| 8039 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8040 | Try \`$0 --help' for more information." >&5 |
---|
| 8041 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8042 | Try \`$0 --help' for more information." >&2;} |
---|
| 8043 | { (exit 1); exit 1; }; } ;; |
---|
| 8044 | |
---|
| 8045 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8046 | |
---|
| 8047 | esac |
---|
| 8048 | shift |
---|
| 8049 | done |
---|
| 8050 | |
---|
| 8051 | ac_configure_extra_args= |
---|
| 8052 | |
---|
| 8053 | if $ac_cs_silent; then |
---|
| 8054 | exec 6>/dev/null |
---|
| 8055 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8056 | fi |
---|
| 8057 | |
---|
| 8058 | _ACEOF |
---|
| 8059 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8060 | if \$ac_cs_recheck; then |
---|
| 8061 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8062 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8063 | fi |
---|
| 8064 | |
---|
| 8065 | _ACEOF |
---|
| 8066 | |
---|
| 8067 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8068 | # |
---|
| 8069 | # INIT-COMMANDS section. |
---|
| 8070 | # |
---|
| 8071 | |
---|
| 8072 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8073 | |
---|
| 8074 | _ACEOF |
---|
| 8075 | |
---|
| 8076 | |
---|
| 8077 | |
---|
| 8078 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8079 | for ac_config_target in $ac_config_targets |
---|
| 8080 | do |
---|
| 8081 | case "$ac_config_target" in |
---|
| 8082 | # Handling of arguments. |
---|
| 8083 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 8084 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
| 8085 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
| 8086 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[2819] | 8087 | "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;; |
---|
[1956] | 8088 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 8089 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8090 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 8091 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 8092 | { (exit 1); exit 1; }; };; |
---|
| 8093 | esac |
---|
| 8094 | done |
---|
| 8095 | |
---|
| 8096 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8097 | # then the envvar interface is used. Set only those that are not. |
---|
| 8098 | # We use the long form for the default assignment because of an extremely |
---|
| 8099 | # bizarre bug on SunOS 4.1.3. |
---|
| 8100 | if $ac_need_defaults; then |
---|
| 8101 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8102 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8103 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 8104 | fi |
---|
| 8105 | |
---|
| 8106 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8107 | # simply because there is no reason to put it here, and in addition, |
---|
| 8108 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8109 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 8110 | $debug || |
---|
| 8111 | { |
---|
| 8112 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 8113 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 8114 | } |
---|
| 8115 | |
---|
| 8116 | # Create a (secure) tmp directory for tmp files. |
---|
| 8117 | |
---|
| 8118 | { |
---|
| 8119 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 8120 | test -n "$tmp" && test -d "$tmp" |
---|
| 8121 | } || |
---|
| 8122 | { |
---|
| 8123 | tmp=./confstat$$-$RANDOM |
---|
| 8124 | (umask 077 && mkdir $tmp) |
---|
| 8125 | } || |
---|
| 8126 | { |
---|
| 8127 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 8128 | { (exit 1); exit 1; } |
---|
| 8129 | } |
---|
| 8130 | |
---|
| 8131 | _ACEOF |
---|
| 8132 | |
---|
| 8133 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8134 | |
---|
| 8135 | # |
---|
| 8136 | # CONFIG_FILES section. |
---|
| 8137 | # |
---|
| 8138 | |
---|
| 8139 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 8140 | # This happens for instance when ./config.status config.h |
---|
| 8141 | if test -n "\$CONFIG_FILES"; then |
---|
| 8142 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 8143 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 8144 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 8145 | s,@SHELL@,$SHELL,;t t |
---|
| 8146 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 8147 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 8148 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 8149 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 8150 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 8151 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 8152 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 8153 | s,@prefix@,$prefix,;t t |
---|
| 8154 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 8155 | s,@bindir@,$bindir,;t t |
---|
| 8156 | s,@sbindir@,$sbindir,;t t |
---|
| 8157 | s,@libexecdir@,$libexecdir,;t t |
---|
| 8158 | s,@datadir@,$datadir,;t t |
---|
| 8159 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 8160 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 8161 | s,@localstatedir@,$localstatedir,;t t |
---|
| 8162 | s,@libdir@,$libdir,;t t |
---|
| 8163 | s,@includedir@,$includedir,;t t |
---|
| 8164 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 8165 | s,@infodir@,$infodir,;t t |
---|
| 8166 | s,@mandir@,$mandir,;t t |
---|
| 8167 | s,@build_alias@,$build_alias,;t t |
---|
| 8168 | s,@host_alias@,$host_alias,;t t |
---|
| 8169 | s,@target_alias@,$target_alias,;t t |
---|
| 8170 | s,@DEFS@,$DEFS,;t t |
---|
| 8171 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 8172 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 8173 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 8174 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 8175 | s,@build@,$build,;t t |
---|
| 8176 | s,@build_cpu@,$build_cpu,;t t |
---|
| 8177 | s,@build_vendor@,$build_vendor,;t t |
---|
| 8178 | s,@build_os@,$build_os,;t t |
---|
| 8179 | s,@host@,$host,;t t |
---|
| 8180 | s,@host_cpu@,$host_cpu,;t t |
---|
| 8181 | s,@host_vendor@,$host_vendor,;t t |
---|
| 8182 | s,@host_os@,$host_os,;t t |
---|
| 8183 | s,@target@,$target,;t t |
---|
| 8184 | s,@target_cpu@,$target_cpu,;t t |
---|
| 8185 | s,@target_vendor@,$target_vendor,;t t |
---|
| 8186 | s,@target_os@,$target_os,;t t |
---|
[1956] | 8187 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 8188 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 8189 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 8190 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 8191 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 8192 | s,@VERSION@,$VERSION,;t t |
---|
| 8193 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 8194 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 8195 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 8196 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 8197 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 8198 | s,@AMTAR@,$AMTAR,;t t |
---|
| 8199 | s,@install_sh@,$install_sh,;t t |
---|
| 8200 | s,@STRIP@,$STRIP,;t t |
---|
| 8201 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 8202 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 8203 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 8204 | s,@AWK@,$AWK,;t t |
---|
| 8205 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 8206 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 8207 | s,@CXX@,$CXX,;t t |
---|
| 8208 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 8209 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 8210 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 8211 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 8212 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 8213 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 8214 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 8215 | s,@am__include@,$am__include,;t t |
---|
| 8216 | s,@am__quote@,$am__quote,;t t |
---|
| 8217 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 8218 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 8219 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 8220 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 8221 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 8222 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 8223 | s,@CC@,$CC,;t t |
---|
| 8224 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 8225 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 8226 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 8227 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 8228 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 8229 | s,@CPP@,$CPP,;t t |
---|
| 8230 | s,@EGREP@,$EGREP,;t t |
---|
[2989] | 8231 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3105] | 8232 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 8233 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 8234 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 8235 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[1956] | 8236 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 8237 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 8238 | CEOF |
---|
| 8239 | |
---|
| 8240 | _ACEOF |
---|
| 8241 | |
---|
| 8242 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8243 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 8244 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 8245 | ac_max_sed_lines=48 |
---|
| 8246 | ac_sed_frag=1 # Number of current file. |
---|
| 8247 | ac_beg=1 # First line for current file. |
---|
| 8248 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 8249 | ac_more_lines=: |
---|
| 8250 | ac_sed_cmds= |
---|
| 8251 | while $ac_more_lines; do |
---|
| 8252 | if test $ac_beg -gt 1; then |
---|
| 8253 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8254 | else |
---|
| 8255 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8256 | fi |
---|
| 8257 | if test ! -s $tmp/subs.frag; then |
---|
| 8258 | ac_more_lines=false |
---|
| 8259 | else |
---|
| 8260 | # The purpose of the label and of the branching condition is to |
---|
| 8261 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 8262 | # is no need to browse any of the substitutions). |
---|
| 8263 | # These are the two extra sed commands mentioned above. |
---|
| 8264 | (echo ':t |
---|
| 8265 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 8266 | if test -z "$ac_sed_cmds"; then |
---|
| 8267 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8268 | else |
---|
| 8269 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8270 | fi |
---|
| 8271 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 8272 | ac_beg=$ac_end |
---|
| 8273 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 8274 | fi |
---|
| 8275 | done |
---|
| 8276 | if test -z "$ac_sed_cmds"; then |
---|
| 8277 | ac_sed_cmds=cat |
---|
| 8278 | fi |
---|
| 8279 | fi # test -n "$CONFIG_FILES" |
---|
| 8280 | |
---|
| 8281 | _ACEOF |
---|
| 8282 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8283 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 8284 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8285 | case $ac_file in |
---|
| 8286 | - | *:- | *:-:* ) # input from stdin |
---|
| 8287 | cat >$tmp/stdin |
---|
| 8288 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8289 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8290 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8291 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8292 | * ) ac_file_in=$ac_file.in ;; |
---|
| 8293 | esac |
---|
| 8294 | |
---|
| 8295 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 8296 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 8297 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8298 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8299 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8300 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 8301 | . : '\(.\)' 2>/dev/null || |
---|
| 8302 | echo X"$ac_file" | |
---|
| 8303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8304 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8305 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8306 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8307 | s/.*/./; q'` |
---|
| 8308 | { if $as_mkdir_p; then |
---|
| 8309 | mkdir -p "$ac_dir" |
---|
| 8310 | else |
---|
| 8311 | as_dir="$ac_dir" |
---|
| 8312 | as_dirs= |
---|
| 8313 | while test ! -d "$as_dir"; do |
---|
| 8314 | as_dirs="$as_dir $as_dirs" |
---|
| 8315 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8316 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8317 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8318 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8319 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8320 | . : '\(.\)' 2>/dev/null || |
---|
| 8321 | echo X"$as_dir" | |
---|
| 8322 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8323 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8324 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8325 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8326 | s/.*/./; q'` |
---|
| 8327 | done |
---|
| 8328 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8329 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 8330 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 8331 | { (exit 1); exit 1; }; }; } |
---|
| 8332 | |
---|
| 8333 | ac_builddir=. |
---|
| 8334 | |
---|
| 8335 | if test "$ac_dir" != .; then |
---|
| 8336 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 8337 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 8338 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 8339 | else |
---|
| 8340 | ac_dir_suffix= ac_top_builddir= |
---|
| 8341 | fi |
---|
| 8342 | |
---|
| 8343 | case $srcdir in |
---|
| 8344 | .) # No --srcdir option. We are building in place. |
---|
| 8345 | ac_srcdir=. |
---|
| 8346 | if test -z "$ac_top_builddir"; then |
---|
| 8347 | ac_top_srcdir=. |
---|
| 8348 | else |
---|
| 8349 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 8350 | fi ;; |
---|
| 8351 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 8352 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 8353 | ac_top_srcdir=$srcdir ;; |
---|
| 8354 | *) # Relative path. |
---|
| 8355 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 8356 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 8357 | esac |
---|
| 8358 | |
---|
| 8359 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 8360 | # the directories may not exist. |
---|
| 8361 | case `pwd` in |
---|
| 8362 | .) ac_abs_builddir="$ac_dir";; |
---|
| 8363 | *) |
---|
| 8364 | case "$ac_dir" in |
---|
| 8365 | .) ac_abs_builddir=`pwd`;; |
---|
| 8366 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 8367 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 8368 | esac;; |
---|
| 8369 | esac |
---|
| 8370 | case $ac_abs_builddir in |
---|
| 8371 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8372 | *) |
---|
| 8373 | case ${ac_top_builddir}. in |
---|
| 8374 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 8375 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8376 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 8377 | esac;; |
---|
| 8378 | esac |
---|
| 8379 | case $ac_abs_builddir in |
---|
| 8380 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8381 | *) |
---|
| 8382 | case $ac_srcdir in |
---|
| 8383 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 8384 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8385 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 8386 | esac;; |
---|
| 8387 | esac |
---|
| 8388 | case $ac_abs_builddir in |
---|
| 8389 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8390 | *) |
---|
| 8391 | case $ac_top_srcdir in |
---|
| 8392 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 8393 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8394 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 8395 | esac;; |
---|
| 8396 | esac |
---|
| 8397 | |
---|
| 8398 | |
---|
| 8399 | case $INSTALL in |
---|
| 8400 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 8401 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 8402 | esac |
---|
| 8403 | |
---|
| 8404 | if test x"$ac_file" != x-; then |
---|
| 8405 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 8406 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 8407 | rm -f "$ac_file" |
---|
| 8408 | fi |
---|
| 8409 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 8410 | # use $as_me), people would be surprised to read: |
---|
| 8411 | # /* config.h. Generated by config.status. */ |
---|
| 8412 | if test x"$ac_file" = x-; then |
---|
| 8413 | configure_input= |
---|
| 8414 | else |
---|
| 8415 | configure_input="$ac_file. " |
---|
| 8416 | fi |
---|
| 8417 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 8418 | sed 's,.*/,,'` by configure." |
---|
| 8419 | |
---|
| 8420 | # First look for the input files in the build tree, otherwise in the |
---|
| 8421 | # src tree. |
---|
| 8422 | ac_file_inputs=`IFS=: |
---|
| 8423 | for f in $ac_file_in; do |
---|
| 8424 | case $f in |
---|
| 8425 | -) echo $tmp/stdin ;; |
---|
| 8426 | [\\/$]*) |
---|
| 8427 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 8428 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8429 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8430 | { (exit 1); exit 1; }; } |
---|
| 8431 | echo "$f";; |
---|
| 8432 | *) # Relative |
---|
| 8433 | if test -f "$f"; then |
---|
| 8434 | # Build tree |
---|
| 8435 | echo "$f" |
---|
| 8436 | elif test -f "$srcdir/$f"; then |
---|
| 8437 | # Source tree |
---|
| 8438 | echo "$srcdir/$f" |
---|
| 8439 | else |
---|
| 8440 | # /dev/null tree |
---|
| 8441 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8442 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8443 | { (exit 1); exit 1; }; } |
---|
| 8444 | fi;; |
---|
| 8445 | esac |
---|
| 8446 | done` || { (exit 1); exit 1; } |
---|
| 8447 | _ACEOF |
---|
| 8448 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8449 | sed "$ac_vpsub |
---|
| 8450 | $extrasub |
---|
| 8451 | _ACEOF |
---|
| 8452 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8453 | :t |
---|
| 8454 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 8455 | s,@configure_input@,$configure_input,;t t |
---|
| 8456 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 8457 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 8458 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 8459 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 8460 | s,@builddir@,$ac_builddir,;t t |
---|
| 8461 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 8462 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 8463 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 8464 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 8465 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 8466 | rm -f $tmp/stdin |
---|
| 8467 | if test x"$ac_file" != x-; then |
---|
| 8468 | mv $tmp/out $ac_file |
---|
| 8469 | else |
---|
| 8470 | cat $tmp/out |
---|
| 8471 | rm -f $tmp/out |
---|
| 8472 | fi |
---|
| 8473 | |
---|
| 8474 | done |
---|
| 8475 | _ACEOF |
---|
| 8476 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8477 | |
---|
| 8478 | # |
---|
| 8479 | # CONFIG_HEADER section. |
---|
| 8480 | # |
---|
| 8481 | |
---|
| 8482 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 8483 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 8484 | # |
---|
| 8485 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 8486 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 8487 | ac_dB='[ ].*$,\1#\2' |
---|
| 8488 | ac_dC=' ' |
---|
| 8489 | ac_dD=',;t' |
---|
| 8490 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 8491 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 8492 | ac_uB='$,\1#\2define\3' |
---|
| 8493 | ac_uC=' ' |
---|
| 8494 | ac_uD=',;t' |
---|
| 8495 | |
---|
| 8496 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 8497 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8498 | case $ac_file in |
---|
| 8499 | - | *:- | *:-:* ) # input from stdin |
---|
| 8500 | cat >$tmp/stdin |
---|
| 8501 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8502 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8503 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8504 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8505 | * ) ac_file_in=$ac_file.in ;; |
---|
| 8506 | esac |
---|
| 8507 | |
---|
| 8508 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 8509 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 8510 | |
---|
| 8511 | # First look for the input files in the build tree, otherwise in the |
---|
| 8512 | # src tree. |
---|
| 8513 | ac_file_inputs=`IFS=: |
---|
| 8514 | for f in $ac_file_in; do |
---|
| 8515 | case $f in |
---|
| 8516 | -) echo $tmp/stdin ;; |
---|
| 8517 | [\\/$]*) |
---|
| 8518 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 8519 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8520 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8521 | { (exit 1); exit 1; }; } |
---|
| 8522 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 8523 | echo "$f";; |
---|
| 8524 | *) # Relative |
---|
| 8525 | if test -f "$f"; then |
---|
| 8526 | # Build tree |
---|
| 8527 | echo "$f" |
---|
| 8528 | elif test -f "$srcdir/$f"; then |
---|
| 8529 | # Source tree |
---|
| 8530 | echo "$srcdir/$f" |
---|
| 8531 | else |
---|
| 8532 | # /dev/null tree |
---|
| 8533 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8534 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8535 | { (exit 1); exit 1; }; } |
---|
| 8536 | fi;; |
---|
| 8537 | esac |
---|
| 8538 | done` || { (exit 1); exit 1; } |
---|
| 8539 | # Remove the trailing spaces. |
---|
| 8540 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 8541 | |
---|
| 8542 | _ACEOF |
---|
| 8543 | |
---|
| 8544 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 8545 | # `conftest.undefs', that substitutes the proper values into |
---|
| 8546 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 8547 | # templates, and the second `#undef' templates. |
---|
| 8548 | # And first: Protect against being on the right side of a sed subst in |
---|
| 8549 | # config.status. Protect against being in an unquoted here document |
---|
| 8550 | # in config.status. |
---|
| 8551 | rm -f conftest.defines conftest.undefs |
---|
| 8552 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 8553 | # Putting comments in sed scripts is not portable. |
---|
| 8554 | # |
---|
| 8555 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 8556 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 8557 | # See the Autoconf documentation for `clear'. |
---|
| 8558 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 8559 | s/[\\&,]/\\&/g |
---|
| 8560 | s,[\\$`],\\&,g |
---|
| 8561 | t clear |
---|
| 8562 | : clear |
---|
| 8563 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 8564 | t end |
---|
| 8565 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 8566 | : end |
---|
| 8567 | _ACEOF |
---|
| 8568 | # If some macros were called several times there might be several times |
---|
| 8569 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 8570 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 8571 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 8572 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 8573 | rm -f confdef2sed.sed |
---|
| 8574 | |
---|
| 8575 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 8576 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 8577 | # on some systems where configure will not decide to define it. |
---|
| 8578 | cat >>conftest.undefs <<\_ACEOF |
---|
| 8579 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 8580 | _ACEOF |
---|
| 8581 | |
---|
| 8582 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 8583 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 8584 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 8585 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 8586 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 8587 | echo ' :' >>$CONFIG_STATUS |
---|
| 8588 | rm -f conftest.tail |
---|
| 8589 | while grep . conftest.defines >/dev/null |
---|
| 8590 | do |
---|
| 8591 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 8592 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 8593 | # Speed up: don't consider the non `#define' lines. |
---|
| 8594 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 8595 | # Work around the forget-to-reset-the-flag bug. |
---|
| 8596 | echo 't clr' >>$CONFIG_STATUS |
---|
| 8597 | echo ': clr' >>$CONFIG_STATUS |
---|
| 8598 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 8599 | echo 'CEOF |
---|
| 8600 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 8601 | rm -f $tmp/in |
---|
| 8602 | mv $tmp/out $tmp/in |
---|
| 8603 | ' >>$CONFIG_STATUS |
---|
| 8604 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 8605 | rm -f conftest.defines |
---|
| 8606 | mv conftest.tail conftest.defines |
---|
| 8607 | done |
---|
| 8608 | rm -f conftest.defines |
---|
| 8609 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 8610 | echo >>$CONFIG_STATUS |
---|
| 8611 | |
---|
| 8612 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 8613 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 8614 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 8615 | rm -f conftest.tail |
---|
| 8616 | while grep . conftest.undefs >/dev/null |
---|
| 8617 | do |
---|
| 8618 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 8619 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 8620 | # Speed up: don't consider the non `#undef' |
---|
| 8621 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 8622 | # Work around the forget-to-reset-the-flag bug. |
---|
| 8623 | echo 't clr' >>$CONFIG_STATUS |
---|
| 8624 | echo ': clr' >>$CONFIG_STATUS |
---|
| 8625 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 8626 | echo 'CEOF |
---|
| 8627 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 8628 | rm -f $tmp/in |
---|
| 8629 | mv $tmp/out $tmp/in |
---|
| 8630 | ' >>$CONFIG_STATUS |
---|
| 8631 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 8632 | rm -f conftest.undefs |
---|
| 8633 | mv conftest.tail conftest.undefs |
---|
| 8634 | done |
---|
| 8635 | rm -f conftest.undefs |
---|
| 8636 | |
---|
| 8637 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8638 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 8639 | # use $as_me), people would be surprised to read: |
---|
| 8640 | # /* config.h. Generated by config.status. */ |
---|
| 8641 | if test x"$ac_file" = x-; then |
---|
| 8642 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 8643 | else |
---|
| 8644 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 8645 | fi |
---|
| 8646 | cat $tmp/in >>$tmp/config.h |
---|
| 8647 | rm -f $tmp/in |
---|
| 8648 | if test x"$ac_file" != x-; then |
---|
| 8649 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 8650 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 8651 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 8652 | else |
---|
| 8653 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 8654 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8655 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8656 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8657 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 8658 | . : '\(.\)' 2>/dev/null || |
---|
| 8659 | echo X"$ac_file" | |
---|
| 8660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8662 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8663 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8664 | s/.*/./; q'` |
---|
| 8665 | { if $as_mkdir_p; then |
---|
| 8666 | mkdir -p "$ac_dir" |
---|
| 8667 | else |
---|
| 8668 | as_dir="$ac_dir" |
---|
| 8669 | as_dirs= |
---|
| 8670 | while test ! -d "$as_dir"; do |
---|
| 8671 | as_dirs="$as_dir $as_dirs" |
---|
| 8672 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8673 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8674 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8675 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8676 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8677 | . : '\(.\)' 2>/dev/null || |
---|
| 8678 | echo X"$as_dir" | |
---|
| 8679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8681 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8682 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8683 | s/.*/./; q'` |
---|
| 8684 | done |
---|
| 8685 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8686 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 8687 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 8688 | { (exit 1); exit 1; }; }; } |
---|
| 8689 | |
---|
| 8690 | rm -f $ac_file |
---|
| 8691 | mv $tmp/config.h $ac_file |
---|
| 8692 | fi |
---|
| 8693 | else |
---|
| 8694 | cat $tmp/config.h |
---|
| 8695 | rm -f $tmp/config.h |
---|
| 8696 | fi |
---|
| 8697 | # Compute $ac_file's index in $config_headers. |
---|
| 8698 | _am_stamp_count=1 |
---|
| 8699 | for _am_header in $config_headers :; do |
---|
| 8700 | case $_am_header in |
---|
| 8701 | $ac_file | $ac_file:* ) |
---|
| 8702 | break ;; |
---|
| 8703 | * ) |
---|
| 8704 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 8705 | esac |
---|
| 8706 | done |
---|
| 8707 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 8708 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8709 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 8710 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 8711 | X$ac_file : 'X\(/\)' \| \ |
---|
| 8712 | . : '\(.\)' 2>/dev/null || |
---|
| 8713 | echo X$ac_file | |
---|
| 8714 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8715 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8716 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8717 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8718 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 8719 | done |
---|
| 8720 | _ACEOF |
---|
| 8721 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8722 | |
---|
| 8723 | # |
---|
| 8724 | # CONFIG_COMMANDS section. |
---|
| 8725 | # |
---|
| 8726 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 8727 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 8728 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8729 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 8730 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8731 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 8732 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 8733 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 8734 | . : '\(.\)' 2>/dev/null || |
---|
| 8735 | echo X"$ac_dest" | |
---|
| 8736 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8737 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8738 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8739 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8740 | s/.*/./; q'` |
---|
| 8741 | { if $as_mkdir_p; then |
---|
| 8742 | mkdir -p "$ac_dir" |
---|
| 8743 | else |
---|
| 8744 | as_dir="$ac_dir" |
---|
| 8745 | as_dirs= |
---|
| 8746 | while test ! -d "$as_dir"; do |
---|
| 8747 | as_dirs="$as_dir $as_dirs" |
---|
| 8748 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8749 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8750 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8751 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8752 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8753 | . : '\(.\)' 2>/dev/null || |
---|
| 8754 | echo X"$as_dir" | |
---|
| 8755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8756 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8757 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8758 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8759 | s/.*/./; q'` |
---|
| 8760 | done |
---|
| 8761 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8762 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 8763 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 8764 | { (exit 1); exit 1; }; }; } |
---|
| 8765 | |
---|
| 8766 | ac_builddir=. |
---|
| 8767 | |
---|
| 8768 | if test "$ac_dir" != .; then |
---|
| 8769 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 8770 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 8771 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 8772 | else |
---|
| 8773 | ac_dir_suffix= ac_top_builddir= |
---|
| 8774 | fi |
---|
| 8775 | |
---|
| 8776 | case $srcdir in |
---|
| 8777 | .) # No --srcdir option. We are building in place. |
---|
| 8778 | ac_srcdir=. |
---|
| 8779 | if test -z "$ac_top_builddir"; then |
---|
| 8780 | ac_top_srcdir=. |
---|
| 8781 | else |
---|
| 8782 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 8783 | fi ;; |
---|
| 8784 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 8785 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 8786 | ac_top_srcdir=$srcdir ;; |
---|
| 8787 | *) # Relative path. |
---|
| 8788 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 8789 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 8790 | esac |
---|
| 8791 | |
---|
| 8792 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 8793 | # the directories may not exist. |
---|
| 8794 | case `pwd` in |
---|
| 8795 | .) ac_abs_builddir="$ac_dir";; |
---|
| 8796 | *) |
---|
| 8797 | case "$ac_dir" in |
---|
| 8798 | .) ac_abs_builddir=`pwd`;; |
---|
| 8799 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 8800 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 8801 | esac;; |
---|
| 8802 | esac |
---|
| 8803 | case $ac_abs_builddir in |
---|
| 8804 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8805 | *) |
---|
| 8806 | case ${ac_top_builddir}. in |
---|
| 8807 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 8808 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8809 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 8810 | esac;; |
---|
| 8811 | esac |
---|
| 8812 | case $ac_abs_builddir in |
---|
| 8813 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8814 | *) |
---|
| 8815 | case $ac_srcdir in |
---|
| 8816 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 8817 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8818 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 8819 | esac;; |
---|
| 8820 | esac |
---|
| 8821 | case $ac_abs_builddir in |
---|
| 8822 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8823 | *) |
---|
| 8824 | case $ac_top_srcdir in |
---|
| 8825 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 8826 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8827 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 8828 | esac;; |
---|
| 8829 | esac |
---|
| 8830 | |
---|
| 8831 | |
---|
| 8832 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 8833 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 8834 | case $ac_dest in |
---|
| 8835 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 8836 | # Strip MF so we end up with the name of the file. |
---|
| 8837 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 8838 | # Check whether this is an Automake generated Makefile or not. |
---|
| 8839 | # We used to match only the files named `Makefile.in', but |
---|
| 8840 | # some people rename them; so instead we look at the file content. |
---|
| 8841 | # Grep'ing the first line is not enough: some people post-process |
---|
| 8842 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 8843 | # So let's grep whole file. |
---|
| 8844 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 8845 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 8846 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8847 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 8848 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 8849 | X"$mf" : 'X\(/\)' \| \ |
---|
| 8850 | . : '\(.\)' 2>/dev/null || |
---|
| 8851 | echo X"$mf" | |
---|
| 8852 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8853 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8854 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8855 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8856 | s/.*/./; q'` |
---|
| 8857 | else |
---|
| 8858 | continue |
---|
| 8859 | fi |
---|
| 8860 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 8861 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 8862 | # running `make'. |
---|
[2819] | 8863 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 8864 | test -z "$DEPDIR" && continue |
---|
| 8865 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2819] | 8866 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 8867 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 8868 | # We invoke sed twice because it is the simplest approach to |
---|
| 8869 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2819] | 8870 | for file in `sed -n ' |
---|
[1956] | 8871 | /^DEP_FILES = .*\\\\$/ { |
---|
| 8872 | s/^DEP_FILES = // |
---|
| 8873 | :loop |
---|
| 8874 | s/\\\\$// |
---|
| 8875 | p |
---|
| 8876 | n |
---|
| 8877 | /\\\\$/ b loop |
---|
| 8878 | p |
---|
| 8879 | } |
---|
| 8880 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 8881 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 8882 | # Make sure the directory exists. |
---|
| 8883 | test -f "$dirpart/$file" && continue |
---|
| 8884 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 8885 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8886 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 8887 | X"$file" : 'X\(//\)$' \| \ |
---|
| 8888 | X"$file" : 'X\(/\)' \| \ |
---|
| 8889 | . : '\(.\)' 2>/dev/null || |
---|
| 8890 | echo X"$file" | |
---|
| 8891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8892 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8893 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8894 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8895 | s/.*/./; q'` |
---|
| 8896 | { if $as_mkdir_p; then |
---|
| 8897 | mkdir -p $dirpart/$fdir |
---|
| 8898 | else |
---|
| 8899 | as_dir=$dirpart/$fdir |
---|
| 8900 | as_dirs= |
---|
| 8901 | while test ! -d "$as_dir"; do |
---|
| 8902 | as_dirs="$as_dir $as_dirs" |
---|
| 8903 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8904 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8905 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8906 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8907 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8908 | . : '\(.\)' 2>/dev/null || |
---|
| 8909 | echo X"$as_dir" | |
---|
| 8910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8911 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8912 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8913 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8914 | s/.*/./; q'` |
---|
| 8915 | done |
---|
| 8916 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8917 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 8918 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 8919 | { (exit 1); exit 1; }; }; } |
---|
| 8920 | |
---|
| 8921 | # echo "creating $dirpart/$file" |
---|
| 8922 | echo '# dummy' > "$dirpart/$file" |
---|
| 8923 | done |
---|
| 8924 | done |
---|
| 8925 | ;; |
---|
| 8926 | esac |
---|
| 8927 | done |
---|
| 8928 | _ACEOF |
---|
| 8929 | |
---|
| 8930 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8931 | |
---|
| 8932 | { (exit 0); exit 0; } |
---|
| 8933 | _ACEOF |
---|
| 8934 | chmod +x $CONFIG_STATUS |
---|
| 8935 | ac_clean_files=$ac_clean_files_save |
---|
| 8936 | |
---|
| 8937 | |
---|
| 8938 | # configure is writing to config.log, and then calls config.status. |
---|
| 8939 | # config.status does its own redirection, appending to config.log. |
---|
| 8940 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 8941 | # by configure, so config.status won't be able to write to it; its |
---|
| 8942 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 8943 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 8944 | # appended to by config.status. When coming back to configure, we |
---|
| 8945 | # need to make the FD available again. |
---|
| 8946 | if test "$no_create" != yes; then |
---|
| 8947 | ac_cs_success=: |
---|
| 8948 | ac_config_status_args= |
---|
| 8949 | test "$silent" = yes && |
---|
| 8950 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 8951 | exec 5>/dev/null |
---|
| 8952 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 8953 | exec 5>>config.log |
---|
| 8954 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 8955 | # would make configure fail if this is the last instruction. |
---|
| 8956 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 8957 | fi |
---|
| 8958 | |
---|