[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[2984] | 3 | # Generated by GNU Autoconf 2.57 for orxonox 0.1-pre-alpha. |
---|
[1956] | 4 | # |
---|
| 5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 6 | # |
---|
[2984] | 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
| 8 | # Free Software Foundation, Inc. |
---|
[1956] | 9 | # This configure script is free software; the Free Software Foundation |
---|
| 10 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 11 | ## --------------------- ## |
---|
| 12 | ## M4sh Initialization. ## |
---|
| 13 | ## --------------------- ## |
---|
[1853] | 14 | |
---|
[1956] | 15 | # Be Bourne compatible |
---|
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 17 | emulate sh |
---|
| 18 | NULLCMD=: |
---|
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 20 | # is contrary to our usage. Disable this feature. |
---|
| 21 | alias -g '${1+"$@"}'='"$@"' |
---|
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 23 | set -o posix |
---|
| 24 | fi |
---|
[1853] | 25 | |
---|
[1956] | 26 | # Support unset when possible. |
---|
[2984] | 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
[1956] | 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 |
---|
[2984] | 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
[1956] | 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 | as_mkdir_p=false |
---|
| 224 | fi |
---|
[1853] | 225 | |
---|
[1956] | 226 | as_executable_p="test -f" |
---|
| 227 | |
---|
| 228 | # Sed expression to map a string onto a valid CPP name. |
---|
[2984] | 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
[1956] | 230 | |
---|
| 231 | # Sed expression to map a string onto a valid variable name. |
---|
[2984] | 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
[1956] | 233 | |
---|
| 234 | |
---|
| 235 | # IFS |
---|
| 236 | # We need space, tab and new line, in precisely that order. |
---|
| 237 | as_nl=' |
---|
| 238 | ' |
---|
| 239 | IFS=" $as_nl" |
---|
| 240 | |
---|
| 241 | # CDPATH. |
---|
| 242 | $as_unset CDPATH |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | # Name of the host. |
---|
| 246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 247 | # so uname gets run too. |
---|
| 248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 249 | |
---|
| 250 | exec 6>&1 |
---|
| 251 | |
---|
| 252 | # |
---|
| 253 | # Initializations. |
---|
| 254 | # |
---|
| 255 | ac_default_prefix=/usr/local |
---|
| 256 | ac_config_libobj_dir=. |
---|
| 257 | cross_compiling=no |
---|
| 258 | subdirs= |
---|
| 259 | MFLAGS= |
---|
| 260 | MAKEFLAGS= |
---|
| 261 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 262 | |
---|
| 263 | # Maximum number of lines to put in a shell here document. |
---|
| 264 | # This variable seems obsolete. It should probably be removed, and |
---|
| 265 | # only ac_max_sed_lines should be used. |
---|
| 266 | : ${ac_max_here_lines=38} |
---|
| 267 | |
---|
| 268 | # Identity of this package. |
---|
| 269 | PACKAGE_NAME='orxonox' |
---|
| 270 | PACKAGE_TARNAME='orxonox' |
---|
| 271 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
| 272 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
| 273 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
| 274 | |
---|
| 275 | ac_unique_file="." |
---|
| 276 | # Factoring default headers for most tests. |
---|
| 277 | ac_includes_default="\ |
---|
| 278 | #include <stdio.h> |
---|
| 279 | #if HAVE_SYS_TYPES_H |
---|
| 280 | # include <sys/types.h> |
---|
| 281 | #endif |
---|
| 282 | #if HAVE_SYS_STAT_H |
---|
| 283 | # include <sys/stat.h> |
---|
| 284 | #endif |
---|
| 285 | #if STDC_HEADERS |
---|
| 286 | # include <stdlib.h> |
---|
| 287 | # include <stddef.h> |
---|
| 288 | #else |
---|
| 289 | # if HAVE_STDLIB_H |
---|
| 290 | # include <stdlib.h> |
---|
| 291 | # endif |
---|
| 292 | #endif |
---|
| 293 | #if HAVE_STRING_H |
---|
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 295 | # include <memory.h> |
---|
| 296 | # endif |
---|
| 297 | # include <string.h> |
---|
| 298 | #endif |
---|
| 299 | #if HAVE_STRINGS_H |
---|
| 300 | # include <strings.h> |
---|
| 301 | #endif |
---|
| 302 | #if HAVE_INTTYPES_H |
---|
| 303 | # include <inttypes.h> |
---|
| 304 | #else |
---|
| 305 | # if HAVE_STDINT_H |
---|
| 306 | # include <stdint.h> |
---|
| 307 | # endif |
---|
| 308 | #endif |
---|
| 309 | #if HAVE_UNISTD_H |
---|
| 310 | # include <unistd.h> |
---|
| 311 | #endif" |
---|
| 312 | |
---|
[2985] | 313 | 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 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 SDL_CONFIG SDL_CFLAGS SDL_LIBS MSBITFIELDS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' |
---|
[1956] | 314 | ac_subst_files='' |
---|
| 315 | |
---|
| 316 | # Initialize some variables set by options. |
---|
| 317 | ac_init_help= |
---|
| 318 | ac_init_version=false |
---|
| 319 | # The variables have the same names as the options, with |
---|
| 320 | # dashes changed to underlines. |
---|
| 321 | cache_file=/dev/null |
---|
| 322 | exec_prefix=NONE |
---|
| 323 | no_create= |
---|
| 324 | no_recursion= |
---|
| 325 | prefix=NONE |
---|
| 326 | program_prefix=NONE |
---|
| 327 | program_suffix=NONE |
---|
| 328 | program_transform_name=s,x,x, |
---|
| 329 | silent= |
---|
| 330 | site= |
---|
| 331 | srcdir= |
---|
| 332 | verbose= |
---|
| 333 | x_includes=NONE |
---|
| 334 | x_libraries=NONE |
---|
| 335 | |
---|
| 336 | # Installation directory options. |
---|
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 338 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 339 | # by default will actually change. |
---|
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 341 | bindir='${exec_prefix}/bin' |
---|
| 342 | sbindir='${exec_prefix}/sbin' |
---|
| 343 | libexecdir='${exec_prefix}/libexec' |
---|
| 344 | datadir='${prefix}/share' |
---|
| 345 | sysconfdir='${prefix}/etc' |
---|
| 346 | sharedstatedir='${prefix}/com' |
---|
| 347 | localstatedir='${prefix}/var' |
---|
| 348 | libdir='${exec_prefix}/lib' |
---|
| 349 | includedir='${prefix}/include' |
---|
| 350 | oldincludedir='/usr/include' |
---|
| 351 | infodir='${prefix}/info' |
---|
| 352 | mandir='${prefix}/man' |
---|
| 353 | |
---|
| 354 | ac_prev= |
---|
| 355 | for ac_option |
---|
| 356 | do |
---|
| 357 | # If the previous option needs an argument, assign it. |
---|
| 358 | if test -n "$ac_prev"; then |
---|
| 359 | eval "$ac_prev=\$ac_option" |
---|
| 360 | ac_prev= |
---|
| 361 | continue |
---|
| 362 | fi |
---|
| 363 | |
---|
| 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 365 | |
---|
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 367 | |
---|
| 368 | case $ac_option in |
---|
| 369 | |
---|
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 371 | ac_prev=bindir ;; |
---|
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 373 | bindir=$ac_optarg ;; |
---|
| 374 | |
---|
| 375 | -build | --build | --buil | --bui | --bu) |
---|
| 376 | ac_prev=build_alias ;; |
---|
| 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 378 | build_alias=$ac_optarg ;; |
---|
| 379 | |
---|
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 382 | ac_prev=cache_file ;; |
---|
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 385 | cache_file=$ac_optarg ;; |
---|
| 386 | |
---|
| 387 | --config-cache | -C) |
---|
| 388 | cache_file=config.cache ;; |
---|
| 389 | |
---|
| 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 391 | ac_prev=datadir ;; |
---|
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 393 | | --da=*) |
---|
| 394 | datadir=$ac_optarg ;; |
---|
| 395 | |
---|
| 396 | -disable-* | --disable-*) |
---|
| 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 398 | # Reject names that are not valid shell variable names. |
---|
| 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 401 | { (exit 1); exit 1; }; } |
---|
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 403 | eval "enable_$ac_feature=no" ;; |
---|
| 404 | |
---|
| 405 | -enable-* | --enable-*) |
---|
| 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 407 | # Reject names that are not valid shell variable names. |
---|
| 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 410 | { (exit 1); exit 1; }; } |
---|
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 412 | case $ac_option in |
---|
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 414 | *) ac_optarg=yes ;; |
---|
| 415 | esac |
---|
| 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 417 | |
---|
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 420 | | --exec | --exe | --ex) |
---|
| 421 | ac_prev=exec_prefix ;; |
---|
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 424 | | --exec=* | --exe=* | --ex=*) |
---|
| 425 | exec_prefix=$ac_optarg ;; |
---|
| 426 | |
---|
| 427 | -gas | --gas | --ga | --g) |
---|
| 428 | # Obsolete; use --with-gas. |
---|
| 429 | with_gas=yes ;; |
---|
| 430 | |
---|
| 431 | -help | --help | --hel | --he | -h) |
---|
| 432 | ac_init_help=long ;; |
---|
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 434 | ac_init_help=recursive ;; |
---|
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 436 | ac_init_help=short ;; |
---|
| 437 | |
---|
| 438 | -host | --host | --hos | --ho) |
---|
| 439 | ac_prev=host_alias ;; |
---|
| 440 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 441 | host_alias=$ac_optarg ;; |
---|
| 442 | |
---|
| 443 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 444 | | --includ | --inclu | --incl | --inc) |
---|
| 445 | ac_prev=includedir ;; |
---|
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 448 | includedir=$ac_optarg ;; |
---|
| 449 | |
---|
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 451 | ac_prev=infodir ;; |
---|
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 453 | infodir=$ac_optarg ;; |
---|
| 454 | |
---|
| 455 | -libdir | --libdir | --libdi | --libd) |
---|
| 456 | ac_prev=libdir ;; |
---|
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 458 | libdir=$ac_optarg ;; |
---|
| 459 | |
---|
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 461 | | --libexe | --libex | --libe) |
---|
| 462 | ac_prev=libexecdir ;; |
---|
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 464 | | --libexe=* | --libex=* | --libe=*) |
---|
| 465 | libexecdir=$ac_optarg ;; |
---|
| 466 | |
---|
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 468 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 469 | | --locals | --local | --loca | --loc | --lo) |
---|
| 470 | ac_prev=localstatedir ;; |
---|
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 474 | localstatedir=$ac_optarg ;; |
---|
| 475 | |
---|
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 477 | ac_prev=mandir ;; |
---|
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 479 | mandir=$ac_optarg ;; |
---|
| 480 | |
---|
| 481 | -nfp | --nfp | --nf) |
---|
| 482 | # Obsolete; use --without-fp. |
---|
| 483 | with_fp=no ;; |
---|
| 484 | |
---|
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 486 | | --no-cr | --no-c | -n) |
---|
| 487 | no_create=yes ;; |
---|
| 488 | |
---|
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 491 | no_recursion=yes ;; |
---|
| 492 | |
---|
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 495 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 496 | ac_prev=oldincludedir ;; |
---|
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 500 | oldincludedir=$ac_optarg ;; |
---|
| 501 | |
---|
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 503 | ac_prev=prefix ;; |
---|
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 505 | prefix=$ac_optarg ;; |
---|
| 506 | |
---|
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 508 | | --program-pre | --program-pr | --program-p) |
---|
| 509 | ac_prev=program_prefix ;; |
---|
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 512 | program_prefix=$ac_optarg ;; |
---|
| 513 | |
---|
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 515 | | --program-suf | --program-su | --program-s) |
---|
| 516 | ac_prev=program_suffix ;; |
---|
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 519 | program_suffix=$ac_optarg ;; |
---|
| 520 | |
---|
| 521 | -program-transform-name | --program-transform-name \ |
---|
| 522 | | --program-transform-nam | --program-transform-na \ |
---|
| 523 | | --program-transform-n | --program-transform- \ |
---|
| 524 | | --program-transform | --program-transfor \ |
---|
| 525 | | --program-transfo | --program-transf \ |
---|
| 526 | | --program-trans | --program-tran \ |
---|
| 527 | | --progr-tra | --program-tr | --program-t) |
---|
| 528 | ac_prev=program_transform_name ;; |
---|
| 529 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 531 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 532 | | --program-transform=* | --program-transfor=* \ |
---|
| 533 | | --program-transfo=* | --program-transf=* \ |
---|
| 534 | | --program-trans=* | --program-tran=* \ |
---|
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 536 | program_transform_name=$ac_optarg ;; |
---|
| 537 | |
---|
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 539 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 540 | silent=yes ;; |
---|
| 541 | |
---|
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 543 | ac_prev=sbindir ;; |
---|
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 545 | | --sbi=* | --sb=*) |
---|
| 546 | sbindir=$ac_optarg ;; |
---|
| 547 | |
---|
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 551 | | --sha | --sh) |
---|
| 552 | ac_prev=sharedstatedir ;; |
---|
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 556 | | --sha=* | --sh=*) |
---|
| 557 | sharedstatedir=$ac_optarg ;; |
---|
| 558 | |
---|
| 559 | -site | --site | --sit) |
---|
| 560 | ac_prev=site ;; |
---|
| 561 | -site=* | --site=* | --sit=*) |
---|
| 562 | site=$ac_optarg ;; |
---|
| 563 | |
---|
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 565 | ac_prev=srcdir ;; |
---|
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 567 | srcdir=$ac_optarg ;; |
---|
| 568 | |
---|
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 571 | ac_prev=sysconfdir ;; |
---|
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 574 | sysconfdir=$ac_optarg ;; |
---|
| 575 | |
---|
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 577 | ac_prev=target_alias ;; |
---|
| 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 579 | target_alias=$ac_optarg ;; |
---|
| 580 | |
---|
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 582 | verbose=yes ;; |
---|
| 583 | |
---|
| 584 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 585 | ac_init_version=: ;; |
---|
| 586 | |
---|
| 587 | -with-* | --with-*) |
---|
| 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 589 | # Reject names that are not valid shell variable names. |
---|
| 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 592 | { (exit 1); exit 1; }; } |
---|
| 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 594 | case $ac_option in |
---|
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 596 | *) ac_optarg=yes ;; |
---|
| 597 | esac |
---|
| 598 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 599 | |
---|
| 600 | -without-* | --without-*) |
---|
| 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 602 | # Reject names that are not valid shell variable names. |
---|
| 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 605 | { (exit 1); exit 1; }; } |
---|
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 607 | eval "with_$ac_package=no" ;; |
---|
| 608 | |
---|
| 609 | --x) |
---|
| 610 | # Obsolete; use --with-x. |
---|
| 611 | with_x=yes ;; |
---|
| 612 | |
---|
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 615 | ac_prev=x_includes ;; |
---|
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 618 | x_includes=$ac_optarg ;; |
---|
| 619 | |
---|
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 622 | ac_prev=x_libraries ;; |
---|
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 625 | x_libraries=$ac_optarg ;; |
---|
| 626 | |
---|
| 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 628 | Try \`$0 --help' for more information." >&2 |
---|
| 629 | { (exit 1); exit 1; }; } |
---|
| 630 | ;; |
---|
| 631 | |
---|
| 632 | *=*) |
---|
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 634 | # Reject names that are not valid shell variable names. |
---|
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 637 | { (exit 1); exit 1; }; } |
---|
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 639 | eval "$ac_envvar='$ac_optarg'" |
---|
| 640 | export $ac_envvar ;; |
---|
| 641 | |
---|
| 642 | *) |
---|
| 643 | # FIXME: should be removed in autoconf 3.0. |
---|
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 648 | ;; |
---|
| 649 | |
---|
| 650 | esac |
---|
| 651 | done |
---|
| 652 | |
---|
| 653 | if test -n "$ac_prev"; then |
---|
| 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 656 | { (exit 1); exit 1; }; } |
---|
[1853] | 657 | fi |
---|
| 658 | |
---|
[1956] | 659 | # Be sure to have absolute paths. |
---|
| 660 | for ac_var in exec_prefix prefix |
---|
| 661 | do |
---|
| 662 | eval ac_val=$`echo $ac_var` |
---|
| 663 | case $ac_val in |
---|
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 666 | { (exit 1); exit 1; }; };; |
---|
| 667 | esac |
---|
| 668 | done |
---|
[1853] | 669 | |
---|
[1956] | 670 | # Be sure to have absolute paths. |
---|
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
[2984] | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
[1956] | 673 | do |
---|
| 674 | eval ac_val=$`echo $ac_var` |
---|
| 675 | case $ac_val in |
---|
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 678 | { (exit 1); exit 1; }; };; |
---|
| 679 | esac |
---|
| 680 | done |
---|
| 681 | |
---|
| 682 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 683 | # used to hold the argument of --host etc. |
---|
| 684 | # FIXME: To remove some day. |
---|
| 685 | build=$build_alias |
---|
| 686 | host=$host_alias |
---|
| 687 | target=$target_alias |
---|
| 688 | |
---|
| 689 | # FIXME: To remove some day. |
---|
| 690 | if test "x$host_alias" != x; then |
---|
| 691 | if test "x$build_alias" = x; then |
---|
| 692 | cross_compiling=maybe |
---|
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 696 | cross_compiling=yes |
---|
| 697 | fi |
---|
[1853] | 698 | fi |
---|
| 699 | |
---|
[1956] | 700 | ac_tool_prefix= |
---|
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 702 | |
---|
| 703 | test "$silent" = yes && exec 6>/dev/null |
---|
| 704 | |
---|
| 705 | |
---|
| 706 | # Find the source files, if location was not specified. |
---|
| 707 | if test -z "$srcdir"; then |
---|
| 708 | ac_srcdir_defaulted=yes |
---|
| 709 | # Try the directory containing this script, then its parent. |
---|
| 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 712 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 713 | X"$0" : 'X\(//\)$' \| \ |
---|
| 714 | X"$0" : 'X\(/\)' \| \ |
---|
| 715 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 716 | echo X"$0" | |
---|
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 721 | s/.*/./; q'` |
---|
| 722 | srcdir=$ac_confdir |
---|
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 724 | srcdir=.. |
---|
| 725 | fi |
---|
| 726 | else |
---|
| 727 | ac_srcdir_defaulted=no |
---|
| 728 | fi |
---|
| 729 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 730 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 732 | { (exit 1); exit 1; }; } |
---|
| 733 | else |
---|
| 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 735 | { (exit 1); exit 1; }; } |
---|
| 736 | fi |
---|
| 737 | fi |
---|
| 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 740 | { (exit 1); exit 1; }; } |
---|
| 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 742 | ac_env_build_alias_set=${build_alias+set} |
---|
| 743 | ac_env_build_alias_value=$build_alias |
---|
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 745 | ac_cv_env_build_alias_value=$build_alias |
---|
| 746 | ac_env_host_alias_set=${host_alias+set} |
---|
| 747 | ac_env_host_alias_value=$host_alias |
---|
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 749 | ac_cv_env_host_alias_value=$host_alias |
---|
| 750 | ac_env_target_alias_set=${target_alias+set} |
---|
| 751 | ac_env_target_alias_value=$target_alias |
---|
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 753 | ac_cv_env_target_alias_value=$target_alias |
---|
| 754 | ac_env_CXX_set=${CXX+set} |
---|
| 755 | ac_env_CXX_value=$CXX |
---|
| 756 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 757 | ac_cv_env_CXX_value=$CXX |
---|
| 758 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 759 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 760 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 761 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 770 | ac_env_CC_set=${CC+set} |
---|
| 771 | ac_env_CC_value=$CC |
---|
| 772 | ac_cv_env_CC_set=${CC+set} |
---|
| 773 | ac_cv_env_CC_value=$CC |
---|
| 774 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 775 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 776 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 777 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 778 | ac_env_CPP_set=${CPP+set} |
---|
| 779 | ac_env_CPP_value=$CPP |
---|
| 780 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 781 | ac_cv_env_CPP_value=$CPP |
---|
| 782 | |
---|
| 783 | # |
---|
| 784 | # Report the --help message. |
---|
| 785 | # |
---|
| 786 | if test "$ac_init_help" = "long"; then |
---|
| 787 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 788 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 789 | cat <<_ACEOF |
---|
| 790 | \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems. |
---|
| 791 | |
---|
| 792 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 793 | |
---|
| 794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 795 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 796 | |
---|
| 797 | Defaults for the options are specified in brackets. |
---|
| 798 | |
---|
| 799 | Configuration: |
---|
| 800 | -h, --help display this help and exit |
---|
| 801 | --help=short display options specific to this package |
---|
| 802 | --help=recursive display the short help of all the included packages |
---|
| 803 | -V, --version display version information and exit |
---|
| 804 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 805 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 806 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 807 | -n, --no-create do not create output files |
---|
| 808 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 809 | |
---|
| 810 | _ACEOF |
---|
| 811 | |
---|
| 812 | cat <<_ACEOF |
---|
| 813 | Installation directories: |
---|
| 814 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
[2984] | 815 | [$ac_default_prefix] |
---|
[1956] | 816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
[2984] | 817 | [PREFIX] |
---|
[1956] | 818 | |
---|
| 819 | By default, \`make install' will install all the files in |
---|
| 820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 822 | for instance \`--prefix=\$HOME'. |
---|
| 823 | |
---|
| 824 | For better control, use the options below. |
---|
| 825 | |
---|
| 826 | Fine tuning of the installation directories: |
---|
| 827 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 828 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 829 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 830 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 834 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 835 | --includedir=DIR C header files [PREFIX/include] |
---|
| 836 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 837 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 838 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 839 | _ACEOF |
---|
| 840 | |
---|
| 841 | cat <<\_ACEOF |
---|
| 842 | |
---|
| 843 | Program names: |
---|
| 844 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 845 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 846 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
[2983] | 847 | |
---|
| 848 | System types: |
---|
| 849 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 851 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
[1956] | 852 | _ACEOF |
---|
| 853 | fi |
---|
| 854 | |
---|
| 855 | if test -n "$ac_init_help"; then |
---|
| 856 | case $ac_init_help in |
---|
| 857 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
| 858 | esac |
---|
| 859 | cat <<\_ACEOF |
---|
| 860 | |
---|
| 861 | Optional Features: |
---|
| 862 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 863 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2984] | 864 | --disable-dependency-tracking Speeds up one-time builds |
---|
| 865 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
[2983] | 866 | --disable-sdltest Do not try to compile and run a test SDL program |
---|
[1956] | 867 | |
---|
[2983] | 868 | Optional Packages: |
---|
| 869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 871 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) |
---|
| 872 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) |
---|
| 873 | |
---|
[1956] | 874 | Some influential environment variables: |
---|
| 875 | CXX C++ compiler command |
---|
| 876 | CXXFLAGS C++ compiler flags |
---|
| 877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 878 | nonstandard directory <lib dir> |
---|
| 879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 880 | headers in a nonstandard directory <include dir> |
---|
| 881 | CC C compiler command |
---|
| 882 | CFLAGS C compiler flags |
---|
| 883 | CPP C preprocessor |
---|
| 884 | |
---|
| 885 | Use these variables to override the choices made by `configure' or to help |
---|
| 886 | it to find libraries and programs with nonstandard names/locations. |
---|
| 887 | |
---|
| 888 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 889 | _ACEOF |
---|
| 890 | fi |
---|
| 891 | |
---|
| 892 | if test "$ac_init_help" = "recursive"; then |
---|
| 893 | # If there are subdirs, report their specific --help. |
---|
| 894 | ac_popdir=`pwd` |
---|
| 895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 896 | test -d $ac_dir || continue |
---|
| 897 | ac_builddir=. |
---|
| 898 | |
---|
| 899 | if test "$ac_dir" != .; then |
---|
| 900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 901 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 903 | else |
---|
| 904 | ac_dir_suffix= ac_top_builddir= |
---|
| 905 | fi |
---|
| 906 | |
---|
| 907 | case $srcdir in |
---|
| 908 | .) # No --srcdir option. We are building in place. |
---|
| 909 | ac_srcdir=. |
---|
| 910 | if test -z "$ac_top_builddir"; then |
---|
| 911 | ac_top_srcdir=. |
---|
| 912 | else |
---|
| 913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 914 | fi ;; |
---|
| 915 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 916 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 917 | ac_top_srcdir=$srcdir ;; |
---|
| 918 | *) # Relative path. |
---|
| 919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 921 | esac |
---|
[2984] | 922 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 923 | # absolute. |
---|
| 924 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 925 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 926 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 927 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
[1956] | 928 | |
---|
| 929 | cd $ac_dir |
---|
| 930 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 931 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 932 | echo |
---|
| 933 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 934 | elif test -f $ac_srcdir/configure; then |
---|
| 935 | echo |
---|
| 936 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 937 | elif test -f $ac_srcdir/configure.ac || |
---|
[2984] | 938 | test -f $ac_srcdir/configure.in; then |
---|
[1956] | 939 | echo |
---|
| 940 | $ac_configure --help |
---|
| 941 | else |
---|
| 942 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 943 | fi |
---|
| 944 | cd $ac_popdir |
---|
| 945 | done |
---|
| 946 | fi |
---|
| 947 | |
---|
| 948 | test -n "$ac_init_help" && exit 0 |
---|
| 949 | if $ac_init_version; then |
---|
| 950 | cat <<\_ACEOF |
---|
| 951 | orxonox configure 0.1-pre-alpha |
---|
[2984] | 952 | generated by GNU Autoconf 2.57 |
---|
[1956] | 953 | |
---|
[2984] | 954 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
| 955 | Free Software Foundation, Inc. |
---|
[1956] | 956 | This configure script is free software; the Free Software Foundation |
---|
| 957 | gives unlimited permission to copy, distribute and modify it. |
---|
| 958 | _ACEOF |
---|
| 959 | exit 0 |
---|
| 960 | fi |
---|
| 961 | exec 5>config.log |
---|
| 962 | cat >&5 <<_ACEOF |
---|
| 963 | This file contains any messages produced by compilers while |
---|
| 964 | running configure, to aid debugging if configure makes a mistake. |
---|
| 965 | |
---|
| 966 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
[2984] | 967 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
[1956] | 968 | |
---|
| 969 | $ $0 $@ |
---|
| 970 | |
---|
| 971 | _ACEOF |
---|
| 972 | { |
---|
| 973 | cat <<_ASUNAME |
---|
| 974 | ## --------- ## |
---|
| 975 | ## Platform. ## |
---|
| 976 | ## --------- ## |
---|
| 977 | |
---|
| 978 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 979 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 980 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 981 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 982 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 983 | |
---|
| 984 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 985 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 986 | |
---|
| 987 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 988 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 989 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 990 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 991 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 992 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 993 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 994 | |
---|
| 995 | _ASUNAME |
---|
| 996 | |
---|
| 997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 998 | for as_dir in $PATH |
---|
| 999 | do |
---|
| 1000 | IFS=$as_save_IFS |
---|
| 1001 | test -z "$as_dir" && as_dir=. |
---|
| 1002 | echo "PATH: $as_dir" |
---|
| 1003 | done |
---|
| 1004 | |
---|
| 1005 | } >&5 |
---|
| 1006 | |
---|
| 1007 | cat >&5 <<_ACEOF |
---|
| 1008 | |
---|
| 1009 | |
---|
| 1010 | ## ----------- ## |
---|
| 1011 | ## Core tests. ## |
---|
| 1012 | ## ----------- ## |
---|
| 1013 | |
---|
| 1014 | _ACEOF |
---|
| 1015 | |
---|
| 1016 | |
---|
| 1017 | # Keep a trace of the command line. |
---|
| 1018 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1019 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1020 | # Also quote any args containing shell meta-characters. |
---|
| 1021 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1022 | ac_configure_args= |
---|
| 1023 | ac_configure_args0= |
---|
| 1024 | ac_configure_args1= |
---|
| 1025 | ac_sep= |
---|
| 1026 | ac_must_keep_next=false |
---|
| 1027 | for ac_pass in 1 2 |
---|
| 1028 | do |
---|
| 1029 | for ac_arg |
---|
| 1030 | do |
---|
| 1031 | case $ac_arg in |
---|
| 1032 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1033 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1034 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1035 | continue ;; |
---|
| 1036 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1037 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1038 | esac |
---|
| 1039 | case $ac_pass in |
---|
| 1040 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1041 | 2) |
---|
| 1042 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1043 | if test $ac_must_keep_next = true; then |
---|
[2984] | 1044 | ac_must_keep_next=false # Got value, back to normal. |
---|
[1956] | 1045 | else |
---|
[2984] | 1046 | case $ac_arg in |
---|
| 1047 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1048 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1049 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1050 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1051 | case "$ac_configure_args0 " in |
---|
| 1052 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1053 | esac |
---|
| 1054 | ;; |
---|
| 1055 | -* ) ac_must_keep_next=true ;; |
---|
| 1056 | esac |
---|
[1956] | 1057 | fi |
---|
| 1058 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1059 | # Get rid of the leading space. |
---|
| 1060 | ac_sep=" " |
---|
| 1061 | ;; |
---|
| 1062 | esac |
---|
| 1063 | done |
---|
| 1064 | done |
---|
| 1065 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1066 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1067 | |
---|
| 1068 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1069 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1070 | # would cause problems or look ugly. |
---|
| 1071 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1072 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1073 | trap 'exit_status=$? |
---|
| 1074 | # Save into config.log some information that might help in debugging. |
---|
| 1075 | { |
---|
| 1076 | echo |
---|
| 1077 | |
---|
| 1078 | cat <<\_ASBOX |
---|
| 1079 | ## ---------------- ## |
---|
| 1080 | ## Cache variables. ## |
---|
| 1081 | ## ---------------- ## |
---|
| 1082 | _ASBOX |
---|
| 1083 | echo |
---|
| 1084 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1085 | { |
---|
| 1086 | (set) 2>&1 | |
---|
| 1087 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1088 | *ac_space=\ *) |
---|
| 1089 | sed -n \ |
---|
[2984] | 1090 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1091 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
[1956] | 1092 | ;; |
---|
| 1093 | *) |
---|
| 1094 | sed -n \ |
---|
[2984] | 1095 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
[1956] | 1096 | ;; |
---|
| 1097 | esac; |
---|
| 1098 | } |
---|
| 1099 | echo |
---|
| 1100 | |
---|
| 1101 | cat <<\_ASBOX |
---|
| 1102 | ## ----------------- ## |
---|
| 1103 | ## Output variables. ## |
---|
| 1104 | ## ----------------- ## |
---|
| 1105 | _ASBOX |
---|
| 1106 | echo |
---|
| 1107 | for ac_var in $ac_subst_vars |
---|
| 1108 | do |
---|
| 1109 | eval ac_val=$`echo $ac_var` |
---|
| 1110 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1111 | done | sort |
---|
| 1112 | echo |
---|
| 1113 | |
---|
| 1114 | if test -n "$ac_subst_files"; then |
---|
| 1115 | cat <<\_ASBOX |
---|
| 1116 | ## ------------- ## |
---|
| 1117 | ## Output files. ## |
---|
| 1118 | ## ------------- ## |
---|
| 1119 | _ASBOX |
---|
| 1120 | echo |
---|
| 1121 | for ac_var in $ac_subst_files |
---|
| 1122 | do |
---|
| 1123 | eval ac_val=$`echo $ac_var` |
---|
[2984] | 1124 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
[1956] | 1125 | done | sort |
---|
| 1126 | echo |
---|
| 1127 | fi |
---|
| 1128 | |
---|
| 1129 | if test -s confdefs.h; then |
---|
| 1130 | cat <<\_ASBOX |
---|
| 1131 | ## ----------- ## |
---|
| 1132 | ## confdefs.h. ## |
---|
| 1133 | ## ----------- ## |
---|
| 1134 | _ASBOX |
---|
| 1135 | echo |
---|
| 1136 | sed "/^$/d" confdefs.h | sort |
---|
| 1137 | echo |
---|
| 1138 | fi |
---|
| 1139 | test "$ac_signal" != 0 && |
---|
| 1140 | echo "$as_me: caught signal $ac_signal" |
---|
| 1141 | echo "$as_me: exit $exit_status" |
---|
| 1142 | } >&5 |
---|
[2984] | 1143 | rm -f core core.* *.core && |
---|
[1956] | 1144 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1145 | exit $exit_status |
---|
| 1146 | ' 0 |
---|
| 1147 | for ac_signal in 1 2 13 15; do |
---|
| 1148 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1149 | done |
---|
| 1150 | ac_signal=0 |
---|
| 1151 | |
---|
| 1152 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1153 | rm -rf conftest* confdefs.h |
---|
| 1154 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1155 | echo >confdefs.h |
---|
| 1156 | |
---|
| 1157 | # Predefined preprocessor variables. |
---|
| 1158 | |
---|
| 1159 | cat >>confdefs.h <<_ACEOF |
---|
| 1160 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1161 | _ACEOF |
---|
| 1162 | |
---|
| 1163 | |
---|
| 1164 | cat >>confdefs.h <<_ACEOF |
---|
| 1165 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1166 | _ACEOF |
---|
| 1167 | |
---|
| 1168 | |
---|
| 1169 | cat >>confdefs.h <<_ACEOF |
---|
| 1170 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1171 | _ACEOF |
---|
| 1172 | |
---|
| 1173 | |
---|
| 1174 | cat >>confdefs.h <<_ACEOF |
---|
| 1175 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1176 | _ACEOF |
---|
| 1177 | |
---|
| 1178 | |
---|
| 1179 | cat >>confdefs.h <<_ACEOF |
---|
| 1180 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1181 | _ACEOF |
---|
| 1182 | |
---|
| 1183 | |
---|
| 1184 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1185 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1186 | if test -z "$CONFIG_SITE"; then |
---|
| 1187 | if test "x$prefix" != xNONE; then |
---|
| 1188 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1189 | else |
---|
| 1190 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1191 | fi |
---|
| 1192 | fi |
---|
| 1193 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1194 | if test -r "$ac_site_file"; then |
---|
| 1195 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1196 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1197 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1198 | . "$ac_site_file" |
---|
| 1199 | fi |
---|
| 1200 | done |
---|
| 1201 | |
---|
| 1202 | if test -r "$cache_file"; then |
---|
| 1203 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1204 | # files actually), so we avoid doing that. |
---|
| 1205 | if test -f "$cache_file"; then |
---|
| 1206 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1207 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1208 | case $cache_file in |
---|
| 1209 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1210 | *) . ./$cache_file;; |
---|
| 1211 | esac |
---|
| 1212 | fi |
---|
| 1213 | else |
---|
| 1214 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1215 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1216 | >$cache_file |
---|
| 1217 | fi |
---|
| 1218 | |
---|
| 1219 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1220 | # value. |
---|
| 1221 | ac_cache_corrupted=false |
---|
| 1222 | for ac_var in `(set) 2>&1 | |
---|
[2984] | 1223 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
[1956] | 1224 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1225 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1226 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1227 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1228 | case $ac_old_set,$ac_new_set in |
---|
| 1229 | set,) |
---|
| 1230 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1231 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1232 | ac_cache_corrupted=: ;; |
---|
| 1233 | ,set) |
---|
| 1234 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1235 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1236 | ac_cache_corrupted=: ;; |
---|
| 1237 | ,);; |
---|
| 1238 | *) |
---|
| 1239 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
[2984] | 1240 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
[1956] | 1241 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
[2984] | 1242 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
[1956] | 1243 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
[2984] | 1244 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
[1956] | 1245 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
[2984] | 1246 | ac_cache_corrupted=: |
---|
[1956] | 1247 | fi;; |
---|
| 1248 | esac |
---|
| 1249 | # Pass precious variables to config.status. |
---|
| 1250 | if test "$ac_new_set" = set; then |
---|
| 1251 | case $ac_new_val in |
---|
| 1252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1253 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1254 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1255 | esac |
---|
| 1256 | case " $ac_configure_args " in |
---|
| 1257 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1258 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1259 | esac |
---|
| 1260 | fi |
---|
| 1261 | done |
---|
| 1262 | if $ac_cache_corrupted; then |
---|
| 1263 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1264 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1265 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1266 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1267 | { (exit 1); exit 1; }; } |
---|
| 1268 | fi |
---|
| 1269 | |
---|
| 1270 | ac_ext=c |
---|
| 1271 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1275 | |
---|
| 1276 | |
---|
| 1277 | |
---|
| 1278 | |
---|
| 1279 | |
---|
| 1280 | |
---|
| 1281 | |
---|
| 1282 | |
---|
| 1283 | |
---|
| 1284 | |
---|
| 1285 | |
---|
| 1286 | |
---|
| 1287 | |
---|
| 1288 | |
---|
| 1289 | |
---|
| 1290 | |
---|
| 1291 | |
---|
| 1292 | |
---|
| 1293 | |
---|
| 1294 | |
---|
| 1295 | |
---|
| 1296 | |
---|
| 1297 | |
---|
| 1298 | |
---|
| 1299 | |
---|
| 1300 | |
---|
| 1301 | |
---|
[2983] | 1302 | |
---|
| 1303 | # Detect the canonical host and target build environment. |
---|
[1956] | 1304 | ac_aux_dir= |
---|
| 1305 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1306 | if test -f $ac_dir/install-sh; then |
---|
| 1307 | ac_aux_dir=$ac_dir |
---|
| 1308 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1309 | break |
---|
| 1310 | elif test -f $ac_dir/install.sh; then |
---|
| 1311 | ac_aux_dir=$ac_dir |
---|
| 1312 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1313 | break |
---|
| 1314 | elif test -f $ac_dir/shtool; then |
---|
| 1315 | ac_aux_dir=$ac_dir |
---|
| 1316 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1317 | break |
---|
| 1318 | fi |
---|
| 1319 | done |
---|
| 1320 | if test -z "$ac_aux_dir"; then |
---|
| 1321 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1322 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1323 | { (exit 1); exit 1; }; } |
---|
| 1324 | fi |
---|
| 1325 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1326 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1327 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1328 | |
---|
[2983] | 1329 | # Make sure we can run config.sub. |
---|
| 1330 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1331 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1332 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1333 | { (exit 1); exit 1; }; } |
---|
| 1334 | |
---|
| 1335 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1336 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1337 | if test "${ac_cv_build+set}" = set; then |
---|
| 1338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1339 | else |
---|
| 1340 | ac_cv_build_alias=$build_alias |
---|
| 1341 | test -z "$ac_cv_build_alias" && |
---|
| 1342 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1343 | test -z "$ac_cv_build_alias" && |
---|
| 1344 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1345 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1346 | { (exit 1); exit 1; }; } |
---|
| 1347 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1348 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1349 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1350 | { (exit 1); exit 1; }; } |
---|
| 1351 | |
---|
| 1352 | fi |
---|
| 1353 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1354 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1355 | build=$ac_cv_build |
---|
| 1356 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1357 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1358 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1359 | |
---|
| 1360 | |
---|
| 1361 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1362 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1363 | if test "${ac_cv_host+set}" = set; then |
---|
| 1364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1365 | else |
---|
| 1366 | ac_cv_host_alias=$host_alias |
---|
| 1367 | test -z "$ac_cv_host_alias" && |
---|
| 1368 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1369 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1370 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1371 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1372 | { (exit 1); exit 1; }; } |
---|
| 1373 | |
---|
| 1374 | fi |
---|
| 1375 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1376 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1377 | host=$ac_cv_host |
---|
| 1378 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1379 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1380 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1381 | |
---|
| 1382 | |
---|
| 1383 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1384 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1385 | if test "${ac_cv_target+set}" = set; then |
---|
| 1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1387 | else |
---|
| 1388 | ac_cv_target_alias=$target_alias |
---|
| 1389 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1390 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1391 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1393 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1394 | { (exit 1); exit 1; }; } |
---|
| 1395 | |
---|
| 1396 | fi |
---|
| 1397 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1398 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1399 | target=$ac_cv_target |
---|
| 1400 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1401 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1402 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1403 | |
---|
| 1404 | |
---|
| 1405 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1406 | # will get canonicalized. |
---|
| 1407 | test -n "$target_alias" && |
---|
| 1408 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1409 | NONENONEs,x,x, && |
---|
| 1410 | program_prefix=${target_alias}- |
---|
| 1411 | |
---|
| 1412 | |
---|
[2984] | 1413 | am__api_version="1.7" |
---|
[1956] | 1414 | # Find a good install program. We prefer a C program (faster), |
---|
| 1415 | # so one script is as good as another. But avoid the broken or |
---|
| 1416 | # incompatible versions: |
---|
| 1417 | # SysV /etc/install, /usr/sbin/install |
---|
| 1418 | # SunOS /usr/etc/install |
---|
| 1419 | # IRIX /sbin/install |
---|
| 1420 | # AIX /bin/install |
---|
| 1421 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1422 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1423 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1424 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1425 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1426 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1427 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1428 | if test -z "$INSTALL"; then |
---|
| 1429 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1431 | else |
---|
| 1432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1433 | for as_dir in $PATH |
---|
| 1434 | do |
---|
| 1435 | IFS=$as_save_IFS |
---|
| 1436 | test -z "$as_dir" && as_dir=. |
---|
| 1437 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1438 | case $as_dir/ in |
---|
| 1439 | ./ | .// | /cC/* | \ |
---|
| 1440 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1441 | /usr/ucb/* ) ;; |
---|
| 1442 | *) |
---|
| 1443 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1444 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1445 | # by default. |
---|
| 1446 | for ac_prog in ginstall scoinst install; do |
---|
| 1447 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
[2984] | 1448 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1449 | if test $ac_prog = install && |
---|
| 1450 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1451 | # AIX install. It has an incompatible calling convention. |
---|
| 1452 | : |
---|
| 1453 | elif test $ac_prog = install && |
---|
| 1454 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1455 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1456 | : |
---|
| 1457 | else |
---|
| 1458 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1459 | break 3 |
---|
| 1460 | fi |
---|
| 1461 | fi |
---|
[1956] | 1462 | done |
---|
| 1463 | done |
---|
| 1464 | ;; |
---|
| 1465 | esac |
---|
| 1466 | done |
---|
| 1467 | |
---|
| 1468 | |
---|
[1853] | 1469 | fi |
---|
[1956] | 1470 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1471 | INSTALL=$ac_cv_path_install |
---|
| 1472 | else |
---|
| 1473 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1474 | # path for INSTALL within a source directory, because that will |
---|
| 1475 | # break other packages using the cache if that directory is |
---|
| 1476 | # removed, or if the path is relative. |
---|
| 1477 | INSTALL=$ac_install_sh |
---|
| 1478 | fi |
---|
| 1479 | fi |
---|
| 1480 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1481 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1482 | |
---|
| 1483 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1484 | # It thinks the first close brace ends the variable substitution. |
---|
| 1485 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1486 | |
---|
| 1487 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1488 | |
---|
| 1489 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1490 | |
---|
| 1491 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1492 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1493 | # Just in case |
---|
| 1494 | sleep 1 |
---|
| 1495 | echo timestamp > conftest.file |
---|
| 1496 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1497 | # arguments. Must try -L first in case configure is actually a |
---|
| 1498 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1499 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1500 | # directory). |
---|
| 1501 | if ( |
---|
| 1502 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1503 | if test "$*" = "X"; then |
---|
| 1504 | # -L didn't work. |
---|
| 1505 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1506 | fi |
---|
| 1507 | rm -f conftest.file |
---|
| 1508 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1509 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1510 | |
---|
| 1511 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1512 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1513 | # broken ls alias from the environment. This has actually |
---|
| 1514 | # happened. Such a system could not be considered "sane". |
---|
| 1515 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1516 | alias in your environment" >&5 |
---|
| 1517 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1518 | alias in your environment" >&2;} |
---|
| 1519 | { (exit 1); exit 1; }; } |
---|
| 1520 | fi |
---|
| 1521 | |
---|
| 1522 | test "$2" = conftest.file |
---|
| 1523 | ) |
---|
| 1524 | then |
---|
| 1525 | # Ok. |
---|
| 1526 | : |
---|
[1853] | 1527 | else |
---|
[1956] | 1528 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1529 | Check your system clock" >&5 |
---|
| 1530 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1531 | Check your system clock" >&2;} |
---|
| 1532 | { (exit 1); exit 1; }; } |
---|
[1853] | 1533 | fi |
---|
[1956] | 1534 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1535 | echo "${ECHO_T}yes" >&6 |
---|
| 1536 | test "$program_prefix" != NONE && |
---|
| 1537 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1538 | # Use a double $ so make ignores it. |
---|
| 1539 | test "$program_suffix" != NONE && |
---|
| 1540 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1541 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1542 | # By default was `s,x,x', remove it if useless. |
---|
| 1543 | cat <<\_ACEOF >conftest.sed |
---|
| 1544 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1545 | _ACEOF |
---|
| 1546 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1547 | rm conftest.sed |
---|
[1853] | 1548 | |
---|
[2984] | 1549 | |
---|
[1956] | 1550 | # expand $ac_aux_dir to an absolute path |
---|
| 1551 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1552 | |
---|
| 1553 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1554 | # Use eval to expand $SHELL |
---|
| 1555 | if eval "$MISSING --run true"; then |
---|
| 1556 | am_missing_run="$MISSING --run " |
---|
| 1557 | else |
---|
| 1558 | am_missing_run= |
---|
| 1559 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1560 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1561 | fi |
---|
| 1562 | |
---|
| 1563 | for ac_prog in gawk mawk nawk awk |
---|
| 1564 | do |
---|
| 1565 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1566 | set dummy $ac_prog; ac_word=$2 |
---|
| 1567 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1569 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1571 | else |
---|
| 1572 | if test -n "$AWK"; then |
---|
| 1573 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1574 | else |
---|
| 1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1576 | for as_dir in $PATH |
---|
| 1577 | do |
---|
| 1578 | IFS=$as_save_IFS |
---|
| 1579 | test -z "$as_dir" && as_dir=. |
---|
| 1580 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1582 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1584 | break 2 |
---|
| 1585 | fi |
---|
| 1586 | done |
---|
| 1587 | done |
---|
| 1588 | |
---|
| 1589 | fi |
---|
| 1590 | fi |
---|
| 1591 | AWK=$ac_cv_prog_AWK |
---|
| 1592 | if test -n "$AWK"; then |
---|
| 1593 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1594 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1595 | else |
---|
| 1596 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1597 | echo "${ECHO_T}no" >&6 |
---|
| 1598 | fi |
---|
| 1599 | |
---|
| 1600 | test -n "$AWK" && break |
---|
| 1601 | done |
---|
| 1602 | |
---|
| 1603 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1604 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
[2984] | 1605 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
[1956] | 1606 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1608 | else |
---|
| 1609 | cat >conftest.make <<\_ACEOF |
---|
| 1610 | all: |
---|
| 1611 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1612 | _ACEOF |
---|
| 1613 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1614 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1615 | if test -n "$ac_maketemp"; then |
---|
| 1616 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1617 | else |
---|
| 1618 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1619 | fi |
---|
| 1620 | rm -f conftest.make |
---|
| 1621 | fi |
---|
| 1622 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1623 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1624 | echo "${ECHO_T}yes" >&6 |
---|
| 1625 | SET_MAKE= |
---|
| 1626 | else |
---|
| 1627 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1628 | echo "${ECHO_T}no" >&6 |
---|
| 1629 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1630 | fi |
---|
| 1631 | |
---|
| 1632 | rm -rf .tst 2>/dev/null |
---|
| 1633 | mkdir .tst 2>/dev/null |
---|
| 1634 | if test -d .tst; then |
---|
| 1635 | am__leading_dot=. |
---|
| 1636 | else |
---|
| 1637 | am__leading_dot=_ |
---|
| 1638 | fi |
---|
| 1639 | rmdir .tst 2>/dev/null |
---|
| 1640 | |
---|
[2984] | 1641 | # test to see if srcdir already configured |
---|
[1956] | 1642 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1643 | test -f $srcdir/config.status; then |
---|
| 1644 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1645 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1646 | { (exit 1); exit 1; }; } |
---|
| 1647 | fi |
---|
| 1648 | |
---|
| 1649 | # test whether we have cygpath |
---|
| 1650 | if test -z "$CYGPATH_W"; then |
---|
| 1651 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1652 | CYGPATH_W='cygpath -w' |
---|
| 1653 | else |
---|
| 1654 | CYGPATH_W=echo |
---|
| 1655 | fi |
---|
| 1656 | fi |
---|
| 1657 | |
---|
| 1658 | |
---|
| 1659 | # Define the identity of the package. |
---|
| 1660 | PACKAGE='orxonox' |
---|
| 1661 | VERSION='0.1-pre-alpha' |
---|
| 1662 | |
---|
| 1663 | |
---|
| 1664 | cat >>confdefs.h <<_ACEOF |
---|
| 1665 | #define PACKAGE "$PACKAGE" |
---|
| 1666 | _ACEOF |
---|
| 1667 | |
---|
| 1668 | |
---|
| 1669 | cat >>confdefs.h <<_ACEOF |
---|
| 1670 | #define VERSION "$VERSION" |
---|
| 1671 | _ACEOF |
---|
| 1672 | |
---|
| 1673 | # Some tools Automake needs. |
---|
| 1674 | |
---|
| 1675 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1676 | |
---|
| 1677 | |
---|
| 1678 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1679 | |
---|
| 1680 | |
---|
| 1681 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1682 | |
---|
| 1683 | |
---|
| 1684 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1685 | |
---|
| 1686 | |
---|
| 1687 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1688 | |
---|
| 1689 | |
---|
| 1690 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1691 | |
---|
| 1692 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1693 | |
---|
| 1694 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1695 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1696 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1697 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1698 | if test "$cross_compiling" != no; then |
---|
| 1699 | if test -n "$ac_tool_prefix"; then |
---|
| 1700 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1701 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1704 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1706 | else |
---|
| 1707 | if test -n "$STRIP"; then |
---|
| 1708 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1709 | else |
---|
| 1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1711 | for as_dir in $PATH |
---|
| 1712 | do |
---|
| 1713 | IFS=$as_save_IFS |
---|
| 1714 | test -z "$as_dir" && as_dir=. |
---|
| 1715 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1717 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1719 | break 2 |
---|
| 1720 | fi |
---|
| 1721 | done |
---|
| 1722 | done |
---|
| 1723 | |
---|
| 1724 | fi |
---|
| 1725 | fi |
---|
| 1726 | STRIP=$ac_cv_prog_STRIP |
---|
| 1727 | if test -n "$STRIP"; then |
---|
| 1728 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1729 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1730 | else |
---|
| 1731 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1732 | echo "${ECHO_T}no" >&6 |
---|
| 1733 | fi |
---|
| 1734 | |
---|
| 1735 | fi |
---|
| 1736 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1737 | ac_ct_STRIP=$STRIP |
---|
| 1738 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1739 | set dummy strip; ac_word=$2 |
---|
| 1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1742 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1744 | else |
---|
| 1745 | if test -n "$ac_ct_STRIP"; then |
---|
| 1746 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1747 | else |
---|
| 1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1749 | for as_dir in $PATH |
---|
| 1750 | do |
---|
| 1751 | IFS=$as_save_IFS |
---|
| 1752 | test -z "$as_dir" && as_dir=. |
---|
| 1753 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1755 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1757 | break 2 |
---|
| 1758 | fi |
---|
| 1759 | done |
---|
| 1760 | done |
---|
| 1761 | |
---|
| 1762 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1763 | fi |
---|
| 1764 | fi |
---|
| 1765 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1766 | if test -n "$ac_ct_STRIP"; then |
---|
| 1767 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1768 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1769 | else |
---|
| 1770 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1771 | echo "${ECHO_T}no" >&6 |
---|
| 1772 | fi |
---|
| 1773 | |
---|
| 1774 | STRIP=$ac_ct_STRIP |
---|
| 1775 | else |
---|
| 1776 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1777 | fi |
---|
| 1778 | |
---|
| 1779 | fi |
---|
| 1780 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1781 | |
---|
| 1782 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1783 | # some platforms. |
---|
| 1784 | |
---|
| 1785 | |
---|
| 1786 | |
---|
| 1787 | |
---|
[2627] | 1788 | |
---|
[1959] | 1789 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1790 | |
---|
| 1791 | |
---|
[2018] | 1792 | |
---|
[1956] | 1793 | # Checks for programs. |
---|
| 1794 | ac_ext=cc |
---|
| 1795 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1796 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1797 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1798 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1799 | if test -n "$ac_tool_prefix"; then |
---|
| 1800 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1801 | do |
---|
| 1802 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1803 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1804 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1806 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1808 | else |
---|
| 1809 | if test -n "$CXX"; then |
---|
| 1810 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1811 | else |
---|
| 1812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1813 | for as_dir in $PATH |
---|
| 1814 | do |
---|
| 1815 | IFS=$as_save_IFS |
---|
| 1816 | test -z "$as_dir" && as_dir=. |
---|
| 1817 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1818 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1819 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1821 | break 2 |
---|
| 1822 | fi |
---|
| 1823 | done |
---|
| 1824 | done |
---|
| 1825 | |
---|
| 1826 | fi |
---|
| 1827 | fi |
---|
| 1828 | CXX=$ac_cv_prog_CXX |
---|
| 1829 | if test -n "$CXX"; then |
---|
| 1830 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1831 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1832 | else |
---|
| 1833 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1834 | echo "${ECHO_T}no" >&6 |
---|
| 1835 | fi |
---|
| 1836 | |
---|
| 1837 | test -n "$CXX" && break |
---|
| 1838 | done |
---|
| 1839 | fi |
---|
| 1840 | if test -z "$CXX"; then |
---|
| 1841 | ac_ct_CXX=$CXX |
---|
| 1842 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1843 | do |
---|
| 1844 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1845 | set dummy $ac_prog; ac_word=$2 |
---|
| 1846 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1848 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1850 | else |
---|
| 1851 | if test -n "$ac_ct_CXX"; then |
---|
| 1852 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1853 | else |
---|
| 1854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1855 | for as_dir in $PATH |
---|
| 1856 | do |
---|
| 1857 | IFS=$as_save_IFS |
---|
| 1858 | test -z "$as_dir" && as_dir=. |
---|
| 1859 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1861 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1863 | break 2 |
---|
| 1864 | fi |
---|
| 1865 | done |
---|
| 1866 | done |
---|
| 1867 | |
---|
| 1868 | fi |
---|
| 1869 | fi |
---|
| 1870 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1871 | if test -n "$ac_ct_CXX"; then |
---|
| 1872 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1873 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1874 | else |
---|
| 1875 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1876 | echo "${ECHO_T}no" >&6 |
---|
| 1877 | fi |
---|
| 1878 | |
---|
| 1879 | test -n "$ac_ct_CXX" && break |
---|
| 1880 | done |
---|
| 1881 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1882 | |
---|
| 1883 | CXX=$ac_ct_CXX |
---|
| 1884 | fi |
---|
| 1885 | |
---|
| 1886 | |
---|
| 1887 | # Provide some information about the compiler. |
---|
| 1888 | echo "$as_me:$LINENO:" \ |
---|
| 1889 | "checking for C++ compiler version" >&5 |
---|
| 1890 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1891 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1892 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1893 | ac_status=$? |
---|
| 1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1895 | (exit $ac_status); } |
---|
| 1896 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1897 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1898 | ac_status=$? |
---|
| 1899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1900 | (exit $ac_status); } |
---|
| 1901 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1902 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1903 | ac_status=$? |
---|
| 1904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1905 | (exit $ac_status); } |
---|
| 1906 | |
---|
| 1907 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 1908 | #line $LINENO "configure" |
---|
[1956] | 1909 | /* confdefs.h. */ |
---|
| 1910 | _ACEOF |
---|
| 1911 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1912 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1913 | /* end confdefs.h. */ |
---|
| 1914 | |
---|
| 1915 | int |
---|
| 1916 | main () |
---|
| 1917 | { |
---|
| 1918 | |
---|
| 1919 | ; |
---|
| 1920 | return 0; |
---|
| 1921 | } |
---|
| 1922 | _ACEOF |
---|
| 1923 | ac_clean_files_save=$ac_clean_files |
---|
| 1924 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1925 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1926 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1927 | # of exeext. |
---|
[2984] | 1928 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
---|
| 1929 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
---|
[1956] | 1930 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1931 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1932 | (eval $ac_link_default) 2>&5 |
---|
| 1933 | ac_status=$? |
---|
| 1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1935 | (exit $ac_status); }; then |
---|
| 1936 | # Find the output, starting from the most likely. This scheme is |
---|
| 1937 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1938 | # resort. |
---|
| 1939 | |
---|
| 1940 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1941 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1942 | ac_cv_exeext= |
---|
| 1943 | # b.out is created by i960 compilers. |
---|
| 1944 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1945 | do |
---|
| 1946 | test -f "$ac_file" || continue |
---|
| 1947 | case $ac_file in |
---|
| 1948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
[2984] | 1949 | ;; |
---|
[1956] | 1950 | conftest.$ac_ext ) |
---|
[2984] | 1951 | # This is the source file. |
---|
| 1952 | ;; |
---|
[1956] | 1953 | [ab].out ) |
---|
[2984] | 1954 | # We found the default executable, but exeext='' is most |
---|
| 1955 | # certainly right. |
---|
| 1956 | break;; |
---|
[1956] | 1957 | *.* ) |
---|
[2984] | 1958 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1959 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1960 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1961 | # maintain Libtool? --akim. |
---|
| 1962 | export ac_cv_exeext |
---|
| 1963 | break;; |
---|
[1956] | 1964 | * ) |
---|
[2984] | 1965 | break;; |
---|
[1956] | 1966 | esac |
---|
| 1967 | done |
---|
| 1968 | else |
---|
| 1969 | echo "$as_me: failed program was:" >&5 |
---|
| 1970 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1971 | |
---|
| 1972 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1973 | See \`config.log' for more details." >&5 |
---|
| 1974 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1975 | See \`config.log' for more details." >&2;} |
---|
| 1976 | { (exit 77); exit 77; }; } |
---|
| 1977 | fi |
---|
| 1978 | |
---|
| 1979 | ac_exeext=$ac_cv_exeext |
---|
| 1980 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1981 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1982 | |
---|
| 1983 | # Check the compiler produces executables we can run. If not, either |
---|
| 1984 | # the compiler is broken, or we cross compile. |
---|
| 1985 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1986 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1987 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1988 | # If not cross compiling, check that we can run a simple program. |
---|
| 1989 | if test "$cross_compiling" != yes; then |
---|
| 1990 | if { ac_try='./$ac_file' |
---|
| 1991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1992 | (eval $ac_try) 2>&5 |
---|
| 1993 | ac_status=$? |
---|
| 1994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1995 | (exit $ac_status); }; }; then |
---|
| 1996 | cross_compiling=no |
---|
| 1997 | else |
---|
| 1998 | if test "$cross_compiling" = maybe; then |
---|
| 1999 | cross_compiling=yes |
---|
| 2000 | else |
---|
| 2001 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2002 | If you meant to cross compile, use \`--host'. |
---|
| 2003 | See \`config.log' for more details." >&5 |
---|
| 2004 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2005 | If you meant to cross compile, use \`--host'. |
---|
| 2006 | See \`config.log' for more details." >&2;} |
---|
| 2007 | { (exit 1); exit 1; }; } |
---|
| 2008 | fi |
---|
| 2009 | fi |
---|
| 2010 | fi |
---|
| 2011 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2012 | echo "${ECHO_T}yes" >&6 |
---|
| 2013 | |
---|
| 2014 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2015 | ac_clean_files=$ac_clean_files_save |
---|
| 2016 | # Check the compiler produces executables we can run. If not, either |
---|
| 2017 | # the compiler is broken, or we cross compile. |
---|
| 2018 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2019 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2020 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2021 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2022 | |
---|
| 2023 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2024 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2026 | (eval $ac_link) 2>&5 |
---|
| 2027 | ac_status=$? |
---|
| 2028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2029 | (exit $ac_status); }; then |
---|
| 2030 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2031 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2032 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2033 | # `rm'. |
---|
| 2034 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2035 | test -f "$ac_file" || continue |
---|
| 2036 | case $ac_file in |
---|
| 2037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2038 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
[2984] | 2039 | export ac_cv_exeext |
---|
| 2040 | break;; |
---|
[1956] | 2041 | * ) break;; |
---|
| 2042 | esac |
---|
| 2043 | done |
---|
| 2044 | else |
---|
| 2045 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2046 | See \`config.log' for more details." >&5 |
---|
| 2047 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2048 | See \`config.log' for more details." >&2;} |
---|
| 2049 | { (exit 1); exit 1; }; } |
---|
| 2050 | fi |
---|
| 2051 | |
---|
| 2052 | rm -f conftest$ac_cv_exeext |
---|
| 2053 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2054 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2055 | |
---|
| 2056 | rm -f conftest.$ac_ext |
---|
| 2057 | EXEEXT=$ac_cv_exeext |
---|
| 2058 | ac_exeext=$EXEEXT |
---|
| 2059 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2060 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2061 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2063 | else |
---|
| 2064 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2065 | #line $LINENO "configure" |
---|
[1956] | 2066 | /* confdefs.h. */ |
---|
| 2067 | _ACEOF |
---|
| 2068 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2070 | /* end confdefs.h. */ |
---|
| 2071 | |
---|
| 2072 | int |
---|
| 2073 | main () |
---|
| 2074 | { |
---|
| 2075 | |
---|
| 2076 | ; |
---|
| 2077 | return 0; |
---|
| 2078 | } |
---|
| 2079 | _ACEOF |
---|
| 2080 | rm -f conftest.o conftest.obj |
---|
| 2081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2082 | (eval $ac_compile) 2>&5 |
---|
| 2083 | ac_status=$? |
---|
| 2084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2085 | (exit $ac_status); }; then |
---|
| 2086 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2087 | case $ac_file in |
---|
| 2088 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2089 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2090 | break;; |
---|
| 2091 | esac |
---|
| 2092 | done |
---|
| 2093 | else |
---|
| 2094 | echo "$as_me: failed program was:" >&5 |
---|
| 2095 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2096 | |
---|
| 2097 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2098 | See \`config.log' for more details." >&5 |
---|
| 2099 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2100 | See \`config.log' for more details." >&2;} |
---|
| 2101 | { (exit 1); exit 1; }; } |
---|
| 2102 | fi |
---|
| 2103 | |
---|
| 2104 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2105 | fi |
---|
| 2106 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2107 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2108 | OBJEXT=$ac_cv_objext |
---|
| 2109 | ac_objext=$OBJEXT |
---|
| 2110 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2111 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2112 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2114 | else |
---|
| 2115 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2116 | #line $LINENO "configure" |
---|
[1956] | 2117 | /* confdefs.h. */ |
---|
| 2118 | _ACEOF |
---|
| 2119 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2120 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2121 | /* end confdefs.h. */ |
---|
| 2122 | |
---|
| 2123 | int |
---|
| 2124 | main () |
---|
| 2125 | { |
---|
| 2126 | #ifndef __GNUC__ |
---|
| 2127 | choke me |
---|
| 2128 | #endif |
---|
| 2129 | |
---|
| 2130 | ; |
---|
| 2131 | return 0; |
---|
| 2132 | } |
---|
| 2133 | _ACEOF |
---|
| 2134 | rm -f conftest.$ac_objext |
---|
| 2135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2136 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2137 | ac_status=$? |
---|
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2139 | (exit $ac_status); } && |
---|
[2984] | 2140 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 2141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2142 | (eval $ac_try) 2>&5 |
---|
| 2143 | ac_status=$? |
---|
| 2144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2145 | (exit $ac_status); }; }; then |
---|
| 2146 | ac_compiler_gnu=yes |
---|
| 2147 | else |
---|
| 2148 | echo "$as_me: failed program was:" >&5 |
---|
| 2149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2150 | |
---|
| 2151 | ac_compiler_gnu=no |
---|
| 2152 | fi |
---|
[2984] | 2153 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 2154 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2155 | |
---|
| 2156 | fi |
---|
| 2157 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2158 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2159 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2160 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2161 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2162 | CXXFLAGS="-g" |
---|
| 2163 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2164 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2165 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2167 | else |
---|
| 2168 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2169 | #line $LINENO "configure" |
---|
[1956] | 2170 | /* confdefs.h. */ |
---|
| 2171 | _ACEOF |
---|
| 2172 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2173 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2174 | /* end confdefs.h. */ |
---|
| 2175 | |
---|
| 2176 | int |
---|
| 2177 | main () |
---|
| 2178 | { |
---|
| 2179 | |
---|
| 2180 | ; |
---|
| 2181 | return 0; |
---|
| 2182 | } |
---|
| 2183 | _ACEOF |
---|
| 2184 | rm -f conftest.$ac_objext |
---|
| 2185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2186 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2187 | ac_status=$? |
---|
| 2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2189 | (exit $ac_status); } && |
---|
[2984] | 2190 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 2191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2192 | (eval $ac_try) 2>&5 |
---|
| 2193 | ac_status=$? |
---|
| 2194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2195 | (exit $ac_status); }; }; then |
---|
| 2196 | ac_cv_prog_cxx_g=yes |
---|
| 2197 | else |
---|
| 2198 | echo "$as_me: failed program was:" >&5 |
---|
| 2199 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2200 | |
---|
| 2201 | ac_cv_prog_cxx_g=no |
---|
| 2202 | fi |
---|
[2984] | 2203 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 2204 | fi |
---|
| 2205 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2206 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2207 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2208 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2209 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2210 | if test "$GXX" = yes; then |
---|
| 2211 | CXXFLAGS="-g -O2" |
---|
| 2212 | else |
---|
| 2213 | CXXFLAGS="-g" |
---|
| 2214 | fi |
---|
| 2215 | else |
---|
| 2216 | if test "$GXX" = yes; then |
---|
| 2217 | CXXFLAGS="-O2" |
---|
| 2218 | else |
---|
| 2219 | CXXFLAGS= |
---|
| 2220 | fi |
---|
| 2221 | fi |
---|
| 2222 | for ac_declaration in \ |
---|
[2984] | 2223 | ''\ |
---|
| 2224 | '#include <stdlib.h>' \ |
---|
[1956] | 2225 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2226 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2227 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2228 | 'extern "C" void exit (int);' \ |
---|
| 2229 | 'void exit (int);' |
---|
| 2230 | do |
---|
| 2231 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2232 | #line $LINENO "configure" |
---|
[1956] | 2233 | /* confdefs.h. */ |
---|
| 2234 | _ACEOF |
---|
| 2235 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2237 | /* end confdefs.h. */ |
---|
[2984] | 2238 | #include <stdlib.h> |
---|
[1956] | 2239 | $ac_declaration |
---|
| 2240 | int |
---|
| 2241 | main () |
---|
| 2242 | { |
---|
| 2243 | exit (42); |
---|
| 2244 | ; |
---|
| 2245 | return 0; |
---|
| 2246 | } |
---|
| 2247 | _ACEOF |
---|
| 2248 | rm -f conftest.$ac_objext |
---|
| 2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2250 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2251 | ac_status=$? |
---|
| 2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2253 | (exit $ac_status); } && |
---|
[2984] | 2254 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 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); }; }; then |
---|
| 2260 | : |
---|
| 2261 | else |
---|
| 2262 | echo "$as_me: failed program was:" >&5 |
---|
| 2263 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2264 | |
---|
| 2265 | continue |
---|
| 2266 | fi |
---|
[2984] | 2267 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 2268 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2269 | #line $LINENO "configure" |
---|
[1956] | 2270 | /* confdefs.h. */ |
---|
| 2271 | _ACEOF |
---|
| 2272 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2273 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2274 | /* end confdefs.h. */ |
---|
| 2275 | $ac_declaration |
---|
| 2276 | int |
---|
| 2277 | main () |
---|
| 2278 | { |
---|
| 2279 | exit (42); |
---|
| 2280 | ; |
---|
| 2281 | return 0; |
---|
| 2282 | } |
---|
| 2283 | _ACEOF |
---|
| 2284 | rm -f conftest.$ac_objext |
---|
| 2285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2286 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2287 | ac_status=$? |
---|
| 2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2289 | (exit $ac_status); } && |
---|
[2984] | 2290 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 2291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2292 | (eval $ac_try) 2>&5 |
---|
| 2293 | ac_status=$? |
---|
| 2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2295 | (exit $ac_status); }; }; then |
---|
| 2296 | break |
---|
| 2297 | else |
---|
| 2298 | echo "$as_me: failed program was:" >&5 |
---|
| 2299 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2300 | |
---|
| 2301 | fi |
---|
[2984] | 2302 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 2303 | done |
---|
| 2304 | rm -f conftest* |
---|
| 2305 | if test -n "$ac_declaration"; then |
---|
| 2306 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2307 | echo $ac_declaration >>confdefs.h |
---|
| 2308 | echo '#endif' >>confdefs.h |
---|
| 2309 | fi |
---|
| 2310 | |
---|
| 2311 | ac_ext=c |
---|
| 2312 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2316 | DEPDIR="${am__leading_dot}deps" |
---|
| 2317 | |
---|
| 2318 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2319 | |
---|
| 2320 | |
---|
| 2321 | am_make=${MAKE-make} |
---|
| 2322 | cat > confinc << 'END' |
---|
| 2323 | am__doit: |
---|
| 2324 | @echo done |
---|
| 2325 | .PHONY: am__doit |
---|
| 2326 | END |
---|
| 2327 | # If we don't find an include directive, just comment out the code. |
---|
| 2328 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2329 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2330 | am__include="#" |
---|
| 2331 | am__quote= |
---|
| 2332 | _am_result=none |
---|
| 2333 | # First try GNU make style include. |
---|
| 2334 | echo "include confinc" > confmf |
---|
| 2335 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2336 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2337 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2338 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2339 | # case it prints its new name instead of `make'. |
---|
| 2340 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2341 | am__include=include |
---|
| 2342 | am__quote= |
---|
| 2343 | _am_result=GNU |
---|
| 2344 | fi |
---|
| 2345 | # Now try BSD make style include. |
---|
| 2346 | if test "$am__include" = "#"; then |
---|
| 2347 | echo '.include "confinc"' > confmf |
---|
| 2348 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2349 | am__include=.include |
---|
| 2350 | am__quote="\"" |
---|
| 2351 | _am_result=BSD |
---|
| 2352 | fi |
---|
| 2353 | fi |
---|
| 2354 | |
---|
| 2355 | |
---|
| 2356 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2357 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2358 | rm -f confinc confmf |
---|
| 2359 | |
---|
| 2360 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2361 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2362 | enableval="$enable_dependency_tracking" |
---|
| 2363 | |
---|
| 2364 | fi; |
---|
| 2365 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2366 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2367 | AMDEPBACKSLASH='\' |
---|
| 2368 | fi |
---|
| 2369 | |
---|
| 2370 | |
---|
| 2371 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2372 | AMDEP_TRUE= |
---|
| 2373 | AMDEP_FALSE='#' |
---|
| 2374 | else |
---|
| 2375 | AMDEP_TRUE='#' |
---|
| 2376 | AMDEP_FALSE= |
---|
| 2377 | fi |
---|
| 2378 | |
---|
| 2379 | |
---|
| 2380 | |
---|
| 2381 | |
---|
| 2382 | depcc="$CXX" am_compiler_list= |
---|
| 2383 | |
---|
| 2384 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2385 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2386 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2388 | else |
---|
| 2389 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2390 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2391 | # making bogus files that we don't know about and never remove. For |
---|
| 2392 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2393 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2394 | # in D'. |
---|
| 2395 | mkdir conftest.dir |
---|
| 2396 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2397 | # using a relative directory. |
---|
| 2398 | cp "$am_depcomp" conftest.dir |
---|
| 2399 | cd conftest.dir |
---|
| 2400 | # We will build objects and dependencies in a subdirectory because |
---|
| 2401 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2402 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2403 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2404 | # the current directory while Tru64 will put them in the object |
---|
| 2405 | # directory. |
---|
| 2406 | mkdir sub |
---|
| 2407 | |
---|
| 2408 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2409 | if test "$am_compiler_list" = ""; then |
---|
| 2410 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2411 | fi |
---|
| 2412 | for depmode in $am_compiler_list; do |
---|
| 2413 | # Setup a source with many dependencies, because some compilers |
---|
| 2414 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2415 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2416 | # |
---|
| 2417 | # We need to recreate these files for each test, as the compiler may |
---|
| 2418 | # overwrite some of them when testing with obscure command lines. |
---|
| 2419 | # This happens at least with the AIX C compiler. |
---|
| 2420 | : > sub/conftest.c |
---|
| 2421 | for i in 1 2 3 4 5 6; do |
---|
| 2422 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2984] | 2423 | : > sub/conftst$i.h |
---|
[1956] | 2424 | done |
---|
| 2425 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2426 | |
---|
| 2427 | case $depmode in |
---|
| 2428 | nosideeffect) |
---|
| 2429 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2430 | # only be used when explicitly requested |
---|
| 2431 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2432 | continue |
---|
| 2433 | else |
---|
| 2434 | break |
---|
| 2435 | fi |
---|
| 2436 | ;; |
---|
| 2437 | none) break ;; |
---|
| 2438 | esac |
---|
| 2439 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2440 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2441 | # handle `-M -o', and we need to detect this. |
---|
| 2442 | if depmode=$depmode \ |
---|
| 2443 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2444 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2445 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2446 | >/dev/null 2>conftest.err && |
---|
| 2447 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2448 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2449 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2450 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2984] | 2451 | # (even with -Werror). So we grep stderr for any message |
---|
| 2452 | # that says an option was ignored. |
---|
| 2453 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
[1956] | 2454 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2455 | break |
---|
| 2456 | fi |
---|
| 2457 | fi |
---|
| 2458 | done |
---|
| 2459 | |
---|
| 2460 | cd .. |
---|
| 2461 | rm -rf conftest.dir |
---|
| 2462 | else |
---|
| 2463 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2464 | fi |
---|
| 2465 | |
---|
| 2466 | fi |
---|
| 2467 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2468 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2469 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2470 | |
---|
| 2471 | |
---|
| 2472 | |
---|
| 2473 | if |
---|
| 2474 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2475 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2476 | am__fastdepCXX_TRUE= |
---|
| 2477 | am__fastdepCXX_FALSE='#' |
---|
| 2478 | else |
---|
| 2479 | am__fastdepCXX_TRUE='#' |
---|
| 2480 | am__fastdepCXX_FALSE= |
---|
| 2481 | fi |
---|
| 2482 | |
---|
| 2483 | |
---|
| 2484 | ac_ext=c |
---|
| 2485 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2489 | if test -n "$ac_tool_prefix"; then |
---|
| 2490 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2491 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2494 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2496 | else |
---|
| 2497 | if test -n "$CC"; then |
---|
| 2498 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2499 | else |
---|
| 2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2501 | for as_dir in $PATH |
---|
| 2502 | do |
---|
| 2503 | IFS=$as_save_IFS |
---|
| 2504 | test -z "$as_dir" && as_dir=. |
---|
| 2505 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2507 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2509 | break 2 |
---|
| 2510 | fi |
---|
| 2511 | done |
---|
| 2512 | done |
---|
| 2513 | |
---|
| 2514 | fi |
---|
| 2515 | fi |
---|
| 2516 | CC=$ac_cv_prog_CC |
---|
| 2517 | if test -n "$CC"; then |
---|
| 2518 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2519 | echo "${ECHO_T}$CC" >&6 |
---|
| 2520 | else |
---|
| 2521 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2522 | echo "${ECHO_T}no" >&6 |
---|
| 2523 | fi |
---|
| 2524 | |
---|
| 2525 | fi |
---|
| 2526 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2527 | ac_ct_CC=$CC |
---|
| 2528 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2529 | set dummy gcc; ac_word=$2 |
---|
| 2530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2532 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2534 | else |
---|
| 2535 | if test -n "$ac_ct_CC"; then |
---|
| 2536 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2537 | else |
---|
| 2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2539 | for as_dir in $PATH |
---|
| 2540 | do |
---|
| 2541 | IFS=$as_save_IFS |
---|
| 2542 | test -z "$as_dir" && as_dir=. |
---|
| 2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2545 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2547 | break 2 |
---|
| 2548 | fi |
---|
| 2549 | done |
---|
| 2550 | done |
---|
| 2551 | |
---|
| 2552 | fi |
---|
| 2553 | fi |
---|
| 2554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2555 | if test -n "$ac_ct_CC"; then |
---|
| 2556 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2557 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2558 | else |
---|
| 2559 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2560 | echo "${ECHO_T}no" >&6 |
---|
| 2561 | fi |
---|
| 2562 | |
---|
| 2563 | CC=$ac_ct_CC |
---|
| 2564 | else |
---|
| 2565 | CC="$ac_cv_prog_CC" |
---|
| 2566 | fi |
---|
| 2567 | |
---|
| 2568 | if test -z "$CC"; then |
---|
| 2569 | if test -n "$ac_tool_prefix"; then |
---|
| 2570 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2571 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2574 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2576 | else |
---|
| 2577 | if test -n "$CC"; then |
---|
| 2578 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2579 | else |
---|
| 2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2581 | for as_dir in $PATH |
---|
| 2582 | do |
---|
| 2583 | IFS=$as_save_IFS |
---|
| 2584 | test -z "$as_dir" && as_dir=. |
---|
| 2585 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2587 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2589 | break 2 |
---|
| 2590 | fi |
---|
| 2591 | done |
---|
| 2592 | done |
---|
| 2593 | |
---|
| 2594 | fi |
---|
| 2595 | fi |
---|
| 2596 | CC=$ac_cv_prog_CC |
---|
| 2597 | if test -n "$CC"; then |
---|
| 2598 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2599 | echo "${ECHO_T}$CC" >&6 |
---|
| 2600 | else |
---|
| 2601 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2602 | echo "${ECHO_T}no" >&6 |
---|
| 2603 | fi |
---|
| 2604 | |
---|
| 2605 | fi |
---|
| 2606 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2607 | ac_ct_CC=$CC |
---|
| 2608 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2609 | set dummy cc; ac_word=$2 |
---|
| 2610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2612 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2614 | else |
---|
| 2615 | if test -n "$ac_ct_CC"; then |
---|
| 2616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2617 | else |
---|
| 2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2619 | for as_dir in $PATH |
---|
| 2620 | do |
---|
| 2621 | IFS=$as_save_IFS |
---|
| 2622 | test -z "$as_dir" && as_dir=. |
---|
| 2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2625 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2627 | break 2 |
---|
| 2628 | fi |
---|
| 2629 | done |
---|
| 2630 | done |
---|
| 2631 | |
---|
| 2632 | fi |
---|
| 2633 | fi |
---|
| 2634 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2635 | if test -n "$ac_ct_CC"; then |
---|
| 2636 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2637 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2638 | else |
---|
| 2639 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2640 | echo "${ECHO_T}no" >&6 |
---|
| 2641 | fi |
---|
| 2642 | |
---|
| 2643 | CC=$ac_ct_CC |
---|
| 2644 | else |
---|
| 2645 | CC="$ac_cv_prog_CC" |
---|
| 2646 | fi |
---|
| 2647 | |
---|
| 2648 | fi |
---|
| 2649 | if test -z "$CC"; then |
---|
| 2650 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2651 | set dummy cc; ac_word=$2 |
---|
| 2652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2654 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2656 | else |
---|
| 2657 | if test -n "$CC"; then |
---|
| 2658 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2659 | else |
---|
| 2660 | ac_prog_rejected=no |
---|
| 2661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2662 | for as_dir in $PATH |
---|
| 2663 | do |
---|
| 2664 | IFS=$as_save_IFS |
---|
| 2665 | test -z "$as_dir" && as_dir=. |
---|
| 2666 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2668 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2669 | ac_prog_rejected=yes |
---|
| 2670 | continue |
---|
| 2671 | fi |
---|
| 2672 | ac_cv_prog_CC="cc" |
---|
| 2673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2674 | break 2 |
---|
| 2675 | fi |
---|
| 2676 | done |
---|
| 2677 | done |
---|
| 2678 | |
---|
| 2679 | if test $ac_prog_rejected = yes; then |
---|
| 2680 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2681 | set dummy $ac_cv_prog_CC |
---|
| 2682 | shift |
---|
| 2683 | if test $# != 0; then |
---|
| 2684 | # We chose a different compiler from the bogus one. |
---|
| 2685 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2686 | # first if we set CC to just the basename; use the full file name. |
---|
| 2687 | shift |
---|
| 2688 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2689 | fi |
---|
| 2690 | fi |
---|
| 2691 | fi |
---|
| 2692 | fi |
---|
| 2693 | CC=$ac_cv_prog_CC |
---|
| 2694 | if test -n "$CC"; then |
---|
| 2695 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2696 | echo "${ECHO_T}$CC" >&6 |
---|
| 2697 | else |
---|
| 2698 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2699 | echo "${ECHO_T}no" >&6 |
---|
| 2700 | fi |
---|
| 2701 | |
---|
| 2702 | fi |
---|
| 2703 | if test -z "$CC"; then |
---|
| 2704 | if test -n "$ac_tool_prefix"; then |
---|
| 2705 | for ac_prog in cl |
---|
| 2706 | do |
---|
| 2707 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2708 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2711 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2713 | else |
---|
| 2714 | if test -n "$CC"; then |
---|
| 2715 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2716 | else |
---|
| 2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2718 | for as_dir in $PATH |
---|
| 2719 | do |
---|
| 2720 | IFS=$as_save_IFS |
---|
| 2721 | test -z "$as_dir" && as_dir=. |
---|
| 2722 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2724 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2726 | break 2 |
---|
| 2727 | fi |
---|
| 2728 | done |
---|
| 2729 | done |
---|
| 2730 | |
---|
| 2731 | fi |
---|
| 2732 | fi |
---|
| 2733 | CC=$ac_cv_prog_CC |
---|
| 2734 | if test -n "$CC"; then |
---|
| 2735 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2736 | echo "${ECHO_T}$CC" >&6 |
---|
| 2737 | else |
---|
| 2738 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2739 | echo "${ECHO_T}no" >&6 |
---|
| 2740 | fi |
---|
| 2741 | |
---|
| 2742 | test -n "$CC" && break |
---|
| 2743 | done |
---|
| 2744 | fi |
---|
| 2745 | if test -z "$CC"; then |
---|
| 2746 | ac_ct_CC=$CC |
---|
| 2747 | for ac_prog in cl |
---|
| 2748 | do |
---|
| 2749 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2750 | set dummy $ac_prog; ac_word=$2 |
---|
| 2751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2753 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2755 | else |
---|
| 2756 | if test -n "$ac_ct_CC"; then |
---|
| 2757 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2758 | else |
---|
| 2759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2760 | for as_dir in $PATH |
---|
| 2761 | do |
---|
| 2762 | IFS=$as_save_IFS |
---|
| 2763 | test -z "$as_dir" && as_dir=. |
---|
| 2764 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2766 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 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 | fi |
---|
| 2774 | fi |
---|
| 2775 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2776 | if test -n "$ac_ct_CC"; then |
---|
| 2777 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2778 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2779 | else |
---|
| 2780 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2781 | echo "${ECHO_T}no" >&6 |
---|
| 2782 | fi |
---|
| 2783 | |
---|
| 2784 | test -n "$ac_ct_CC" && break |
---|
| 2785 | done |
---|
| 2786 | |
---|
| 2787 | CC=$ac_ct_CC |
---|
| 2788 | fi |
---|
| 2789 | |
---|
| 2790 | fi |
---|
| 2791 | |
---|
| 2792 | |
---|
| 2793 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2794 | See \`config.log' for more details." >&5 |
---|
| 2795 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2796 | See \`config.log' for more details." >&2;} |
---|
| 2797 | { (exit 1); exit 1; }; } |
---|
| 2798 | |
---|
| 2799 | # Provide some information about the compiler. |
---|
| 2800 | echo "$as_me:$LINENO:" \ |
---|
| 2801 | "checking for C compiler version" >&5 |
---|
| 2802 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2803 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2804 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2805 | ac_status=$? |
---|
| 2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2807 | (exit $ac_status); } |
---|
| 2808 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2809 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2810 | ac_status=$? |
---|
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2812 | (exit $ac_status); } |
---|
| 2813 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2814 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2815 | ac_status=$? |
---|
| 2816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2817 | (exit $ac_status); } |
---|
| 2818 | |
---|
| 2819 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2820 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2821 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2823 | else |
---|
| 2824 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2825 | #line $LINENO "configure" |
---|
[1956] | 2826 | /* confdefs.h. */ |
---|
| 2827 | _ACEOF |
---|
| 2828 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2830 | /* end confdefs.h. */ |
---|
| 2831 | |
---|
| 2832 | int |
---|
| 2833 | main () |
---|
| 2834 | { |
---|
| 2835 | #ifndef __GNUC__ |
---|
| 2836 | choke me |
---|
| 2837 | #endif |
---|
| 2838 | |
---|
| 2839 | ; |
---|
| 2840 | return 0; |
---|
| 2841 | } |
---|
| 2842 | _ACEOF |
---|
| 2843 | rm -f conftest.$ac_objext |
---|
| 2844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2845 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2846 | ac_status=$? |
---|
| 2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2848 | (exit $ac_status); } && |
---|
[2984] | 2849 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 2850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2851 | (eval $ac_try) 2>&5 |
---|
| 2852 | ac_status=$? |
---|
| 2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2854 | (exit $ac_status); }; }; then |
---|
| 2855 | ac_compiler_gnu=yes |
---|
| 2856 | else |
---|
| 2857 | echo "$as_me: failed program was:" >&5 |
---|
| 2858 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2859 | |
---|
| 2860 | ac_compiler_gnu=no |
---|
| 2861 | fi |
---|
[2984] | 2862 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 2863 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2864 | |
---|
| 2865 | fi |
---|
| 2866 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2867 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2868 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2869 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2870 | ac_save_CFLAGS=$CFLAGS |
---|
| 2871 | CFLAGS="-g" |
---|
| 2872 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2873 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2874 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2876 | else |
---|
| 2877 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2878 | #line $LINENO "configure" |
---|
[1956] | 2879 | /* confdefs.h. */ |
---|
| 2880 | _ACEOF |
---|
| 2881 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2883 | /* end confdefs.h. */ |
---|
| 2884 | |
---|
| 2885 | int |
---|
| 2886 | main () |
---|
| 2887 | { |
---|
| 2888 | |
---|
| 2889 | ; |
---|
| 2890 | return 0; |
---|
| 2891 | } |
---|
| 2892 | _ACEOF |
---|
| 2893 | rm -f conftest.$ac_objext |
---|
| 2894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2895 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2896 | ac_status=$? |
---|
| 2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2898 | (exit $ac_status); } && |
---|
[2984] | 2899 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 2900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2901 | (eval $ac_try) 2>&5 |
---|
| 2902 | ac_status=$? |
---|
| 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2904 | (exit $ac_status); }; }; then |
---|
| 2905 | ac_cv_prog_cc_g=yes |
---|
| 2906 | else |
---|
| 2907 | echo "$as_me: failed program was:" >&5 |
---|
| 2908 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2909 | |
---|
| 2910 | ac_cv_prog_cc_g=no |
---|
| 2911 | fi |
---|
[2984] | 2912 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 2913 | fi |
---|
| 2914 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2915 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2916 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2917 | CFLAGS=$ac_save_CFLAGS |
---|
| 2918 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2919 | if test "$GCC" = yes; then |
---|
| 2920 | CFLAGS="-g -O2" |
---|
| 2921 | else |
---|
| 2922 | CFLAGS="-g" |
---|
| 2923 | fi |
---|
| 2924 | else |
---|
| 2925 | if test "$GCC" = yes; then |
---|
| 2926 | CFLAGS="-O2" |
---|
| 2927 | else |
---|
| 2928 | CFLAGS= |
---|
| 2929 | fi |
---|
| 2930 | fi |
---|
| 2931 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2932 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2933 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2935 | else |
---|
| 2936 | ac_cv_prog_cc_stdc=no |
---|
| 2937 | ac_save_CC=$CC |
---|
| 2938 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 2939 | #line $LINENO "configure" |
---|
[1956] | 2940 | /* confdefs.h. */ |
---|
| 2941 | _ACEOF |
---|
| 2942 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2943 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2944 | /* end confdefs.h. */ |
---|
| 2945 | #include <stdarg.h> |
---|
| 2946 | #include <stdio.h> |
---|
| 2947 | #include <sys/types.h> |
---|
| 2948 | #include <sys/stat.h> |
---|
| 2949 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2950 | struct buf { int x; }; |
---|
| 2951 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2952 | static char *e (p, i) |
---|
| 2953 | char **p; |
---|
| 2954 | int i; |
---|
| 2955 | { |
---|
| 2956 | return p[i]; |
---|
| 2957 | } |
---|
| 2958 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2959 | { |
---|
| 2960 | char *s; |
---|
| 2961 | va_list v; |
---|
| 2962 | va_start (v,p); |
---|
| 2963 | s = g (p, va_arg (v,int)); |
---|
| 2964 | va_end (v); |
---|
| 2965 | return s; |
---|
| 2966 | } |
---|
| 2967 | int test (int i, double x); |
---|
| 2968 | struct s1 {int (*f) (int a);}; |
---|
| 2969 | struct s2 {int (*f) (double a);}; |
---|
| 2970 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2971 | int argc; |
---|
| 2972 | char **argv; |
---|
| 2973 | int |
---|
| 2974 | main () |
---|
| 2975 | { |
---|
| 2976 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2977 | ; |
---|
| 2978 | return 0; |
---|
| 2979 | } |
---|
| 2980 | _ACEOF |
---|
| 2981 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2982 | # breaks some systems' header files. |
---|
| 2983 | # AIX -qlanglvl=ansi |
---|
| 2984 | # Ultrix and OSF/1 -std1 |
---|
| 2985 | # HP-UX 10.20 and later -Ae |
---|
| 2986 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2987 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2988 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2989 | do |
---|
| 2990 | CC="$ac_save_CC $ac_arg" |
---|
| 2991 | rm -f conftest.$ac_objext |
---|
| 2992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 2993 | (eval $ac_compile) 2>&5 |
---|
[1956] | 2994 | ac_status=$? |
---|
| 2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2996 | (exit $ac_status); } && |
---|
[2984] | 2997 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 2998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2999 | (eval $ac_try) 2>&5 |
---|
| 3000 | ac_status=$? |
---|
| 3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3002 | (exit $ac_status); }; }; then |
---|
| 3003 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3004 | break |
---|
| 3005 | else |
---|
| 3006 | echo "$as_me: failed program was:" >&5 |
---|
| 3007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3008 | |
---|
| 3009 | fi |
---|
[2984] | 3010 | rm -f conftest.$ac_objext |
---|
[1956] | 3011 | done |
---|
| 3012 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3013 | CC=$ac_save_CC |
---|
| 3014 | |
---|
| 3015 | fi |
---|
| 3016 | |
---|
| 3017 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3018 | x|xno) |
---|
| 3019 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3020 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3021 | *) |
---|
| 3022 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3023 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3024 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3025 | esac |
---|
| 3026 | |
---|
| 3027 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3028 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3029 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3030 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3031 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3032 | #ifndef __cplusplus |
---|
| 3033 | choke me |
---|
| 3034 | #endif |
---|
| 3035 | _ACEOF |
---|
| 3036 | rm -f conftest.$ac_objext |
---|
| 3037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 3038 | (eval $ac_compile) 2>&5 |
---|
[1956] | 3039 | ac_status=$? |
---|
| 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3041 | (exit $ac_status); } && |
---|
[2984] | 3042 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 3043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3044 | (eval $ac_try) 2>&5 |
---|
| 3045 | ac_status=$? |
---|
| 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3047 | (exit $ac_status); }; }; then |
---|
| 3048 | for ac_declaration in \ |
---|
[2984] | 3049 | ''\ |
---|
| 3050 | '#include <stdlib.h>' \ |
---|
[1956] | 3051 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3052 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3053 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3054 | 'extern "C" void exit (int);' \ |
---|
| 3055 | 'void exit (int);' |
---|
| 3056 | do |
---|
| 3057 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3058 | #line $LINENO "configure" |
---|
[1956] | 3059 | /* confdefs.h. */ |
---|
| 3060 | _ACEOF |
---|
| 3061 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3063 | /* end confdefs.h. */ |
---|
[2984] | 3064 | #include <stdlib.h> |
---|
[1956] | 3065 | $ac_declaration |
---|
| 3066 | int |
---|
| 3067 | main () |
---|
| 3068 | { |
---|
| 3069 | exit (42); |
---|
| 3070 | ; |
---|
| 3071 | return 0; |
---|
| 3072 | } |
---|
| 3073 | _ACEOF |
---|
| 3074 | rm -f conftest.$ac_objext |
---|
| 3075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 3076 | (eval $ac_compile) 2>&5 |
---|
[1956] | 3077 | ac_status=$? |
---|
| 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3079 | (exit $ac_status); } && |
---|
[2984] | 3080 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 3081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3082 | (eval $ac_try) 2>&5 |
---|
| 3083 | ac_status=$? |
---|
| 3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3085 | (exit $ac_status); }; }; then |
---|
| 3086 | : |
---|
| 3087 | else |
---|
| 3088 | echo "$as_me: failed program was:" >&5 |
---|
| 3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3090 | |
---|
| 3091 | continue |
---|
| 3092 | fi |
---|
[2984] | 3093 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 3094 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3095 | #line $LINENO "configure" |
---|
[1956] | 3096 | /* confdefs.h. */ |
---|
| 3097 | _ACEOF |
---|
| 3098 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3100 | /* end confdefs.h. */ |
---|
| 3101 | $ac_declaration |
---|
| 3102 | int |
---|
| 3103 | main () |
---|
| 3104 | { |
---|
| 3105 | exit (42); |
---|
| 3106 | ; |
---|
| 3107 | return 0; |
---|
| 3108 | } |
---|
| 3109 | _ACEOF |
---|
| 3110 | rm -f conftest.$ac_objext |
---|
| 3111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 3112 | (eval $ac_compile) 2>&5 |
---|
[1956] | 3113 | ac_status=$? |
---|
| 3114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3115 | (exit $ac_status); } && |
---|
[2984] | 3116 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 3117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3118 | (eval $ac_try) 2>&5 |
---|
| 3119 | ac_status=$? |
---|
| 3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3121 | (exit $ac_status); }; }; then |
---|
| 3122 | break |
---|
| 3123 | else |
---|
| 3124 | echo "$as_me: failed program was:" >&5 |
---|
| 3125 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3126 | |
---|
| 3127 | fi |
---|
[2984] | 3128 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 3129 | done |
---|
| 3130 | rm -f conftest* |
---|
| 3131 | if test -n "$ac_declaration"; then |
---|
| 3132 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3133 | echo $ac_declaration >>confdefs.h |
---|
| 3134 | echo '#endif' >>confdefs.h |
---|
| 3135 | fi |
---|
| 3136 | |
---|
| 3137 | else |
---|
| 3138 | echo "$as_me: failed program was:" >&5 |
---|
| 3139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3140 | |
---|
| 3141 | fi |
---|
[2984] | 3142 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 3143 | ac_ext=c |
---|
| 3144 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3148 | |
---|
| 3149 | depcc="$CC" am_compiler_list= |
---|
| 3150 | |
---|
| 3151 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3152 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3153 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3155 | else |
---|
| 3156 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3157 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3158 | # making bogus files that we don't know about and never remove. For |
---|
| 3159 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3160 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3161 | # in D'. |
---|
| 3162 | mkdir conftest.dir |
---|
| 3163 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3164 | # using a relative directory. |
---|
| 3165 | cp "$am_depcomp" conftest.dir |
---|
| 3166 | cd conftest.dir |
---|
| 3167 | # We will build objects and dependencies in a subdirectory because |
---|
| 3168 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3169 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3170 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3171 | # the current directory while Tru64 will put them in the object |
---|
| 3172 | # directory. |
---|
| 3173 | mkdir sub |
---|
| 3174 | |
---|
| 3175 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3176 | if test "$am_compiler_list" = ""; then |
---|
| 3177 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3178 | fi |
---|
| 3179 | for depmode in $am_compiler_list; do |
---|
| 3180 | # Setup a source with many dependencies, because some compilers |
---|
| 3181 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3182 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3183 | # |
---|
| 3184 | # We need to recreate these files for each test, as the compiler may |
---|
| 3185 | # overwrite some of them when testing with obscure command lines. |
---|
| 3186 | # This happens at least with the AIX C compiler. |
---|
| 3187 | : > sub/conftest.c |
---|
| 3188 | for i in 1 2 3 4 5 6; do |
---|
| 3189 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2984] | 3190 | : > sub/conftst$i.h |
---|
[1956] | 3191 | done |
---|
| 3192 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3193 | |
---|
| 3194 | case $depmode in |
---|
| 3195 | nosideeffect) |
---|
| 3196 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3197 | # only be used when explicitly requested |
---|
| 3198 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3199 | continue |
---|
| 3200 | else |
---|
| 3201 | break |
---|
| 3202 | fi |
---|
| 3203 | ;; |
---|
| 3204 | none) break ;; |
---|
| 3205 | esac |
---|
| 3206 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3207 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3208 | # handle `-M -o', and we need to detect this. |
---|
| 3209 | if depmode=$depmode \ |
---|
| 3210 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3211 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3212 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3213 | >/dev/null 2>conftest.err && |
---|
| 3214 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3215 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3216 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3217 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2984] | 3218 | # (even with -Werror). So we grep stderr for any message |
---|
| 3219 | # that says an option was ignored. |
---|
| 3220 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
[1956] | 3221 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3222 | break |
---|
| 3223 | fi |
---|
| 3224 | fi |
---|
| 3225 | done |
---|
| 3226 | |
---|
| 3227 | cd .. |
---|
| 3228 | rm -rf conftest.dir |
---|
| 3229 | else |
---|
| 3230 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3231 | fi |
---|
| 3232 | |
---|
| 3233 | fi |
---|
| 3234 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3235 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3236 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3237 | |
---|
| 3238 | |
---|
| 3239 | |
---|
| 3240 | if |
---|
| 3241 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3242 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3243 | am__fastdepCC_TRUE= |
---|
| 3244 | am__fastdepCC_FALSE='#' |
---|
| 3245 | else |
---|
| 3246 | am__fastdepCC_TRUE='#' |
---|
| 3247 | am__fastdepCC_FALSE= |
---|
| 3248 | fi |
---|
| 3249 | |
---|
| 3250 | |
---|
| 3251 | |
---|
[1971] | 3252 | ac_ext=c |
---|
| 3253 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3257 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3258 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3259 | # On Suns, sometimes $CPP names a directory. |
---|
| 3260 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3261 | CPP= |
---|
| 3262 | fi |
---|
| 3263 | if test -z "$CPP"; then |
---|
| 3264 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3266 | else |
---|
[1971] | 3267 | # Double quotes because CPP needs to be expanded |
---|
| 3268 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3269 | do |
---|
| 3270 | ac_preproc_ok=false |
---|
| 3271 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3272 | do |
---|
| 3273 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3274 | # with a fresh cross-compiler works. |
---|
| 3275 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3276 | # <limits.h> exists even on freestanding compilers. |
---|
| 3277 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3278 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3279 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3280 | #line $LINENO "configure" |
---|
[1971] | 3281 | /* confdefs.h. */ |
---|
| 3282 | _ACEOF |
---|
| 3283 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3284 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3285 | /* end confdefs.h. */ |
---|
| 3286 | #ifdef __STDC__ |
---|
| 3287 | # include <limits.h> |
---|
| 3288 | #else |
---|
| 3289 | # include <assert.h> |
---|
| 3290 | #endif |
---|
[2984] | 3291 | Syntax error |
---|
[1971] | 3292 | _ACEOF |
---|
| 3293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3295 | ac_status=$? |
---|
| 3296 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3297 | rm -f conftest.er1 |
---|
| 3298 | cat conftest.err >&5 |
---|
| 3299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3300 | (exit $ac_status); } >/dev/null; then |
---|
| 3301 | if test -s conftest.err; then |
---|
| 3302 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3303 | else |
---|
| 3304 | ac_cpp_err= |
---|
| 3305 | fi |
---|
| 3306 | else |
---|
| 3307 | ac_cpp_err=yes |
---|
| 3308 | fi |
---|
| 3309 | if test -z "$ac_cpp_err"; then |
---|
| 3310 | : |
---|
| 3311 | else |
---|
| 3312 | echo "$as_me: failed program was:" >&5 |
---|
| 3313 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3314 | |
---|
| 3315 | # Broken: fails on valid input. |
---|
| 3316 | continue |
---|
| 3317 | fi |
---|
| 3318 | rm -f conftest.err conftest.$ac_ext |
---|
| 3319 | |
---|
| 3320 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3321 | # can be detected and how. |
---|
| 3322 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3323 | #line $LINENO "configure" |
---|
[1971] | 3324 | /* confdefs.h. */ |
---|
| 3325 | _ACEOF |
---|
| 3326 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3327 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3328 | /* end confdefs.h. */ |
---|
| 3329 | #include <ac_nonexistent.h> |
---|
| 3330 | _ACEOF |
---|
| 3331 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3332 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3333 | ac_status=$? |
---|
| 3334 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3335 | rm -f conftest.er1 |
---|
| 3336 | cat conftest.err >&5 |
---|
| 3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3338 | (exit $ac_status); } >/dev/null; then |
---|
| 3339 | if test -s conftest.err; then |
---|
| 3340 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3341 | else |
---|
| 3342 | ac_cpp_err= |
---|
| 3343 | fi |
---|
| 3344 | else |
---|
| 3345 | ac_cpp_err=yes |
---|
| 3346 | fi |
---|
| 3347 | if test -z "$ac_cpp_err"; then |
---|
| 3348 | # Broken: success on invalid input. |
---|
| 3349 | continue |
---|
| 3350 | else |
---|
| 3351 | echo "$as_me: failed program was:" >&5 |
---|
| 3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3353 | |
---|
| 3354 | # Passes both tests. |
---|
| 3355 | ac_preproc_ok=: |
---|
| 3356 | break |
---|
| 3357 | fi |
---|
| 3358 | rm -f conftest.err conftest.$ac_ext |
---|
| 3359 | |
---|
| 3360 | done |
---|
| 3361 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3362 | rm -f conftest.err conftest.$ac_ext |
---|
| 3363 | if $ac_preproc_ok; then |
---|
| 3364 | break |
---|
| 3365 | fi |
---|
| 3366 | |
---|
| 3367 | done |
---|
| 3368 | ac_cv_prog_CPP=$CPP |
---|
| 3369 | |
---|
| 3370 | fi |
---|
| 3371 | CPP=$ac_cv_prog_CPP |
---|
| 3372 | else |
---|
| 3373 | ac_cv_prog_CPP=$CPP |
---|
| 3374 | fi |
---|
| 3375 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3376 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3377 | ac_preproc_ok=false |
---|
| 3378 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3379 | do |
---|
| 3380 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3381 | # with a fresh cross-compiler works. |
---|
| 3382 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3383 | # <limits.h> exists even on freestanding compilers. |
---|
| 3384 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3385 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3386 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3387 | #line $LINENO "configure" |
---|
[1971] | 3388 | /* confdefs.h. */ |
---|
| 3389 | _ACEOF |
---|
| 3390 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3391 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3392 | /* end confdefs.h. */ |
---|
| 3393 | #ifdef __STDC__ |
---|
| 3394 | # include <limits.h> |
---|
| 3395 | #else |
---|
| 3396 | # include <assert.h> |
---|
| 3397 | #endif |
---|
[2984] | 3398 | Syntax error |
---|
[1971] | 3399 | _ACEOF |
---|
| 3400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3402 | ac_status=$? |
---|
| 3403 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3404 | rm -f conftest.er1 |
---|
| 3405 | cat conftest.err >&5 |
---|
| 3406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3407 | (exit $ac_status); } >/dev/null; then |
---|
| 3408 | if test -s conftest.err; then |
---|
| 3409 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3410 | else |
---|
| 3411 | ac_cpp_err= |
---|
| 3412 | fi |
---|
| 3413 | else |
---|
| 3414 | ac_cpp_err=yes |
---|
| 3415 | fi |
---|
| 3416 | if test -z "$ac_cpp_err"; then |
---|
| 3417 | : |
---|
| 3418 | else |
---|
| 3419 | echo "$as_me: failed program was:" >&5 |
---|
| 3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3421 | |
---|
| 3422 | # Broken: fails on valid input. |
---|
| 3423 | continue |
---|
| 3424 | fi |
---|
| 3425 | rm -f conftest.err conftest.$ac_ext |
---|
| 3426 | |
---|
| 3427 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3428 | # can be detected and how. |
---|
| 3429 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3430 | #line $LINENO "configure" |
---|
[1971] | 3431 | /* confdefs.h. */ |
---|
| 3432 | _ACEOF |
---|
| 3433 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3434 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3435 | /* end confdefs.h. */ |
---|
| 3436 | #include <ac_nonexistent.h> |
---|
| 3437 | _ACEOF |
---|
| 3438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3440 | ac_status=$? |
---|
| 3441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3442 | rm -f conftest.er1 |
---|
| 3443 | cat conftest.err >&5 |
---|
| 3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3445 | (exit $ac_status); } >/dev/null; then |
---|
| 3446 | if test -s conftest.err; then |
---|
| 3447 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3448 | else |
---|
| 3449 | ac_cpp_err= |
---|
| 3450 | fi |
---|
| 3451 | else |
---|
| 3452 | ac_cpp_err=yes |
---|
| 3453 | fi |
---|
| 3454 | if test -z "$ac_cpp_err"; then |
---|
| 3455 | # Broken: success on invalid input. |
---|
| 3456 | continue |
---|
| 3457 | else |
---|
| 3458 | echo "$as_me: failed program was:" >&5 |
---|
| 3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3460 | |
---|
| 3461 | # Passes both tests. |
---|
| 3462 | ac_preproc_ok=: |
---|
| 3463 | break |
---|
| 3464 | fi |
---|
| 3465 | rm -f conftest.err conftest.$ac_ext |
---|
| 3466 | |
---|
| 3467 | done |
---|
| 3468 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3469 | rm -f conftest.err conftest.$ac_ext |
---|
| 3470 | if $ac_preproc_ok; then |
---|
| 3471 | : |
---|
| 3472 | else |
---|
| 3473 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3474 | See \`config.log' for more details." >&5 |
---|
| 3475 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3476 | See \`config.log' for more details." >&2;} |
---|
| 3477 | { (exit 1); exit 1; }; } |
---|
| 3478 | fi |
---|
| 3479 | |
---|
| 3480 | ac_ext=c |
---|
| 3481 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3485 | |
---|
| 3486 | |
---|
| 3487 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3488 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3489 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3491 | else |
---|
| 3492 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3493 | then ac_cv_prog_egrep='grep -E' |
---|
| 3494 | else ac_cv_prog_egrep='egrep' |
---|
| 3495 | fi |
---|
| 3496 | fi |
---|
| 3497 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3498 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3499 | EGREP=$ac_cv_prog_egrep |
---|
| 3500 | |
---|
| 3501 | |
---|
| 3502 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3503 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3504 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3506 | else |
---|
| 3507 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3508 | #line $LINENO "configure" |
---|
[1971] | 3509 | /* confdefs.h. */ |
---|
| 3510 | _ACEOF |
---|
| 3511 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3513 | /* end confdefs.h. */ |
---|
| 3514 | #include <stdlib.h> |
---|
| 3515 | #include <stdarg.h> |
---|
| 3516 | #include <string.h> |
---|
| 3517 | #include <float.h> |
---|
| 3518 | |
---|
| 3519 | int |
---|
| 3520 | main () |
---|
| 3521 | { |
---|
| 3522 | |
---|
| 3523 | ; |
---|
| 3524 | return 0; |
---|
| 3525 | } |
---|
| 3526 | _ACEOF |
---|
| 3527 | rm -f conftest.$ac_objext |
---|
| 3528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 3529 | (eval $ac_compile) 2>&5 |
---|
[1971] | 3530 | ac_status=$? |
---|
| 3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3532 | (exit $ac_status); } && |
---|
[2984] | 3533 | { ac_try='test -s conftest.$ac_objext' |
---|
[1971] | 3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3535 | (eval $ac_try) 2>&5 |
---|
| 3536 | ac_status=$? |
---|
| 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3538 | (exit $ac_status); }; }; then |
---|
| 3539 | ac_cv_header_stdc=yes |
---|
| 3540 | else |
---|
| 3541 | echo "$as_me: failed program was:" >&5 |
---|
| 3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3543 | |
---|
| 3544 | ac_cv_header_stdc=no |
---|
| 3545 | fi |
---|
[2984] | 3546 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1971] | 3547 | |
---|
| 3548 | if test $ac_cv_header_stdc = yes; then |
---|
| 3549 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3550 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3551 | #line $LINENO "configure" |
---|
[1971] | 3552 | /* confdefs.h. */ |
---|
| 3553 | _ACEOF |
---|
| 3554 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3556 | /* end confdefs.h. */ |
---|
| 3557 | #include <string.h> |
---|
| 3558 | |
---|
| 3559 | _ACEOF |
---|
| 3560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3561 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3562 | : |
---|
| 3563 | else |
---|
| 3564 | ac_cv_header_stdc=no |
---|
| 3565 | fi |
---|
| 3566 | rm -f conftest* |
---|
| 3567 | |
---|
| 3568 | fi |
---|
| 3569 | |
---|
| 3570 | if test $ac_cv_header_stdc = yes; then |
---|
| 3571 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3572 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3573 | #line $LINENO "configure" |
---|
[1971] | 3574 | /* confdefs.h. */ |
---|
| 3575 | _ACEOF |
---|
| 3576 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3577 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3578 | /* end confdefs.h. */ |
---|
| 3579 | #include <stdlib.h> |
---|
| 3580 | |
---|
| 3581 | _ACEOF |
---|
| 3582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3583 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3584 | : |
---|
| 3585 | else |
---|
| 3586 | ac_cv_header_stdc=no |
---|
| 3587 | fi |
---|
| 3588 | rm -f conftest* |
---|
| 3589 | |
---|
| 3590 | fi |
---|
| 3591 | |
---|
| 3592 | if test $ac_cv_header_stdc = yes; then |
---|
| 3593 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3594 | if test "$cross_compiling" = yes; then |
---|
| 3595 | : |
---|
| 3596 | else |
---|
| 3597 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3598 | #line $LINENO "configure" |
---|
[1971] | 3599 | /* confdefs.h. */ |
---|
| 3600 | _ACEOF |
---|
| 3601 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3602 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3603 | /* end confdefs.h. */ |
---|
| 3604 | #include <ctype.h> |
---|
| 3605 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3606 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3607 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3608 | #else |
---|
| 3609 | # define ISLOWER(c) \ |
---|
[2984] | 3610 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3611 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3612 | || ('s' <= (c) && (c) <= 'z')) |
---|
[1971] | 3613 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3614 | #endif |
---|
| 3615 | |
---|
| 3616 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3617 | int |
---|
| 3618 | main () |
---|
| 3619 | { |
---|
| 3620 | int i; |
---|
| 3621 | for (i = 0; i < 256; i++) |
---|
| 3622 | if (XOR (islower (i), ISLOWER (i)) |
---|
[2984] | 3623 | || toupper (i) != TOUPPER (i)) |
---|
[1971] | 3624 | exit(2); |
---|
| 3625 | exit (0); |
---|
| 3626 | } |
---|
| 3627 | _ACEOF |
---|
| 3628 | rm -f conftest$ac_exeext |
---|
| 3629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3630 | (eval $ac_link) 2>&5 |
---|
| 3631 | ac_status=$? |
---|
| 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3633 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3635 | (eval $ac_try) 2>&5 |
---|
| 3636 | ac_status=$? |
---|
| 3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3638 | (exit $ac_status); }; }; then |
---|
| 3639 | : |
---|
| 3640 | else |
---|
| 3641 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3642 | echo "$as_me: failed program was:" >&5 |
---|
| 3643 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3644 | |
---|
| 3645 | ( exit $ac_status ) |
---|
| 3646 | ac_cv_header_stdc=no |
---|
| 3647 | fi |
---|
[2984] | 3648 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[1971] | 3649 | fi |
---|
| 3650 | fi |
---|
| 3651 | fi |
---|
| 3652 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3653 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3654 | if test $ac_cv_header_stdc = yes; then |
---|
| 3655 | |
---|
| 3656 | cat >>confdefs.h <<\_ACEOF |
---|
| 3657 | #define STDC_HEADERS 1 |
---|
| 3658 | _ACEOF |
---|
| 3659 | |
---|
| 3660 | fi |
---|
| 3661 | |
---|
| 3662 | |
---|
[2977] | 3663 | ### CHECKING FOR SYSTEM ### |
---|
[1971] | 3664 | |
---|
[2977] | 3665 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 3666 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2983] | 3667 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 3668 | case "$target" in |
---|
[2977] | 3669 | ### WINDOWS ### |
---|
[2983] | 3670 | *-*-mingw32*) |
---|
[2977] | 3671 | echo "mingw-WINDOWS detected" |
---|
[1971] | 3672 | |
---|
[2977] | 3673 | mingw="yes" |
---|
| 3674 | MSBITFIELDS="-mms-bitfields" |
---|
| 3675 | MWINDOWS="-mwindows" |
---|
[1971] | 3676 | |
---|
[2977] | 3677 | # checking gl header |
---|
| 3678 | #done before loop |
---|
[1971] | 3679 | |
---|
[2977] | 3680 | # checking gl header |
---|
| 3681 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 3682 | |
---|
| 3683 | |
---|
| 3684 | |
---|
| 3685 | |
---|
[2977] | 3686 | |
---|
| 3687 | |
---|
| 3688 | |
---|
| 3689 | |
---|
| 3690 | |
---|
[1971] | 3691 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
[2984] | 3692 | inttypes.h stdint.h unistd.h |
---|
[1971] | 3693 | do |
---|
| 3694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3699 | else |
---|
| 3700 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3701 | #line $LINENO "configure" |
---|
[1971] | 3702 | /* confdefs.h. */ |
---|
| 3703 | _ACEOF |
---|
| 3704 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3705 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3706 | /* end confdefs.h. */ |
---|
| 3707 | $ac_includes_default |
---|
| 3708 | |
---|
| 3709 | #include <$ac_header> |
---|
| 3710 | _ACEOF |
---|
| 3711 | rm -f conftest.$ac_objext |
---|
| 3712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 3713 | (eval $ac_compile) 2>&5 |
---|
[1971] | 3714 | ac_status=$? |
---|
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3716 | (exit $ac_status); } && |
---|
[2984] | 3717 | { ac_try='test -s conftest.$ac_objext' |
---|
[1971] | 3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3719 | (eval $ac_try) 2>&5 |
---|
| 3720 | ac_status=$? |
---|
| 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3722 | (exit $ac_status); }; }; then |
---|
| 3723 | eval "$as_ac_Header=yes" |
---|
| 3724 | else |
---|
| 3725 | echo "$as_me: failed program was:" >&5 |
---|
| 3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3727 | |
---|
| 3728 | eval "$as_ac_Header=no" |
---|
| 3729 | fi |
---|
[2984] | 3730 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1971] | 3731 | fi |
---|
| 3732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3735 | cat >>confdefs.h <<_ACEOF |
---|
| 3736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3737 | _ACEOF |
---|
| 3738 | |
---|
| 3739 | fi |
---|
| 3740 | |
---|
| 3741 | done |
---|
| 3742 | |
---|
| 3743 | |
---|
| 3744 | |
---|
[2879] | 3745 | for ac_header in GL/gl.h |
---|
| 3746 | do |
---|
| 3747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3749 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3753 | fi |
---|
| 3754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3756 | else |
---|
| 3757 | # Is the header compilable? |
---|
| 3758 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3759 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3760 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3761 | #line $LINENO "configure" |
---|
[2879] | 3762 | /* confdefs.h. */ |
---|
| 3763 | _ACEOF |
---|
| 3764 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3765 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3766 | /* end confdefs.h. */ |
---|
| 3767 | $ac_includes_default |
---|
| 3768 | #include <$ac_header> |
---|
| 3769 | _ACEOF |
---|
| 3770 | rm -f conftest.$ac_objext |
---|
| 3771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 3772 | (eval $ac_compile) 2>&5 |
---|
[2879] | 3773 | ac_status=$? |
---|
| 3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3775 | (exit $ac_status); } && |
---|
[2984] | 3776 | { ac_try='test -s conftest.$ac_objext' |
---|
[2879] | 3777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3778 | (eval $ac_try) 2>&5 |
---|
| 3779 | ac_status=$? |
---|
| 3780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3781 | (exit $ac_status); }; }; then |
---|
| 3782 | ac_header_compiler=yes |
---|
| 3783 | else |
---|
| 3784 | echo "$as_me: failed program was:" >&5 |
---|
| 3785 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3786 | |
---|
| 3787 | ac_header_compiler=no |
---|
| 3788 | fi |
---|
[2984] | 3789 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[2879] | 3790 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3791 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3792 | |
---|
| 3793 | # Is the header present? |
---|
| 3794 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3796 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3797 | #line $LINENO "configure" |
---|
[2879] | 3798 | /* confdefs.h. */ |
---|
| 3799 | _ACEOF |
---|
| 3800 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3801 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3802 | /* end confdefs.h. */ |
---|
| 3803 | #include <$ac_header> |
---|
| 3804 | _ACEOF |
---|
| 3805 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3807 | ac_status=$? |
---|
| 3808 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3809 | rm -f conftest.er1 |
---|
| 3810 | cat conftest.err >&5 |
---|
| 3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3812 | (exit $ac_status); } >/dev/null; then |
---|
| 3813 | if test -s conftest.err; then |
---|
| 3814 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3815 | else |
---|
| 3816 | ac_cpp_err= |
---|
| 3817 | fi |
---|
| 3818 | else |
---|
| 3819 | ac_cpp_err=yes |
---|
| 3820 | fi |
---|
| 3821 | if test -z "$ac_cpp_err"; then |
---|
| 3822 | ac_header_preproc=yes |
---|
| 3823 | else |
---|
| 3824 | echo "$as_me: failed program was:" >&5 |
---|
| 3825 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3826 | |
---|
| 3827 | ac_header_preproc=no |
---|
| 3828 | fi |
---|
| 3829 | rm -f conftest.err conftest.$ac_ext |
---|
| 3830 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3831 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3832 | |
---|
| 3833 | # So? What about this header? |
---|
[2984] | 3834 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 3835 | yes:no ) |
---|
[2879] | 3836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 3838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3840 | ( |
---|
| 3841 | cat <<\_ASBOX |
---|
| 3842 | ## ------------------------------------ ## |
---|
| 3843 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3844 | ## ------------------------------------ ## |
---|
| 3845 | _ASBOX |
---|
| 3846 | ) | |
---|
| 3847 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[2879] | 3848 | ;; |
---|
[2984] | 3849 | no:yes ) |
---|
[2879] | 3850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 3852 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3853 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[2879] | 3854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3855 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3856 | ( |
---|
| 3857 | cat <<\_ASBOX |
---|
[2984] | 3858 | ## ------------------------------------ ## |
---|
| 3859 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3860 | ## ------------------------------------ ## |
---|
[2879] | 3861 | _ASBOX |
---|
| 3862 | ) | |
---|
| 3863 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3864 | ;; |
---|
| 3865 | esac |
---|
| 3866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3870 | else |
---|
[2984] | 3871 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[2879] | 3872 | fi |
---|
| 3873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3875 | |
---|
| 3876 | fi |
---|
| 3877 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3878 | cat >>confdefs.h <<_ACEOF |
---|
| 3879 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3880 | _ACEOF |
---|
| 3881 | |
---|
| 3882 | else |
---|
| 3883 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 3884 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 3885 | { (exit 1); exit 1; }; } |
---|
| 3886 | fi |
---|
| 3887 | |
---|
| 3888 | done |
---|
| 3889 | |
---|
[2701] | 3890 | # checking for Windows openGl library |
---|
[1971] | 3891 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 3892 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 3893 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3895 | else |
---|
| 3896 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3897 | LIBS="-lopengl32 $LIBS" |
---|
| 3898 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3899 | #line $LINENO "configure" |
---|
[1959] | 3900 | /* confdefs.h. */ |
---|
[1956] | 3901 | _ACEOF |
---|
[1959] | 3902 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3903 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3904 | /* end confdefs.h. */ |
---|
[1956] | 3905 | |
---|
[1971] | 3906 | |
---|
[1959] | 3907 | int |
---|
| 3908 | main () |
---|
| 3909 | { |
---|
[1971] | 3910 | main (); |
---|
[1959] | 3911 | ; |
---|
| 3912 | return 0; |
---|
| 3913 | } |
---|
| 3914 | _ACEOF |
---|
| 3915 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 3917 | (eval $ac_link) 2>&5 |
---|
[1959] | 3918 | ac_status=$? |
---|
| 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3920 | (exit $ac_status); } && |
---|
[2984] | 3921 | { ac_try='test -s conftest$ac_exeext' |
---|
[1959] | 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3923 | (eval $ac_try) 2>&5 |
---|
| 3924 | ac_status=$? |
---|
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3926 | (exit $ac_status); }; }; then |
---|
[1971] | 3927 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 3928 | else |
---|
| 3929 | echo "$as_me: failed program was:" >&5 |
---|
| 3930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 3931 | |
---|
[1971] | 3932 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 3933 | fi |
---|
[2984] | 3934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1959] | 3935 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3936 | fi |
---|
[1971] | 3937 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 3938 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 3939 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 3940 | FOUND_opengl32=yes |
---|
| 3941 | else |
---|
| 3942 | "gl/gl.h" |
---|
[1959] | 3943 | fi |
---|
[1956] | 3944 | |
---|
[1971] | 3945 | if test "$FOUND_opengl32" = "yes" ; then |
---|
[1959] | 3946 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 3947 | else |
---|
[1959] | 3948 | echo "------------------" |
---|
| 3949 | echo "opengl not found." |
---|
| 3950 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 3951 | echo "------------------" |
---|
| 3952 | exit -1 |
---|
| 3953 | fi |
---|
| 3954 | |
---|
[2701] | 3955 | # cheking for GLU-header |
---|
[1971] | 3956 | |
---|
| 3957 | for ac_header in GL/glu.h |
---|
| 3958 | do |
---|
| 3959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3965 | fi |
---|
| 3966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3968 | else |
---|
| 3969 | # Is the header compilable? |
---|
| 3970 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3972 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 3973 | #line $LINENO "configure" |
---|
[1971] | 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 |
---|
[2984] | 3984 | (eval $ac_compile) 2>&5 |
---|
[1971] | 3985 | ac_status=$? |
---|
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3987 | (exit $ac_status); } && |
---|
[2984] | 3988 | { ac_try='test -s conftest.$ac_objext' |
---|
[1971] | 3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3990 | (eval $ac_try) 2>&5 |
---|
| 3991 | ac_status=$? |
---|
| 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3993 | (exit $ac_status); }; }; then |
---|
| 3994 | ac_header_compiler=yes |
---|
| 3995 | else |
---|
| 3996 | echo "$as_me: failed program was:" >&5 |
---|
| 3997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3998 | |
---|
| 3999 | ac_header_compiler=no |
---|
| 4000 | fi |
---|
[2984] | 4001 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1971] | 4002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4003 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4004 | |
---|
| 4005 | # Is the header present? |
---|
| 4006 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4007 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4008 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4009 | #line $LINENO "configure" |
---|
[1971] | 4010 | /* confdefs.h. */ |
---|
| 4011 | _ACEOF |
---|
| 4012 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4013 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4014 | /* end confdefs.h. */ |
---|
| 4015 | #include <$ac_header> |
---|
| 4016 | _ACEOF |
---|
| 4017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4019 | ac_status=$? |
---|
| 4020 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4021 | rm -f conftest.er1 |
---|
| 4022 | cat conftest.err >&5 |
---|
| 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4024 | (exit $ac_status); } >/dev/null; then |
---|
| 4025 | if test -s conftest.err; then |
---|
| 4026 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4027 | else |
---|
| 4028 | ac_cpp_err= |
---|
| 4029 | fi |
---|
| 4030 | else |
---|
| 4031 | ac_cpp_err=yes |
---|
| 4032 | fi |
---|
| 4033 | if test -z "$ac_cpp_err"; then |
---|
| 4034 | ac_header_preproc=yes |
---|
| 4035 | else |
---|
| 4036 | echo "$as_me: failed program was:" >&5 |
---|
| 4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4038 | |
---|
| 4039 | ac_header_preproc=no |
---|
| 4040 | fi |
---|
| 4041 | rm -f conftest.err conftest.$ac_ext |
---|
| 4042 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4043 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4044 | |
---|
| 4045 | # So? What about this header? |
---|
[2984] | 4046 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 4047 | yes:no ) |
---|
[1971] | 4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4052 | ( |
---|
| 4053 | cat <<\_ASBOX |
---|
| 4054 | ## ------------------------------------ ## |
---|
| 4055 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4056 | ## ------------------------------------ ## |
---|
| 4057 | _ASBOX |
---|
| 4058 | ) | |
---|
| 4059 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[1971] | 4060 | ;; |
---|
[2984] | 4061 | no:yes ) |
---|
[1971] | 4062 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4063 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 4064 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4065 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[1971] | 4066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4067 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4068 | ( |
---|
| 4069 | cat <<\_ASBOX |
---|
[2984] | 4070 | ## ------------------------------------ ## |
---|
| 4071 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4072 | ## ------------------------------------ ## |
---|
[1971] | 4073 | _ASBOX |
---|
| 4074 | ) | |
---|
| 4075 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4076 | ;; |
---|
| 4077 | esac |
---|
| 4078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4082 | else |
---|
[2984] | 4083 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[1971] | 4084 | fi |
---|
| 4085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4086 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4087 | |
---|
| 4088 | fi |
---|
| 4089 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4090 | cat >>confdefs.h <<_ACEOF |
---|
| 4091 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4092 | _ACEOF |
---|
| 4093 | |
---|
| 4094 | else |
---|
| 4095 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4096 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4097 | { (exit 1); exit 1; }; } |
---|
| 4098 | fi |
---|
| 4099 | |
---|
| 4100 | done |
---|
| 4101 | |
---|
| 4102 | |
---|
[2701] | 4103 | # checking for libGLU |
---|
| 4104 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4105 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4106 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4108 | else |
---|
| 4109 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4110 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4111 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4112 | #line $LINENO "configure" |
---|
[1956] | 4113 | /* confdefs.h. */ |
---|
| 4114 | _ACEOF |
---|
| 4115 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4117 | /* end confdefs.h. */ |
---|
| 4118 | |
---|
[2701] | 4119 | |
---|
[1956] | 4120 | int |
---|
| 4121 | main () |
---|
| 4122 | { |
---|
[2701] | 4123 | main (); |
---|
[1956] | 4124 | ; |
---|
| 4125 | return 0; |
---|
| 4126 | } |
---|
| 4127 | _ACEOF |
---|
| 4128 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 4130 | (eval $ac_link) 2>&5 |
---|
[1956] | 4131 | ac_status=$? |
---|
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4133 | (exit $ac_status); } && |
---|
[2984] | 4134 | { ac_try='test -s conftest$ac_exeext' |
---|
[1956] | 4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4136 | (eval $ac_try) 2>&5 |
---|
| 4137 | ac_status=$? |
---|
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4139 | (exit $ac_status); }; }; then |
---|
[2701] | 4140 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4141 | else |
---|
| 4142 | echo "$as_me: failed program was:" >&5 |
---|
| 4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4144 | |
---|
[2701] | 4145 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4146 | fi |
---|
[2984] | 4147 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1956] | 4148 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4149 | fi |
---|
[2701] | 4150 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4151 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4152 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4153 | FOUND_glu32=yes |
---|
[1959] | 4154 | fi |
---|
| 4155 | |
---|
[2701] | 4156 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4157 | LIBS="$LIBS -lGLU32" |
---|
| 4158 | else |
---|
| 4159 | echo "------------------" |
---|
| 4160 | echo "GLU library not found." |
---|
| 4161 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4162 | echo "------------------" |
---|
| 4163 | exit -1 |
---|
| 4164 | fi |
---|
| 4165 | |
---|
| 4166 | # checking for mingw32 |
---|
| 4167 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4168 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4169 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4171 | else |
---|
| 4172 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4173 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4174 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4175 | #line $LINENO "configure" |
---|
[1959] | 4176 | /* confdefs.h. */ |
---|
[1956] | 4177 | _ACEOF |
---|
[1959] | 4178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4180 | /* end confdefs.h. */ |
---|
[1956] | 4181 | |
---|
[1971] | 4182 | |
---|
[1959] | 4183 | int |
---|
| 4184 | main () |
---|
| 4185 | { |
---|
[1971] | 4186 | main (); |
---|
[1959] | 4187 | ; |
---|
| 4188 | return 0; |
---|
| 4189 | } |
---|
| 4190 | _ACEOF |
---|
| 4191 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 4193 | (eval $ac_link) 2>&5 |
---|
[1959] | 4194 | ac_status=$? |
---|
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4196 | (exit $ac_status); } && |
---|
[2984] | 4197 | { ac_try='test -s conftest$ac_exeext' |
---|
[1959] | 4198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4199 | (eval $ac_try) 2>&5 |
---|
| 4200 | ac_status=$? |
---|
| 4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4202 | (exit $ac_status); }; }; then |
---|
[2701] | 4203 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4204 | else |
---|
| 4205 | echo "$as_me: failed program was:" >&5 |
---|
| 4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4207 | |
---|
[2701] | 4208 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4209 | fi |
---|
[2984] | 4210 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1959] | 4211 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4212 | fi |
---|
[2701] | 4213 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4214 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4215 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4216 | FOUND_mingw32=yes |
---|
[1959] | 4217 | fi |
---|
[1956] | 4218 | |
---|
[2701] | 4219 | if test $FOUND_mingw32 = "yes"; then |
---|
| 4220 | LIBS="$LIBS -lmingw32" |
---|
| 4221 | fi |
---|
| 4222 | # checking for SDL-headers |
---|
[1959] | 4223 | |
---|
[2701] | 4224 | for ac_header in SDL/SDL.h |
---|
| 4225 | do |
---|
| 4226 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[1959] | 4232 | fi |
---|
[2701] | 4233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4235 | else |
---|
| 4236 | # Is the header compilable? |
---|
| 4237 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4238 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4239 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4240 | #line $LINENO "configure" |
---|
[2701] | 4241 | /* confdefs.h. */ |
---|
| 4242 | _ACEOF |
---|
| 4243 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4244 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4245 | /* end confdefs.h. */ |
---|
| 4246 | $ac_includes_default |
---|
| 4247 | #include <$ac_header> |
---|
| 4248 | _ACEOF |
---|
| 4249 | rm -f conftest.$ac_objext |
---|
| 4250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 4251 | (eval $ac_compile) 2>&5 |
---|
[2701] | 4252 | ac_status=$? |
---|
| 4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4254 | (exit $ac_status); } && |
---|
[2984] | 4255 | { ac_try='test -s conftest.$ac_objext' |
---|
[2701] | 4256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4257 | (eval $ac_try) 2>&5 |
---|
| 4258 | ac_status=$? |
---|
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4260 | (exit $ac_status); }; }; then |
---|
| 4261 | ac_header_compiler=yes |
---|
| 4262 | else |
---|
| 4263 | echo "$as_me: failed program was:" >&5 |
---|
| 4264 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1971] | 4265 | |
---|
[2701] | 4266 | ac_header_compiler=no |
---|
| 4267 | fi |
---|
[2984] | 4268 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[2701] | 4269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4270 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4271 | |
---|
[2701] | 4272 | # Is the header present? |
---|
| 4273 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4275 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4276 | #line $LINENO "configure" |
---|
[2701] | 4277 | /* confdefs.h. */ |
---|
| 4278 | _ACEOF |
---|
| 4279 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4280 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4281 | /* end confdefs.h. */ |
---|
| 4282 | #include <$ac_header> |
---|
| 4283 | _ACEOF |
---|
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4286 | ac_status=$? |
---|
| 4287 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4288 | rm -f conftest.er1 |
---|
| 4289 | cat conftest.err >&5 |
---|
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4291 | (exit $ac_status); } >/dev/null; then |
---|
| 4292 | if test -s conftest.err; then |
---|
| 4293 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4294 | else |
---|
| 4295 | ac_cpp_err= |
---|
| 4296 | fi |
---|
| 4297 | else |
---|
| 4298 | ac_cpp_err=yes |
---|
| 4299 | fi |
---|
| 4300 | if test -z "$ac_cpp_err"; then |
---|
| 4301 | ac_header_preproc=yes |
---|
| 4302 | else |
---|
| 4303 | echo "$as_me: failed program was:" >&5 |
---|
| 4304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4305 | |
---|
| 4306 | ac_header_preproc=no |
---|
| 4307 | fi |
---|
| 4308 | rm -f conftest.err conftest.$ac_ext |
---|
| 4309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4310 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4311 | |
---|
| 4312 | # So? What about this header? |
---|
[2984] | 4313 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 4314 | yes:no ) |
---|
[2701] | 4315 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4316 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 4317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4318 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4319 | ( |
---|
| 4320 | cat <<\_ASBOX |
---|
| 4321 | ## ------------------------------------ ## |
---|
| 4322 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4323 | ## ------------------------------------ ## |
---|
| 4324 | _ASBOX |
---|
| 4325 | ) | |
---|
| 4326 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[2701] | 4327 | ;; |
---|
[2984] | 4328 | no:yes ) |
---|
[2701] | 4329 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4330 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 4331 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4332 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[2701] | 4333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4335 | ( |
---|
| 4336 | cat <<\_ASBOX |
---|
[2984] | 4337 | ## ------------------------------------ ## |
---|
| 4338 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4339 | ## ------------------------------------ ## |
---|
[2701] | 4340 | _ASBOX |
---|
| 4341 | ) | |
---|
| 4342 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4343 | ;; |
---|
| 4344 | esac |
---|
| 4345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[1956] | 4348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4349 | else |
---|
[2984] | 4350 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[2701] | 4351 | fi |
---|
| 4352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4353 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4354 | |
---|
| 4355 | fi |
---|
| 4356 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4357 | cat >>confdefs.h <<_ACEOF |
---|
| 4358 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4359 | _ACEOF |
---|
| 4360 | |
---|
| 4361 | else |
---|
| 4362 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4363 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4364 | { (exit 1); exit 1; }; } |
---|
| 4365 | fi |
---|
| 4366 | |
---|
| 4367 | done |
---|
| 4368 | |
---|
| 4369 | |
---|
| 4370 | #checking for libSDL |
---|
| 4371 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4372 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4373 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4375 | else |
---|
[1956] | 4376 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4377 | LIBS="-lsdlmain $LIBS" |
---|
[1956] | 4378 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4379 | #line $LINENO "configure" |
---|
[1956] | 4380 | /* confdefs.h. */ |
---|
| 4381 | _ACEOF |
---|
| 4382 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4384 | /* end confdefs.h. */ |
---|
| 4385 | |
---|
| 4386 | |
---|
| 4387 | int |
---|
| 4388 | main () |
---|
| 4389 | { |
---|
| 4390 | main (); |
---|
| 4391 | ; |
---|
| 4392 | return 0; |
---|
| 4393 | } |
---|
| 4394 | _ACEOF |
---|
| 4395 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 4397 | (eval $ac_link) 2>&5 |
---|
[1956] | 4398 | ac_status=$? |
---|
| 4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4400 | (exit $ac_status); } && |
---|
[2984] | 4401 | { ac_try='test -s conftest$ac_exeext' |
---|
[1956] | 4402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4403 | (eval $ac_try) 2>&5 |
---|
| 4404 | ac_status=$? |
---|
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4406 | (exit $ac_status); }; }; then |
---|
[2701] | 4407 | ac_cv_lib_sdlmain_main=yes |
---|
[1956] | 4408 | else |
---|
| 4409 | echo "$as_me: failed program was:" >&5 |
---|
| 4410 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4411 | |
---|
[2701] | 4412 | ac_cv_lib_sdlmain_main=no |
---|
[1956] | 4413 | fi |
---|
[2984] | 4414 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1956] | 4415 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4416 | fi |
---|
[2701] | 4417 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4418 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4419 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4420 | FOUND_sdlmain=yes |
---|
[1956] | 4421 | fi |
---|
| 4422 | |
---|
[2701] | 4423 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
[2983] | 4424 | LIBS="$LIBS -lsdlmain" |
---|
[2701] | 4425 | else |
---|
[2983] | 4426 | echo "------------------" |
---|
| 4427 | echo "SDL library not found." |
---|
| 4428 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4429 | echo "------------------" |
---|
| 4430 | exit 1 |
---|
[2701] | 4431 | fi |
---|
| 4432 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4433 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4434 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
[1956] | 4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4436 | else |
---|
| 4437 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4438 | LIBS="-lsdl $LIBS" |
---|
[1956] | 4439 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4440 | #line $LINENO "configure" |
---|
[1956] | 4441 | /* confdefs.h. */ |
---|
| 4442 | _ACEOF |
---|
| 4443 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4445 | /* end confdefs.h. */ |
---|
| 4446 | |
---|
| 4447 | |
---|
| 4448 | int |
---|
| 4449 | main () |
---|
| 4450 | { |
---|
| 4451 | main (); |
---|
| 4452 | ; |
---|
| 4453 | return 0; |
---|
| 4454 | } |
---|
| 4455 | _ACEOF |
---|
| 4456 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 4458 | (eval $ac_link) 2>&5 |
---|
[1956] | 4459 | ac_status=$? |
---|
| 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4461 | (exit $ac_status); } && |
---|
[2984] | 4462 | { ac_try='test -s conftest$ac_exeext' |
---|
[1956] | 4463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4464 | (eval $ac_try) 2>&5 |
---|
| 4465 | ac_status=$? |
---|
| 4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4467 | (exit $ac_status); }; }; then |
---|
[2701] | 4468 | ac_cv_lib_sdl_main=yes |
---|
[1956] | 4469 | else |
---|
| 4470 | echo "$as_me: failed program was:" >&5 |
---|
| 4471 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4472 | |
---|
[2701] | 4473 | ac_cv_lib_sdl_main=no |
---|
[1956] | 4474 | fi |
---|
[2984] | 4475 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1956] | 4476 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4477 | fi |
---|
[2701] | 4478 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4479 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4480 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4481 | FOUND_sdl=yes |
---|
| 4482 | fi |
---|
[1956] | 4483 | |
---|
[2701] | 4484 | if test "$FOUND_sdl" = "yes" ; then |
---|
[2983] | 4485 | LIBS="$LIBS -lsdl" |
---|
[2701] | 4486 | else |
---|
[2983] | 4487 | echo "------------------" |
---|
| 4488 | echo "SDL library not found." |
---|
| 4489 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4490 | echo "------------------" |
---|
| 4491 | exit -1 |
---|
[2701] | 4492 | fi |
---|
[1956] | 4493 | |
---|
[2983] | 4494 | |
---|
[2701] | 4495 | ;; |
---|
[1956] | 4496 | |
---|
[2701] | 4497 | ### LINUX ### |
---|
[2983] | 4498 | *-*-linux*) |
---|
[2701] | 4499 | echo "Linux detected" |
---|
[1956] | 4500 | |
---|
[2701] | 4501 | Linux="yes" |
---|
| 4502 | |
---|
[2977] | 4503 | # checking gl header |
---|
[2701] | 4504 | |
---|
[2879] | 4505 | for ac_header in GL/gl.h |
---|
| 4506 | do |
---|
| 4507 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4509 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4511 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4513 | fi |
---|
| 4514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4515 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4516 | else |
---|
| 4517 | # Is the header compilable? |
---|
| 4518 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4519 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4520 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4521 | #line $LINENO "configure" |
---|
[2879] | 4522 | /* confdefs.h. */ |
---|
| 4523 | _ACEOF |
---|
| 4524 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4525 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4526 | /* end confdefs.h. */ |
---|
| 4527 | $ac_includes_default |
---|
| 4528 | #include <$ac_header> |
---|
| 4529 | _ACEOF |
---|
| 4530 | rm -f conftest.$ac_objext |
---|
| 4531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 4532 | (eval $ac_compile) 2>&5 |
---|
[2879] | 4533 | ac_status=$? |
---|
| 4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4535 | (exit $ac_status); } && |
---|
[2984] | 4536 | { ac_try='test -s conftest.$ac_objext' |
---|
[2879] | 4537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4538 | (eval $ac_try) 2>&5 |
---|
| 4539 | ac_status=$? |
---|
| 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4541 | (exit $ac_status); }; }; then |
---|
| 4542 | ac_header_compiler=yes |
---|
| 4543 | else |
---|
| 4544 | echo "$as_me: failed program was:" >&5 |
---|
| 4545 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4546 | |
---|
| 4547 | ac_header_compiler=no |
---|
| 4548 | fi |
---|
[2984] | 4549 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[2879] | 4550 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4551 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4552 | |
---|
| 4553 | # Is the header present? |
---|
| 4554 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4555 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4556 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4557 | #line $LINENO "configure" |
---|
[2879] | 4558 | /* confdefs.h. */ |
---|
| 4559 | _ACEOF |
---|
| 4560 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4562 | /* end confdefs.h. */ |
---|
| 4563 | #include <$ac_header> |
---|
| 4564 | _ACEOF |
---|
| 4565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4567 | ac_status=$? |
---|
| 4568 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4569 | rm -f conftest.er1 |
---|
| 4570 | cat conftest.err >&5 |
---|
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4572 | (exit $ac_status); } >/dev/null; then |
---|
| 4573 | if test -s conftest.err; then |
---|
| 4574 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4575 | else |
---|
| 4576 | ac_cpp_err= |
---|
| 4577 | fi |
---|
| 4578 | else |
---|
| 4579 | ac_cpp_err=yes |
---|
| 4580 | fi |
---|
| 4581 | if test -z "$ac_cpp_err"; then |
---|
| 4582 | ac_header_preproc=yes |
---|
| 4583 | else |
---|
| 4584 | echo "$as_me: failed program was:" >&5 |
---|
| 4585 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4586 | |
---|
| 4587 | ac_header_preproc=no |
---|
| 4588 | fi |
---|
| 4589 | rm -f conftest.err conftest.$ac_ext |
---|
| 4590 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4591 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4592 | |
---|
| 4593 | # So? What about this header? |
---|
[2984] | 4594 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 4595 | yes:no ) |
---|
[2879] | 4596 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4597 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 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 | ( |
---|
| 4601 | cat <<\_ASBOX |
---|
| 4602 | ## ------------------------------------ ## |
---|
| 4603 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4604 | ## ------------------------------------ ## |
---|
| 4605 | _ASBOX |
---|
| 4606 | ) | |
---|
| 4607 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[2879] | 4608 | ;; |
---|
[2984] | 4609 | no:yes ) |
---|
[2879] | 4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4611 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 4612 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4613 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[2879] | 4614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4615 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4616 | ( |
---|
| 4617 | cat <<\_ASBOX |
---|
[2984] | 4618 | ## ------------------------------------ ## |
---|
| 4619 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4620 | ## ------------------------------------ ## |
---|
[2879] | 4621 | _ASBOX |
---|
| 4622 | ) | |
---|
| 4623 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4624 | ;; |
---|
| 4625 | esac |
---|
| 4626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4630 | else |
---|
[2984] | 4631 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[2879] | 4632 | fi |
---|
| 4633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4635 | |
---|
| 4636 | fi |
---|
| 4637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4638 | cat >>confdefs.h <<_ACEOF |
---|
| 4639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4640 | _ACEOF |
---|
| 4641 | |
---|
| 4642 | else |
---|
| 4643 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4644 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4645 | { (exit 1); exit 1; }; } |
---|
| 4646 | fi |
---|
| 4647 | |
---|
| 4648 | done |
---|
| 4649 | |
---|
| 4650 | |
---|
[2701] | 4651 | # checking for Unix GL |
---|
| 4652 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 4653 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 4654 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
[1956] | 4655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4656 | else |
---|
| 4657 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4658 | LIBS="-lGL $LIBS" |
---|
[1956] | 4659 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4660 | #line $LINENO "configure" |
---|
[1956] | 4661 | /* confdefs.h. */ |
---|
| 4662 | _ACEOF |
---|
| 4663 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4664 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4665 | /* end confdefs.h. */ |
---|
| 4666 | |
---|
| 4667 | |
---|
| 4668 | int |
---|
| 4669 | main () |
---|
| 4670 | { |
---|
| 4671 | main (); |
---|
| 4672 | ; |
---|
| 4673 | return 0; |
---|
| 4674 | } |
---|
| 4675 | _ACEOF |
---|
| 4676 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 4678 | (eval $ac_link) 2>&5 |
---|
[1956] | 4679 | ac_status=$? |
---|
| 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4681 | (exit $ac_status); } && |
---|
[2984] | 4682 | { ac_try='test -s conftest$ac_exeext' |
---|
[1956] | 4683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4684 | (eval $ac_try) 2>&5 |
---|
| 4685 | ac_status=$? |
---|
| 4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4687 | (exit $ac_status); }; }; then |
---|
[2701] | 4688 | ac_cv_lib_GL_main=yes |
---|
[1956] | 4689 | else |
---|
| 4690 | echo "$as_me: failed program was:" >&5 |
---|
| 4691 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4692 | |
---|
[2701] | 4693 | ac_cv_lib_GL_main=no |
---|
[1956] | 4694 | fi |
---|
[2984] | 4695 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1956] | 4696 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4697 | fi |
---|
[2701] | 4698 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 4699 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 4700 | if test $ac_cv_lib_GL_main = yes; then |
---|
| 4701 | FOUND_GL=yes |
---|
| 4702 | fi |
---|
| 4703 | |
---|
| 4704 | if test "$FOUND_GL" = "yes" ; then |
---|
| 4705 | LIBS="$LIBS -lGL" |
---|
| 4706 | else |
---|
| 4707 | echo "------------------" |
---|
| 4708 | echo "opengl not found." |
---|
| 4709 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4710 | echo "------------------" |
---|
| 4711 | exit -1 |
---|
| 4712 | fi |
---|
| 4713 | |
---|
| 4714 | # cheking for GLU-header |
---|
| 4715 | |
---|
| 4716 | for ac_header in GL/glu.h |
---|
| 4717 | do |
---|
| 4718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4724 | fi |
---|
| 4725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4727 | else |
---|
| 4728 | # Is the header compilable? |
---|
| 4729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4731 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4732 | #line $LINENO "configure" |
---|
[2701] | 4733 | /* confdefs.h. */ |
---|
[1956] | 4734 | _ACEOF |
---|
[2701] | 4735 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4736 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4737 | /* end confdefs.h. */ |
---|
| 4738 | $ac_includes_default |
---|
| 4739 | #include <$ac_header> |
---|
| 4740 | _ACEOF |
---|
| 4741 | rm -f conftest.$ac_objext |
---|
| 4742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 4743 | (eval $ac_compile) 2>&5 |
---|
[2701] | 4744 | ac_status=$? |
---|
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4746 | (exit $ac_status); } && |
---|
[2984] | 4747 | { ac_try='test -s conftest.$ac_objext' |
---|
[2701] | 4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4749 | (eval $ac_try) 2>&5 |
---|
| 4750 | ac_status=$? |
---|
| 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4752 | (exit $ac_status); }; }; then |
---|
| 4753 | ac_header_compiler=yes |
---|
| 4754 | else |
---|
| 4755 | echo "$as_me: failed program was:" >&5 |
---|
| 4756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4757 | |
---|
[2701] | 4758 | ac_header_compiler=no |
---|
| 4759 | fi |
---|
[2984] | 4760 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[2701] | 4761 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4762 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4763 | |
---|
[2701] | 4764 | # Is the header present? |
---|
| 4765 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4766 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4767 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4768 | #line $LINENO "configure" |
---|
[2701] | 4769 | /* confdefs.h. */ |
---|
| 4770 | _ACEOF |
---|
| 4771 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4772 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4773 | /* end confdefs.h. */ |
---|
| 4774 | #include <$ac_header> |
---|
| 4775 | _ACEOF |
---|
| 4776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4778 | ac_status=$? |
---|
| 4779 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4780 | rm -f conftest.er1 |
---|
| 4781 | cat conftest.err >&5 |
---|
| 4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4783 | (exit $ac_status); } >/dev/null; then |
---|
| 4784 | if test -s conftest.err; then |
---|
| 4785 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4786 | else |
---|
| 4787 | ac_cpp_err= |
---|
| 4788 | fi |
---|
| 4789 | else |
---|
| 4790 | ac_cpp_err=yes |
---|
[1956] | 4791 | fi |
---|
[2701] | 4792 | if test -z "$ac_cpp_err"; then |
---|
| 4793 | ac_header_preproc=yes |
---|
| 4794 | else |
---|
| 4795 | echo "$as_me: failed program was:" >&5 |
---|
| 4796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4797 | |
---|
[2701] | 4798 | ac_header_preproc=no |
---|
| 4799 | fi |
---|
| 4800 | rm -f conftest.err conftest.$ac_ext |
---|
| 4801 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4802 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 4803 | |
---|
[2701] | 4804 | # So? What about this header? |
---|
[2984] | 4805 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 4806 | yes:no ) |
---|
[2701] | 4807 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4808 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 4809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4811 | ( |
---|
| 4812 | cat <<\_ASBOX |
---|
| 4813 | ## ------------------------------------ ## |
---|
| 4814 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4815 | ## ------------------------------------ ## |
---|
| 4816 | _ASBOX |
---|
| 4817 | ) | |
---|
| 4818 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[2701] | 4819 | ;; |
---|
[2984] | 4820 | no:yes ) |
---|
[2701] | 4821 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4822 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 4823 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4824 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[2701] | 4825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4826 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4827 | ( |
---|
| 4828 | cat <<\_ASBOX |
---|
[2984] | 4829 | ## ------------------------------------ ## |
---|
| 4830 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 4831 | ## ------------------------------------ ## |
---|
[2701] | 4832 | _ASBOX |
---|
| 4833 | ) | |
---|
| 4834 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4835 | ;; |
---|
| 4836 | esac |
---|
| 4837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 4840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4841 | else |
---|
[2984] | 4842 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[2701] | 4843 | fi |
---|
| 4844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4845 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4846 | |
---|
| 4847 | fi |
---|
| 4848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4849 | cat >>confdefs.h <<_ACEOF |
---|
| 4850 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4851 | _ACEOF |
---|
| 4852 | |
---|
| 4853 | else |
---|
| 4854 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4855 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4856 | { (exit 1); exit 1; }; } |
---|
| 4857 | fi |
---|
| 4858 | |
---|
| 4859 | done |
---|
| 4860 | |
---|
| 4861 | |
---|
| 4862 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 4863 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 4864 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 4865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4866 | else |
---|
[2190] | 4867 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4868 | LIBS="-lGLU $LIBS" |
---|
[2190] | 4869 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 4870 | #line $LINENO "configure" |
---|
[2190] | 4871 | /* confdefs.h. */ |
---|
| 4872 | _ACEOF |
---|
| 4873 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4875 | /* end confdefs.h. */ |
---|
| 4876 | |
---|
[2701] | 4877 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4878 | #ifdef __cplusplus |
---|
| 4879 | extern "C" |
---|
| 4880 | #endif |
---|
| 4881 | /* We use char because int might match the return type of a gcc2 |
---|
| 4882 | builtin and then its argument prototype would still apply. */ |
---|
| 4883 | char gluProject (); |
---|
[2190] | 4884 | int |
---|
| 4885 | main () |
---|
| 4886 | { |
---|
[2701] | 4887 | gluProject (); |
---|
[2190] | 4888 | ; |
---|
| 4889 | return 0; |
---|
| 4890 | } |
---|
| 4891 | _ACEOF |
---|
| 4892 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 4894 | (eval $ac_link) 2>&5 |
---|
[2190] | 4895 | ac_status=$? |
---|
| 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4897 | (exit $ac_status); } && |
---|
[2984] | 4898 | { ac_try='test -s conftest$ac_exeext' |
---|
[2190] | 4899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4900 | (eval $ac_try) 2>&5 |
---|
| 4901 | ac_status=$? |
---|
| 4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4903 | (exit $ac_status); }; }; then |
---|
[2701] | 4904 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 4905 | else |
---|
| 4906 | echo "$as_me: failed program was:" >&5 |
---|
| 4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4908 | |
---|
[2701] | 4909 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 4910 | fi |
---|
[2984] | 4911 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[2190] | 4912 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4913 | fi |
---|
[2701] | 4914 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 4915 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 4916 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 4917 | FOUND_GLU=yes |
---|
[2190] | 4918 | fi |
---|
| 4919 | |
---|
[2701] | 4920 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 4921 | LIBS="$LIBS -lGLU" |
---|
| 4922 | else |
---|
| 4923 | echo "------------------" |
---|
| 4924 | echo "GLU library not found." |
---|
| 4925 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4926 | echo "------------------" |
---|
| 4927 | exit -1 |
---|
| 4928 | fi |
---|
[2190] | 4929 | |
---|
[2983] | 4930 | ## checking for SDL |
---|
| 4931 | SDL_VERSION=1.2.7 |
---|
[2190] | 4932 | |
---|
[2983] | 4933 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. |
---|
| 4934 | if test "${with_sdl_prefix+set}" = set; then |
---|
| 4935 | withval="$with_sdl_prefix" |
---|
| 4936 | sdl_prefix="$withval" |
---|
[2190] | 4937 | else |
---|
[2983] | 4938 | sdl_prefix="" |
---|
| 4939 | fi; |
---|
| 4940 | |
---|
| 4941 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. |
---|
| 4942 | if test "${with_sdl_exec_prefix+set}" = set; then |
---|
| 4943 | withval="$with_sdl_exec_prefix" |
---|
| 4944 | sdl_exec_prefix="$withval" |
---|
[2190] | 4945 | else |
---|
[2983] | 4946 | sdl_exec_prefix="" |
---|
| 4947 | fi; |
---|
| 4948 | # Check whether --enable-sdltest or --disable-sdltest was given. |
---|
| 4949 | if test "${enable_sdltest+set}" = set; then |
---|
| 4950 | enableval="$enable_sdltest" |
---|
[2190] | 4951 | |
---|
[2983] | 4952 | else |
---|
| 4953 | enable_sdltest=yes |
---|
| 4954 | fi; |
---|
[2190] | 4955 | |
---|
[2983] | 4956 | if test x$sdl_exec_prefix != x ; then |
---|
| 4957 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
---|
| 4958 | if test x${SDL_CONFIG+set} != xset ; then |
---|
| 4959 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
---|
| 4960 | fi |
---|
[2190] | 4961 | fi |
---|
[2983] | 4962 | if test x$sdl_prefix != x ; then |
---|
| 4963 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
---|
| 4964 | if test x${SDL_CONFIG+set} != xset ; then |
---|
| 4965 | SDL_CONFIG=$sdl_prefix/bin/sdl-config |
---|
| 4966 | fi |
---|
| 4967 | fi |
---|
[2190] | 4968 | |
---|
| 4969 | |
---|
[2983] | 4970 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
---|
| 4971 | # Extract the first word of "sdl-config", so it can be a program name with args. |
---|
| 4972 | set dummy sdl-config; ac_word=$2 |
---|
| 4973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4975 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then |
---|
[2190] | 4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4977 | else |
---|
[2983] | 4978 | case $SDL_CONFIG in |
---|
| 4979 | [\\/]* | ?:[\\/]*) |
---|
| 4980 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
---|
| 4981 | ;; |
---|
| 4982 | *) |
---|
| 4983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4984 | for as_dir in $PATH |
---|
| 4985 | do |
---|
| 4986 | IFS=$as_save_IFS |
---|
| 4987 | test -z "$as_dir" && as_dir=. |
---|
| 4988 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4990 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4992 | break 2 |
---|
| 4993 | fi |
---|
| 4994 | done |
---|
| 4995 | done |
---|
[2190] | 4996 | |
---|
[2983] | 4997 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
---|
| 4998 | ;; |
---|
| 4999 | esac |
---|
[2190] | 5000 | fi |
---|
[2983] | 5001 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
---|
[2190] | 5002 | |
---|
[2983] | 5003 | if test -n "$SDL_CONFIG"; then |
---|
| 5004 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 |
---|
| 5005 | echo "${ECHO_T}$SDL_CONFIG" >&6 |
---|
[2190] | 5006 | else |
---|
[2983] | 5007 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5008 | echo "${ECHO_T}no" >&6 |
---|
[2190] | 5009 | fi |
---|
| 5010 | |
---|
[2983] | 5011 | min_sdl_version=$SDL_VERSION |
---|
| 5012 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 |
---|
| 5013 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 |
---|
| 5014 | no_sdl="" |
---|
| 5015 | if test "$SDL_CONFIG" = "no" ; then |
---|
| 5016 | no_sdl=yes |
---|
| 5017 | else |
---|
| 5018 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` |
---|
| 5019 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` |
---|
[2190] | 5020 | |
---|
[2983] | 5021 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
| 5022 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
| 5023 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
| 5024 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
| 5025 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ |
---|
| 5026 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
| 5027 | if test "x$enable_sdltest" = "xyes" ; then |
---|
| 5028 | ac_save_CFLAGS="$CFLAGS" |
---|
| 5029 | ac_save_LIBS="$LIBS" |
---|
| 5030 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
| 5031 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5032 | rm -f conf.sdltest |
---|
| 5033 | if test "$cross_compiling" = yes; then |
---|
| 5034 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
[2190] | 5035 | else |
---|
[2983] | 5036 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5037 | #line $LINENO "configure" |
---|
[2190] | 5038 | /* confdefs.h. */ |
---|
| 5039 | _ACEOF |
---|
| 5040 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5041 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5042 | /* end confdefs.h. */ |
---|
| 5043 | |
---|
[2983] | 5044 | #include <stdio.h> |
---|
| 5045 | #include <stdlib.h> |
---|
| 5046 | #include <string.h> |
---|
| 5047 | #include "SDL.h" |
---|
[2190] | 5048 | |
---|
[2983] | 5049 | char* |
---|
| 5050 | my_strdup (char *str) |
---|
[2190] | 5051 | { |
---|
[2983] | 5052 | char *new_str; |
---|
[2190] | 5053 | |
---|
[2983] | 5054 | if (str) |
---|
| 5055 | { |
---|
| 5056 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); |
---|
| 5057 | strcpy (new_str, str); |
---|
| 5058 | } |
---|
| 5059 | else |
---|
| 5060 | new_str = NULL; |
---|
[2190] | 5061 | |
---|
[2983] | 5062 | return new_str; |
---|
| 5063 | } |
---|
[2701] | 5064 | |
---|
[2983] | 5065 | int main (int argc, char *argv[]) |
---|
| 5066 | { |
---|
| 5067 | int major, minor, micro; |
---|
| 5068 | char *tmp_version; |
---|
[2701] | 5069 | |
---|
[2983] | 5070 | /* This hangs on some systems (?) |
---|
| 5071 | system ("touch conf.sdltest"); |
---|
| 5072 | */ |
---|
| 5073 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } |
---|
[2190] | 5074 | |
---|
[2983] | 5075 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
| 5076 | tmp_version = my_strdup("$min_sdl_version"); |
---|
| 5077 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
| 5078 | printf("%s, bad version string\n", "$min_sdl_version"); |
---|
| 5079 | exit(1); |
---|
| 5080 | } |
---|
[2190] | 5081 | |
---|
[2983] | 5082 | if (($sdl_major_version > major) || |
---|
| 5083 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || |
---|
| 5084 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) |
---|
| 5085 | { |
---|
| 5086 | return 0; |
---|
| 5087 | } |
---|
| 5088 | else |
---|
| 5089 | { |
---|
| 5090 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); |
---|
| 5091 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); |
---|
| 5092 | printf("*** best to upgrade to the required version.\n"); |
---|
| 5093 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); |
---|
| 5094 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); |
---|
| 5095 | printf("*** config.cache before re-running configure\n"); |
---|
| 5096 | return 1; |
---|
| 5097 | } |
---|
[2190] | 5098 | } |
---|
| 5099 | |
---|
[2701] | 5100 | |
---|
[2190] | 5101 | _ACEOF |
---|
[2983] | 5102 | rm -f conftest$ac_exeext |
---|
[2190] | 5103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2983] | 5104 | (eval $ac_link) 2>&5 |
---|
[2190] | 5105 | ac_status=$? |
---|
| 5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2983] | 5107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[2190] | 5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5109 | (eval $ac_try) 2>&5 |
---|
| 5110 | ac_status=$? |
---|
| 5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5112 | (exit $ac_status); }; }; then |
---|
[2983] | 5113 | : |
---|
[2190] | 5114 | else |
---|
[2983] | 5115 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5116 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5118 | |
---|
[2983] | 5119 | ( exit $ac_status ) |
---|
| 5120 | no_sdl=yes |
---|
[2190] | 5121 | fi |
---|
[2984] | 5122 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[2190] | 5123 | fi |
---|
[2983] | 5124 | CFLAGS="$ac_save_CFLAGS" |
---|
| 5125 | LIBS="$ac_save_LIBS" |
---|
| 5126 | fi |
---|
| 5127 | fi |
---|
| 5128 | if test "x$no_sdl" = x ; then |
---|
| 5129 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5130 | echo "${ECHO_T}yes" >&6 |
---|
| 5131 | : |
---|
| 5132 | else |
---|
| 5133 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5134 | echo "${ECHO_T}no" >&6 |
---|
| 5135 | if test "$SDL_CONFIG" = "no" ; then |
---|
| 5136 | echo "*** The sdl-config script installed by SDL could not be found" |
---|
| 5137 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" |
---|
| 5138 | echo "*** your path, or set the SDL_CONFIG environment variable to the" |
---|
| 5139 | echo "*** full path to sdl-config." |
---|
| 5140 | else |
---|
| 5141 | if test -f conf.sdltest ; then |
---|
| 5142 | : |
---|
| 5143 | else |
---|
| 5144 | echo "*** Could not run SDL test program, checking why..." |
---|
| 5145 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
| 5146 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5147 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5148 | #line $LINENO "configure" |
---|
[2701] | 5149 | /* confdefs.h. */ |
---|
| 5150 | _ACEOF |
---|
| 5151 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5152 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5153 | /* end confdefs.h. */ |
---|
| 5154 | |
---|
[2983] | 5155 | #include <stdio.h> |
---|
| 5156 | #include "SDL.h" |
---|
[2701] | 5157 | |
---|
[2983] | 5158 | int main(int argc, char *argv[]) |
---|
| 5159 | { return 0; } |
---|
| 5160 | #undef main |
---|
| 5161 | #define main K_and_R_C_main |
---|
| 5162 | |
---|
[2701] | 5163 | int |
---|
| 5164 | main () |
---|
| 5165 | { |
---|
[2983] | 5166 | return 0; |
---|
[2701] | 5167 | ; |
---|
| 5168 | return 0; |
---|
| 5169 | } |
---|
| 5170 | _ACEOF |
---|
| 5171 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 5173 | (eval $ac_link) 2>&5 |
---|
[2701] | 5174 | ac_status=$? |
---|
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5176 | (exit $ac_status); } && |
---|
[2984] | 5177 | { ac_try='test -s conftest$ac_exeext' |
---|
[2701] | 5178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5179 | (eval $ac_try) 2>&5 |
---|
| 5180 | ac_status=$? |
---|
| 5181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5182 | (exit $ac_status); }; }; then |
---|
[2983] | 5183 | echo "*** The test program compiled, but did not run. This usually means" |
---|
| 5184 | echo "*** that the run-time linker is not finding SDL or finding the wrong" |
---|
| 5185 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" |
---|
| 5186 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
| 5187 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
| 5188 | echo "*** is required on your system" |
---|
| 5189 | echo "***" |
---|
| 5190 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
| 5191 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
[2701] | 5192 | else |
---|
| 5193 | echo "$as_me: failed program was:" >&5 |
---|
| 5194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5195 | |
---|
[2983] | 5196 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
| 5197 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" |
---|
| 5198 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" |
---|
| 5199 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" |
---|
[2190] | 5200 | fi |
---|
[2984] | 5201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[2983] | 5202 | CFLAGS="$ac_save_CFLAGS" |
---|
| 5203 | LIBS="$ac_save_LIBS" |
---|
| 5204 | fi |
---|
| 5205 | fi |
---|
| 5206 | SDL_CFLAGS="" |
---|
| 5207 | SDL_LIBS="" |
---|
| 5208 | { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 |
---|
| 5209 | echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} |
---|
| 5210 | { (exit 1); exit 1; }; } |
---|
[2190] | 5211 | |
---|
[2983] | 5212 | fi |
---|
[2701] | 5213 | |
---|
| 5214 | |
---|
[2983] | 5215 | rm -f conf.sdltest |
---|
| 5216 | |
---|
| 5217 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5218 | LIBS="$LIBS $SDL_LIBS" |
---|
[2977] | 5219 | ;; |
---|
[2978] | 5220 | |
---|
| 5221 | ### OS X ### |
---|
[2984] | 5222 | *darwin*) |
---|
[2978] | 5223 | echo "OS X detected" |
---|
| 5224 | |
---|
| 5225 | osX="yes" |
---|
| 5226 | |
---|
| 5227 | # checking gl header |
---|
| 5228 | |
---|
| 5229 | for ac_header in OpenGL/gl.h |
---|
| 5230 | do |
---|
| 5231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5233 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5237 | fi |
---|
| 5238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5239 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5240 | else |
---|
| 5241 | # Is the header compilable? |
---|
| 5242 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5245 | #line $LINENO "configure" |
---|
[2978] | 5246 | /* confdefs.h. */ |
---|
| 5247 | _ACEOF |
---|
| 5248 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5249 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5250 | /* end confdefs.h. */ |
---|
| 5251 | $ac_includes_default |
---|
| 5252 | #include <$ac_header> |
---|
| 5253 | _ACEOF |
---|
| 5254 | rm -f conftest.$ac_objext |
---|
| 5255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 5256 | (eval $ac_compile) 2>&5 |
---|
[2978] | 5257 | ac_status=$? |
---|
| 5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5259 | (exit $ac_status); } && |
---|
[2984] | 5260 | { ac_try='test -s conftest.$ac_objext' |
---|
[2978] | 5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5262 | (eval $ac_try) 2>&5 |
---|
| 5263 | ac_status=$? |
---|
| 5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5265 | (exit $ac_status); }; }; then |
---|
| 5266 | ac_header_compiler=yes |
---|
| 5267 | else |
---|
| 5268 | echo "$as_me: failed program was:" >&5 |
---|
| 5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5270 | |
---|
| 5271 | ac_header_compiler=no |
---|
| 5272 | fi |
---|
[2984] | 5273 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[2978] | 5274 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5275 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5276 | |
---|
| 5277 | # Is the header present? |
---|
| 5278 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5279 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5280 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5281 | #line $LINENO "configure" |
---|
[2978] | 5282 | /* confdefs.h. */ |
---|
| 5283 | _ACEOF |
---|
| 5284 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5285 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5286 | /* end confdefs.h. */ |
---|
| 5287 | #include <$ac_header> |
---|
| 5288 | _ACEOF |
---|
| 5289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5291 | ac_status=$? |
---|
| 5292 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5293 | rm -f conftest.er1 |
---|
| 5294 | cat conftest.err >&5 |
---|
| 5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5296 | (exit $ac_status); } >/dev/null; then |
---|
| 5297 | if test -s conftest.err; then |
---|
| 5298 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5299 | else |
---|
| 5300 | ac_cpp_err= |
---|
| 5301 | fi |
---|
| 5302 | else |
---|
| 5303 | ac_cpp_err=yes |
---|
| 5304 | fi |
---|
| 5305 | if test -z "$ac_cpp_err"; then |
---|
| 5306 | ac_header_preproc=yes |
---|
| 5307 | else |
---|
| 5308 | echo "$as_me: failed program was:" >&5 |
---|
| 5309 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5310 | |
---|
| 5311 | ac_header_preproc=no |
---|
| 5312 | fi |
---|
| 5313 | rm -f conftest.err conftest.$ac_ext |
---|
| 5314 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5315 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5316 | |
---|
| 5317 | # So? What about this header? |
---|
[2984] | 5318 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 5319 | yes:no ) |
---|
[2978] | 5320 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5321 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 5322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5323 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5324 | ( |
---|
| 5325 | cat <<\_ASBOX |
---|
| 5326 | ## ------------------------------------ ## |
---|
| 5327 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 5328 | ## ------------------------------------ ## |
---|
| 5329 | _ASBOX |
---|
| 5330 | ) | |
---|
| 5331 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[2978] | 5332 | ;; |
---|
[2984] | 5333 | no:yes ) |
---|
[2978] | 5334 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5335 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 5336 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5337 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[2978] | 5338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5340 | ( |
---|
| 5341 | cat <<\_ASBOX |
---|
[2984] | 5342 | ## ------------------------------------ ## |
---|
| 5343 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 5344 | ## ------------------------------------ ## |
---|
[2978] | 5345 | _ASBOX |
---|
| 5346 | ) | |
---|
| 5347 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5348 | ;; |
---|
| 5349 | esac |
---|
| 5350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5354 | else |
---|
[2984] | 5355 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[2978] | 5356 | fi |
---|
| 5357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5358 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5359 | |
---|
| 5360 | fi |
---|
| 5361 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5362 | cat >>confdefs.h <<_ACEOF |
---|
| 5363 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5364 | _ACEOF |
---|
| 5365 | |
---|
| 5366 | else |
---|
| 5367 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5368 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5369 | { (exit 1); exit 1; }; } |
---|
| 5370 | fi |
---|
| 5371 | |
---|
| 5372 | done |
---|
| 5373 | |
---|
| 5374 | # cheking for GLU-header |
---|
| 5375 | |
---|
| 5376 | for ac_header in OpenGL/glu.h |
---|
| 5377 | do |
---|
| 5378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5384 | fi |
---|
| 5385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5387 | else |
---|
| 5388 | # Is the header compilable? |
---|
| 5389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5391 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5392 | #line $LINENO "configure" |
---|
[2978] | 5393 | /* confdefs.h. */ |
---|
| 5394 | _ACEOF |
---|
| 5395 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5397 | /* end confdefs.h. */ |
---|
| 5398 | $ac_includes_default |
---|
| 5399 | #include <$ac_header> |
---|
| 5400 | _ACEOF |
---|
| 5401 | rm -f conftest.$ac_objext |
---|
| 5402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 5403 | (eval $ac_compile) 2>&5 |
---|
[2978] | 5404 | ac_status=$? |
---|
| 5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5406 | (exit $ac_status); } && |
---|
[2984] | 5407 | { ac_try='test -s conftest.$ac_objext' |
---|
[2978] | 5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5409 | (eval $ac_try) 2>&5 |
---|
| 5410 | ac_status=$? |
---|
| 5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5412 | (exit $ac_status); }; }; then |
---|
| 5413 | ac_header_compiler=yes |
---|
| 5414 | else |
---|
| 5415 | echo "$as_me: failed program was:" >&5 |
---|
| 5416 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5417 | |
---|
| 5418 | ac_header_compiler=no |
---|
| 5419 | fi |
---|
[2984] | 5420 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[2978] | 5421 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5422 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5423 | |
---|
| 5424 | # Is the header present? |
---|
| 5425 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5427 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5428 | #line $LINENO "configure" |
---|
[2978] | 5429 | /* confdefs.h. */ |
---|
| 5430 | _ACEOF |
---|
| 5431 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5433 | /* end confdefs.h. */ |
---|
| 5434 | #include <$ac_header> |
---|
| 5435 | _ACEOF |
---|
| 5436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5438 | ac_status=$? |
---|
| 5439 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5440 | rm -f conftest.er1 |
---|
| 5441 | cat conftest.err >&5 |
---|
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5443 | (exit $ac_status); } >/dev/null; then |
---|
| 5444 | if test -s conftest.err; then |
---|
| 5445 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5446 | else |
---|
| 5447 | ac_cpp_err= |
---|
| 5448 | fi |
---|
| 5449 | else |
---|
| 5450 | ac_cpp_err=yes |
---|
| 5451 | fi |
---|
| 5452 | if test -z "$ac_cpp_err"; then |
---|
| 5453 | ac_header_preproc=yes |
---|
| 5454 | else |
---|
| 5455 | echo "$as_me: failed program was:" >&5 |
---|
| 5456 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5457 | |
---|
| 5458 | ac_header_preproc=no |
---|
| 5459 | fi |
---|
| 5460 | rm -f conftest.err conftest.$ac_ext |
---|
| 5461 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5462 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5463 | |
---|
| 5464 | # So? What about this header? |
---|
[2984] | 5465 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 5466 | yes:no ) |
---|
[2978] | 5467 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5468 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5470 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5471 | ( |
---|
| 5472 | cat <<\_ASBOX |
---|
[2984] | 5473 | ## ------------------------------------ ## |
---|
| 5474 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 5475 | ## ------------------------------------ ## |
---|
[2978] | 5476 | _ASBOX |
---|
| 5477 | ) | |
---|
| 5478 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5479 | ;; |
---|
[2984] | 5480 | no:yes ) |
---|
[2978] | 5481 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5482 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 5483 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5484 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[2978] | 5485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5486 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5487 | ( |
---|
| 5488 | cat <<\_ASBOX |
---|
[2984] | 5489 | ## ------------------------------------ ## |
---|
| 5490 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 5491 | ## ------------------------------------ ## |
---|
[2978] | 5492 | _ASBOX |
---|
| 5493 | ) | |
---|
| 5494 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5495 | ;; |
---|
| 5496 | esac |
---|
| 5497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5501 | else |
---|
[2984] | 5502 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[2978] | 5503 | fi |
---|
| 5504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5506 | |
---|
| 5507 | fi |
---|
| 5508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5509 | cat >>confdefs.h <<_ACEOF |
---|
| 5510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5511 | _ACEOF |
---|
| 5512 | |
---|
| 5513 | else |
---|
[2984] | 5514 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5515 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
[2978] | 5516 | { (exit 1); exit 1; }; } |
---|
| 5517 | fi |
---|
| 5518 | |
---|
| 5519 | done |
---|
| 5520 | |
---|
| 5521 | |
---|
[2984] | 5522 | LIBS="$LIBS -framework OpenGL" |
---|
| 5523 | |
---|
[2983] | 5524 | ## checking for SDL |
---|
| 5525 | SDL_VERSION=1.2.7 |
---|
[2978] | 5526 | |
---|
[2983] | 5527 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. |
---|
| 5528 | if test "${with_sdl_prefix+set}" = set; then |
---|
| 5529 | withval="$with_sdl_prefix" |
---|
| 5530 | sdl_prefix="$withval" |
---|
| 5531 | else |
---|
| 5532 | sdl_prefix="" |
---|
| 5533 | fi; |
---|
| 5534 | |
---|
| 5535 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. |
---|
| 5536 | if test "${with_sdl_exec_prefix+set}" = set; then |
---|
| 5537 | withval="$with_sdl_exec_prefix" |
---|
| 5538 | sdl_exec_prefix="$withval" |
---|
| 5539 | else |
---|
| 5540 | sdl_exec_prefix="" |
---|
| 5541 | fi; |
---|
| 5542 | # Check whether --enable-sdltest or --disable-sdltest was given. |
---|
| 5543 | if test "${enable_sdltest+set}" = set; then |
---|
| 5544 | enableval="$enable_sdltest" |
---|
| 5545 | |
---|
| 5546 | else |
---|
| 5547 | enable_sdltest=yes |
---|
| 5548 | fi; |
---|
| 5549 | |
---|
| 5550 | if test x$sdl_exec_prefix != x ; then |
---|
| 5551 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
---|
| 5552 | if test x${SDL_CONFIG+set} != xset ; then |
---|
| 5553 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
---|
| 5554 | fi |
---|
| 5555 | fi |
---|
| 5556 | if test x$sdl_prefix != x ; then |
---|
| 5557 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
---|
| 5558 | if test x${SDL_CONFIG+set} != xset ; then |
---|
| 5559 | SDL_CONFIG=$sdl_prefix/bin/sdl-config |
---|
| 5560 | fi |
---|
| 5561 | fi |
---|
| 5562 | |
---|
| 5563 | |
---|
| 5564 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
---|
| 5565 | # Extract the first word of "sdl-config", so it can be a program name with args. |
---|
| 5566 | set dummy sdl-config; ac_word=$2 |
---|
| 5567 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 5568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 5569 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then |
---|
| 5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5571 | else |
---|
| 5572 | case $SDL_CONFIG in |
---|
| 5573 | [\\/]* | ?:[\\/]*) |
---|
| 5574 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
---|
[2978] | 5575 | ;; |
---|
[2983] | 5576 | *) |
---|
| 5577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5578 | for as_dir in $PATH |
---|
| 5579 | do |
---|
| 5580 | IFS=$as_save_IFS |
---|
| 5581 | test -z "$as_dir" && as_dir=. |
---|
| 5582 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 5584 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 5585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 5586 | break 2 |
---|
| 5587 | fi |
---|
| 5588 | done |
---|
| 5589 | done |
---|
[2978] | 5590 | |
---|
[2983] | 5591 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
---|
| 5592 | ;; |
---|
| 5593 | esac |
---|
| 5594 | fi |
---|
| 5595 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
---|
| 5596 | |
---|
| 5597 | if test -n "$SDL_CONFIG"; then |
---|
| 5598 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 |
---|
| 5599 | echo "${ECHO_T}$SDL_CONFIG" >&6 |
---|
| 5600 | else |
---|
| 5601 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5602 | echo "${ECHO_T}no" >&6 |
---|
| 5603 | fi |
---|
| 5604 | |
---|
| 5605 | min_sdl_version=$SDL_VERSION |
---|
| 5606 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 |
---|
| 5607 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 |
---|
| 5608 | no_sdl="" |
---|
| 5609 | if test "$SDL_CONFIG" = "no" ; then |
---|
| 5610 | no_sdl=yes |
---|
| 5611 | else |
---|
| 5612 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` |
---|
| 5613 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` |
---|
| 5614 | |
---|
| 5615 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
| 5616 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
| 5617 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
| 5618 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
| 5619 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ |
---|
| 5620 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
| 5621 | if test "x$enable_sdltest" = "xyes" ; then |
---|
| 5622 | ac_save_CFLAGS="$CFLAGS" |
---|
| 5623 | ac_save_LIBS="$LIBS" |
---|
| 5624 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
| 5625 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5626 | rm -f conf.sdltest |
---|
| 5627 | if test "$cross_compiling" = yes; then |
---|
| 5628 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
| 5629 | else |
---|
| 5630 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5631 | #line $LINENO "configure" |
---|
[2983] | 5632 | /* confdefs.h. */ |
---|
| 5633 | _ACEOF |
---|
| 5634 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5636 | /* end confdefs.h. */ |
---|
| 5637 | |
---|
| 5638 | #include <stdio.h> |
---|
| 5639 | #include <stdlib.h> |
---|
| 5640 | #include <string.h> |
---|
| 5641 | #include "SDL.h" |
---|
| 5642 | |
---|
| 5643 | char* |
---|
| 5644 | my_strdup (char *str) |
---|
| 5645 | { |
---|
| 5646 | char *new_str; |
---|
| 5647 | |
---|
| 5648 | if (str) |
---|
| 5649 | { |
---|
| 5650 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); |
---|
| 5651 | strcpy (new_str, str); |
---|
| 5652 | } |
---|
| 5653 | else |
---|
| 5654 | new_str = NULL; |
---|
| 5655 | |
---|
| 5656 | return new_str; |
---|
| 5657 | } |
---|
| 5658 | |
---|
| 5659 | int main (int argc, char *argv[]) |
---|
| 5660 | { |
---|
| 5661 | int major, minor, micro; |
---|
| 5662 | char *tmp_version; |
---|
| 5663 | |
---|
| 5664 | /* This hangs on some systems (?) |
---|
| 5665 | system ("touch conf.sdltest"); |
---|
| 5666 | */ |
---|
| 5667 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } |
---|
| 5668 | |
---|
| 5669 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
| 5670 | tmp_version = my_strdup("$min_sdl_version"); |
---|
| 5671 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
| 5672 | printf("%s, bad version string\n", "$min_sdl_version"); |
---|
| 5673 | exit(1); |
---|
| 5674 | } |
---|
| 5675 | |
---|
| 5676 | if (($sdl_major_version > major) || |
---|
| 5677 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || |
---|
| 5678 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) |
---|
| 5679 | { |
---|
| 5680 | return 0; |
---|
| 5681 | } |
---|
| 5682 | else |
---|
| 5683 | { |
---|
| 5684 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); |
---|
| 5685 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); |
---|
| 5686 | printf("*** best to upgrade to the required version.\n"); |
---|
| 5687 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); |
---|
| 5688 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); |
---|
| 5689 | printf("*** config.cache before re-running configure\n"); |
---|
| 5690 | return 1; |
---|
| 5691 | } |
---|
| 5692 | } |
---|
| 5693 | |
---|
| 5694 | |
---|
| 5695 | _ACEOF |
---|
| 5696 | rm -f conftest$ac_exeext |
---|
| 5697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5698 | (eval $ac_link) 2>&5 |
---|
| 5699 | ac_status=$? |
---|
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5703 | (eval $ac_try) 2>&5 |
---|
| 5704 | ac_status=$? |
---|
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5706 | (exit $ac_status); }; }; then |
---|
| 5707 | : |
---|
| 5708 | else |
---|
| 5709 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5710 | echo "$as_me: failed program was:" >&5 |
---|
| 5711 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5712 | |
---|
| 5713 | ( exit $ac_status ) |
---|
| 5714 | no_sdl=yes |
---|
| 5715 | fi |
---|
[2984] | 5716 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[2983] | 5717 | fi |
---|
| 5718 | CFLAGS="$ac_save_CFLAGS" |
---|
| 5719 | LIBS="$ac_save_LIBS" |
---|
| 5720 | fi |
---|
| 5721 | fi |
---|
| 5722 | if test "x$no_sdl" = x ; then |
---|
| 5723 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5724 | echo "${ECHO_T}yes" >&6 |
---|
| 5725 | : |
---|
| 5726 | else |
---|
| 5727 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5728 | echo "${ECHO_T}no" >&6 |
---|
| 5729 | if test "$SDL_CONFIG" = "no" ; then |
---|
| 5730 | echo "*** The sdl-config script installed by SDL could not be found" |
---|
| 5731 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" |
---|
| 5732 | echo "*** your path, or set the SDL_CONFIG environment variable to the" |
---|
| 5733 | echo "*** full path to sdl-config." |
---|
| 5734 | else |
---|
| 5735 | if test -f conf.sdltest ; then |
---|
| 5736 | : |
---|
| 5737 | else |
---|
| 5738 | echo "*** Could not run SDL test program, checking why..." |
---|
| 5739 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
| 5740 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5741 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5742 | #line $LINENO "configure" |
---|
[2983] | 5743 | /* confdefs.h. */ |
---|
| 5744 | _ACEOF |
---|
| 5745 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5746 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5747 | /* end confdefs.h. */ |
---|
| 5748 | |
---|
| 5749 | #include <stdio.h> |
---|
| 5750 | #include "SDL.h" |
---|
| 5751 | |
---|
| 5752 | int main(int argc, char *argv[]) |
---|
| 5753 | { return 0; } |
---|
| 5754 | #undef main |
---|
| 5755 | #define main K_and_R_C_main |
---|
| 5756 | |
---|
| 5757 | int |
---|
| 5758 | main () |
---|
| 5759 | { |
---|
| 5760 | return 0; |
---|
| 5761 | ; |
---|
| 5762 | return 0; |
---|
| 5763 | } |
---|
| 5764 | _ACEOF |
---|
| 5765 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 5767 | (eval $ac_link) 2>&5 |
---|
[2983] | 5768 | ac_status=$? |
---|
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5770 | (exit $ac_status); } && |
---|
[2984] | 5771 | { ac_try='test -s conftest$ac_exeext' |
---|
[2983] | 5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5773 | (eval $ac_try) 2>&5 |
---|
| 5774 | ac_status=$? |
---|
| 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5776 | (exit $ac_status); }; }; then |
---|
| 5777 | echo "*** The test program compiled, but did not run. This usually means" |
---|
| 5778 | echo "*** that the run-time linker is not finding SDL or finding the wrong" |
---|
| 5779 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" |
---|
| 5780 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
| 5781 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
| 5782 | echo "*** is required on your system" |
---|
| 5783 | echo "***" |
---|
| 5784 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
| 5785 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
| 5786 | else |
---|
| 5787 | echo "$as_me: failed program was:" >&5 |
---|
| 5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5789 | |
---|
| 5790 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
| 5791 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" |
---|
| 5792 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" |
---|
| 5793 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" |
---|
| 5794 | fi |
---|
[2984] | 5795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[2983] | 5796 | CFLAGS="$ac_save_CFLAGS" |
---|
| 5797 | LIBS="$ac_save_LIBS" |
---|
| 5798 | fi |
---|
| 5799 | fi |
---|
| 5800 | SDL_CFLAGS="" |
---|
| 5801 | SDL_LIBS="" |
---|
| 5802 | { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 |
---|
| 5803 | echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} |
---|
| 5804 | { (exit 1); exit 1; }; } |
---|
| 5805 | |
---|
| 5806 | fi |
---|
| 5807 | |
---|
| 5808 | |
---|
| 5809 | rm -f conf.sdltest |
---|
| 5810 | |
---|
| 5811 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5812 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5813 | ;; |
---|
| 5814 | |
---|
[2977] | 5815 | *) |
---|
| 5816 | mingw="no" |
---|
| 5817 | ;; |
---|
| 5818 | esac |
---|
[2701] | 5819 | |
---|
| 5820 | |
---|
[2977] | 5821 | |
---|
| 5822 | |
---|
| 5823 | |
---|
[2983] | 5824 | |
---|
| 5825 | ## checking for GTK |
---|
| 5826 | |
---|
[2985] | 5827 | succeeded=no |
---|
[2983] | 5828 | |
---|
[2985] | 5829 | if test -z "$PKG_CONFIG"; then |
---|
| 5830 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
| 5831 | set dummy pkg-config; ac_word=$2 |
---|
| 5832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 5833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 5834 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
| 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5836 | else |
---|
| 5837 | case $PKG_CONFIG in |
---|
| 5838 | [\\/]* | ?:[\\/]*) |
---|
| 5839 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
| 5840 | ;; |
---|
| 5841 | *) |
---|
| 5842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5843 | for as_dir in $PATH |
---|
| 5844 | do |
---|
| 5845 | IFS=$as_save_IFS |
---|
| 5846 | test -z "$as_dir" && as_dir=. |
---|
| 5847 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 5849 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 5850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 5851 | break 2 |
---|
| 5852 | fi |
---|
| 5853 | done |
---|
| 5854 | done |
---|
[2983] | 5855 | |
---|
[2985] | 5856 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
---|
| 5857 | ;; |
---|
| 5858 | esac |
---|
| 5859 | fi |
---|
| 5860 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
[2983] | 5861 | |
---|
[2985] | 5862 | if test -n "$PKG_CONFIG"; then |
---|
| 5863 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
| 5864 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
| 5865 | else |
---|
| 5866 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5867 | echo "${ECHO_T}no" >&6 |
---|
| 5868 | fi |
---|
| 5869 | |
---|
| 5870 | fi |
---|
| 5871 | |
---|
| 5872 | if test "$PKG_CONFIG" = "no" ; then |
---|
| 5873 | echo "*** The pkg-config script could not be found. Make sure it is" |
---|
| 5874 | echo "*** in your path, or set the PKG_CONFIG environment variable" |
---|
| 5875 | echo "*** to the full path to pkg-config." |
---|
| 5876 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
---|
| 5877 | else |
---|
| 5878 | PKG_CONFIG_MIN_VERSION=0.9.0 |
---|
| 5879 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
---|
| 5880 | echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" >&5 |
---|
| 5881 | echo $ECHO_N "checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3... $ECHO_C" >&6 |
---|
| 5882 | |
---|
| 5883 | if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" ; then |
---|
| 5884 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5885 | echo "${ECHO_T}yes" >&6 |
---|
| 5886 | succeeded=yes |
---|
| 5887 | |
---|
| 5888 | echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5 |
---|
| 5889 | echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6 |
---|
| 5890 | GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` |
---|
| 5891 | echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5 |
---|
| 5892 | echo "${ECHO_T}$GTK2_CFLAGS" >&6 |
---|
| 5893 | |
---|
| 5894 | echo "$as_me:$LINENO: checking GTK2_LIBS" >&5 |
---|
| 5895 | echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6 |
---|
| 5896 | GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` |
---|
| 5897 | echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5 |
---|
| 5898 | echo "${ECHO_T}$GTK2_LIBS" >&6 |
---|
| 5899 | else |
---|
| 5900 | GTK2_CFLAGS="" |
---|
| 5901 | GTK2_LIBS="" |
---|
| 5902 | ## If we have a custom action on failure, don't print errors, but |
---|
| 5903 | ## do set a variable so people can do so. |
---|
| 5904 | GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` |
---|
| 5905 | |
---|
| 5906 | fi |
---|
| 5907 | |
---|
| 5908 | |
---|
| 5909 | |
---|
| 5910 | else |
---|
| 5911 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
---|
| 5912 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
---|
| 5913 | fi |
---|
| 5914 | fi |
---|
| 5915 | |
---|
| 5916 | if test $succeeded = yes; then |
---|
| 5917 | have_gtk2=yes |
---|
| 5918 | else |
---|
| 5919 | have_gtk2=no |
---|
| 5920 | fi |
---|
| 5921 | |
---|
| 5922 | |
---|
| 5923 | |
---|
| 5924 | |
---|
| 5925 | |
---|
[2983] | 5926 | if test "x$have_gtk2" = xyes; then |
---|
| 5927 | HAVE_GTK2_TRUE= |
---|
| 5928 | HAVE_GTK2_FALSE='#' |
---|
| 5929 | else |
---|
| 5930 | HAVE_GTK2_TRUE='#' |
---|
| 5931 | HAVE_GTK2_FALSE= |
---|
| 5932 | fi |
---|
| 5933 | |
---|
| 5934 | |
---|
| 5935 | |
---|
[2190] | 5936 | #checking for pthread libs |
---|
[2977] | 5937 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
[2190] | 5938 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 5939 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5941 | else |
---|
| 5942 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5943 | LIBS="-lpthread $LIBS" |
---|
| 5944 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 5945 | #line $LINENO "configure" |
---|
[2190] | 5946 | /* confdefs.h. */ |
---|
| 5947 | _ACEOF |
---|
| 5948 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5949 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5950 | /* end confdefs.h. */ |
---|
| 5951 | |
---|
| 5952 | |
---|
| 5953 | int |
---|
| 5954 | main () |
---|
| 5955 | { |
---|
| 5956 | main (); |
---|
| 5957 | ; |
---|
| 5958 | return 0; |
---|
| 5959 | } |
---|
| 5960 | _ACEOF |
---|
| 5961 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 5963 | (eval $ac_link) 2>&5 |
---|
[2190] | 5964 | ac_status=$? |
---|
| 5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5966 | (exit $ac_status); } && |
---|
[2984] | 5967 | { ac_try='test -s conftest$ac_exeext' |
---|
[2190] | 5968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5969 | (eval $ac_try) 2>&5 |
---|
| 5970 | ac_status=$? |
---|
| 5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5972 | (exit $ac_status); }; }; then |
---|
| 5973 | ac_cv_lib_pthread_main=yes |
---|
| 5974 | else |
---|
| 5975 | echo "$as_me: failed program was:" >&5 |
---|
| 5976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5977 | |
---|
| 5978 | ac_cv_lib_pthread_main=no |
---|
| 5979 | fi |
---|
[2984] | 5980 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[2190] | 5981 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5982 | fi |
---|
| 5983 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 5984 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 5985 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 5986 | FOUND_pthread=yes |
---|
| 5987 | fi |
---|
| 5988 | |
---|
[2977] | 5989 | if test "$FOUND_pthread" = "yes" ; then |
---|
[2190] | 5990 | LIBS="$LIBS -lpthread" |
---|
[2977] | 5991 | fi |
---|
[2190] | 5992 | |
---|
| 5993 | |
---|
[1956] | 5994 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 5995 | |
---|
| 5996 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 5997 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 5998 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 5999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6000 | else |
---|
| 6001 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6002 | LIBS="-lm $LIBS" |
---|
| 6003 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6004 | #line $LINENO "configure" |
---|
[1956] | 6005 | /* confdefs.h. */ |
---|
| 6006 | _ACEOF |
---|
| 6007 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6008 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6009 | /* end confdefs.h. */ |
---|
| 6010 | |
---|
| 6011 | |
---|
| 6012 | int |
---|
| 6013 | main () |
---|
| 6014 | { |
---|
| 6015 | main (); |
---|
| 6016 | ; |
---|
| 6017 | return 0; |
---|
| 6018 | } |
---|
| 6019 | _ACEOF |
---|
| 6020 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 6022 | (eval $ac_link) 2>&5 |
---|
[1956] | 6023 | ac_status=$? |
---|
| 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6025 | (exit $ac_status); } && |
---|
[2984] | 6026 | { ac_try='test -s conftest$ac_exeext' |
---|
[1956] | 6027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6028 | (eval $ac_try) 2>&5 |
---|
| 6029 | ac_status=$? |
---|
| 6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6031 | (exit $ac_status); }; }; then |
---|
| 6032 | ac_cv_lib_m_main=yes |
---|
| 6033 | else |
---|
| 6034 | echo "$as_me: failed program was:" >&5 |
---|
| 6035 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6036 | |
---|
| 6037 | ac_cv_lib_m_main=no |
---|
| 6038 | fi |
---|
[2984] | 6039 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1956] | 6040 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6041 | fi |
---|
| 6042 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 6043 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 6044 | if test $ac_cv_lib_m_main = yes; then |
---|
| 6045 | cat >>confdefs.h <<_ACEOF |
---|
| 6046 | #define HAVE_LIBM 1 |
---|
| 6047 | _ACEOF |
---|
| 6048 | |
---|
| 6049 | LIBS="-lm $LIBS" |
---|
| 6050 | |
---|
| 6051 | fi |
---|
| 6052 | |
---|
| 6053 | |
---|
[2018] | 6054 | |
---|
[1956] | 6055 | # Checks for header files. |
---|
| 6056 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 6057 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 6058 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 6059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6060 | else |
---|
| 6061 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6062 | #line $LINENO "configure" |
---|
[1956] | 6063 | /* confdefs.h. */ |
---|
| 6064 | _ACEOF |
---|
| 6065 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6066 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6067 | /* end confdefs.h. */ |
---|
| 6068 | #include <stdlib.h> |
---|
| 6069 | #include <stdarg.h> |
---|
| 6070 | #include <string.h> |
---|
| 6071 | #include <float.h> |
---|
| 6072 | |
---|
| 6073 | int |
---|
| 6074 | main () |
---|
| 6075 | { |
---|
| 6076 | |
---|
| 6077 | ; |
---|
| 6078 | return 0; |
---|
| 6079 | } |
---|
| 6080 | _ACEOF |
---|
| 6081 | rm -f conftest.$ac_objext |
---|
| 6082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 6083 | (eval $ac_compile) 2>&5 |
---|
[1956] | 6084 | ac_status=$? |
---|
| 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6086 | (exit $ac_status); } && |
---|
[2984] | 6087 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 6088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6089 | (eval $ac_try) 2>&5 |
---|
| 6090 | ac_status=$? |
---|
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6092 | (exit $ac_status); }; }; then |
---|
| 6093 | ac_cv_header_stdc=yes |
---|
| 6094 | else |
---|
| 6095 | echo "$as_me: failed program was:" >&5 |
---|
| 6096 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6097 | |
---|
| 6098 | ac_cv_header_stdc=no |
---|
| 6099 | fi |
---|
[2984] | 6100 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6101 | |
---|
| 6102 | if test $ac_cv_header_stdc = yes; then |
---|
| 6103 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 6104 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6105 | #line $LINENO "configure" |
---|
[1956] | 6106 | /* confdefs.h. */ |
---|
| 6107 | _ACEOF |
---|
| 6108 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6110 | /* end confdefs.h. */ |
---|
| 6111 | #include <string.h> |
---|
| 6112 | |
---|
| 6113 | _ACEOF |
---|
| 6114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6115 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 6116 | : |
---|
| 6117 | else |
---|
| 6118 | ac_cv_header_stdc=no |
---|
| 6119 | fi |
---|
| 6120 | rm -f conftest* |
---|
| 6121 | |
---|
| 6122 | fi |
---|
| 6123 | |
---|
| 6124 | if test $ac_cv_header_stdc = yes; then |
---|
| 6125 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 6126 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6127 | #line $LINENO "configure" |
---|
[1956] | 6128 | /* confdefs.h. */ |
---|
| 6129 | _ACEOF |
---|
| 6130 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6132 | /* end confdefs.h. */ |
---|
| 6133 | #include <stdlib.h> |
---|
| 6134 | |
---|
| 6135 | _ACEOF |
---|
| 6136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6137 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 6138 | : |
---|
| 6139 | else |
---|
| 6140 | ac_cv_header_stdc=no |
---|
| 6141 | fi |
---|
| 6142 | rm -f conftest* |
---|
| 6143 | |
---|
| 6144 | fi |
---|
| 6145 | |
---|
| 6146 | if test $ac_cv_header_stdc = yes; then |
---|
| 6147 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 6148 | if test "$cross_compiling" = yes; then |
---|
| 6149 | : |
---|
| 6150 | else |
---|
| 6151 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6152 | #line $LINENO "configure" |
---|
[1956] | 6153 | /* confdefs.h. */ |
---|
| 6154 | _ACEOF |
---|
| 6155 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6156 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6157 | /* end confdefs.h. */ |
---|
| 6158 | #include <ctype.h> |
---|
| 6159 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 6160 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 6161 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 6162 | #else |
---|
| 6163 | # define ISLOWER(c) \ |
---|
[2984] | 6164 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 6165 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 6166 | || ('s' <= (c) && (c) <= 'z')) |
---|
[1956] | 6167 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 6168 | #endif |
---|
| 6169 | |
---|
| 6170 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 6171 | int |
---|
| 6172 | main () |
---|
| 6173 | { |
---|
| 6174 | int i; |
---|
| 6175 | for (i = 0; i < 256; i++) |
---|
| 6176 | if (XOR (islower (i), ISLOWER (i)) |
---|
[2984] | 6177 | || toupper (i) != TOUPPER (i)) |
---|
[1956] | 6178 | exit(2); |
---|
| 6179 | exit (0); |
---|
| 6180 | } |
---|
| 6181 | _ACEOF |
---|
| 6182 | rm -f conftest$ac_exeext |
---|
| 6183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6184 | (eval $ac_link) 2>&5 |
---|
| 6185 | ac_status=$? |
---|
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6187 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6189 | (eval $ac_try) 2>&5 |
---|
| 6190 | ac_status=$? |
---|
| 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6192 | (exit $ac_status); }; }; then |
---|
| 6193 | : |
---|
| 6194 | else |
---|
| 6195 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6196 | echo "$as_me: failed program was:" >&5 |
---|
| 6197 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6198 | |
---|
| 6199 | ( exit $ac_status ) |
---|
| 6200 | ac_cv_header_stdc=no |
---|
| 6201 | fi |
---|
[2984] | 6202 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6203 | fi |
---|
| 6204 | fi |
---|
| 6205 | fi |
---|
| 6206 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 6207 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 6208 | if test $ac_cv_header_stdc = yes; then |
---|
| 6209 | |
---|
| 6210 | cat >>confdefs.h <<\_ACEOF |
---|
| 6211 | #define STDC_HEADERS 1 |
---|
| 6212 | _ACEOF |
---|
| 6213 | |
---|
| 6214 | fi |
---|
| 6215 | |
---|
| 6216 | |
---|
| 6217 | |
---|
| 6218 | for ac_header in stdlib.h string.h |
---|
| 6219 | do |
---|
| 6220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6226 | fi |
---|
| 6227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6229 | else |
---|
| 6230 | # Is the header compilable? |
---|
| 6231 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6233 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6234 | #line $LINENO "configure" |
---|
[1956] | 6235 | /* confdefs.h. */ |
---|
| 6236 | _ACEOF |
---|
| 6237 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6238 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6239 | /* end confdefs.h. */ |
---|
| 6240 | $ac_includes_default |
---|
| 6241 | #include <$ac_header> |
---|
| 6242 | _ACEOF |
---|
| 6243 | rm -f conftest.$ac_objext |
---|
| 6244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 6245 | (eval $ac_compile) 2>&5 |
---|
[1956] | 6246 | ac_status=$? |
---|
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6248 | (exit $ac_status); } && |
---|
[2984] | 6249 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 6250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6251 | (eval $ac_try) 2>&5 |
---|
| 6252 | ac_status=$? |
---|
| 6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6254 | (exit $ac_status); }; }; then |
---|
| 6255 | ac_header_compiler=yes |
---|
| 6256 | else |
---|
| 6257 | echo "$as_me: failed program was:" >&5 |
---|
| 6258 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6259 | |
---|
| 6260 | ac_header_compiler=no |
---|
| 6261 | fi |
---|
[2984] | 6262 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6263 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6264 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6265 | |
---|
| 6266 | # Is the header present? |
---|
| 6267 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6268 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6269 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6270 | #line $LINENO "configure" |
---|
[1956] | 6271 | /* confdefs.h. */ |
---|
| 6272 | _ACEOF |
---|
| 6273 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6274 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6275 | /* end confdefs.h. */ |
---|
| 6276 | #include <$ac_header> |
---|
| 6277 | _ACEOF |
---|
| 6278 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6279 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6280 | ac_status=$? |
---|
| 6281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6282 | rm -f conftest.er1 |
---|
| 6283 | cat conftest.err >&5 |
---|
| 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6285 | (exit $ac_status); } >/dev/null; then |
---|
| 6286 | if test -s conftest.err; then |
---|
| 6287 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6288 | else |
---|
| 6289 | ac_cpp_err= |
---|
| 6290 | fi |
---|
| 6291 | else |
---|
| 6292 | ac_cpp_err=yes |
---|
| 6293 | fi |
---|
| 6294 | if test -z "$ac_cpp_err"; then |
---|
| 6295 | ac_header_preproc=yes |
---|
| 6296 | else |
---|
| 6297 | echo "$as_me: failed program was:" >&5 |
---|
| 6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6299 | |
---|
| 6300 | ac_header_preproc=no |
---|
| 6301 | fi |
---|
| 6302 | rm -f conftest.err conftest.$ac_ext |
---|
| 6303 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6304 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6305 | |
---|
| 6306 | # So? What about this header? |
---|
[2984] | 6307 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 6308 | yes:no ) |
---|
[1956] | 6309 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6310 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 6311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6312 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6313 | ( |
---|
| 6314 | cat <<\_ASBOX |
---|
| 6315 | ## ------------------------------------ ## |
---|
| 6316 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 6317 | ## ------------------------------------ ## |
---|
| 6318 | _ASBOX |
---|
| 6319 | ) | |
---|
| 6320 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[1956] | 6321 | ;; |
---|
[2984] | 6322 | no:yes ) |
---|
[1956] | 6323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[1956] | 6327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6328 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6329 | ( |
---|
| 6330 | cat <<\_ASBOX |
---|
[2984] | 6331 | ## ------------------------------------ ## |
---|
| 6332 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 6333 | ## ------------------------------------ ## |
---|
[1956] | 6334 | _ASBOX |
---|
| 6335 | ) | |
---|
| 6336 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6337 | ;; |
---|
| 6338 | esac |
---|
| 6339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6343 | else |
---|
[2984] | 6344 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[1956] | 6345 | fi |
---|
| 6346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6348 | |
---|
| 6349 | fi |
---|
| 6350 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6351 | cat >>confdefs.h <<_ACEOF |
---|
| 6352 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6353 | _ACEOF |
---|
| 6354 | |
---|
| 6355 | fi |
---|
| 6356 | |
---|
| 6357 | done |
---|
| 6358 | |
---|
| 6359 | |
---|
| 6360 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 6361 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 6362 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 6363 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 6364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6365 | else |
---|
| 6366 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6367 | #line $LINENO "configure" |
---|
[1956] | 6368 | /* confdefs.h. */ |
---|
| 6369 | _ACEOF |
---|
| 6370 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6371 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6372 | /* end confdefs.h. */ |
---|
| 6373 | |
---|
| 6374 | #include <stdbool.h> |
---|
| 6375 | #ifndef bool |
---|
| 6376 | # error bool is not defined |
---|
| 6377 | #endif |
---|
| 6378 | #ifndef false |
---|
| 6379 | # error false is not defined |
---|
| 6380 | #endif |
---|
| 6381 | #if false |
---|
| 6382 | # error false is not 0 |
---|
| 6383 | #endif |
---|
| 6384 | #ifndef true |
---|
| 6385 | # error true is not defined |
---|
| 6386 | #endif |
---|
| 6387 | #if true != 1 |
---|
| 6388 | # error true is not 1 |
---|
| 6389 | #endif |
---|
| 6390 | #ifndef __bool_true_false_are_defined |
---|
| 6391 | # error __bool_true_false_are_defined is not defined |
---|
| 6392 | #endif |
---|
| 6393 | |
---|
[2984] | 6394 | struct s { _Bool s: 1; _Bool t; } s; |
---|
[1956] | 6395 | |
---|
[2984] | 6396 | char a[true == 1 ? 1 : -1]; |
---|
| 6397 | char b[false == 0 ? 1 : -1]; |
---|
| 6398 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 6399 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 6400 | bool e = &s; |
---|
| 6401 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 6402 | char g[true]; |
---|
| 6403 | char h[sizeof (_Bool)]; |
---|
| 6404 | char i[sizeof s.t]; |
---|
[1956] | 6405 | |
---|
| 6406 | int |
---|
| 6407 | main () |
---|
| 6408 | { |
---|
| 6409 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 6410 | ; |
---|
| 6411 | return 0; |
---|
| 6412 | } |
---|
| 6413 | _ACEOF |
---|
| 6414 | rm -f conftest.$ac_objext |
---|
| 6415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 6416 | (eval $ac_compile) 2>&5 |
---|
[1956] | 6417 | ac_status=$? |
---|
| 6418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6419 | (exit $ac_status); } && |
---|
[2984] | 6420 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 6421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6422 | (eval $ac_try) 2>&5 |
---|
| 6423 | ac_status=$? |
---|
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6425 | (exit $ac_status); }; }; then |
---|
| 6426 | ac_cv_header_stdbool_h=yes |
---|
| 6427 | else |
---|
| 6428 | echo "$as_me: failed program was:" >&5 |
---|
| 6429 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6430 | |
---|
| 6431 | ac_cv_header_stdbool_h=no |
---|
| 6432 | fi |
---|
[2984] | 6433 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6434 | fi |
---|
| 6435 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 6436 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 6437 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 6438 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 6439 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 6440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6441 | else |
---|
| 6442 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6443 | #line $LINENO "configure" |
---|
[1956] | 6444 | /* confdefs.h. */ |
---|
| 6445 | _ACEOF |
---|
| 6446 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6447 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6448 | /* end confdefs.h. */ |
---|
| 6449 | $ac_includes_default |
---|
| 6450 | int |
---|
| 6451 | main () |
---|
| 6452 | { |
---|
| 6453 | if ((_Bool *) 0) |
---|
| 6454 | return 0; |
---|
| 6455 | if (sizeof (_Bool)) |
---|
| 6456 | return 0; |
---|
| 6457 | ; |
---|
| 6458 | return 0; |
---|
| 6459 | } |
---|
| 6460 | _ACEOF |
---|
| 6461 | rm -f conftest.$ac_objext |
---|
| 6462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 6463 | (eval $ac_compile) 2>&5 |
---|
[1956] | 6464 | ac_status=$? |
---|
| 6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6466 | (exit $ac_status); } && |
---|
[2984] | 6467 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 6468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6469 | (eval $ac_try) 2>&5 |
---|
| 6470 | ac_status=$? |
---|
| 6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6472 | (exit $ac_status); }; }; then |
---|
| 6473 | ac_cv_type__Bool=yes |
---|
| 6474 | else |
---|
| 6475 | echo "$as_me: failed program was:" >&5 |
---|
| 6476 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6477 | |
---|
| 6478 | ac_cv_type__Bool=no |
---|
| 6479 | fi |
---|
[2984] | 6480 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6481 | fi |
---|
| 6482 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 6483 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 6484 | if test $ac_cv_type__Bool = yes; then |
---|
| 6485 | |
---|
| 6486 | cat >>confdefs.h <<_ACEOF |
---|
| 6487 | #define HAVE__BOOL 1 |
---|
| 6488 | _ACEOF |
---|
| 6489 | |
---|
| 6490 | |
---|
| 6491 | fi |
---|
| 6492 | |
---|
| 6493 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 6494 | |
---|
| 6495 | cat >>confdefs.h <<\_ACEOF |
---|
| 6496 | #define HAVE_STDBOOL_H 1 |
---|
| 6497 | _ACEOF |
---|
| 6498 | |
---|
| 6499 | fi |
---|
| 6500 | |
---|
| 6501 | |
---|
| 6502 | # Checks for library functions. |
---|
| 6503 | |
---|
| 6504 | for ac_header in stdlib.h |
---|
| 6505 | do |
---|
| 6506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6512 | fi |
---|
| 6513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6515 | else |
---|
| 6516 | # Is the header compilable? |
---|
| 6517 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6519 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6520 | #line $LINENO "configure" |
---|
[1956] | 6521 | /* confdefs.h. */ |
---|
| 6522 | _ACEOF |
---|
| 6523 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6524 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6525 | /* end confdefs.h. */ |
---|
| 6526 | $ac_includes_default |
---|
| 6527 | #include <$ac_header> |
---|
| 6528 | _ACEOF |
---|
| 6529 | rm -f conftest.$ac_objext |
---|
| 6530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
[2984] | 6531 | (eval $ac_compile) 2>&5 |
---|
[1956] | 6532 | ac_status=$? |
---|
| 6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6534 | (exit $ac_status); } && |
---|
[2984] | 6535 | { ac_try='test -s conftest.$ac_objext' |
---|
[1956] | 6536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6537 | (eval $ac_try) 2>&5 |
---|
| 6538 | ac_status=$? |
---|
| 6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6540 | (exit $ac_status); }; }; then |
---|
| 6541 | ac_header_compiler=yes |
---|
| 6542 | else |
---|
| 6543 | echo "$as_me: failed program was:" >&5 |
---|
| 6544 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6545 | |
---|
| 6546 | ac_header_compiler=no |
---|
| 6547 | fi |
---|
[2984] | 6548 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6550 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6551 | |
---|
| 6552 | # Is the header present? |
---|
| 6553 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6554 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6555 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6556 | #line $LINENO "configure" |
---|
[1956] | 6557 | /* confdefs.h. */ |
---|
| 6558 | _ACEOF |
---|
| 6559 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6560 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6561 | /* end confdefs.h. */ |
---|
| 6562 | #include <$ac_header> |
---|
| 6563 | _ACEOF |
---|
| 6564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6566 | ac_status=$? |
---|
| 6567 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6568 | rm -f conftest.er1 |
---|
| 6569 | cat conftest.err >&5 |
---|
| 6570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6571 | (exit $ac_status); } >/dev/null; then |
---|
| 6572 | if test -s conftest.err; then |
---|
| 6573 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6574 | else |
---|
| 6575 | ac_cpp_err= |
---|
| 6576 | fi |
---|
| 6577 | else |
---|
| 6578 | ac_cpp_err=yes |
---|
| 6579 | fi |
---|
| 6580 | if test -z "$ac_cpp_err"; then |
---|
| 6581 | ac_header_preproc=yes |
---|
| 6582 | else |
---|
| 6583 | echo "$as_me: failed program was:" >&5 |
---|
| 6584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6585 | |
---|
| 6586 | ac_header_preproc=no |
---|
| 6587 | fi |
---|
| 6588 | rm -f conftest.err conftest.$ac_ext |
---|
| 6589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6590 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6591 | |
---|
| 6592 | # So? What about this header? |
---|
[2984] | 6593 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 6594 | yes:no ) |
---|
[1956] | 6595 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6596 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
[2984] | 6597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6598 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6599 | ( |
---|
| 6600 | cat <<\_ASBOX |
---|
| 6601 | ## ------------------------------------ ## |
---|
| 6602 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 6603 | ## ------------------------------------ ## |
---|
| 6604 | _ASBOX |
---|
| 6605 | ) | |
---|
| 6606 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
[1956] | 6607 | ;; |
---|
[2984] | 6608 | no:yes ) |
---|
[1956] | 6609 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6610 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
[2984] | 6611 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6612 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
[1956] | 6613 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6614 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6615 | ( |
---|
| 6616 | cat <<\_ASBOX |
---|
[2984] | 6617 | ## ------------------------------------ ## |
---|
| 6618 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 6619 | ## ------------------------------------ ## |
---|
[1956] | 6620 | _ASBOX |
---|
| 6621 | ) | |
---|
| 6622 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6623 | ;; |
---|
| 6624 | esac |
---|
| 6625 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6626 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6629 | else |
---|
[2984] | 6630 | eval "$as_ac_Header=$ac_header_preproc" |
---|
[1956] | 6631 | fi |
---|
| 6632 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6633 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6634 | |
---|
| 6635 | fi |
---|
| 6636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6637 | cat >>confdefs.h <<_ACEOF |
---|
| 6638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6639 | _ACEOF |
---|
| 6640 | |
---|
| 6641 | fi |
---|
| 6642 | |
---|
| 6643 | done |
---|
| 6644 | |
---|
| 6645 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 6646 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 6647 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 6648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6649 | else |
---|
| 6650 | if test "$cross_compiling" = yes; then |
---|
| 6651 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6652 | else |
---|
| 6653 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6654 | #line $LINENO "configure" |
---|
[1956] | 6655 | /* confdefs.h. */ |
---|
| 6656 | _ACEOF |
---|
| 6657 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6658 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6659 | /* end confdefs.h. */ |
---|
| 6660 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 6661 | # include <stdlib.h> |
---|
| 6662 | #else |
---|
| 6663 | char *malloc (); |
---|
| 6664 | #endif |
---|
| 6665 | |
---|
| 6666 | int |
---|
| 6667 | main () |
---|
| 6668 | { |
---|
| 6669 | exit (malloc (0) ? 0 : 1); |
---|
| 6670 | ; |
---|
| 6671 | return 0; |
---|
| 6672 | } |
---|
| 6673 | _ACEOF |
---|
| 6674 | rm -f conftest$ac_exeext |
---|
| 6675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6676 | (eval $ac_link) 2>&5 |
---|
| 6677 | ac_status=$? |
---|
| 6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6681 | (eval $ac_try) 2>&5 |
---|
| 6682 | ac_status=$? |
---|
| 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6684 | (exit $ac_status); }; }; then |
---|
| 6685 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 6686 | else |
---|
| 6687 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6688 | echo "$as_me: failed program was:" >&5 |
---|
| 6689 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6690 | |
---|
| 6691 | ( exit $ac_status ) |
---|
| 6692 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6693 | fi |
---|
[2984] | 6694 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[1956] | 6695 | fi |
---|
| 6696 | fi |
---|
| 6697 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 6698 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 6699 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 6700 | |
---|
| 6701 | cat >>confdefs.h <<\_ACEOF |
---|
| 6702 | #define HAVE_MALLOC 1 |
---|
| 6703 | _ACEOF |
---|
| 6704 | |
---|
| 6705 | else |
---|
| 6706 | cat >>confdefs.h <<\_ACEOF |
---|
| 6707 | #define HAVE_MALLOC 0 |
---|
| 6708 | _ACEOF |
---|
| 6709 | |
---|
[2984] | 6710 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
---|
[1956] | 6711 | |
---|
| 6712 | cat >>confdefs.h <<\_ACEOF |
---|
| 6713 | #define malloc rpl_malloc |
---|
| 6714 | _ACEOF |
---|
| 6715 | |
---|
| 6716 | fi |
---|
| 6717 | |
---|
| 6718 | |
---|
| 6719 | |
---|
| 6720 | |
---|
| 6721 | |
---|
| 6722 | for ac_func in bzero sqrt |
---|
| 6723 | do |
---|
| 6724 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 6725 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 6726 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 6727 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6729 | else |
---|
| 6730 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2984] | 6731 | #line $LINENO "configure" |
---|
[1956] | 6732 | /* confdefs.h. */ |
---|
| 6733 | _ACEOF |
---|
| 6734 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6736 | /* end confdefs.h. */ |
---|
| 6737 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 6738 | which can conflict with char $ac_func (); below. |
---|
| 6739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6740 | <limits.h> exists even on freestanding compilers. */ |
---|
| 6741 | #ifdef __STDC__ |
---|
| 6742 | # include <limits.h> |
---|
| 6743 | #else |
---|
| 6744 | # include <assert.h> |
---|
| 6745 | #endif |
---|
| 6746 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6747 | #ifdef __cplusplus |
---|
| 6748 | extern "C" |
---|
| 6749 | { |
---|
| 6750 | #endif |
---|
| 6751 | /* We use char because int might match the return type of a gcc2 |
---|
| 6752 | builtin and then its argument prototype would still apply. */ |
---|
| 6753 | char $ac_func (); |
---|
| 6754 | /* The GNU C library defines this for functions which it implements |
---|
| 6755 | to always fail with ENOSYS. Some functions are actually named |
---|
| 6756 | something starting with __ and the normal name is an alias. */ |
---|
| 6757 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 6758 | choke me |
---|
| 6759 | #else |
---|
| 6760 | char (*f) () = $ac_func; |
---|
| 6761 | #endif |
---|
| 6762 | #ifdef __cplusplus |
---|
| 6763 | } |
---|
| 6764 | #endif |
---|
| 6765 | |
---|
| 6766 | int |
---|
| 6767 | main () |
---|
| 6768 | { |
---|
| 6769 | return f != $ac_func; |
---|
| 6770 | ; |
---|
| 6771 | return 0; |
---|
| 6772 | } |
---|
| 6773 | _ACEOF |
---|
| 6774 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2984] | 6776 | (eval $ac_link) 2>&5 |
---|
[1956] | 6777 | ac_status=$? |
---|
| 6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6779 | (exit $ac_status); } && |
---|
[2984] | 6780 | { ac_try='test -s conftest$ac_exeext' |
---|
[1956] | 6781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6782 | (eval $ac_try) 2>&5 |
---|
| 6783 | ac_status=$? |
---|
| 6784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6785 | (exit $ac_status); }; }; then |
---|
| 6786 | eval "$as_ac_var=yes" |
---|
| 6787 | else |
---|
| 6788 | echo "$as_me: failed program was:" >&5 |
---|
| 6789 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6790 | |
---|
| 6791 | eval "$as_ac_var=no" |
---|
| 6792 | fi |
---|
[2984] | 6793 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
[1956] | 6794 | fi |
---|
| 6795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 6796 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 6797 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 6798 | cat >>confdefs.h <<_ACEOF |
---|
| 6799 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 6800 | _ACEOF |
---|
| 6801 | |
---|
| 6802 | fi |
---|
| 6803 | done |
---|
| 6804 | |
---|
| 6805 | |
---|
[2819] | 6806 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile" |
---|
[1956] | 6807 | |
---|
| 6808 | cat >confcache <<\_ACEOF |
---|
| 6809 | # This file is a shell script that caches the results of configure |
---|
| 6810 | # tests run on this system so they can be shared between configure |
---|
| 6811 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6812 | # It is not useful on other systems. If it contains results you don't |
---|
| 6813 | # want to keep, you may remove or edit it. |
---|
| 6814 | # |
---|
| 6815 | # config.status only pays attention to the cache file if you give it |
---|
| 6816 | # the --recheck option to rerun configure. |
---|
| 6817 | # |
---|
| 6818 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6819 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6820 | # following values. |
---|
| 6821 | |
---|
| 6822 | _ACEOF |
---|
| 6823 | |
---|
| 6824 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6825 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 6826 | # So, don't put newlines in cache variables' values. |
---|
| 6827 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6828 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 6829 | { |
---|
| 6830 | (set) 2>&1 | |
---|
| 6831 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 6832 | *ac_space=\ *) |
---|
| 6833 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6834 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6835 | sed -n \ |
---|
[2984] | 6836 | "s/'/'\\\\''/g; |
---|
| 6837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
[1956] | 6838 | ;; |
---|
| 6839 | *) |
---|
| 6840 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 6841 | sed -n \ |
---|
[2984] | 6842 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
[1956] | 6843 | ;; |
---|
| 6844 | esac; |
---|
| 6845 | } | |
---|
| 6846 | sed ' |
---|
| 6847 | t clear |
---|
| 6848 | : clear |
---|
| 6849 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6850 | t end |
---|
| 6851 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6852 | : end' >>confcache |
---|
| 6853 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 6854 | if test -w $cache_file; then |
---|
| 6855 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 6856 | cat confcache >$cache_file |
---|
| 6857 | else |
---|
| 6858 | echo "not updating unwritable cache $cache_file" |
---|
| 6859 | fi |
---|
| 6860 | fi |
---|
| 6861 | rm -f confcache |
---|
| 6862 | |
---|
| 6863 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6864 | # Let make expand exec_prefix. |
---|
| 6865 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6866 | |
---|
| 6867 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6868 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6869 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6870 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6871 | if test "x$srcdir" = x.; then |
---|
[2984] | 6872 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
[1956] | 6873 | s/:*\$(srcdir):*/:/; |
---|
| 6874 | s/:*\${srcdir}:*/:/; |
---|
| 6875 | s/:*@srcdir@:*/:/; |
---|
[2984] | 6876 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
[1956] | 6877 | s/:*$//; |
---|
[2984] | 6878 | s/^[^=]*=[ ]*$//; |
---|
[1956] | 6879 | }' |
---|
| 6880 | fi |
---|
| 6881 | |
---|
| 6882 | DEFS=-DHAVE_CONFIG_H |
---|
| 6883 | |
---|
| 6884 | ac_libobjs= |
---|
| 6885 | ac_ltlibobjs= |
---|
| 6886 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6887 | # 1. Remove the extension, and $U if already installed. |
---|
| 6888 | ac_i=`echo "$ac_i" | |
---|
[2984] | 6889 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
[1956] | 6890 | # 2. Add them. |
---|
| 6891 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 6892 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 6893 | done |
---|
| 6894 | LIBOBJS=$ac_libobjs |
---|
| 6895 | |
---|
| 6896 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6897 | |
---|
| 6898 | |
---|
| 6899 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 6900 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 6901 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6902 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 6903 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6904 | { (exit 1); exit 1; }; } |
---|
| 6905 | fi |
---|
| 6906 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 6907 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6908 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6909 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6910 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6911 | { (exit 1); exit 1; }; } |
---|
| 6912 | fi |
---|
| 6913 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 6914 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6915 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6916 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6917 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6918 | { (exit 1); exit 1; }; } |
---|
| 6919 | fi |
---|
[2983] | 6920 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 6921 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 6922 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6923 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 6924 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6925 | { (exit 1); exit 1; }; } |
---|
| 6926 | fi |
---|
[1956] | 6927 | |
---|
| 6928 | : ${CONFIG_STATUS=./config.status} |
---|
| 6929 | ac_clean_files_save=$ac_clean_files |
---|
| 6930 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 6931 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6932 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6933 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 6934 | #! $SHELL |
---|
| 6935 | # Generated by $as_me. |
---|
| 6936 | # Run this file to recreate the current configuration. |
---|
| 6937 | # Compiler output produced by configure, useful for debugging |
---|
| 6938 | # configure, is in config.log if it exists. |
---|
| 6939 | |
---|
| 6940 | debug=false |
---|
| 6941 | ac_cs_recheck=false |
---|
| 6942 | ac_cs_silent=false |
---|
| 6943 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6944 | _ACEOF |
---|
| 6945 | |
---|
| 6946 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6947 | ## --------------------- ## |
---|
| 6948 | ## M4sh Initialization. ## |
---|
| 6949 | ## --------------------- ## |
---|
| 6950 | |
---|
| 6951 | # Be Bourne compatible |
---|
| 6952 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6953 | emulate sh |
---|
| 6954 | NULLCMD=: |
---|
| 6955 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 6956 | # is contrary to our usage. Disable this feature. |
---|
| 6957 | alias -g '${1+"$@"}'='"$@"' |
---|
| 6958 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 6959 | set -o posix |
---|
| 6960 | fi |
---|
| 6961 | |
---|
| 6962 | # Support unset when possible. |
---|
[2984] | 6963 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
[1956] | 6964 | as_unset=unset |
---|
| 6965 | else |
---|
| 6966 | as_unset=false |
---|
| 6967 | fi |
---|
| 6968 | |
---|
| 6969 | |
---|
| 6970 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 6971 | $as_unset ENV MAIL MAILPATH |
---|
| 6972 | PS1='$ ' |
---|
| 6973 | PS2='> ' |
---|
| 6974 | PS4='+ ' |
---|
| 6975 | |
---|
| 6976 | # NLS nuisances. |
---|
| 6977 | for as_var in \ |
---|
| 6978 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 6979 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 6980 | LC_TELEPHONE LC_TIME |
---|
| 6981 | do |
---|
[2984] | 6982 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
[1956] | 6983 | eval $as_var=C; export $as_var |
---|
| 6984 | else |
---|
| 6985 | $as_unset $as_var |
---|
| 6986 | fi |
---|
| 6987 | done |
---|
| 6988 | |
---|
| 6989 | # Required to use basename. |
---|
| 6990 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6991 | as_expr=expr |
---|
| 6992 | else |
---|
| 6993 | as_expr=false |
---|
| 6994 | fi |
---|
| 6995 | |
---|
| 6996 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 6997 | as_basename=basename |
---|
| 6998 | else |
---|
| 6999 | as_basename=false |
---|
| 7000 | fi |
---|
| 7001 | |
---|
| 7002 | |
---|
| 7003 | # Name of the executable. |
---|
| 7004 | as_me=`$as_basename "$0" || |
---|
| 7005 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 7006 | X"$0" : 'X\(//\)$' \| \ |
---|
| 7007 | X"$0" : 'X\(/\)$' \| \ |
---|
| 7008 | . : '\(.\)' 2>/dev/null || |
---|
| 7009 | echo X/"$0" | |
---|
| 7010 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 7011 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 7012 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 7013 | s/.*/./; q'` |
---|
| 7014 | |
---|
| 7015 | |
---|
| 7016 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 7017 | # Avoid depending upon Character Ranges. |
---|
| 7018 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 7019 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 7020 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 7021 | as_cr_digits='0123456789' |
---|
| 7022 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 7023 | |
---|
| 7024 | # The user is always right. |
---|
| 7025 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 7026 | echo "#! /bin/sh" >conf$$.sh |
---|
| 7027 | echo "exit 0" >>conf$$.sh |
---|
| 7028 | chmod +x conf$$.sh |
---|
| 7029 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 7030 | PATH_SEPARATOR=';' |
---|
| 7031 | else |
---|
| 7032 | PATH_SEPARATOR=: |
---|
| 7033 | fi |
---|
| 7034 | rm -f conf$$.sh |
---|
| 7035 | fi |
---|
| 7036 | |
---|
| 7037 | |
---|
| 7038 | as_lineno_1=$LINENO |
---|
| 7039 | as_lineno_2=$LINENO |
---|
| 7040 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 7041 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 7042 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 7043 | # Find who we are. Look in the path if we contain no path at all |
---|
| 7044 | # relative or not. |
---|
| 7045 | case $0 in |
---|
| 7046 | *[\\/]* ) as_myself=$0 ;; |
---|
| 7047 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7048 | for as_dir in $PATH |
---|
| 7049 | do |
---|
| 7050 | IFS=$as_save_IFS |
---|
| 7051 | test -z "$as_dir" && as_dir=. |
---|
| 7052 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 7053 | done |
---|
| 7054 | |
---|
| 7055 | ;; |
---|
| 7056 | esac |
---|
| 7057 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 7058 | # in which case we are not to be found in the path. |
---|
| 7059 | if test "x$as_myself" = x; then |
---|
| 7060 | as_myself=$0 |
---|
| 7061 | fi |
---|
| 7062 | if test ! -f "$as_myself"; then |
---|
| 7063 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 7064 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 7065 | { (exit 1); exit 1; }; } |
---|
| 7066 | fi |
---|
| 7067 | case $CONFIG_SHELL in |
---|
| 7068 | '') |
---|
| 7069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7070 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 7071 | do |
---|
| 7072 | IFS=$as_save_IFS |
---|
| 7073 | test -z "$as_dir" && as_dir=. |
---|
| 7074 | for as_base in sh bash ksh sh5; do |
---|
| 7075 | case $as_dir in |
---|
| 7076 | /*) |
---|
| 7077 | if ("$as_dir/$as_base" -c ' |
---|
| 7078 | as_lineno_1=$LINENO |
---|
| 7079 | as_lineno_2=$LINENO |
---|
| 7080 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 7081 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 7082 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 7083 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 7084 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 7085 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 7086 | export CONFIG_SHELL |
---|
| 7087 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 7088 | fi;; |
---|
| 7089 | esac |
---|
| 7090 | done |
---|
| 7091 | done |
---|
| 7092 | ;; |
---|
| 7093 | esac |
---|
| 7094 | |
---|
| 7095 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 7096 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 7097 | # line-number line before each line; the second 'sed' does the real |
---|
| 7098 | # work. The second script uses 'N' to pair each line-number line |
---|
| 7099 | # with the numbered line, and appends trailing '-' during |
---|
| 7100 | # substitution so that $LINENO is not a special case at line end. |
---|
| 7101 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 7102 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 7103 | sed '=' <$as_myself | |
---|
| 7104 | sed ' |
---|
| 7105 | N |
---|
| 7106 | s,$,-, |
---|
| 7107 | : loop |
---|
| 7108 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 7109 | t loop |
---|
| 7110 | s,-$,, |
---|
| 7111 | s,^['$as_cr_digits']*\n,, |
---|
| 7112 | ' >$as_me.lineno && |
---|
| 7113 | chmod +x $as_me.lineno || |
---|
| 7114 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 7115 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 7116 | { (exit 1); exit 1; }; } |
---|
| 7117 | |
---|
| 7118 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 7119 | # (the dirname of $[0] is not the place where we might find the |
---|
| 7120 | # original and so on. Autoconf is especially sensible to this). |
---|
| 7121 | . ./$as_me.lineno |
---|
| 7122 | # Exit status is that of the last command. |
---|
| 7123 | exit |
---|
| 7124 | } |
---|
| 7125 | |
---|
| 7126 | |
---|
| 7127 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 7128 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 7129 | ' ECHO_T=' ' ;; |
---|
| 7130 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 7131 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 7132 | esac |
---|
| 7133 | |
---|
| 7134 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 7135 | as_expr=expr |
---|
| 7136 | else |
---|
| 7137 | as_expr=false |
---|
| 7138 | fi |
---|
| 7139 | |
---|
| 7140 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 7141 | echo >conf$$.file |
---|
| 7142 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 7143 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 7144 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 7145 | if test -f conf$$.exe; then |
---|
| 7146 | # Don't use ln at all; we don't have any links |
---|
| 7147 | as_ln_s='cp -p' |
---|
| 7148 | else |
---|
| 7149 | as_ln_s='ln -s' |
---|
| 7150 | fi |
---|
| 7151 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 7152 | as_ln_s=ln |
---|
| 7153 | else |
---|
| 7154 | as_ln_s='cp -p' |
---|
| 7155 | fi |
---|
| 7156 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 7157 | |
---|
| 7158 | if mkdir -p . 2>/dev/null; then |
---|
| 7159 | as_mkdir_p=: |
---|
| 7160 | else |
---|
| 7161 | as_mkdir_p=false |
---|
| 7162 | fi |
---|
| 7163 | |
---|
| 7164 | as_executable_p="test -f" |
---|
| 7165 | |
---|
| 7166 | # Sed expression to map a string onto a valid CPP name. |
---|
[2984] | 7167 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
[1956] | 7168 | |
---|
| 7169 | # Sed expression to map a string onto a valid variable name. |
---|
[2984] | 7170 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
[1956] | 7171 | |
---|
| 7172 | |
---|
| 7173 | # IFS |
---|
| 7174 | # We need space, tab and new line, in precisely that order. |
---|
| 7175 | as_nl=' |
---|
| 7176 | ' |
---|
| 7177 | IFS=" $as_nl" |
---|
| 7178 | |
---|
| 7179 | # CDPATH. |
---|
| 7180 | $as_unset CDPATH |
---|
| 7181 | |
---|
| 7182 | exec 6>&1 |
---|
| 7183 | |
---|
| 7184 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 7185 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 7186 | # values after options handling. Logging --version etc. is OK. |
---|
| 7187 | exec 5>>config.log |
---|
| 7188 | { |
---|
| 7189 | echo |
---|
| 7190 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 7191 | ## Running $as_me. ## |
---|
| 7192 | _ASBOX |
---|
| 7193 | } >&5 |
---|
| 7194 | cat >&5 <<_CSEOF |
---|
| 7195 | |
---|
| 7196 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
[2984] | 7197 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
[1956] | 7198 | |
---|
| 7199 | CONFIG_FILES = $CONFIG_FILES |
---|
| 7200 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 7201 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 7202 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 7203 | $ $0 $@ |
---|
| 7204 | |
---|
| 7205 | _CSEOF |
---|
| 7206 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 7207 | echo >&5 |
---|
| 7208 | _ACEOF |
---|
| 7209 | |
---|
| 7210 | # Files that config.status was made for. |
---|
| 7211 | if test -n "$ac_config_files"; then |
---|
| 7212 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 7213 | fi |
---|
| 7214 | |
---|
| 7215 | if test -n "$ac_config_headers"; then |
---|
| 7216 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 7217 | fi |
---|
| 7218 | |
---|
| 7219 | if test -n "$ac_config_links"; then |
---|
| 7220 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 7221 | fi |
---|
| 7222 | |
---|
| 7223 | if test -n "$ac_config_commands"; then |
---|
| 7224 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 7225 | fi |
---|
| 7226 | |
---|
| 7227 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7228 | |
---|
| 7229 | ac_cs_usage="\ |
---|
| 7230 | \`$as_me' instantiates files from templates according to the |
---|
| 7231 | current configuration. |
---|
| 7232 | |
---|
| 7233 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 7234 | |
---|
| 7235 | -h, --help print this help, then exit |
---|
| 7236 | -V, --version print version number, then exit |
---|
| 7237 | -q, --quiet do not print progress messages |
---|
| 7238 | -d, --debug don't remove temporary files |
---|
| 7239 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 7240 | --file=FILE[:TEMPLATE] |
---|
[2984] | 7241 | instantiate the configuration file FILE |
---|
[1956] | 7242 | --header=FILE[:TEMPLATE] |
---|
[2984] | 7243 | instantiate the configuration header FILE |
---|
[1956] | 7244 | |
---|
| 7245 | Configuration files: |
---|
| 7246 | $config_files |
---|
| 7247 | |
---|
| 7248 | Configuration headers: |
---|
| 7249 | $config_headers |
---|
| 7250 | |
---|
| 7251 | Configuration commands: |
---|
| 7252 | $config_commands |
---|
| 7253 | |
---|
| 7254 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 7255 | _ACEOF |
---|
| 7256 | |
---|
| 7257 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7258 | ac_cs_version="\\ |
---|
| 7259 | orxonox config.status 0.1-pre-alpha |
---|
[2984] | 7260 | configured by $0, generated by GNU Autoconf 2.57, |
---|
[1956] | 7261 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 7262 | |
---|
[2984] | 7263 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
| 7264 | Free Software Foundation, Inc. |
---|
[1956] | 7265 | This config.status script is free software; the Free Software Foundation |
---|
| 7266 | gives unlimited permission to copy, distribute and modify it." |
---|
| 7267 | srcdir=$srcdir |
---|
| 7268 | INSTALL="$INSTALL" |
---|
| 7269 | _ACEOF |
---|
| 7270 | |
---|
| 7271 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7272 | # If no file are specified by the user, then we need to provide default |
---|
| 7273 | # value. By we need to know if files were specified by the user. |
---|
| 7274 | ac_need_defaults=: |
---|
| 7275 | while test $# != 0 |
---|
| 7276 | do |
---|
| 7277 | case $1 in |
---|
| 7278 | --*=*) |
---|
| 7279 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 7280 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 7281 | ac_shift=: |
---|
| 7282 | ;; |
---|
| 7283 | -*) |
---|
| 7284 | ac_option=$1 |
---|
| 7285 | ac_optarg=$2 |
---|
| 7286 | ac_shift=shift |
---|
| 7287 | ;; |
---|
| 7288 | *) # This is not an option, so the user has probably given explicit |
---|
| 7289 | # arguments. |
---|
| 7290 | ac_option=$1 |
---|
| 7291 | ac_need_defaults=false;; |
---|
| 7292 | esac |
---|
| 7293 | |
---|
| 7294 | case $ac_option in |
---|
| 7295 | # Handling of the options. |
---|
| 7296 | _ACEOF |
---|
| 7297 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7298 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 7299 | ac_cs_recheck=: ;; |
---|
| 7300 | --version | --vers* | -V ) |
---|
| 7301 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 7302 | --he | --h) |
---|
| 7303 | # Conflict between --help and --header |
---|
| 7304 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 7305 | Try \`$0 --help' for more information." >&5 |
---|
| 7306 | echo "$as_me: error: ambiguous option: $1 |
---|
| 7307 | Try \`$0 --help' for more information." >&2;} |
---|
| 7308 | { (exit 1); exit 1; }; };; |
---|
| 7309 | --help | --hel | -h ) |
---|
| 7310 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 7311 | --debug | --d* | -d ) |
---|
| 7312 | debug=: ;; |
---|
| 7313 | --file | --fil | --fi | --f ) |
---|
| 7314 | $ac_shift |
---|
| 7315 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 7316 | ac_need_defaults=false;; |
---|
| 7317 | --header | --heade | --head | --hea ) |
---|
| 7318 | $ac_shift |
---|
| 7319 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 7320 | ac_need_defaults=false;; |
---|
| 7321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 7322 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 7323 | ac_cs_silent=: ;; |
---|
| 7324 | |
---|
| 7325 | # This is an error. |
---|
| 7326 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 7327 | Try \`$0 --help' for more information." >&5 |
---|
| 7328 | echo "$as_me: error: unrecognized option: $1 |
---|
| 7329 | Try \`$0 --help' for more information." >&2;} |
---|
| 7330 | { (exit 1); exit 1; }; } ;; |
---|
| 7331 | |
---|
| 7332 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 7333 | |
---|
| 7334 | esac |
---|
| 7335 | shift |
---|
| 7336 | done |
---|
| 7337 | |
---|
| 7338 | ac_configure_extra_args= |
---|
| 7339 | |
---|
| 7340 | if $ac_cs_silent; then |
---|
| 7341 | exec 6>/dev/null |
---|
| 7342 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 7343 | fi |
---|
| 7344 | |
---|
| 7345 | _ACEOF |
---|
| 7346 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7347 | if \$ac_cs_recheck; then |
---|
| 7348 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 7349 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 7350 | fi |
---|
| 7351 | |
---|
| 7352 | _ACEOF |
---|
| 7353 | |
---|
| 7354 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7355 | # |
---|
| 7356 | # INIT-COMMANDS section. |
---|
| 7357 | # |
---|
| 7358 | |
---|
| 7359 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 7360 | |
---|
| 7361 | _ACEOF |
---|
| 7362 | |
---|
| 7363 | |
---|
| 7364 | |
---|
| 7365 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7366 | for ac_config_target in $ac_config_targets |
---|
| 7367 | do |
---|
| 7368 | case "$ac_config_target" in |
---|
| 7369 | # Handling of arguments. |
---|
| 7370 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 7371 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
| 7372 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
| 7373 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[2819] | 7374 | "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;; |
---|
[1956] | 7375 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 7376 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 7377 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 7378 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 7379 | { (exit 1); exit 1; }; };; |
---|
| 7380 | esac |
---|
| 7381 | done |
---|
| 7382 | |
---|
| 7383 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 7384 | # then the envvar interface is used. Set only those that are not. |
---|
| 7385 | # We use the long form for the default assignment because of an extremely |
---|
| 7386 | # bizarre bug on SunOS 4.1.3. |
---|
| 7387 | if $ac_need_defaults; then |
---|
| 7388 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 7389 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 7390 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 7391 | fi |
---|
| 7392 | |
---|
| 7393 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 7394 | # simply because there is no reason to put it here, and in addition, |
---|
| 7395 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 7396 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 7397 | $debug || |
---|
| 7398 | { |
---|
| 7399 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 7400 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 7401 | } |
---|
| 7402 | |
---|
| 7403 | # Create a (secure) tmp directory for tmp files. |
---|
| 7404 | |
---|
| 7405 | { |
---|
| 7406 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 7407 | test -n "$tmp" && test -d "$tmp" |
---|
| 7408 | } || |
---|
| 7409 | { |
---|
| 7410 | tmp=./confstat$$-$RANDOM |
---|
| 7411 | (umask 077 && mkdir $tmp) |
---|
| 7412 | } || |
---|
| 7413 | { |
---|
| 7414 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 7415 | { (exit 1); exit 1; } |
---|
| 7416 | } |
---|
| 7417 | |
---|
| 7418 | _ACEOF |
---|
| 7419 | |
---|
| 7420 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7421 | |
---|
| 7422 | # |
---|
| 7423 | # CONFIG_FILES section. |
---|
| 7424 | # |
---|
| 7425 | |
---|
| 7426 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 7427 | # This happens for instance when ./config.status config.h |
---|
| 7428 | if test -n "\$CONFIG_FILES"; then |
---|
| 7429 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 7430 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 7431 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 7432 | s,@SHELL@,$SHELL,;t t |
---|
| 7433 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 7434 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 7435 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 7436 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 7437 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 7438 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 7439 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 7440 | s,@prefix@,$prefix,;t t |
---|
| 7441 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 7442 | s,@bindir@,$bindir,;t t |
---|
| 7443 | s,@sbindir@,$sbindir,;t t |
---|
| 7444 | s,@libexecdir@,$libexecdir,;t t |
---|
| 7445 | s,@datadir@,$datadir,;t t |
---|
| 7446 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 7447 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 7448 | s,@localstatedir@,$localstatedir,;t t |
---|
| 7449 | s,@libdir@,$libdir,;t t |
---|
| 7450 | s,@includedir@,$includedir,;t t |
---|
| 7451 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 7452 | s,@infodir@,$infodir,;t t |
---|
| 7453 | s,@mandir@,$mandir,;t t |
---|
| 7454 | s,@build_alias@,$build_alias,;t t |
---|
| 7455 | s,@host_alias@,$host_alias,;t t |
---|
| 7456 | s,@target_alias@,$target_alias,;t t |
---|
| 7457 | s,@DEFS@,$DEFS,;t t |
---|
| 7458 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 7459 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 7460 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 7461 | s,@LIBS@,$LIBS,;t t |
---|
[2983] | 7462 | s,@build@,$build,;t t |
---|
| 7463 | s,@build_cpu@,$build_cpu,;t t |
---|
| 7464 | s,@build_vendor@,$build_vendor,;t t |
---|
| 7465 | s,@build_os@,$build_os,;t t |
---|
| 7466 | s,@host@,$host,;t t |
---|
| 7467 | s,@host_cpu@,$host_cpu,;t t |
---|
| 7468 | s,@host_vendor@,$host_vendor,;t t |
---|
| 7469 | s,@host_os@,$host_os,;t t |
---|
| 7470 | s,@target@,$target,;t t |
---|
| 7471 | s,@target_cpu@,$target_cpu,;t t |
---|
| 7472 | s,@target_vendor@,$target_vendor,;t t |
---|
| 7473 | s,@target_os@,$target_os,;t t |
---|
[1956] | 7474 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 7475 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 7476 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 7477 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 7478 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 7479 | s,@VERSION@,$VERSION,;t t |
---|
| 7480 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 7481 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 7482 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 7483 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 7484 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 7485 | s,@AMTAR@,$AMTAR,;t t |
---|
| 7486 | s,@install_sh@,$install_sh,;t t |
---|
| 7487 | s,@STRIP@,$STRIP,;t t |
---|
| 7488 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 7489 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
| 7490 | s,@AWK@,$AWK,;t t |
---|
| 7491 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 7492 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 7493 | s,@CXX@,$CXX,;t t |
---|
| 7494 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 7495 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 7496 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 7497 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 7498 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 7499 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 7500 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 7501 | s,@am__include@,$am__include,;t t |
---|
| 7502 | s,@am__quote@,$am__quote,;t t |
---|
| 7503 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 7504 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 7505 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 7506 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 7507 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 7508 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 7509 | s,@CC@,$CC,;t t |
---|
| 7510 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 7511 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 7512 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 7513 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 7514 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 7515 | s,@CPP@,$CPP,;t t |
---|
| 7516 | s,@EGREP@,$EGREP,;t t |
---|
[2983] | 7517 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
---|
| 7518 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t |
---|
| 7519 | s,@SDL_LIBS@,$SDL_LIBS,;t t |
---|
[2701] | 7520 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[2985] | 7521 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
| 7522 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
[2984] | 7523 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2983] | 7524 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 7525 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[1956] | 7526 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 7527 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 7528 | CEOF |
---|
| 7529 | |
---|
| 7530 | _ACEOF |
---|
| 7531 | |
---|
| 7532 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7533 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 7534 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 7535 | ac_max_sed_lines=48 |
---|
| 7536 | ac_sed_frag=1 # Number of current file. |
---|
| 7537 | ac_beg=1 # First line for current file. |
---|
| 7538 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 7539 | ac_more_lines=: |
---|
| 7540 | ac_sed_cmds= |
---|
| 7541 | while $ac_more_lines; do |
---|
| 7542 | if test $ac_beg -gt 1; then |
---|
| 7543 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7544 | else |
---|
| 7545 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7546 | fi |
---|
| 7547 | if test ! -s $tmp/subs.frag; then |
---|
| 7548 | ac_more_lines=false |
---|
| 7549 | else |
---|
| 7550 | # The purpose of the label and of the branching condition is to |
---|
| 7551 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 7552 | # is no need to browse any of the substitutions). |
---|
| 7553 | # These are the two extra sed commands mentioned above. |
---|
| 7554 | (echo ':t |
---|
| 7555 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 7556 | if test -z "$ac_sed_cmds"; then |
---|
[2984] | 7557 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
[1956] | 7558 | else |
---|
[2984] | 7559 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
[1956] | 7560 | fi |
---|
| 7561 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 7562 | ac_beg=$ac_end |
---|
| 7563 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 7564 | fi |
---|
| 7565 | done |
---|
| 7566 | if test -z "$ac_sed_cmds"; then |
---|
| 7567 | ac_sed_cmds=cat |
---|
| 7568 | fi |
---|
| 7569 | fi # test -n "$CONFIG_FILES" |
---|
| 7570 | |
---|
| 7571 | _ACEOF |
---|
| 7572 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7573 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 7574 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7575 | case $ac_file in |
---|
| 7576 | - | *:- | *:-:* ) # input from stdin |
---|
[2984] | 7577 | cat >$tmp/stdin |
---|
| 7578 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7579 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[1956] | 7580 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
[2984] | 7581 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[1956] | 7582 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7583 | esac |
---|
| 7584 | |
---|
| 7585 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 7586 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7587 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 7588 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7589 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7590 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7591 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 7592 | echo X"$ac_file" | |
---|
| 7593 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7594 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7595 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7596 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7597 | s/.*/./; q'` |
---|
| 7598 | { if $as_mkdir_p; then |
---|
| 7599 | mkdir -p "$ac_dir" |
---|
| 7600 | else |
---|
| 7601 | as_dir="$ac_dir" |
---|
| 7602 | as_dirs= |
---|
| 7603 | while test ! -d "$as_dir"; do |
---|
| 7604 | as_dirs="$as_dir $as_dirs" |
---|
| 7605 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7606 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 7607 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7608 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7609 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7610 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 7611 | echo X"$as_dir" | |
---|
| 7612 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7613 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7614 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7615 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7616 | s/.*/./; q'` |
---|
| 7617 | done |
---|
| 7618 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7619 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7620 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7621 | { (exit 1); exit 1; }; }; } |
---|
| 7622 | |
---|
| 7623 | ac_builddir=. |
---|
| 7624 | |
---|
| 7625 | if test "$ac_dir" != .; then |
---|
| 7626 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7627 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7628 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7629 | else |
---|
| 7630 | ac_dir_suffix= ac_top_builddir= |
---|
| 7631 | fi |
---|
| 7632 | |
---|
| 7633 | case $srcdir in |
---|
| 7634 | .) # No --srcdir option. We are building in place. |
---|
| 7635 | ac_srcdir=. |
---|
| 7636 | if test -z "$ac_top_builddir"; then |
---|
| 7637 | ac_top_srcdir=. |
---|
| 7638 | else |
---|
| 7639 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7640 | fi ;; |
---|
| 7641 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7642 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7643 | ac_top_srcdir=$srcdir ;; |
---|
| 7644 | *) # Relative path. |
---|
| 7645 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7646 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7647 | esac |
---|
[2984] | 7648 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 7649 | # absolute. |
---|
| 7650 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 7651 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 7652 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 7653 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
[1956] | 7654 | |
---|
| 7655 | |
---|
| 7656 | case $INSTALL in |
---|
| 7657 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 7658 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 7659 | esac |
---|
| 7660 | |
---|
| 7661 | if test x"$ac_file" != x-; then |
---|
| 7662 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7663 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7664 | rm -f "$ac_file" |
---|
| 7665 | fi |
---|
| 7666 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7667 | # use $as_me), people would be surprised to read: |
---|
| 7668 | # /* config.h. Generated by config.status. */ |
---|
| 7669 | if test x"$ac_file" = x-; then |
---|
| 7670 | configure_input= |
---|
| 7671 | else |
---|
| 7672 | configure_input="$ac_file. " |
---|
| 7673 | fi |
---|
| 7674 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
[2984] | 7675 | sed 's,.*/,,'` by configure." |
---|
[1956] | 7676 | |
---|
| 7677 | # First look for the input files in the build tree, otherwise in the |
---|
| 7678 | # src tree. |
---|
| 7679 | ac_file_inputs=`IFS=: |
---|
| 7680 | for f in $ac_file_in; do |
---|
| 7681 | case $f in |
---|
| 7682 | -) echo $tmp/stdin ;; |
---|
| 7683 | [\\/$]*) |
---|
[2984] | 7684 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7685 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[1956] | 7686 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7687 | { (exit 1); exit 1; }; } |
---|
[2984] | 7688 | echo $f;; |
---|
[1956] | 7689 | *) # Relative |
---|
[2984] | 7690 | if test -f "$f"; then |
---|
| 7691 | # Build tree |
---|
| 7692 | echo $f |
---|
| 7693 | elif test -f "$srcdir/$f"; then |
---|
| 7694 | # Source tree |
---|
| 7695 | echo $srcdir/$f |
---|
| 7696 | else |
---|
| 7697 | # /dev/null tree |
---|
| 7698 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[1956] | 7699 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7700 | { (exit 1); exit 1; }; } |
---|
[2984] | 7701 | fi;; |
---|
[1956] | 7702 | esac |
---|
| 7703 | done` || { (exit 1); exit 1; } |
---|
| 7704 | _ACEOF |
---|
| 7705 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7706 | sed "$ac_vpsub |
---|
| 7707 | $extrasub |
---|
| 7708 | _ACEOF |
---|
| 7709 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7710 | :t |
---|
| 7711 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 7712 | s,@configure_input@,$configure_input,;t t |
---|
| 7713 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 7714 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 7715 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 7716 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 7717 | s,@builddir@,$ac_builddir,;t t |
---|
| 7718 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 7719 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 7720 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 7721 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 7722 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 7723 | rm -f $tmp/stdin |
---|
| 7724 | if test x"$ac_file" != x-; then |
---|
| 7725 | mv $tmp/out $ac_file |
---|
| 7726 | else |
---|
| 7727 | cat $tmp/out |
---|
| 7728 | rm -f $tmp/out |
---|
| 7729 | fi |
---|
| 7730 | |
---|
| 7731 | done |
---|
| 7732 | _ACEOF |
---|
| 7733 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7734 | |
---|
| 7735 | # |
---|
| 7736 | # CONFIG_HEADER section. |
---|
| 7737 | # |
---|
| 7738 | |
---|
| 7739 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 7740 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 7741 | # |
---|
| 7742 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
[2984] | 7743 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 7744 | ac_dB='[ ].*$,\1#\2' |
---|
[1956] | 7745 | ac_dC=' ' |
---|
| 7746 | ac_dD=',;t' |
---|
| 7747 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
[2984] | 7748 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
[1956] | 7749 | ac_uB='$,\1#\2define\3' |
---|
| 7750 | ac_uC=' ' |
---|
| 7751 | ac_uD=',;t' |
---|
| 7752 | |
---|
| 7753 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 7754 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7755 | case $ac_file in |
---|
| 7756 | - | *:- | *:-:* ) # input from stdin |
---|
[2984] | 7757 | cat >$tmp/stdin |
---|
| 7758 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7759 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[1956] | 7760 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
[2984] | 7761 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
[1956] | 7762 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7763 | esac |
---|
| 7764 | |
---|
| 7765 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7766 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7767 | |
---|
| 7768 | # First look for the input files in the build tree, otherwise in the |
---|
| 7769 | # src tree. |
---|
| 7770 | ac_file_inputs=`IFS=: |
---|
| 7771 | for f in $ac_file_in; do |
---|
| 7772 | case $f in |
---|
| 7773 | -) echo $tmp/stdin ;; |
---|
| 7774 | [\\/$]*) |
---|
[2984] | 7775 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7776 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[1956] | 7777 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7778 | { (exit 1); exit 1; }; } |
---|
[2984] | 7779 | echo $f;; |
---|
[1956] | 7780 | *) # Relative |
---|
[2984] | 7781 | if test -f "$f"; then |
---|
| 7782 | # Build tree |
---|
| 7783 | echo $f |
---|
| 7784 | elif test -f "$srcdir/$f"; then |
---|
| 7785 | # Source tree |
---|
| 7786 | echo $srcdir/$f |
---|
| 7787 | else |
---|
| 7788 | # /dev/null tree |
---|
| 7789 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
[1956] | 7790 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7791 | { (exit 1); exit 1; }; } |
---|
[2984] | 7792 | fi;; |
---|
[1956] | 7793 | esac |
---|
| 7794 | done` || { (exit 1); exit 1; } |
---|
| 7795 | # Remove the trailing spaces. |
---|
[2984] | 7796 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
[1956] | 7797 | |
---|
| 7798 | _ACEOF |
---|
| 7799 | |
---|
| 7800 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 7801 | # `conftest.undefs', that substitutes the proper values into |
---|
| 7802 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 7803 | # templates, and the second `#undef' templates. |
---|
| 7804 | # And first: Protect against being on the right side of a sed subst in |
---|
| 7805 | # config.status. Protect against being in an unquoted here document |
---|
| 7806 | # in config.status. |
---|
| 7807 | rm -f conftest.defines conftest.undefs |
---|
| 7808 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 7809 | # Putting comments in sed scripts is not portable. |
---|
| 7810 | # |
---|
| 7811 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 7812 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 7813 | # See the Autoconf documentation for `clear'. |
---|
| 7814 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 7815 | s/[\\&,]/\\&/g |
---|
| 7816 | s,[\\$`],\\&,g |
---|
| 7817 | t clear |
---|
| 7818 | : clear |
---|
[2984] | 7819 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
[1956] | 7820 | t end |
---|
[2984] | 7821 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
[1956] | 7822 | : end |
---|
| 7823 | _ACEOF |
---|
| 7824 | # If some macros were called several times there might be several times |
---|
| 7825 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 7826 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 7827 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 7828 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 7829 | rm -f confdef2sed.sed |
---|
| 7830 | |
---|
| 7831 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 7832 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7833 | # on some systems where configure will not decide to define it. |
---|
| 7834 | cat >>conftest.undefs <<\_ACEOF |
---|
[2984] | 7835 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
[1956] | 7836 | _ACEOF |
---|
| 7837 | |
---|
| 7838 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 7839 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7840 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
[2984] | 7841 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
[1956] | 7842 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 7843 | echo ' :' >>$CONFIG_STATUS |
---|
| 7844 | rm -f conftest.tail |
---|
| 7845 | while grep . conftest.defines >/dev/null |
---|
| 7846 | do |
---|
| 7847 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 7848 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7849 | # Speed up: don't consider the non `#define' lines. |
---|
[2984] | 7850 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
[1956] | 7851 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7852 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7853 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7854 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 7855 | echo 'CEOF |
---|
| 7856 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 7857 | rm -f $tmp/in |
---|
| 7858 | mv $tmp/out $tmp/in |
---|
| 7859 | ' >>$CONFIG_STATUS |
---|
| 7860 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 7861 | rm -f conftest.defines |
---|
| 7862 | mv conftest.tail conftest.defines |
---|
| 7863 | done |
---|
| 7864 | rm -f conftest.defines |
---|
| 7865 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 7866 | echo >>$CONFIG_STATUS |
---|
| 7867 | |
---|
| 7868 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 7869 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7870 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 7871 | rm -f conftest.tail |
---|
| 7872 | while grep . conftest.undefs >/dev/null |
---|
| 7873 | do |
---|
| 7874 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 7875 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7876 | # Speed up: don't consider the non `#undef' |
---|
[2984] | 7877 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
[1956] | 7878 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7879 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7880 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7881 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 7882 | echo 'CEOF |
---|
| 7883 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 7884 | rm -f $tmp/in |
---|
| 7885 | mv $tmp/out $tmp/in |
---|
| 7886 | ' >>$CONFIG_STATUS |
---|
| 7887 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 7888 | rm -f conftest.undefs |
---|
| 7889 | mv conftest.tail conftest.undefs |
---|
| 7890 | done |
---|
| 7891 | rm -f conftest.undefs |
---|
| 7892 | |
---|
| 7893 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7894 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7895 | # use $as_me), people would be surprised to read: |
---|
| 7896 | # /* config.h. Generated by config.status. */ |
---|
| 7897 | if test x"$ac_file" = x-; then |
---|
| 7898 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 7899 | else |
---|
| 7900 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 7901 | fi |
---|
| 7902 | cat $tmp/in >>$tmp/config.h |
---|
| 7903 | rm -f $tmp/in |
---|
| 7904 | if test x"$ac_file" != x-; then |
---|
| 7905 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 7906 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 7907 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 7908 | else |
---|
| 7909 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7910 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 7911 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7912 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7913 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7914 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 7915 | echo X"$ac_file" | |
---|
| 7916 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7917 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7918 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7919 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7920 | s/.*/./; q'` |
---|
| 7921 | { if $as_mkdir_p; then |
---|
| 7922 | mkdir -p "$ac_dir" |
---|
| 7923 | else |
---|
| 7924 | as_dir="$ac_dir" |
---|
| 7925 | as_dirs= |
---|
| 7926 | while test ! -d "$as_dir"; do |
---|
| 7927 | as_dirs="$as_dir $as_dirs" |
---|
| 7928 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7929 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 7930 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7931 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7932 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7933 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 7934 | echo X"$as_dir" | |
---|
| 7935 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7936 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7937 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7938 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7939 | s/.*/./; q'` |
---|
| 7940 | done |
---|
| 7941 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7942 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7943 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7944 | { (exit 1); exit 1; }; }; } |
---|
| 7945 | |
---|
| 7946 | rm -f $ac_file |
---|
| 7947 | mv $tmp/config.h $ac_file |
---|
| 7948 | fi |
---|
| 7949 | else |
---|
| 7950 | cat $tmp/config.h |
---|
| 7951 | rm -f $tmp/config.h |
---|
| 7952 | fi |
---|
| 7953 | # Compute $ac_file's index in $config_headers. |
---|
| 7954 | _am_stamp_count=1 |
---|
| 7955 | for _am_header in $config_headers :; do |
---|
| 7956 | case $_am_header in |
---|
| 7957 | $ac_file | $ac_file:* ) |
---|
| 7958 | break ;; |
---|
| 7959 | * ) |
---|
| 7960 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 7961 | esac |
---|
| 7962 | done |
---|
| 7963 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 7964 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 7965 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 7966 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 7967 | X$ac_file : 'X\(/\)' \| \ |
---|
| 7968 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 7969 | echo X$ac_file | |
---|
| 7970 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7971 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7972 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7973 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7974 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 7975 | done |
---|
| 7976 | _ACEOF |
---|
| 7977 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7978 | |
---|
| 7979 | # |
---|
| 7980 | # CONFIG_COMMANDS section. |
---|
| 7981 | # |
---|
| 7982 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 7983 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 7984 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7985 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 7986 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 7987 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 7988 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 7989 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 7990 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 7991 | echo X"$ac_dest" | |
---|
| 7992 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7993 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7994 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7995 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7996 | s/.*/./; q'` |
---|
| 7997 | ac_builddir=. |
---|
| 7998 | |
---|
| 7999 | if test "$ac_dir" != .; then |
---|
| 8000 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 8001 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 8002 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 8003 | else |
---|
| 8004 | ac_dir_suffix= ac_top_builddir= |
---|
| 8005 | fi |
---|
| 8006 | |
---|
| 8007 | case $srcdir in |
---|
| 8008 | .) # No --srcdir option. We are building in place. |
---|
| 8009 | ac_srcdir=. |
---|
| 8010 | if test -z "$ac_top_builddir"; then |
---|
| 8011 | ac_top_srcdir=. |
---|
| 8012 | else |
---|
| 8013 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 8014 | fi ;; |
---|
| 8015 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 8016 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 8017 | ac_top_srcdir=$srcdir ;; |
---|
| 8018 | *) # Relative path. |
---|
| 8019 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 8020 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 8021 | esac |
---|
[2984] | 8022 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 8023 | # absolute. |
---|
| 8024 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 8025 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 8026 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 8027 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
[1956] | 8028 | |
---|
| 8029 | |
---|
| 8030 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 8031 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 8032 | case $ac_dest in |
---|
| 8033 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 8034 | # Strip MF so we end up with the name of the file. |
---|
| 8035 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 8036 | # Check whether this is an Automake generated Makefile or not. |
---|
| 8037 | # We used to match only the files named `Makefile.in', but |
---|
| 8038 | # some people rename them; so instead we look at the file content. |
---|
| 8039 | # Grep'ing the first line is not enough: some people post-process |
---|
| 8040 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 8041 | # So let's grep whole file. |
---|
| 8042 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 8043 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 8044 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 8045 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 8046 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 8047 | X"$mf" : 'X\(/\)' \| \ |
---|
| 8048 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 8049 | echo X"$mf" | |
---|
| 8050 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8051 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8052 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8053 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8054 | s/.*/./; q'` |
---|
| 8055 | else |
---|
| 8056 | continue |
---|
| 8057 | fi |
---|
| 8058 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 8059 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 8060 | # running `make'. |
---|
[2984] | 8061 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
[1956] | 8062 | test -z "$DEPDIR" && continue |
---|
| 8063 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2984] | 8064 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
[1956] | 8065 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 8066 | # We invoke sed twice because it is the simplest approach to |
---|
| 8067 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2984] | 8068 | for file in `sed -n -e ' |
---|
[1956] | 8069 | /^DEP_FILES = .*\\\\$/ { |
---|
| 8070 | s/^DEP_FILES = // |
---|
| 8071 | :loop |
---|
| 8072 | s/\\\\$// |
---|
| 8073 | p |
---|
| 8074 | n |
---|
| 8075 | /\\\\$/ b loop |
---|
| 8076 | p |
---|
| 8077 | } |
---|
| 8078 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 8079 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 8080 | # Make sure the directory exists. |
---|
| 8081 | test -f "$dirpart/$file" && continue |
---|
| 8082 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 8083 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 8084 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 8085 | X"$file" : 'X\(//\)$' \| \ |
---|
| 8086 | X"$file" : 'X\(/\)' \| \ |
---|
| 8087 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 8088 | echo X"$file" | |
---|
| 8089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8090 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8091 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8092 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8093 | s/.*/./; q'` |
---|
| 8094 | { if $as_mkdir_p; then |
---|
| 8095 | mkdir -p $dirpart/$fdir |
---|
| 8096 | else |
---|
| 8097 | as_dir=$dirpart/$fdir |
---|
| 8098 | as_dirs= |
---|
| 8099 | while test ! -d "$as_dir"; do |
---|
| 8100 | as_dirs="$as_dir $as_dirs" |
---|
| 8101 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8102 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
[2984] | 8103 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8104 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8105 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8106 | . : '\(.\)' 2>/dev/null || |
---|
[1956] | 8107 | echo X"$as_dir" | |
---|
| 8108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8109 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8110 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8111 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8112 | s/.*/./; q'` |
---|
| 8113 | done |
---|
| 8114 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8115 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 8116 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 8117 | { (exit 1); exit 1; }; }; } |
---|
| 8118 | |
---|
| 8119 | # echo "creating $dirpart/$file" |
---|
| 8120 | echo '# dummy' > "$dirpart/$file" |
---|
| 8121 | done |
---|
| 8122 | done |
---|
| 8123 | ;; |
---|
| 8124 | esac |
---|
| 8125 | done |
---|
| 8126 | _ACEOF |
---|
| 8127 | |
---|
| 8128 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8129 | |
---|
| 8130 | { (exit 0); exit 0; } |
---|
| 8131 | _ACEOF |
---|
| 8132 | chmod +x $CONFIG_STATUS |
---|
| 8133 | ac_clean_files=$ac_clean_files_save |
---|
| 8134 | |
---|
| 8135 | |
---|
| 8136 | # configure is writing to config.log, and then calls config.status. |
---|
| 8137 | # config.status does its own redirection, appending to config.log. |
---|
| 8138 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 8139 | # by configure, so config.status won't be able to write to it; its |
---|
| 8140 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 8141 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 8142 | # appended to by config.status. When coming back to configure, we |
---|
| 8143 | # need to make the FD available again. |
---|
| 8144 | if test "$no_create" != yes; then |
---|
| 8145 | ac_cs_success=: |
---|
| 8146 | ac_config_status_args= |
---|
| 8147 | test "$silent" = yes && |
---|
| 8148 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 8149 | exec 5>/dev/null |
---|
| 8150 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 8151 | exec 5>>config.log |
---|
| 8152 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 8153 | # would make configure fail if this is the last instruction. |
---|
| 8154 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 8155 | fi |
---|
| 8156 | |
---|