|
|
1.1 ! root 1: #! /bin/sh ! 2: # Guess values for system-dependent variables and create Makefiles. ! 3: # Generated by GNU Autoconf 2.53 for hatari 0.50. ! 4: # ! 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 ! 6: # Free Software Foundation, Inc. ! 7: # This configure script is free software; the Free Software Foundation ! 8: # gives unlimited permission to copy, distribute and modify it. ! 9: ! 10: if expr a : '\(a\)' >/dev/null 2>&1; then ! 11: as_expr=expr ! 12: else ! 13: as_expr=false ! 14: fi ! 15: ! 16: ! 17: ## --------------------- ## ! 18: ## M4sh Initialization. ## ! 19: ## --------------------- ## ! 20: ! 21: # Be Bourne compatible ! 22: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! 23: emulate sh ! 24: NULLCMD=: ! 25: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ! 26: set -o posix ! 27: fi ! 28: ! 29: # NLS nuisances. ! 30: # Support unset when possible. ! 31: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then ! 32: as_unset=unset ! 33: else ! 34: as_unset=false ! 35: fi ! 36: ! 37: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && ! 38: { $as_unset LANG || test "${LANG+set}" != set; } || ! 39: { LANG=C; export LANG; } ! 40: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && ! 41: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || ! 42: { LC_ALL=C; export LC_ALL; } ! 43: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && ! 44: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || ! 45: { LC_TIME=C; export LC_TIME; } ! 46: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && ! 47: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || ! 48: { LC_CTYPE=C; export LC_CTYPE; } ! 49: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && ! 50: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || ! 51: { LANGUAGE=C; export LANGUAGE; } ! 52: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && ! 53: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || ! 54: { LC_COLLATE=C; export LC_COLLATE; } ! 55: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && ! 56: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || ! 57: { LC_NUMERIC=C; export LC_NUMERIC; } ! 58: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && ! 59: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || ! 60: { LC_MESSAGES=C; export LC_MESSAGES; } ! 61: ! 62: ! 63: # Name of the executable. ! 64: as_me=`(basename "$0") 2>/dev/null || ! 65: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! 66: X"$0" : 'X\(//\)$' \| \ ! 67: X"$0" : 'X\(/\)$' \| \ ! 68: . : '\(.\)' 2>/dev/null || ! 69: echo X/"$0" | ! 70: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ! 71: /^X\/\(\/\/\)$/{ s//\1/; q; } ! 72: /^X\/\(\/\).*/{ s//\1/; q; } ! 73: s/.*/./; q'` ! 74: ! 75: # PATH needs CR, and LINENO needs CR and PATH. ! 76: # Avoid depending upon Character Ranges. ! 77: as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! 78: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! 79: as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! 80: as_cr_digits='0123456789' ! 81: as_cr_alnum=$as_cr_Letters$as_cr_digits ! 82: ! 83: # The user is always right. ! 84: if test "${PATH_SEPARATOR+set}" != set; then ! 85: echo "#! /bin/sh" >conftest.sh ! 86: echo "exit 0" >>conftest.sh ! 87: chmod +x conftest.sh ! 88: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then ! 89: PATH_SEPARATOR=';' ! 90: else ! 91: PATH_SEPARATOR=: ! 92: fi ! 93: rm -f conftest.sh ! 94: fi ! 95: ! 96: ! 97: as_lineno_1=$LINENO ! 98: as_lineno_2=$LINENO ! 99: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 100: test "x$as_lineno_1" != "x$as_lineno_2" && ! 101: test "x$as_lineno_3" = "x$as_lineno_2" || { ! 102: # Find who we are. Look in the path if we contain no path at all ! 103: # relative or not. ! 104: case $0 in ! 105: *[\\/]* ) as_myself=$0 ;; ! 106: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 107: for as_dir in $PATH ! 108: do ! 109: IFS=$as_save_IFS ! 110: test -z "$as_dir" && as_dir=. ! 111: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! 112: done ! 113: ! 114: ;; ! 115: esac ! 116: # We did not find ourselves, most probably we were run as `sh COMMAND' ! 117: # in which case we are not to be found in the path. ! 118: if test "x$as_myself" = x; then ! 119: as_myself=$0 ! 120: fi ! 121: if test ! -f "$as_myself"; then ! 122: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 ! 123: { (exit 1); exit 1; }; } ! 124: fi ! 125: case $CONFIG_SHELL in ! 126: '') ! 127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 128: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ! 129: do ! 130: IFS=$as_save_IFS ! 131: test -z "$as_dir" && as_dir=. ! 132: for as_base in sh bash ksh sh5; do ! 133: case $as_dir in ! 134: /*) ! 135: if ("$as_dir/$as_base" -c ' ! 136: as_lineno_1=$LINENO ! 137: as_lineno_2=$LINENO ! 138: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 139: test "x$as_lineno_1" != "x$as_lineno_2" && ! 140: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ! 141: CONFIG_SHELL=$as_dir/$as_base ! 142: export CONFIG_SHELL ! 143: exec "$CONFIG_SHELL" "$0" ${1+"$@"} ! 144: fi;; ! 145: esac ! 146: done ! 147: done ! 148: ;; ! 149: esac ! 150: ! 151: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! 152: # uniformly replaced by the line number. The first 'sed' inserts a ! 153: # line-number line before each line; the second 'sed' does the real ! 154: # work. The second script uses 'N' to pair each line-number line ! 155: # with the numbered line, and appends trailing '-' during ! 156: # substitution so that $LINENO is not a special case at line end. ! 157: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! 158: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ! 159: sed '=' <$as_myself | ! 160: sed ' ! 161: N ! 162: s,$,-, ! 163: : loop ! 164: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ! 165: t loop ! 166: s,-$,, ! 167: s,^['$as_cr_digits']*\n,, ! 168: ' >$as_me.lineno && ! 169: chmod +x $as_me.lineno || ! 170: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ! 171: { (exit 1); exit 1; }; } ! 172: ! 173: # Don't try to exec as it changes $[0], causing all sort of problems ! 174: # (the dirname of $[0] is not the place where we might find the ! 175: # original and so on. Autoconf is especially sensible to this). ! 176: . ./$as_me.lineno ! 177: # Exit status is that of the last command. ! 178: exit ! 179: } ! 180: ! 181: ! 182: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ! 183: *c*,-n*) ECHO_N= ECHO_C=' ! 184: ' ECHO_T=' ' ;; ! 185: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ! 186: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ! 187: esac ! 188: ! 189: if expr a : '\(a\)' >/dev/null 2>&1; then ! 190: as_expr=expr ! 191: else ! 192: as_expr=false ! 193: fi ! 194: ! 195: rm -f conf$$ conf$$.exe conf$$.file ! 196: echo >conf$$.file ! 197: if ln -s conf$$.file conf$$ 2>/dev/null; then ! 198: # We could just check for DJGPP; but this test a) works b) is more generic ! 199: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ! 200: if test -f conf$$.exe; then ! 201: # Don't use ln at all; we don't have any links ! 202: as_ln_s='cp -p' ! 203: else ! 204: as_ln_s='ln -s' ! 205: fi ! 206: elif ln conf$$.file conf$$ 2>/dev/null; then ! 207: as_ln_s=ln ! 208: else ! 209: as_ln_s='cp -p' ! 210: fi ! 211: rm -f conf$$ conf$$.exe conf$$.file ! 212: ! 213: as_executable_p="test -f" ! 214: ! 215: # Sed expression to map a string onto a valid CPP name. ! 216: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" ! 217: ! 218: # Sed expression to map a string onto a valid variable name. ! 219: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" ! 220: ! 221: ! 222: # IFS ! 223: # We need space, tab and new line, in precisely that order. ! 224: as_nl=' ! 225: ' ! 226: IFS=" $as_nl" ! 227: ! 228: # CDPATH. ! 229: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } ! 230: ! 231: ! 232: # Name of the host. ! 233: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, ! 234: # so uname gets run too. ! 235: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` ! 236: ! 237: exec 6>&1 ! 238: ! 239: # ! 240: # Initializations. ! 241: # ! 242: ac_default_prefix=/usr/local ! 243: cross_compiling=no ! 244: subdirs= ! 245: MFLAGS= ! 246: MAKEFLAGS= ! 247: SHELL=${CONFIG_SHELL-/bin/sh} ! 248: ! 249: # Maximum number of lines to put in a shell here document. ! 250: # This variable seems obsolete. It should probably be removed, and ! 251: # only ac_max_sed_lines should be used. ! 252: : ${ac_max_here_lines=38} ! 253: ! 254: # Identity of this package. ! 255: PACKAGE_NAME='hatari' ! 256: PACKAGE_TARNAME='hatari' ! 257: PACKAGE_VERSION='0.50' ! 258: PACKAGE_STRING='hatari 0.50' ! 259: PACKAGE_BUGREPORT='' ! 260: ! 261: ac_unique_file="src/main.c" ! 262: # Factoring default headers for most tests. ! 263: ac_includes_default="\ ! 264: #include <stdio.h> ! 265: #if HAVE_SYS_TYPES_H ! 266: # include <sys/types.h> ! 267: #endif ! 268: #if HAVE_SYS_STAT_H ! 269: # include <sys/stat.h> ! 270: #endif ! 271: #if STDC_HEADERS ! 272: # include <stdlib.h> ! 273: # include <stddef.h> ! 274: #else ! 275: # if HAVE_STDLIB_H ! 276: # include <stdlib.h> ! 277: # endif ! 278: #endif ! 279: #if HAVE_STRING_H ! 280: # if !STDC_HEADERS && HAVE_MEMORY_H ! 281: # include <memory.h> ! 282: # endif ! 283: # include <string.h> ! 284: #endif ! 285: #if HAVE_STRINGS_H ! 286: # include <strings.h> ! 287: #endif ! 288: #if HAVE_INTTYPES_H ! 289: # include <inttypes.h> ! 290: #else ! 291: # if HAVE_STDINT_H ! 292: # include <stdint.h> ! 293: # endif ! 294: #endif ! 295: #if HAVE_UNISTD_H ! 296: # include <unistd.h> ! 297: #endif" ! 298: ! 299: ! 300: # Initialize some variables set by options. ! 301: ac_init_help= ! 302: ac_init_version=false ! 303: # The variables have the same names as the options, with ! 304: # dashes changed to underlines. ! 305: cache_file=/dev/null ! 306: exec_prefix=NONE ! 307: no_create= ! 308: no_recursion= ! 309: prefix=NONE ! 310: program_prefix=NONE ! 311: program_suffix=NONE ! 312: program_transform_name=s,x,x, ! 313: silent= ! 314: site= ! 315: srcdir= ! 316: verbose= ! 317: x_includes=NONE ! 318: x_libraries=NONE ! 319: ! 320: # Installation directory options. ! 321: # These are left unexpanded so users can "make install exec_prefix=/foo" ! 322: # and all the variables that are supposed to be based on exec_prefix ! 323: # by default will actually change. ! 324: # Use braces instead of parens because sh, perl, etc. also accept them. ! 325: bindir='${exec_prefix}/bin' ! 326: sbindir='${exec_prefix}/sbin' ! 327: libexecdir='${exec_prefix}/libexec' ! 328: datadir='${prefix}/share' ! 329: sysconfdir='${prefix}/etc' ! 330: sharedstatedir='${prefix}/com' ! 331: localstatedir='${prefix}/var' ! 332: libdir='${exec_prefix}/lib' ! 333: includedir='${prefix}/include' ! 334: oldincludedir='/usr/include' ! 335: infodir='${prefix}/info' ! 336: mandir='${prefix}/man' ! 337: ! 338: ac_prev= ! 339: for ac_option ! 340: do ! 341: # If the previous option needs an argument, assign it. ! 342: if test -n "$ac_prev"; then ! 343: eval "$ac_prev=\$ac_option" ! 344: ac_prev= ! 345: continue ! 346: fi ! 347: ! 348: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ! 349: ! 350: # Accept the important Cygnus configure options, so we can diagnose typos. ! 351: ! 352: case $ac_option in ! 353: ! 354: -bindir | --bindir | --bindi | --bind | --bin | --bi) ! 355: ac_prev=bindir ;; ! 356: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ! 357: bindir=$ac_optarg ;; ! 358: ! 359: -build | --build | --buil | --bui | --bu) ! 360: ac_prev=build_alias ;; ! 361: -build=* | --build=* | --buil=* | --bui=* | --bu=*) ! 362: build_alias=$ac_optarg ;; ! 363: ! 364: -cache-file | --cache-file | --cache-fil | --cache-fi \ ! 365: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ! 366: ac_prev=cache_file ;; ! 367: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ! 368: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ! 369: cache_file=$ac_optarg ;; ! 370: ! 371: --config-cache | -C) ! 372: cache_file=config.cache ;; ! 373: ! 374: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ! 375: ac_prev=datadir ;; ! 376: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ! 377: | --da=*) ! 378: datadir=$ac_optarg ;; ! 379: ! 380: -disable-* | --disable-*) ! 381: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ! 382: # Reject names that are not valid shell variable names. ! 383: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 384: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! 385: { (exit 1); exit 1; }; } ! 386: ac_feature=`echo $ac_feature | sed 's/-/_/g'` ! 387: eval "enable_$ac_feature=no" ;; ! 388: ! 389: -enable-* | --enable-*) ! 390: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ! 391: # Reject names that are not valid shell variable names. ! 392: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 393: { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ! 394: { (exit 1); exit 1; }; } ! 395: ac_feature=`echo $ac_feature | sed 's/-/_/g'` ! 396: case $ac_option in ! 397: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ! 398: *) ac_optarg=yes ;; ! 399: esac ! 400: eval "enable_$ac_feature='$ac_optarg'" ;; ! 401: ! 402: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ! 403: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ! 404: | --exec | --exe | --ex) ! 405: ac_prev=exec_prefix ;; ! 406: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ! 407: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ! 408: | --exec=* | --exe=* | --ex=*) ! 409: exec_prefix=$ac_optarg ;; ! 410: ! 411: -gas | --gas | --ga | --g) ! 412: # Obsolete; use --with-gas. ! 413: with_gas=yes ;; ! 414: ! 415: -help | --help | --hel | --he | -h) ! 416: ac_init_help=long ;; ! 417: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ! 418: ac_init_help=recursive ;; ! 419: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ! 420: ac_init_help=short ;; ! 421: ! 422: -host | --host | --hos | --ho) ! 423: ac_prev=host_alias ;; ! 424: -host=* | --host=* | --hos=* | --ho=*) ! 425: host_alias=$ac_optarg ;; ! 426: ! 427: -includedir | --includedir | --includedi | --included | --include \ ! 428: | --includ | --inclu | --incl | --inc) ! 429: ac_prev=includedir ;; ! 430: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ! 431: | --includ=* | --inclu=* | --incl=* | --inc=*) ! 432: includedir=$ac_optarg ;; ! 433: ! 434: -infodir | --infodir | --infodi | --infod | --info | --inf) ! 435: ac_prev=infodir ;; ! 436: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ! 437: infodir=$ac_optarg ;; ! 438: ! 439: -libdir | --libdir | --libdi | --libd) ! 440: ac_prev=libdir ;; ! 441: -libdir=* | --libdir=* | --libdi=* | --libd=*) ! 442: libdir=$ac_optarg ;; ! 443: ! 444: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ! 445: | --libexe | --libex | --libe) ! 446: ac_prev=libexecdir ;; ! 447: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ! 448: | --libexe=* | --libex=* | --libe=*) ! 449: libexecdir=$ac_optarg ;; ! 450: ! 451: -localstatedir | --localstatedir | --localstatedi | --localstated \ ! 452: | --localstate | --localstat | --localsta | --localst \ ! 453: | --locals | --local | --loca | --loc | --lo) ! 454: ac_prev=localstatedir ;; ! 455: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ! 456: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ ! 457: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ! 458: localstatedir=$ac_optarg ;; ! 459: ! 460: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ! 461: ac_prev=mandir ;; ! 462: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ! 463: mandir=$ac_optarg ;; ! 464: ! 465: -nfp | --nfp | --nf) ! 466: # Obsolete; use --without-fp. ! 467: with_fp=no ;; ! 468: ! 469: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 470: | --no-cr | --no-c | -n) ! 471: no_create=yes ;; ! 472: ! 473: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 474: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ! 475: no_recursion=yes ;; ! 476: ! 477: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ! 478: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ! 479: | --oldin | --oldi | --old | --ol | --o) ! 480: ac_prev=oldincludedir ;; ! 481: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ! 482: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ! 483: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ! 484: oldincludedir=$ac_optarg ;; ! 485: ! 486: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 487: ac_prev=prefix ;; ! 488: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 489: prefix=$ac_optarg ;; ! 490: ! 491: -program-prefix | --program-prefix | --program-prefi | --program-pref \ ! 492: | --program-pre | --program-pr | --program-p) ! 493: ac_prev=program_prefix ;; ! 494: -program-prefix=* | --program-prefix=* | --program-prefi=* \ ! 495: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ! 496: program_prefix=$ac_optarg ;; ! 497: ! 498: -program-suffix | --program-suffix | --program-suffi | --program-suff \ ! 499: | --program-suf | --program-su | --program-s) ! 500: ac_prev=program_suffix ;; ! 501: -program-suffix=* | --program-suffix=* | --program-suffi=* \ ! 502: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ! 503: program_suffix=$ac_optarg ;; ! 504: ! 505: -program-transform-name | --program-transform-name \ ! 506: | --program-transform-nam | --program-transform-na \ ! 507: | --program-transform-n | --program-transform- \ ! 508: | --program-transform | --program-transfor \ ! 509: | --program-transfo | --program-transf \ ! 510: | --program-trans | --program-tran \ ! 511: | --progr-tra | --program-tr | --program-t) ! 512: ac_prev=program_transform_name ;; ! 513: -program-transform-name=* | --program-transform-name=* \ ! 514: | --program-transform-nam=* | --program-transform-na=* \ ! 515: | --program-transform-n=* | --program-transform-=* \ ! 516: | --program-transform=* | --program-transfor=* \ ! 517: | --program-transfo=* | --program-transf=* \ ! 518: | --program-trans=* | --program-tran=* \ ! 519: | --progr-tra=* | --program-tr=* | --program-t=*) ! 520: program_transform_name=$ac_optarg ;; ! 521: ! 522: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 523: | -silent | --silent | --silen | --sile | --sil) ! 524: silent=yes ;; ! 525: ! 526: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ! 527: ac_prev=sbindir ;; ! 528: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ! 529: | --sbi=* | --sb=*) ! 530: sbindir=$ac_optarg ;; ! 531: ! 532: -sharedstatedir | --sharedstatedir | --sharedstatedi \ ! 533: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ! 534: | --sharedst | --shareds | --shared | --share | --shar \ ! 535: | --sha | --sh) ! 536: ac_prev=sharedstatedir ;; ! 537: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ! 538: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ! 539: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ! 540: | --sha=* | --sh=*) ! 541: sharedstatedir=$ac_optarg ;; ! 542: ! 543: -site | --site | --sit) ! 544: ac_prev=site ;; ! 545: -site=* | --site=* | --sit=*) ! 546: site=$ac_optarg ;; ! 547: ! 548: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ! 549: ac_prev=srcdir ;; ! 550: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ! 551: srcdir=$ac_optarg ;; ! 552: ! 553: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ! 554: | --syscon | --sysco | --sysc | --sys | --sy) ! 555: ac_prev=sysconfdir ;; ! 556: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ! 557: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ! 558: sysconfdir=$ac_optarg ;; ! 559: ! 560: -target | --target | --targe | --targ | --tar | --ta | --t) ! 561: ac_prev=target_alias ;; ! 562: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ! 563: target_alias=$ac_optarg ;; ! 564: ! 565: -v | -verbose | --verbose | --verbos | --verbo | --verb) ! 566: verbose=yes ;; ! 567: ! 568: -version | --version | --versio | --versi | --vers | -V) ! 569: ac_init_version=: ;; ! 570: ! 571: -with-* | --with-*) ! 572: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ! 573: # Reject names that are not valid shell variable names. ! 574: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 575: { echo "$as_me: error: invalid package name: $ac_package" >&2 ! 576: { (exit 1); exit 1; }; } ! 577: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 578: case $ac_option in ! 579: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ! 580: *) ac_optarg=yes ;; ! 581: esac ! 582: eval "with_$ac_package='$ac_optarg'" ;; ! 583: ! 584: -without-* | --without-*) ! 585: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` ! 586: # Reject names that are not valid shell variable names. ! 587: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ! 588: { echo "$as_me: error: invalid package name: $ac_package" >&2 ! 589: { (exit 1); exit 1; }; } ! 590: ac_package=`echo $ac_package | sed 's/-/_/g'` ! 591: eval "with_$ac_package=no" ;; ! 592: ! 593: --x) ! 594: # Obsolete; use --with-x. ! 595: with_x=yes ;; ! 596: ! 597: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ! 598: | --x-incl | --x-inc | --x-in | --x-i) ! 599: ac_prev=x_includes ;; ! 600: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ! 601: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ! 602: x_includes=$ac_optarg ;; ! 603: ! 604: -x-libraries | --x-libraries | --x-librarie | --x-librari \ ! 605: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ! 606: ac_prev=x_libraries ;; ! 607: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ! 608: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ! 609: x_libraries=$ac_optarg ;; ! 610: ! 611: -*) { echo "$as_me: error: unrecognized option: $ac_option ! 612: Try \`$0 --help' for more information." >&2 ! 613: { (exit 1); exit 1; }; } ! 614: ;; ! 615: ! 616: *=*) ! 617: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` ! 618: # Reject names that are not valid shell variable names. ! 619: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ! 620: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ! 621: { (exit 1); exit 1; }; } ! 622: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ! 623: eval "$ac_envvar='$ac_optarg'" ! 624: export $ac_envvar ;; ! 625: ! 626: *) ! 627: # FIXME: should be removed in autoconf 3.0. ! 628: echo "$as_me: WARNING: you should use --build, --host, --target" >&2 ! 629: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ! 630: echo "$as_me: WARNING: invalid host type: $ac_option" >&2 ! 631: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ! 632: ;; ! 633: ! 634: esac ! 635: done ! 636: ! 637: if test -n "$ac_prev"; then ! 638: ac_option=--`echo $ac_prev | sed 's/_/-/g'` ! 639: { echo "$as_me: error: missing argument to $ac_option" >&2 ! 640: { (exit 1); exit 1; }; } ! 641: fi ! 642: ! 643: # Be sure to have absolute paths. ! 644: for ac_var in exec_prefix prefix ! 645: do ! 646: eval ac_val=$`echo $ac_var` ! 647: case $ac_val in ! 648: [\\/$]* | ?:[\\/]* | NONE | '' ) ;; ! 649: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! 650: { (exit 1); exit 1; }; };; ! 651: esac ! 652: done ! 653: ! 654: # Be sure to have absolute paths. ! 655: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ ! 656: localstatedir libdir includedir oldincludedir infodir mandir ! 657: do ! 658: eval ac_val=$`echo $ac_var` ! 659: case $ac_val in ! 660: [\\/$]* | ?:[\\/]* ) ;; ! 661: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ! 662: { (exit 1); exit 1; }; };; ! 663: esac ! 664: done ! 665: ! 666: # There might be people who depend on the old broken behavior: `$host' ! 667: # used to hold the argument of --host etc. ! 668: # FIXME: To remove some day. ! 669: build=$build_alias ! 670: host=$host_alias ! 671: target=$target_alias ! 672: ! 673: # FIXME: To remove some day. ! 674: if test "x$host_alias" != x; then ! 675: if test "x$build_alias" = x; then ! 676: cross_compiling=maybe ! 677: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. ! 678: If a cross compiler is detected then cross compile mode will be used." >&2 ! 679: elif test "x$build_alias" != "x$host_alias"; then ! 680: cross_compiling=yes ! 681: fi ! 682: fi ! 683: ! 684: ac_tool_prefix= ! 685: test -n "$host_alias" && ac_tool_prefix=$host_alias- ! 686: ! 687: test "$silent" = yes && exec 6>/dev/null ! 688: ! 689: ! 690: # Find the source files, if location was not specified. ! 691: if test -z "$srcdir"; then ! 692: ac_srcdir_defaulted=yes ! 693: # Try the directory containing this script, then its parent. ! 694: ac_confdir=`(dirname "$0") 2>/dev/null || ! 695: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 696: X"$0" : 'X\(//\)[^/]' \| \ ! 697: X"$0" : 'X\(//\)$' \| \ ! 698: X"$0" : 'X\(/\)' \| \ ! 699: . : '\(.\)' 2>/dev/null || ! 700: echo X"$0" | ! 701: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 702: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 703: /^X\(\/\/\)$/{ s//\1/; q; } ! 704: /^X\(\/\).*/{ s//\1/; q; } ! 705: s/.*/./; q'` ! 706: srcdir=$ac_confdir ! 707: if test ! -r $srcdir/$ac_unique_file; then ! 708: srcdir=.. ! 709: fi ! 710: else ! 711: ac_srcdir_defaulted=no ! 712: fi ! 713: if test ! -r $srcdir/$ac_unique_file; then ! 714: if test "$ac_srcdir_defaulted" = yes; then ! 715: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 ! 716: { (exit 1); exit 1; }; } ! 717: else ! 718: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ! 719: { (exit 1); exit 1; }; } ! 720: fi ! 721: fi ! 722: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ! 723: ac_env_build_alias_set=${build_alias+set} ! 724: ac_env_build_alias_value=$build_alias ! 725: ac_cv_env_build_alias_set=${build_alias+set} ! 726: ac_cv_env_build_alias_value=$build_alias ! 727: ac_env_host_alias_set=${host_alias+set} ! 728: ac_env_host_alias_value=$host_alias ! 729: ac_cv_env_host_alias_set=${host_alias+set} ! 730: ac_cv_env_host_alias_value=$host_alias ! 731: ac_env_target_alias_set=${target_alias+set} ! 732: ac_env_target_alias_value=$target_alias ! 733: ac_cv_env_target_alias_set=${target_alias+set} ! 734: ac_cv_env_target_alias_value=$target_alias ! 735: ac_env_CC_set=${CC+set} ! 736: ac_env_CC_value=$CC ! 737: ac_cv_env_CC_set=${CC+set} ! 738: ac_cv_env_CC_value=$CC ! 739: ac_env_CFLAGS_set=${CFLAGS+set} ! 740: ac_env_CFLAGS_value=$CFLAGS ! 741: ac_cv_env_CFLAGS_set=${CFLAGS+set} ! 742: ac_cv_env_CFLAGS_value=$CFLAGS ! 743: ac_env_LDFLAGS_set=${LDFLAGS+set} ! 744: ac_env_LDFLAGS_value=$LDFLAGS ! 745: ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ! 746: ac_cv_env_LDFLAGS_value=$LDFLAGS ! 747: ac_env_CPPFLAGS_set=${CPPFLAGS+set} ! 748: ac_env_CPPFLAGS_value=$CPPFLAGS ! 749: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ! 750: ac_cv_env_CPPFLAGS_value=$CPPFLAGS ! 751: ac_env_CPP_set=${CPP+set} ! 752: ac_env_CPP_value=$CPP ! 753: ac_cv_env_CPP_set=${CPP+set} ! 754: ac_cv_env_CPP_value=$CPP ! 755: ! 756: # ! 757: # Report the --help message. ! 758: # ! 759: if test "$ac_init_help" = "long"; then ! 760: # Omit some internal or obsolete options to make the list less imposing. ! 761: # This message is too long to be a string in the A/UX 3.1 sh. ! 762: cat <<_ACEOF ! 763: \`configure' configures hatari 0.50 to adapt to many kinds of systems. ! 764: ! 765: Usage: $0 [OPTION]... [VAR=VALUE]... ! 766: ! 767: To assign environment variables (e.g., CC, CFLAGS...), specify them as ! 768: VAR=VALUE. See below for descriptions of some of the useful variables. ! 769: ! 770: Defaults for the options are specified in brackets. ! 771: ! 772: Configuration: ! 773: -h, --help display this help and exit ! 774: --help=short display options specific to this package ! 775: --help=recursive display the short help of all the included packages ! 776: -V, --version display version information and exit ! 777: -q, --quiet, --silent do not print \`checking...' messages ! 778: --cache-file=FILE cache test results in FILE [disabled] ! 779: -C, --config-cache alias for \`--cache-file=config.cache' ! 780: -n, --no-create do not create output files ! 781: --srcdir=DIR find the sources in DIR [configure dir or \`..'] ! 782: ! 783: _ACEOF ! 784: ! 785: cat <<_ACEOF ! 786: Installation directories: ! 787: --prefix=PREFIX install architecture-independent files in PREFIX ! 788: [$ac_default_prefix] ! 789: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! 790: [PREFIX] ! 791: ! 792: By default, \`make install' will install all the files in ! 793: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ! 794: an installation prefix other than \`$ac_default_prefix' using \`--prefix', ! 795: for instance \`--prefix=\$HOME'. ! 796: ! 797: For better control, use the options below. ! 798: ! 799: Fine tuning of the installation directories: ! 800: --bindir=DIR user executables [EPREFIX/bin] ! 801: --sbindir=DIR system admin executables [EPREFIX/sbin] ! 802: --libexecdir=DIR program executables [EPREFIX/libexec] ! 803: --datadir=DIR read-only architecture-independent data [PREFIX/share] ! 804: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ! 805: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ! 806: --localstatedir=DIR modifiable single-machine data [PREFIX/var] ! 807: --libdir=DIR object code libraries [EPREFIX/lib] ! 808: --includedir=DIR C header files [PREFIX/include] ! 809: --oldincludedir=DIR C header files for non-gcc [/usr/include] ! 810: --infodir=DIR info documentation [PREFIX/info] ! 811: --mandir=DIR man documentation [PREFIX/man] ! 812: _ACEOF ! 813: ! 814: cat <<\_ACEOF ! 815: ! 816: System types: ! 817: --build=BUILD configure for building on BUILD [guessed] ! 818: --host=HOST cross-compile to build programs to run on HOST [BUILD] ! 819: --target=TARGET configure for building compilers for TARGET [HOST] ! 820: _ACEOF ! 821: fi ! 822: ! 823: if test -n "$ac_init_help"; then ! 824: case $ac_init_help in ! 825: short | recursive ) echo "Configuration of hatari 0.50:";; ! 826: esac ! 827: cat <<\_ACEOF ! 828: ! 829: Optional Features: ! 830: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ! 831: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ! 832: --enable-werror Compile with the "-Werror" C flag ! 833: --disable-sdltest Do not try to compile and run a test SDL program ! 834: ! 835: Optional Packages: ! 836: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ! 837: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ! 838: --with-extra-inc=DIR additional include files are in DIR ! 839: --with-extra-lib=DIR additional library files are in DIR ! 840: --with-hostcc=x Use x as compiler for the host system ! 841: --with-sdl-prefix=PFX Prefix where SDL is installed (optional) ! 842: --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) ! 843: ! 844: Some influential environment variables: ! 845: CC C compiler command ! 846: CFLAGS C compiler flags ! 847: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a ! 848: nonstandard directory <lib dir> ! 849: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have ! 850: headers in a nonstandard directory <include dir> ! 851: CPP C preprocessor ! 852: ! 853: Use these variables to override the choices made by `configure' or to help ! 854: it to find libraries and programs with nonstandard names/locations. ! 855: ! 856: _ACEOF ! 857: fi ! 858: ! 859: if test "$ac_init_help" = "recursive"; then ! 860: # If there are subdirs, report their specific --help. ! 861: ac_popdir=`pwd` ! 862: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ! 863: test -d $ac_dir || continue ! 864: ac_builddir=. ! 865: ! 866: if test "$ac_dir" != .; then ! 867: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 868: # A "../" for each directory in $ac_dir_suffix. ! 869: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 870: else ! 871: ac_dir_suffix= ac_top_builddir= ! 872: fi ! 873: ! 874: case $srcdir in ! 875: .) # No --srcdir option. We are building in place. ! 876: ac_srcdir=. ! 877: if test -z "$ac_top_builddir"; then ! 878: ac_top_srcdir=. ! 879: else ! 880: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 881: fi ;; ! 882: [\\/]* | ?:[\\/]* ) # Absolute path. ! 883: ac_srcdir=$srcdir$ac_dir_suffix; ! 884: ac_top_srcdir=$srcdir ;; ! 885: *) # Relative path. ! 886: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 887: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 888: esac ! 889: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 890: # absolute. ! 891: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 892: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` ! 893: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 894: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 895: ! 896: cd $ac_dir ! 897: # Check for guested configure; otherwise get Cygnus style configure. ! 898: if test -f $ac_srcdir/configure.gnu; then ! 899: echo ! 900: $SHELL $ac_srcdir/configure.gnu --help=recursive ! 901: elif test -f $ac_srcdir/configure; then ! 902: echo ! 903: $SHELL $ac_srcdir/configure --help=recursive ! 904: elif test -f $ac_srcdir/configure.ac || ! 905: test -f $ac_srcdir/configure.in; then ! 906: echo ! 907: $ac_configure --help ! 908: else ! 909: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 ! 910: fi ! 911: cd $ac_popdir ! 912: done ! 913: fi ! 914: ! 915: test -n "$ac_init_help" && exit 0 ! 916: if $ac_init_version; then ! 917: cat <<\_ACEOF ! 918: hatari configure 0.50 ! 919: generated by GNU Autoconf 2.53 ! 920: ! 921: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 ! 922: Free Software Foundation, Inc. ! 923: This configure script is free software; the Free Software Foundation ! 924: gives unlimited permission to copy, distribute and modify it. ! 925: _ACEOF ! 926: exit 0 ! 927: fi ! 928: exec 5>config.log ! 929: cat >&5 <<_ACEOF ! 930: This file contains any messages produced by compilers while ! 931: running configure, to aid debugging if configure makes a mistake. ! 932: ! 933: It was created by hatari $as_me 0.50, which was ! 934: generated by GNU Autoconf 2.53. Invocation command line was ! 935: ! 936: $ $0 $@ ! 937: ! 938: _ACEOF ! 939: { ! 940: cat <<_ASUNAME ! 941: ## --------- ## ! 942: ## Platform. ## ! 943: ## --------- ## ! 944: ! 945: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ! 946: uname -m = `(uname -m) 2>/dev/null || echo unknown` ! 947: uname -r = `(uname -r) 2>/dev/null || echo unknown` ! 948: uname -s = `(uname -s) 2>/dev/null || echo unknown` ! 949: uname -v = `(uname -v) 2>/dev/null || echo unknown` ! 950: ! 951: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ! 952: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ! 953: ! 954: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ! 955: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ! 956: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ! 957: hostinfo = `(hostinfo) 2>/dev/null || echo unknown` ! 958: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ! 959: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ! 960: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ! 961: ! 962: _ASUNAME ! 963: ! 964: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 965: for as_dir in $PATH ! 966: do ! 967: IFS=$as_save_IFS ! 968: test -z "$as_dir" && as_dir=. ! 969: echo "PATH: $as_dir" ! 970: done ! 971: ! 972: } >&5 ! 973: ! 974: cat >&5 <<_ACEOF ! 975: ! 976: ! 977: ## ----------- ## ! 978: ## Core tests. ## ! 979: ## ----------- ## ! 980: ! 981: _ACEOF ! 982: ! 983: ! 984: # Keep a trace of the command line. ! 985: # Strip out --no-create and --no-recursion so they do not pile up. ! 986: # Also quote any args containing shell meta-characters. ! 987: ac_configure_args= ! 988: ac_sep= ! 989: for ac_arg ! 990: do ! 991: case $ac_arg in ! 992: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 993: | --no-cr | --no-c | -n ) continue ;; ! 994: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 995: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ! 996: continue ;; ! 997: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ! 998: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ! 999: esac ! 1000: case " $ac_configure_args " in ! 1001: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ! 1002: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" ! 1003: ac_sep=" " ;; ! 1004: esac ! 1005: # Get rid of the leading space. ! 1006: done ! 1007: ! 1008: # When interrupted or exit'd, cleanup temporary files, and complete ! 1009: # config.log. We remove comments because anyway the quotes in there ! 1010: # would cause problems or look ugly. ! 1011: # WARNING: Be sure not to use single quotes in there, as some shells, ! 1012: # such as our DU 5.0 friend, will then `close' the trap. ! 1013: trap 'exit_status=$? ! 1014: # Save into config.log some information that might help in debugging. ! 1015: { ! 1016: echo ! 1017: cat <<\_ASBOX ! 1018: ## ---------------- ## ! 1019: ## Cache variables. ## ! 1020: ## ---------------- ## ! 1021: _ASBOX ! 1022: echo ! 1023: # The following way of writing the cache mishandles newlines in values, ! 1024: { ! 1025: (set) 2>&1 | ! 1026: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in ! 1027: *ac_space=\ *) ! 1028: sed -n \ ! 1029: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; ! 1030: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ! 1031: ;; ! 1032: *) ! 1033: sed -n \ ! 1034: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ! 1035: ;; ! 1036: esac; ! 1037: } ! 1038: echo ! 1039: if test -s confdefs.h; then ! 1040: cat <<\_ASBOX ! 1041: ## ----------- ## ! 1042: ## confdefs.h. ## ! 1043: ## ----------- ## ! 1044: _ASBOX ! 1045: echo ! 1046: sed "/^$/d" confdefs.h ! 1047: echo ! 1048: fi ! 1049: test "$ac_signal" != 0 && ! 1050: echo "$as_me: caught signal $ac_signal" ! 1051: echo "$as_me: exit $exit_status" ! 1052: } >&5 ! 1053: rm -f core core.* *.core && ! 1054: rm -rf conftest* confdefs* conf$$* $ac_clean_files && ! 1055: exit $exit_status ! 1056: ' 0 ! 1057: for ac_signal in 1 2 13 15; do ! 1058: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ! 1059: done ! 1060: ac_signal=0 ! 1061: ! 1062: # confdefs.h avoids OS command line length limits that DEFS can exceed. ! 1063: rm -rf conftest* confdefs.h ! 1064: # AIX cpp loses on an empty file, so make sure it contains at least a newline. ! 1065: echo >confdefs.h ! 1066: ! 1067: # Predefined preprocessor variables. ! 1068: ! 1069: cat >>confdefs.h <<_ACEOF ! 1070: #define PACKAGE_NAME "$PACKAGE_NAME" ! 1071: _ACEOF ! 1072: ! 1073: ! 1074: cat >>confdefs.h <<_ACEOF ! 1075: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" ! 1076: _ACEOF ! 1077: ! 1078: ! 1079: cat >>confdefs.h <<_ACEOF ! 1080: #define PACKAGE_VERSION "$PACKAGE_VERSION" ! 1081: _ACEOF ! 1082: ! 1083: ! 1084: cat >>confdefs.h <<_ACEOF ! 1085: #define PACKAGE_STRING "$PACKAGE_STRING" ! 1086: _ACEOF ! 1087: ! 1088: ! 1089: cat >>confdefs.h <<_ACEOF ! 1090: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" ! 1091: _ACEOF ! 1092: ! 1093: ! 1094: # Let the site file select an alternate cache file if it wants to. ! 1095: # Prefer explicitly selected file to automatically selected ones. ! 1096: if test -z "$CONFIG_SITE"; then ! 1097: if test "x$prefix" != xNONE; then ! 1098: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" ! 1099: else ! 1100: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" ! 1101: fi ! 1102: fi ! 1103: for ac_site_file in $CONFIG_SITE; do ! 1104: if test -r "$ac_site_file"; then ! 1105: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ! 1106: echo "$as_me: loading site script $ac_site_file" >&6;} ! 1107: sed 's/^/| /' "$ac_site_file" >&5 ! 1108: . "$ac_site_file" ! 1109: fi ! 1110: done ! 1111: ! 1112: if test -r "$cache_file"; then ! 1113: # Some versions of bash will fail to source /dev/null (special ! 1114: # files actually), so we avoid doing that. ! 1115: if test -f "$cache_file"; then ! 1116: { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ! 1117: echo "$as_me: loading cache $cache_file" >&6;} ! 1118: case $cache_file in ! 1119: [\\/]* | ?:[\\/]* ) . $cache_file;; ! 1120: *) . ./$cache_file;; ! 1121: esac ! 1122: fi ! 1123: else ! 1124: { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ! 1125: echo "$as_me: creating cache $cache_file" >&6;} ! 1126: >$cache_file ! 1127: fi ! 1128: ! 1129: # Check that the precious variables saved in the cache have kept the same ! 1130: # value. ! 1131: ac_cache_corrupted=false ! 1132: for ac_var in `(set) 2>&1 | ! 1133: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do ! 1134: eval ac_old_set=\$ac_cv_env_${ac_var}_set ! 1135: eval ac_new_set=\$ac_env_${ac_var}_set ! 1136: eval ac_old_val="\$ac_cv_env_${ac_var}_value" ! 1137: eval ac_new_val="\$ac_env_${ac_var}_value" ! 1138: case $ac_old_set,$ac_new_set in ! 1139: set,) ! 1140: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ! 1141: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ! 1142: ac_cache_corrupted=: ;; ! 1143: ,set) ! 1144: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ! 1145: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ! 1146: ac_cache_corrupted=: ;; ! 1147: ,);; ! 1148: *) ! 1149: if test "x$ac_old_val" != "x$ac_new_val"; then ! 1150: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ! 1151: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ! 1152: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ! 1153: echo "$as_me: former value: $ac_old_val" >&2;} ! 1154: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ! 1155: echo "$as_me: current value: $ac_new_val" >&2;} ! 1156: ac_cache_corrupted=: ! 1157: fi;; ! 1158: esac ! 1159: # Pass precious variables to config.status. ! 1160: if test "$ac_new_set" = set; then ! 1161: case $ac_new_val in ! 1162: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ! 1163: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ! 1164: *) ac_arg=$ac_var=$ac_new_val ;; ! 1165: esac ! 1166: case " $ac_configure_args " in ! 1167: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ! 1168: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; ! 1169: esac ! 1170: fi ! 1171: done ! 1172: if $ac_cache_corrupted; then ! 1173: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ! 1174: echo "$as_me: error: changes in the environment can compromise the build" >&2;} ! 1175: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ! 1176: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ! 1177: { (exit 1); exit 1; }; } ! 1178: fi ! 1179: ! 1180: ac_ext=c ! 1181: ac_cpp='$CPP $CPPFLAGS' ! 1182: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 1183: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 1184: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 1185: ! 1186: ! 1187: ! 1188: ! 1189: ! 1190: ! 1191: ! 1192: ! 1193: ! 1194: ! 1195: ! 1196: ! 1197: ! 1198: ! 1199: ! 1200: ! 1201: ! 1202: ! 1203: ! 1204: ! 1205: ! 1206: ! 1207: ! 1208: ! 1209: ! 1210: ! 1211: ! 1212: ! 1213: ! 1214: #AC_CANONICAL_HOST ! 1215: ac_aux_dir= ! 1216: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do ! 1217: if test -f $ac_dir/install-sh; then ! 1218: ac_aux_dir=$ac_dir ! 1219: ac_install_sh="$ac_aux_dir/install-sh -c" ! 1220: break ! 1221: elif test -f $ac_dir/install.sh; then ! 1222: ac_aux_dir=$ac_dir ! 1223: ac_install_sh="$ac_aux_dir/install.sh -c" ! 1224: break ! 1225: elif test -f $ac_dir/shtool; then ! 1226: ac_aux_dir=$ac_dir ! 1227: ac_install_sh="$ac_aux_dir/shtool install -c" ! 1228: break ! 1229: fi ! 1230: done ! 1231: if test -z "$ac_aux_dir"; then ! 1232: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 ! 1233: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} ! 1234: { (exit 1); exit 1; }; } ! 1235: fi ! 1236: ac_config_guess="$SHELL $ac_aux_dir/config.guess" ! 1237: ac_config_sub="$SHELL $ac_aux_dir/config.sub" ! 1238: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. ! 1239: ! 1240: # Make sure we can run config.sub. ! 1241: $ac_config_sub sun4 >/dev/null 2>&1 || ! 1242: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 ! 1243: echo "$as_me: error: cannot run $ac_config_sub" >&2;} ! 1244: { (exit 1); exit 1; }; } ! 1245: ! 1246: echo "$as_me:$LINENO: checking build system type" >&5 ! 1247: echo $ECHO_N "checking build system type... $ECHO_C" >&6 ! 1248: if test "${ac_cv_build+set}" = set; then ! 1249: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1250: else ! 1251: ac_cv_build_alias=$build_alias ! 1252: test -z "$ac_cv_build_alias" && ! 1253: ac_cv_build_alias=`$ac_config_guess` ! 1254: test -z "$ac_cv_build_alias" && ! 1255: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ! 1256: echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ! 1257: { (exit 1); exit 1; }; } ! 1258: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || ! 1259: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 ! 1260: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} ! 1261: { (exit 1); exit 1; }; } ! 1262: ! 1263: fi ! 1264: echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ! 1265: echo "${ECHO_T}$ac_cv_build" >&6 ! 1266: build=$ac_cv_build ! 1267: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 1268: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 1269: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 1270: ! 1271: ! 1272: echo "$as_me:$LINENO: checking host system type" >&5 ! 1273: echo $ECHO_N "checking host system type... $ECHO_C" >&6 ! 1274: if test "${ac_cv_host+set}" = set; then ! 1275: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1276: else ! 1277: ac_cv_host_alias=$host_alias ! 1278: test -z "$ac_cv_host_alias" && ! 1279: ac_cv_host_alias=$ac_cv_build_alias ! 1280: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || ! 1281: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 ! 1282: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} ! 1283: { (exit 1); exit 1; }; } ! 1284: ! 1285: fi ! 1286: echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ! 1287: echo "${ECHO_T}$ac_cv_host" >&6 ! 1288: host=$ac_cv_host ! 1289: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 1290: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 1291: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 1292: ! 1293: ! 1294: echo "$as_me:$LINENO: checking target system type" >&5 ! 1295: echo $ECHO_N "checking target system type... $ECHO_C" >&6 ! 1296: if test "${ac_cv_target+set}" = set; then ! 1297: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1298: else ! 1299: ac_cv_target_alias=$target_alias ! 1300: test "x$ac_cv_target_alias" = "x" && ! 1301: ac_cv_target_alias=$ac_cv_host_alias ! 1302: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || ! 1303: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 ! 1304: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} ! 1305: { (exit 1); exit 1; }; } ! 1306: ! 1307: fi ! 1308: echo "$as_me:$LINENO: result: $ac_cv_target" >&5 ! 1309: echo "${ECHO_T}$ac_cv_target" >&6 ! 1310: target=$ac_cv_target ! 1311: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ! 1312: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ! 1313: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ! 1314: ! 1315: ! 1316: # The aliases save the names the user supplied, while $host etc. ! 1317: # will get canonicalized. ! 1318: test -n "$target_alias" && ! 1319: test "$program_prefix$program_suffix$program_transform_name" = \ ! 1320: NONENONEs,x,x, && ! 1321: program_prefix=${target_alias}- ! 1322: ! 1323: ac_ext=c ! 1324: ac_cpp='$CPP $CPPFLAGS' ! 1325: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 1326: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 1327: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 1328: if test -n "$ac_tool_prefix"; then ! 1329: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. ! 1330: set dummy ${ac_tool_prefix}gcc; ac_word=$2 ! 1331: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1332: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1333: if test "${ac_cv_prog_CC+set}" = set; then ! 1334: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1335: else ! 1336: if test -n "$CC"; then ! 1337: ac_cv_prog_CC="$CC" # Let the user override the test. ! 1338: else ! 1339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1340: for as_dir in $PATH ! 1341: do ! 1342: IFS=$as_save_IFS ! 1343: test -z "$as_dir" && as_dir=. ! 1344: for ac_exec_ext in '' $ac_executable_extensions; do ! 1345: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1346: ac_cv_prog_CC="${ac_tool_prefix}gcc" ! 1347: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1348: break 2 ! 1349: fi ! 1350: done ! 1351: done ! 1352: ! 1353: fi ! 1354: fi ! 1355: CC=$ac_cv_prog_CC ! 1356: if test -n "$CC"; then ! 1357: echo "$as_me:$LINENO: result: $CC" >&5 ! 1358: echo "${ECHO_T}$CC" >&6 ! 1359: else ! 1360: echo "$as_me:$LINENO: result: no" >&5 ! 1361: echo "${ECHO_T}no" >&6 ! 1362: fi ! 1363: ! 1364: fi ! 1365: if test -z "$ac_cv_prog_CC"; then ! 1366: ac_ct_CC=$CC ! 1367: # Extract the first word of "gcc", so it can be a program name with args. ! 1368: set dummy gcc; ac_word=$2 ! 1369: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1370: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1371: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 1372: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1373: else ! 1374: if test -n "$ac_ct_CC"; then ! 1375: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 1376: else ! 1377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1378: for as_dir in $PATH ! 1379: do ! 1380: IFS=$as_save_IFS ! 1381: test -z "$as_dir" && as_dir=. ! 1382: for ac_exec_ext in '' $ac_executable_extensions; do ! 1383: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1384: ac_cv_prog_ac_ct_CC="gcc" ! 1385: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1386: break 2 ! 1387: fi ! 1388: done ! 1389: done ! 1390: ! 1391: fi ! 1392: fi ! 1393: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 1394: if test -n "$ac_ct_CC"; then ! 1395: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 1396: echo "${ECHO_T}$ac_ct_CC" >&6 ! 1397: else ! 1398: echo "$as_me:$LINENO: result: no" >&5 ! 1399: echo "${ECHO_T}no" >&6 ! 1400: fi ! 1401: ! 1402: CC=$ac_ct_CC ! 1403: else ! 1404: CC="$ac_cv_prog_CC" ! 1405: fi ! 1406: ! 1407: if test -z "$CC"; then ! 1408: if test -n "$ac_tool_prefix"; then ! 1409: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. ! 1410: set dummy ${ac_tool_prefix}cc; ac_word=$2 ! 1411: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1412: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1413: if test "${ac_cv_prog_CC+set}" = set; then ! 1414: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1415: else ! 1416: if test -n "$CC"; then ! 1417: ac_cv_prog_CC="$CC" # Let the user override the test. ! 1418: else ! 1419: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1420: for as_dir in $PATH ! 1421: do ! 1422: IFS=$as_save_IFS ! 1423: test -z "$as_dir" && as_dir=. ! 1424: for ac_exec_ext in '' $ac_executable_extensions; do ! 1425: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1426: ac_cv_prog_CC="${ac_tool_prefix}cc" ! 1427: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1428: break 2 ! 1429: fi ! 1430: done ! 1431: done ! 1432: ! 1433: fi ! 1434: fi ! 1435: CC=$ac_cv_prog_CC ! 1436: if test -n "$CC"; then ! 1437: echo "$as_me:$LINENO: result: $CC" >&5 ! 1438: echo "${ECHO_T}$CC" >&6 ! 1439: else ! 1440: echo "$as_me:$LINENO: result: no" >&5 ! 1441: echo "${ECHO_T}no" >&6 ! 1442: fi ! 1443: ! 1444: fi ! 1445: if test -z "$ac_cv_prog_CC"; then ! 1446: ac_ct_CC=$CC ! 1447: # Extract the first word of "cc", so it can be a program name with args. ! 1448: set dummy cc; ac_word=$2 ! 1449: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1450: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1451: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 1452: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1453: else ! 1454: if test -n "$ac_ct_CC"; then ! 1455: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 1456: else ! 1457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1458: for as_dir in $PATH ! 1459: do ! 1460: IFS=$as_save_IFS ! 1461: test -z "$as_dir" && as_dir=. ! 1462: for ac_exec_ext in '' $ac_executable_extensions; do ! 1463: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1464: ac_cv_prog_ac_ct_CC="cc" ! 1465: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1466: break 2 ! 1467: fi ! 1468: done ! 1469: done ! 1470: ! 1471: fi ! 1472: fi ! 1473: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 1474: if test -n "$ac_ct_CC"; then ! 1475: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 1476: echo "${ECHO_T}$ac_ct_CC" >&6 ! 1477: else ! 1478: echo "$as_me:$LINENO: result: no" >&5 ! 1479: echo "${ECHO_T}no" >&6 ! 1480: fi ! 1481: ! 1482: CC=$ac_ct_CC ! 1483: else ! 1484: CC="$ac_cv_prog_CC" ! 1485: fi ! 1486: ! 1487: fi ! 1488: if test -z "$CC"; then ! 1489: # Extract the first word of "cc", so it can be a program name with args. ! 1490: set dummy cc; ac_word=$2 ! 1491: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1492: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1493: if test "${ac_cv_prog_CC+set}" = set; then ! 1494: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1495: else ! 1496: if test -n "$CC"; then ! 1497: ac_cv_prog_CC="$CC" # Let the user override the test. ! 1498: else ! 1499: ac_prog_rejected=no ! 1500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1501: for as_dir in $PATH ! 1502: do ! 1503: IFS=$as_save_IFS ! 1504: test -z "$as_dir" && as_dir=. ! 1505: for ac_exec_ext in '' $ac_executable_extensions; do ! 1506: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1507: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ! 1508: ac_prog_rejected=yes ! 1509: continue ! 1510: fi ! 1511: ac_cv_prog_CC="cc" ! 1512: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1513: break 2 ! 1514: fi ! 1515: done ! 1516: done ! 1517: ! 1518: if test $ac_prog_rejected = yes; then ! 1519: # We found a bogon in the path, so make sure we never use it. ! 1520: set dummy $ac_cv_prog_CC ! 1521: shift ! 1522: if test $# != 0; then ! 1523: # We chose a different compiler from the bogus one. ! 1524: # However, it has the same basename, so the bogon will be chosen ! 1525: # first if we set CC to just the basename; use the full file name. ! 1526: shift ! 1527: set dummy "$as_dir/$ac_word" ${1+"$@"} ! 1528: shift ! 1529: ac_cv_prog_CC="$@" ! 1530: fi ! 1531: fi ! 1532: fi ! 1533: fi ! 1534: CC=$ac_cv_prog_CC ! 1535: if test -n "$CC"; then ! 1536: echo "$as_me:$LINENO: result: $CC" >&5 ! 1537: echo "${ECHO_T}$CC" >&6 ! 1538: else ! 1539: echo "$as_me:$LINENO: result: no" >&5 ! 1540: echo "${ECHO_T}no" >&6 ! 1541: fi ! 1542: ! 1543: fi ! 1544: if test -z "$CC"; then ! 1545: if test -n "$ac_tool_prefix"; then ! 1546: for ac_prog in cl ! 1547: do ! 1548: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. ! 1549: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 ! 1550: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1551: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1552: if test "${ac_cv_prog_CC+set}" = set; then ! 1553: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1554: else ! 1555: if test -n "$CC"; then ! 1556: ac_cv_prog_CC="$CC" # Let the user override the test. ! 1557: else ! 1558: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1559: for as_dir in $PATH ! 1560: do ! 1561: IFS=$as_save_IFS ! 1562: test -z "$as_dir" && as_dir=. ! 1563: for ac_exec_ext in '' $ac_executable_extensions; do ! 1564: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1565: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ! 1566: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1567: break 2 ! 1568: fi ! 1569: done ! 1570: done ! 1571: ! 1572: fi ! 1573: fi ! 1574: CC=$ac_cv_prog_CC ! 1575: if test -n "$CC"; then ! 1576: echo "$as_me:$LINENO: result: $CC" >&5 ! 1577: echo "${ECHO_T}$CC" >&6 ! 1578: else ! 1579: echo "$as_me:$LINENO: result: no" >&5 ! 1580: echo "${ECHO_T}no" >&6 ! 1581: fi ! 1582: ! 1583: test -n "$CC" && break ! 1584: done ! 1585: fi ! 1586: if test -z "$CC"; then ! 1587: ac_ct_CC=$CC ! 1588: for ac_prog in cl ! 1589: do ! 1590: # Extract the first word of "$ac_prog", so it can be a program name with args. ! 1591: set dummy $ac_prog; ac_word=$2 ! 1592: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 1593: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 1594: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then ! 1595: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1596: else ! 1597: if test -n "$ac_ct_CC"; then ! 1598: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ! 1599: else ! 1600: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 1601: for as_dir in $PATH ! 1602: do ! 1603: IFS=$as_save_IFS ! 1604: test -z "$as_dir" && as_dir=. ! 1605: for ac_exec_ext in '' $ac_executable_extensions; do ! 1606: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 1607: ac_cv_prog_ac_ct_CC="$ac_prog" ! 1608: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 1609: break 2 ! 1610: fi ! 1611: done ! 1612: done ! 1613: ! 1614: fi ! 1615: fi ! 1616: ac_ct_CC=$ac_cv_prog_ac_ct_CC ! 1617: if test -n "$ac_ct_CC"; then ! 1618: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 ! 1619: echo "${ECHO_T}$ac_ct_CC" >&6 ! 1620: else ! 1621: echo "$as_me:$LINENO: result: no" >&5 ! 1622: echo "${ECHO_T}no" >&6 ! 1623: fi ! 1624: ! 1625: test -n "$ac_ct_CC" && break ! 1626: done ! 1627: ! 1628: CC=$ac_ct_CC ! 1629: fi ! 1630: ! 1631: fi ! 1632: ! 1633: ! 1634: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 ! 1635: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} ! 1636: { (exit 1); exit 1; }; } ! 1637: ! 1638: # Provide some information about the compiler. ! 1639: echo "$as_me:$LINENO:" \ ! 1640: "checking for C compiler version" >&5 ! 1641: ac_compiler=`set X $ac_compile; echo $2` ! 1642: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 ! 1643: (eval $ac_compiler --version </dev/null >&5) 2>&5 ! 1644: ac_status=$? ! 1645: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1646: (exit $ac_status); } ! 1647: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 ! 1648: (eval $ac_compiler -v </dev/null >&5) 2>&5 ! 1649: ac_status=$? ! 1650: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1651: (exit $ac_status); } ! 1652: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 ! 1653: (eval $ac_compiler -V </dev/null >&5) 2>&5 ! 1654: ac_status=$? ! 1655: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1656: (exit $ac_status); } ! 1657: ! 1658: cat >conftest.$ac_ext <<_ACEOF ! 1659: #line $LINENO "configure" ! 1660: #include "confdefs.h" ! 1661: ! 1662: #ifdef F77_DUMMY_MAIN ! 1663: # ifdef __cplusplus ! 1664: extern "C" ! 1665: # endif ! 1666: int F77_DUMMY_MAIN() { return 1; } ! 1667: #endif ! 1668: int ! 1669: main () ! 1670: { ! 1671: ! 1672: ; ! 1673: return 0; ! 1674: } ! 1675: _ACEOF ! 1676: ac_clean_files_save=$ac_clean_files ! 1677: ac_clean_files="$ac_clean_files a.out a.exe" ! 1678: # Try to create an executable without -o first, disregard a.out. ! 1679: # It will help us diagnose broken compilers, and finding out an intuition ! 1680: # of exeext. ! 1681: echo "$as_me:$LINENO: checking for C compiler default output" >&5 ! 1682: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 ! 1683: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` ! 1684: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 ! 1685: (eval $ac_link_default) 2>&5 ! 1686: ac_status=$? ! 1687: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1688: (exit $ac_status); }; then ! 1689: # Find the output, starting from the most likely. This scheme is ! 1690: # not robust to junk in `.', hence go to wildcards (a.*) only as a last ! 1691: # resort. ! 1692: ! 1693: # Be careful to initialize this variable, since it used to be cached. ! 1694: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ! 1695: ac_cv_exeext= ! 1696: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; ! 1697: ls a.out conftest 2>/dev/null; ! 1698: ls a.* conftest.* 2>/dev/null`; do ! 1699: case $ac_file in ! 1700: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; ! 1701: a.out ) # We found the default executable, but exeext='' is most ! 1702: # certainly right. ! 1703: break;; ! 1704: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! 1705: # FIXME: I believe we export ac_cv_exeext for Libtool --akim. ! 1706: export ac_cv_exeext ! 1707: break;; ! 1708: * ) break;; ! 1709: esac ! 1710: done ! 1711: else ! 1712: echo "$as_me: failed program was:" >&5 ! 1713: cat conftest.$ac_ext >&5 ! 1714: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 ! 1715: echo "$as_me: error: C compiler cannot create executables" >&2;} ! 1716: { (exit 77); exit 77; }; } ! 1717: fi ! 1718: ! 1719: ac_exeext=$ac_cv_exeext ! 1720: echo "$as_me:$LINENO: result: $ac_file" >&5 ! 1721: echo "${ECHO_T}$ac_file" >&6 ! 1722: ! 1723: # Check the compiler produces executables we can run. If not, either ! 1724: # the compiler is broken, or we cross compile. ! 1725: echo "$as_me:$LINENO: checking whether the C compiler works" >&5 ! 1726: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 ! 1727: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 ! 1728: # If not cross compiling, check that we can run a simple program. ! 1729: if test "$cross_compiling" != yes; then ! 1730: if { ac_try='./$ac_file' ! 1731: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 1732: (eval $ac_try) 2>&5 ! 1733: ac_status=$? ! 1734: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1735: (exit $ac_status); }; }; then ! 1736: cross_compiling=no ! 1737: else ! 1738: if test "$cross_compiling" = maybe; then ! 1739: cross_compiling=yes ! 1740: else ! 1741: { { echo "$as_me:$LINENO: error: cannot run C compiled programs. ! 1742: If you meant to cross compile, use \`--host'." >&5 ! 1743: echo "$as_me: error: cannot run C compiled programs. ! 1744: If you meant to cross compile, use \`--host'." >&2;} ! 1745: { (exit 1); exit 1; }; } ! 1746: fi ! 1747: fi ! 1748: fi ! 1749: echo "$as_me:$LINENO: result: yes" >&5 ! 1750: echo "${ECHO_T}yes" >&6 ! 1751: ! 1752: rm -f a.out a.exe conftest$ac_cv_exeext ! 1753: ac_clean_files=$ac_clean_files_save ! 1754: # Check the compiler produces executables we can run. If not, either ! 1755: # the compiler is broken, or we cross compile. ! 1756: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 ! 1757: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 ! 1758: echo "$as_me:$LINENO: result: $cross_compiling" >&5 ! 1759: echo "${ECHO_T}$cross_compiling" >&6 ! 1760: ! 1761: echo "$as_me:$LINENO: checking for suffix of executables" >&5 ! 1762: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 ! 1763: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 1764: (eval $ac_link) 2>&5 ! 1765: ac_status=$? ! 1766: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1767: (exit $ac_status); }; then ! 1768: # If both `conftest.exe' and `conftest' are `present' (well, observable) ! 1769: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ! 1770: # work properly (i.e., refer to `conftest.exe'), while it won't with ! 1771: # `rm'. ! 1772: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do ! 1773: case $ac_file in ! 1774: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; ! 1775: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` ! 1776: export ac_cv_exeext ! 1777: break;; ! 1778: * ) break;; ! 1779: esac ! 1780: done ! 1781: else ! 1782: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 ! 1783: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} ! 1784: { (exit 1); exit 1; }; } ! 1785: fi ! 1786: ! 1787: rm -f conftest$ac_cv_exeext ! 1788: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 ! 1789: echo "${ECHO_T}$ac_cv_exeext" >&6 ! 1790: ! 1791: rm -f conftest.$ac_ext ! 1792: EXEEXT=$ac_cv_exeext ! 1793: ac_exeext=$EXEEXT ! 1794: echo "$as_me:$LINENO: checking for suffix of object files" >&5 ! 1795: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 ! 1796: if test "${ac_cv_objext+set}" = set; then ! 1797: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1798: else ! 1799: cat >conftest.$ac_ext <<_ACEOF ! 1800: #line $LINENO "configure" ! 1801: #include "confdefs.h" ! 1802: ! 1803: #ifdef F77_DUMMY_MAIN ! 1804: # ifdef __cplusplus ! 1805: extern "C" ! 1806: # endif ! 1807: int F77_DUMMY_MAIN() { return 1; } ! 1808: #endif ! 1809: int ! 1810: main () ! 1811: { ! 1812: ! 1813: ; ! 1814: return 0; ! 1815: } ! 1816: _ACEOF ! 1817: rm -f conftest.o conftest.obj ! 1818: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 1819: (eval $ac_compile) 2>&5 ! 1820: ac_status=$? ! 1821: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1822: (exit $ac_status); }; then ! 1823: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do ! 1824: case $ac_file in ! 1825: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; ! 1826: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` ! 1827: break;; ! 1828: esac ! 1829: done ! 1830: else ! 1831: echo "$as_me: failed program was:" >&5 ! 1832: cat conftest.$ac_ext >&5 ! 1833: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 ! 1834: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} ! 1835: { (exit 1); exit 1; }; } ! 1836: fi ! 1837: ! 1838: rm -f conftest.$ac_cv_objext conftest.$ac_ext ! 1839: fi ! 1840: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 ! 1841: echo "${ECHO_T}$ac_cv_objext" >&6 ! 1842: OBJEXT=$ac_cv_objext ! 1843: ac_objext=$OBJEXT ! 1844: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 ! 1845: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 ! 1846: if test "${ac_cv_c_compiler_gnu+set}" = set; then ! 1847: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1848: else ! 1849: cat >conftest.$ac_ext <<_ACEOF ! 1850: #line $LINENO "configure" ! 1851: #include "confdefs.h" ! 1852: ! 1853: #ifdef F77_DUMMY_MAIN ! 1854: # ifdef __cplusplus ! 1855: extern "C" ! 1856: # endif ! 1857: int F77_DUMMY_MAIN() { return 1; } ! 1858: #endif ! 1859: int ! 1860: main () ! 1861: { ! 1862: #ifndef __GNUC__ ! 1863: choke me ! 1864: #endif ! 1865: ! 1866: ; ! 1867: return 0; ! 1868: } ! 1869: _ACEOF ! 1870: rm -f conftest.$ac_objext ! 1871: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 1872: (eval $ac_compile) 2>&5 ! 1873: ac_status=$? ! 1874: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1875: (exit $ac_status); } && ! 1876: { ac_try='test -s conftest.$ac_objext' ! 1877: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 1878: (eval $ac_try) 2>&5 ! 1879: ac_status=$? ! 1880: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1881: (exit $ac_status); }; }; then ! 1882: ac_compiler_gnu=yes ! 1883: else ! 1884: echo "$as_me: failed program was:" >&5 ! 1885: cat conftest.$ac_ext >&5 ! 1886: ac_compiler_gnu=no ! 1887: fi ! 1888: rm -f conftest.$ac_objext conftest.$ac_ext ! 1889: ac_cv_c_compiler_gnu=$ac_compiler_gnu ! 1890: ! 1891: fi ! 1892: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ! 1893: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 ! 1894: GCC=`test $ac_compiler_gnu = yes && echo yes` ! 1895: ac_test_CFLAGS=${CFLAGS+set} ! 1896: ac_save_CFLAGS=$CFLAGS ! 1897: CFLAGS="-g" ! 1898: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ! 1899: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 ! 1900: if test "${ac_cv_prog_cc_g+set}" = set; then ! 1901: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 1902: else ! 1903: cat >conftest.$ac_ext <<_ACEOF ! 1904: #line $LINENO "configure" ! 1905: #include "confdefs.h" ! 1906: ! 1907: #ifdef F77_DUMMY_MAIN ! 1908: # ifdef __cplusplus ! 1909: extern "C" ! 1910: # endif ! 1911: int F77_DUMMY_MAIN() { return 1; } ! 1912: #endif ! 1913: int ! 1914: main () ! 1915: { ! 1916: ! 1917: ; ! 1918: return 0; ! 1919: } ! 1920: _ACEOF ! 1921: rm -f conftest.$ac_objext ! 1922: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 1923: (eval $ac_compile) 2>&5 ! 1924: ac_status=$? ! 1925: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1926: (exit $ac_status); } && ! 1927: { ac_try='test -s conftest.$ac_objext' ! 1928: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 1929: (eval $ac_try) 2>&5 ! 1930: ac_status=$? ! 1931: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1932: (exit $ac_status); }; }; then ! 1933: ac_cv_prog_cc_g=yes ! 1934: else ! 1935: echo "$as_me: failed program was:" >&5 ! 1936: cat conftest.$ac_ext >&5 ! 1937: ac_cv_prog_cc_g=no ! 1938: fi ! 1939: rm -f conftest.$ac_objext conftest.$ac_ext ! 1940: fi ! 1941: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ! 1942: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 ! 1943: if test "$ac_test_CFLAGS" = set; then ! 1944: CFLAGS=$ac_save_CFLAGS ! 1945: elif test $ac_cv_prog_cc_g = yes; then ! 1946: if test "$GCC" = yes; then ! 1947: CFLAGS="-g -O2" ! 1948: else ! 1949: CFLAGS="-g" ! 1950: fi ! 1951: else ! 1952: if test "$GCC" = yes; then ! 1953: CFLAGS="-O2" ! 1954: else ! 1955: CFLAGS= ! 1956: fi ! 1957: fi ! 1958: # Some people use a C++ compiler to compile C. Since we use `exit', ! 1959: # in C++ we need to declare it. In case someone uses the same compiler ! 1960: # for both compiling C and C++ we need to have the C++ compiler decide ! 1961: # the declaration of exit, since it's the most demanding environment. ! 1962: cat >conftest.$ac_ext <<_ACEOF ! 1963: #ifndef __cplusplus ! 1964: choke me ! 1965: #endif ! 1966: _ACEOF ! 1967: rm -f conftest.$ac_objext ! 1968: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 1969: (eval $ac_compile) 2>&5 ! 1970: ac_status=$? ! 1971: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1972: (exit $ac_status); } && ! 1973: { ac_try='test -s conftest.$ac_objext' ! 1974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 1975: (eval $ac_try) 2>&5 ! 1976: ac_status=$? ! 1977: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 1978: (exit $ac_status); }; }; then ! 1979: for ac_declaration in \ ! 1980: ''\ ! 1981: '#include <stdlib.h>' \ ! 1982: 'extern "C" void std::exit (int) throw (); using std::exit;' \ ! 1983: 'extern "C" void std::exit (int); using std::exit;' \ ! 1984: 'extern "C" void exit (int) throw ();' \ ! 1985: 'extern "C" void exit (int);' \ ! 1986: 'void exit (int);' ! 1987: do ! 1988: cat >conftest.$ac_ext <<_ACEOF ! 1989: #line $LINENO "configure" ! 1990: #include "confdefs.h" ! 1991: #include <stdlib.h> ! 1992: $ac_declaration ! 1993: #ifdef F77_DUMMY_MAIN ! 1994: # ifdef __cplusplus ! 1995: extern "C" ! 1996: # endif ! 1997: int F77_DUMMY_MAIN() { return 1; } ! 1998: #endif ! 1999: int ! 2000: main () ! 2001: { ! 2002: exit (42); ! 2003: ; ! 2004: return 0; ! 2005: } ! 2006: _ACEOF ! 2007: rm -f conftest.$ac_objext ! 2008: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2009: (eval $ac_compile) 2>&5 ! 2010: ac_status=$? ! 2011: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2012: (exit $ac_status); } && ! 2013: { ac_try='test -s conftest.$ac_objext' ! 2014: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2015: (eval $ac_try) 2>&5 ! 2016: ac_status=$? ! 2017: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2018: (exit $ac_status); }; }; then ! 2019: : ! 2020: else ! 2021: echo "$as_me: failed program was:" >&5 ! 2022: cat conftest.$ac_ext >&5 ! 2023: continue ! 2024: fi ! 2025: rm -f conftest.$ac_objext conftest.$ac_ext ! 2026: cat >conftest.$ac_ext <<_ACEOF ! 2027: #line $LINENO "configure" ! 2028: #include "confdefs.h" ! 2029: $ac_declaration ! 2030: #ifdef F77_DUMMY_MAIN ! 2031: # ifdef __cplusplus ! 2032: extern "C" ! 2033: # endif ! 2034: int F77_DUMMY_MAIN() { return 1; } ! 2035: #endif ! 2036: int ! 2037: main () ! 2038: { ! 2039: exit (42); ! 2040: ; ! 2041: return 0; ! 2042: } ! 2043: _ACEOF ! 2044: rm -f conftest.$ac_objext ! 2045: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2046: (eval $ac_compile) 2>&5 ! 2047: ac_status=$? ! 2048: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2049: (exit $ac_status); } && ! 2050: { ac_try='test -s conftest.$ac_objext' ! 2051: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2052: (eval $ac_try) 2>&5 ! 2053: ac_status=$? ! 2054: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2055: (exit $ac_status); }; }; then ! 2056: break ! 2057: else ! 2058: echo "$as_me: failed program was:" >&5 ! 2059: cat conftest.$ac_ext >&5 ! 2060: fi ! 2061: rm -f conftest.$ac_objext conftest.$ac_ext ! 2062: done ! 2063: rm -f conftest* ! 2064: if test -n "$ac_declaration"; then ! 2065: echo '#ifdef __cplusplus' >>confdefs.h ! 2066: echo $ac_declaration >>confdefs.h ! 2067: echo '#endif' >>confdefs.h ! 2068: fi ! 2069: ! 2070: else ! 2071: echo "$as_me: failed program was:" >&5 ! 2072: cat conftest.$ac_ext >&5 ! 2073: fi ! 2074: rm -f conftest.$ac_objext conftest.$ac_ext ! 2075: ac_ext=c ! 2076: ac_cpp='$CPP $CPPFLAGS' ! 2077: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 2078: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 2079: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 2080: ! 2081: # Find a good install program. We prefer a C program (faster), ! 2082: # so one script is as good as another. But avoid the broken or ! 2083: # incompatible versions: ! 2084: # SysV /etc/install, /usr/sbin/install ! 2085: # SunOS /usr/etc/install ! 2086: # IRIX /sbin/install ! 2087: # AIX /bin/install ! 2088: # AmigaOS /C/install, which installs bootblocks on floppy discs ! 2089: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ! 2090: # AFS /usr/afsws/bin/install, which mishandles nonexistent args ! 2091: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ! 2092: # ./install, which can be erroneously created by make from ./install.sh. ! 2093: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ! 2094: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ! 2095: if test -z "$INSTALL"; then ! 2096: if test "${ac_cv_path_install+set}" = set; then ! 2097: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2098: else ! 2099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2100: for as_dir in $PATH ! 2101: do ! 2102: IFS=$as_save_IFS ! 2103: test -z "$as_dir" && as_dir=. ! 2104: # Account for people who put trailing slashes in PATH elements. ! 2105: case $as_dir/ in ! 2106: ./ | .// | /cC/* | \ ! 2107: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ! 2108: /usr/ucb/* ) ;; ! 2109: *) ! 2110: # OSF1 and SCO ODT 3.0 have their own names for install. ! 2111: # Don't use installbsd from OSF since it installs stuff as root ! 2112: # by default. ! 2113: for ac_prog in ginstall scoinst install; do ! 2114: for ac_exec_ext in '' $ac_executable_extensions; do ! 2115: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ! 2116: if test $ac_prog = install && ! 2117: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 2118: # AIX install. It has an incompatible calling convention. ! 2119: : ! 2120: elif test $ac_prog = install && ! 2121: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ! 2122: # program-specific install script used by HP pwplus--don't use. ! 2123: : ! 2124: else ! 2125: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ! 2126: break 3 ! 2127: fi ! 2128: fi ! 2129: done ! 2130: done ! 2131: ;; ! 2132: esac ! 2133: done ! 2134: ! 2135: ! 2136: fi ! 2137: if test "${ac_cv_path_install+set}" = set; then ! 2138: INSTALL=$ac_cv_path_install ! 2139: else ! 2140: # As a last resort, use the slow shell script. We don't cache a ! 2141: # path for INSTALL within a source directory, because that will ! 2142: # break other packages using the cache if that directory is ! 2143: # removed, or if the path is relative. ! 2144: INSTALL=$ac_install_sh ! 2145: fi ! 2146: fi ! 2147: echo "$as_me:$LINENO: result: $INSTALL" >&5 ! 2148: echo "${ECHO_T}$INSTALL" >&6 ! 2149: ! 2150: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. ! 2151: # It thinks the first close brace ends the variable substitution. ! 2152: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ! 2153: ! 2154: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ! 2155: ! 2156: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ! 2157: ! 2158: ! 2159: # Use the following lines for a release versions: ! 2160: if test x"${GCC}" = xyes; then ! 2161: CFLAGS="-O3 -fomit-frame-pointer" ! 2162: fi ! 2163: ! 2164: # extra command line options ! 2165: ! 2166: # Check whether --enable-werror or --disable-werror was given. ! 2167: if test "${enable_werror+set}" = set; then ! 2168: enableval="$enable_werror" ! 2169: ENABLE_WERROR="${enableval}" ! 2170: else ! 2171: ENABLE_WERROR="no" ! 2172: fi; ! 2173: ! 2174: ! 2175: # Check whether --with-extra-inc or --without-extra-inc was given. ! 2176: if test "${with_extra_inc+set}" = set; then ! 2177: withval="$with_extra_inc" ! 2178: if test "${withval}" != no; then ! 2179: if test "${withval}" != yes; then ! 2180: INCL="${INCL} -I${withval}" ! 2181: fi ! 2182: fi ! 2183: fi; ! 2184: ! 2185: ! 2186: # Check whether --with-extra-lib or --without-extra-lib was given. ! 2187: if test "${with_extra_lib+set}" = set; then ! 2188: withval="$with_extra_lib" ! 2189: if test "${withval}" != no; then ! 2190: if test "${withval}" != yes; then ! 2191: LDFLAGS="${LDFLAGS} -L${withval}" ! 2192: if test x"${GCC}" = xyes; then ! 2193: LDFLAGS="${LDFLAGS} -Wl,-rpath,${withval}/lib" ! 2194: fi ! 2195: fi ! 2196: fi ! 2197: fi; ! 2198: ! 2199: ! 2200: # Check whether --with-hostcc or --without-hostcc was given. ! 2201: if test "${with_hostcc+set}" = set; then ! 2202: withval="$with_hostcc" ! 2203: HOSTCC=$withval ! 2204: else ! 2205: HOSTCC=$CC ! 2206: fi; ! 2207: ! 2208: ! 2209: ! 2210: ! 2211: ! 2212: echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 ! 2213: echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 ! 2214: if test "${ac_cv_lib_z_gzopen+set}" = set; then ! 2215: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2216: else ! 2217: ac_check_lib_save_LIBS=$LIBS ! 2218: LIBS="-lz $LIBS" ! 2219: cat >conftest.$ac_ext <<_ACEOF ! 2220: #line $LINENO "configure" ! 2221: #include "confdefs.h" ! 2222: ! 2223: /* Override any gcc2 internal prototype to avoid an error. */ ! 2224: #ifdef __cplusplus ! 2225: extern "C" ! 2226: #endif ! 2227: /* We use char because int might match the return type of a gcc2 ! 2228: builtin and then its argument prototype would still apply. */ ! 2229: char gzopen (); ! 2230: #ifdef F77_DUMMY_MAIN ! 2231: # ifdef __cplusplus ! 2232: extern "C" ! 2233: # endif ! 2234: int F77_DUMMY_MAIN() { return 1; } ! 2235: #endif ! 2236: int ! 2237: main () ! 2238: { ! 2239: gzopen (); ! 2240: ; ! 2241: return 0; ! 2242: } ! 2243: _ACEOF ! 2244: rm -f conftest.$ac_objext conftest$ac_exeext ! 2245: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 2246: (eval $ac_link) 2>&5 ! 2247: ac_status=$? ! 2248: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2249: (exit $ac_status); } && ! 2250: { ac_try='test -s conftest$ac_exeext' ! 2251: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2252: (eval $ac_try) 2>&5 ! 2253: ac_status=$? ! 2254: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2255: (exit $ac_status); }; }; then ! 2256: ac_cv_lib_z_gzopen=yes ! 2257: else ! 2258: echo "$as_me: failed program was:" >&5 ! 2259: cat conftest.$ac_ext >&5 ! 2260: ac_cv_lib_z_gzopen=no ! 2261: fi ! 2262: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 2263: LIBS=$ac_check_lib_save_LIBS ! 2264: fi ! 2265: echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 ! 2266: echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 ! 2267: if test $ac_cv_lib_z_gzopen = yes; then ! 2268: cat >>confdefs.h <<_ACEOF ! 2269: #define HAVE_LIBZ 1 ! 2270: _ACEOF ! 2271: ! 2272: LIBS="-lz $LIBS" ! 2273: ! 2274: else ! 2275: { { echo "$as_me:$LINENO: error: You need the zlib to compile this program!" >&5 ! 2276: echo "$as_me: error: You need the zlib to compile this program!" >&2;} ! 2277: { (exit 1); exit 1; }; } ! 2278: fi ! 2279: ! 2280: ! 2281: SDL_VERSION=1.2.0 ! 2282: ! 2283: # Check whether --with-sdl-prefix or --without-sdl-prefix was given. ! 2284: if test "${with_sdl_prefix+set}" = set; then ! 2285: withval="$with_sdl_prefix" ! 2286: sdl_prefix="$withval" ! 2287: else ! 2288: sdl_prefix="" ! 2289: fi; ! 2290: ! 2291: # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. ! 2292: if test "${with_sdl_exec_prefix+set}" = set; then ! 2293: withval="$with_sdl_exec_prefix" ! 2294: sdl_exec_prefix="$withval" ! 2295: else ! 2296: sdl_exec_prefix="" ! 2297: fi; ! 2298: # Check whether --enable-sdltest or --disable-sdltest was given. ! 2299: if test "${enable_sdltest+set}" = set; then ! 2300: enableval="$enable_sdltest" ! 2301: ! 2302: else ! 2303: enable_sdltest=yes ! 2304: fi; ! 2305: ! 2306: if test x$sdl_exec_prefix != x ; then ! 2307: sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" ! 2308: if test x${SDL_CONFIG+set} != xset ; then ! 2309: SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config ! 2310: fi ! 2311: fi ! 2312: if test x$sdl_prefix != x ; then ! 2313: sdl_args="$sdl_args --prefix=$sdl_prefix" ! 2314: if test x${SDL_CONFIG+set} != xset ; then ! 2315: SDL_CONFIG=$sdl_prefix/bin/sdl-config ! 2316: fi ! 2317: fi ! 2318: ! 2319: ! 2320: # Extract the first word of "sdl-config", so it can be a program name with args. ! 2321: set dummy sdl-config; ac_word=$2 ! 2322: echo "$as_me:$LINENO: checking for $ac_word" >&5 ! 2323: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ! 2324: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then ! 2325: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2326: else ! 2327: case $SDL_CONFIG in ! 2328: [\\/]* | ?:[\\/]*) ! 2329: ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. ! 2330: ;; ! 2331: *) ! 2332: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 2333: for as_dir in $PATH ! 2334: do ! 2335: IFS=$as_save_IFS ! 2336: test -z "$as_dir" && as_dir=. ! 2337: for ac_exec_ext in '' $ac_executable_extensions; do ! 2338: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ! 2339: ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" ! 2340: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ! 2341: break 2 ! 2342: fi ! 2343: done ! 2344: done ! 2345: ! 2346: test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" ! 2347: ;; ! 2348: esac ! 2349: fi ! 2350: SDL_CONFIG=$ac_cv_path_SDL_CONFIG ! 2351: ! 2352: if test -n "$SDL_CONFIG"; then ! 2353: echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 ! 2354: echo "${ECHO_T}$SDL_CONFIG" >&6 ! 2355: else ! 2356: echo "$as_me:$LINENO: result: no" >&5 ! 2357: echo "${ECHO_T}no" >&6 ! 2358: fi ! 2359: ! 2360: min_sdl_version=$SDL_VERSION ! 2361: echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 ! 2362: echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 ! 2363: no_sdl="" ! 2364: if test "$SDL_CONFIG" = "no" ; then ! 2365: no_sdl=yes ! 2366: else ! 2367: SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` ! 2368: SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` ! 2369: ! 2370: sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ ! 2371: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` ! 2372: sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ ! 2373: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` ! 2374: sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ ! 2375: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` ! 2376: if test "x$enable_sdltest" = "xyes" ; then ! 2377: ac_save_CFLAGS="$CFLAGS" ! 2378: ac_save_LIBS="$LIBS" ! 2379: CFLAGS="$CFLAGS $SDL_CFLAGS" ! 2380: LIBS="$LIBS $SDL_LIBS" ! 2381: rm -f conf.sdltest ! 2382: if test "$cross_compiling" = yes; then ! 2383: echo $ac_n "cross compiling; assumed OK... $ac_c" ! 2384: else ! 2385: cat >conftest.$ac_ext <<_ACEOF ! 2386: #line $LINENO "configure" ! 2387: #include "confdefs.h" ! 2388: ! 2389: #include <stdio.h> ! 2390: #include <stdlib.h> ! 2391: #include <string.h> ! 2392: #include "SDL.h" ! 2393: ! 2394: char* ! 2395: my_strdup (char *str) ! 2396: { ! 2397: char *new_str; ! 2398: ! 2399: if (str) ! 2400: { ! 2401: new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); ! 2402: strcpy (new_str, str); ! 2403: } ! 2404: else ! 2405: new_str = NULL; ! 2406: ! 2407: return new_str; ! 2408: } ! 2409: ! 2410: int main (int argc, char *argv[]) ! 2411: { ! 2412: int major, minor, micro; ! 2413: char *tmp_version; ! 2414: ! 2415: /* This hangs on some systems (?) ! 2416: system ("touch conf.sdltest"); ! 2417: */ ! 2418: { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } ! 2419: ! 2420: /* HP/UX 9 (%@#!) writes to sscanf strings */ ! 2421: tmp_version = my_strdup("$min_sdl_version"); ! 2422: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { ! 2423: printf("%s, bad version string\n", "$min_sdl_version"); ! 2424: exit(1); ! 2425: } ! 2426: ! 2427: if (($sdl_major_version > major) || ! 2428: (($sdl_major_version == major) && ($sdl_minor_version > minor)) || ! 2429: (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) ! 2430: { ! 2431: return 0; ! 2432: } ! 2433: else ! 2434: { ! 2435: printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); ! 2436: printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); ! 2437: printf("*** best to upgrade to the required version.\n"); ! 2438: printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); ! 2439: printf("*** to point to the correct copy of sdl-config, and remove the file\n"); ! 2440: printf("*** config.cache before re-running configure\n"); ! 2441: return 1; ! 2442: } ! 2443: } ! 2444: ! 2445: ! 2446: _ACEOF ! 2447: rm -f conftest$ac_exeext ! 2448: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 2449: (eval $ac_link) 2>&5 ! 2450: ac_status=$? ! 2451: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2452: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 2453: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2454: (eval $ac_try) 2>&5 ! 2455: ac_status=$? ! 2456: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2457: (exit $ac_status); }; }; then ! 2458: : ! 2459: else ! 2460: echo "$as_me: program exited with status $ac_status" >&5 ! 2461: echo "$as_me: failed program was:" >&5 ! 2462: cat conftest.$ac_ext >&5 ! 2463: ( exit $ac_status ) ! 2464: no_sdl=yes ! 2465: fi ! 2466: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 2467: fi ! 2468: CFLAGS="$ac_save_CFLAGS" ! 2469: LIBS="$ac_save_LIBS" ! 2470: fi ! 2471: fi ! 2472: if test "x$no_sdl" = x ; then ! 2473: echo "$as_me:$LINENO: result: yes" >&5 ! 2474: echo "${ECHO_T}yes" >&6 ! 2475: : ! 2476: else ! 2477: echo "$as_me:$LINENO: result: no" >&5 ! 2478: echo "${ECHO_T}no" >&6 ! 2479: if test "$SDL_CONFIG" = "no" ; then ! 2480: echo "*** The sdl-config script installed by SDL could not be found" ! 2481: echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" ! 2482: echo "*** your path, or set the SDL_CONFIG environment variable to the" ! 2483: echo "*** full path to sdl-config." ! 2484: else ! 2485: if test -f conf.sdltest ; then ! 2486: : ! 2487: else ! 2488: echo "*** Could not run SDL test program, checking why..." ! 2489: CFLAGS="$CFLAGS $SDL_CFLAGS" ! 2490: LIBS="$LIBS $SDL_LIBS" ! 2491: cat >conftest.$ac_ext <<_ACEOF ! 2492: #line $LINENO "configure" ! 2493: #include "confdefs.h" ! 2494: ! 2495: #include <stdio.h> ! 2496: #include "SDL.h" ! 2497: ! 2498: int main(int argc, char *argv[]) ! 2499: { return 0; } ! 2500: #undef main ! 2501: #define main K_and_R_C_main ! 2502: ! 2503: #ifdef F77_DUMMY_MAIN ! 2504: # ifdef __cplusplus ! 2505: extern "C" ! 2506: # endif ! 2507: int F77_DUMMY_MAIN() { return 1; } ! 2508: #endif ! 2509: int ! 2510: main () ! 2511: { ! 2512: return 0; ! 2513: ; ! 2514: return 0; ! 2515: } ! 2516: _ACEOF ! 2517: rm -f conftest.$ac_objext conftest$ac_exeext ! 2518: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 2519: (eval $ac_link) 2>&5 ! 2520: ac_status=$? ! 2521: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2522: (exit $ac_status); } && ! 2523: { ac_try='test -s conftest$ac_exeext' ! 2524: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2525: (eval $ac_try) 2>&5 ! 2526: ac_status=$? ! 2527: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2528: (exit $ac_status); }; }; then ! 2529: echo "*** The test program compiled, but did not run. This usually means" ! 2530: echo "*** that the run-time linker is not finding SDL or finding the wrong" ! 2531: echo "*** version of SDL. If it is not finding SDL, you'll need to set your" ! 2532: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" ! 2533: echo "*** to the installed location Also, make sure you have run ldconfig if that" ! 2534: echo "*** is required on your system" ! 2535: echo "***" ! 2536: echo "*** If you have an old version installed, it is best to remove it, although" ! 2537: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ! 2538: else ! 2539: echo "$as_me: failed program was:" >&5 ! 2540: cat conftest.$ac_ext >&5 ! 2541: echo "*** The test program failed to compile or link. See the file config.log for the" ! 2542: echo "*** exact error that occured. This usually means SDL was incorrectly installed" ! 2543: echo "*** or that you have moved SDL since it was installed. In the latter case, you" ! 2544: echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ! 2545: fi ! 2546: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 2547: CFLAGS="$ac_save_CFLAGS" ! 2548: LIBS="$ac_save_LIBS" ! 2549: fi ! 2550: fi ! 2551: SDL_CFLAGS="" ! 2552: SDL_LIBS="" ! 2553: { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 ! 2554: echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} ! 2555: { (exit 1); exit 1; }; } ! 2556: fi ! 2557: ! 2558: ! 2559: rm -f conf.sdltest ! 2560: ! 2561: ! 2562: ! 2563: CPPFLAGS="${CPPFLAGS} ${INCL}" ! 2564: ! 2565: ! 2566: ! 2567: ac_ext=c ! 2568: ac_cpp='$CPP $CPPFLAGS' ! 2569: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 2570: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 2571: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 2572: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 ! 2573: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 ! 2574: # On Suns, sometimes $CPP names a directory. ! 2575: if test -n "$CPP" && test -d "$CPP"; then ! 2576: CPP= ! 2577: fi ! 2578: if test -z "$CPP"; then ! 2579: if test "${ac_cv_prog_CPP+set}" = set; then ! 2580: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2581: else ! 2582: # Double quotes because CPP needs to be expanded ! 2583: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" ! 2584: do ! 2585: ac_preproc_ok=false ! 2586: for ac_c_preproc_warn_flag in '' yes ! 2587: do ! 2588: # Use a header file that comes with gcc, so configuring glibc ! 2589: # with a fresh cross-compiler works. ! 2590: # On the NeXT, cc -E runs the code through the compiler's parser, ! 2591: # not just through cpp. "Syntax error" is here to catch this case. ! 2592: cat >conftest.$ac_ext <<_ACEOF ! 2593: #line $LINENO "configure" ! 2594: #include "confdefs.h" ! 2595: #include <assert.h> ! 2596: Syntax error ! 2597: _ACEOF ! 2598: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 2599: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 2600: ac_status=$? ! 2601: egrep -v '^ *\+' conftest.er1 >conftest.err ! 2602: rm -f conftest.er1 ! 2603: cat conftest.err >&5 ! 2604: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2605: (exit $ac_status); } >/dev/null; then ! 2606: if test -s conftest.err; then ! 2607: ac_cpp_err=$ac_c_preproc_warn_flag ! 2608: else ! 2609: ac_cpp_err= ! 2610: fi ! 2611: else ! 2612: ac_cpp_err=yes ! 2613: fi ! 2614: if test -z "$ac_cpp_err"; then ! 2615: : ! 2616: else ! 2617: echo "$as_me: failed program was:" >&5 ! 2618: cat conftest.$ac_ext >&5 ! 2619: # Broken: fails on valid input. ! 2620: continue ! 2621: fi ! 2622: rm -f conftest.err conftest.$ac_ext ! 2623: ! 2624: # OK, works on sane cases. Now check whether non-existent headers ! 2625: # can be detected and how. ! 2626: cat >conftest.$ac_ext <<_ACEOF ! 2627: #line $LINENO "configure" ! 2628: #include "confdefs.h" ! 2629: #include <ac_nonexistent.h> ! 2630: _ACEOF ! 2631: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 2632: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 2633: ac_status=$? ! 2634: egrep -v '^ *\+' conftest.er1 >conftest.err ! 2635: rm -f conftest.er1 ! 2636: cat conftest.err >&5 ! 2637: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2638: (exit $ac_status); } >/dev/null; then ! 2639: if test -s conftest.err; then ! 2640: ac_cpp_err=$ac_c_preproc_warn_flag ! 2641: else ! 2642: ac_cpp_err= ! 2643: fi ! 2644: else ! 2645: ac_cpp_err=yes ! 2646: fi ! 2647: if test -z "$ac_cpp_err"; then ! 2648: # Broken: success on invalid input. ! 2649: continue ! 2650: else ! 2651: echo "$as_me: failed program was:" >&5 ! 2652: cat conftest.$ac_ext >&5 ! 2653: # Passes both tests. ! 2654: ac_preproc_ok=: ! 2655: break ! 2656: fi ! 2657: rm -f conftest.err conftest.$ac_ext ! 2658: ! 2659: done ! 2660: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 2661: rm -f conftest.err conftest.$ac_ext ! 2662: if $ac_preproc_ok; then ! 2663: break ! 2664: fi ! 2665: ! 2666: done ! 2667: ac_cv_prog_CPP=$CPP ! 2668: ! 2669: fi ! 2670: CPP=$ac_cv_prog_CPP ! 2671: else ! 2672: ac_cv_prog_CPP=$CPP ! 2673: fi ! 2674: echo "$as_me:$LINENO: result: $CPP" >&5 ! 2675: echo "${ECHO_T}$CPP" >&6 ! 2676: ac_preproc_ok=false ! 2677: for ac_c_preproc_warn_flag in '' yes ! 2678: do ! 2679: # Use a header file that comes with gcc, so configuring glibc ! 2680: # with a fresh cross-compiler works. ! 2681: # On the NeXT, cc -E runs the code through the compiler's parser, ! 2682: # not just through cpp. "Syntax error" is here to catch this case. ! 2683: cat >conftest.$ac_ext <<_ACEOF ! 2684: #line $LINENO "configure" ! 2685: #include "confdefs.h" ! 2686: #include <assert.h> ! 2687: Syntax error ! 2688: _ACEOF ! 2689: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 2690: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 2691: ac_status=$? ! 2692: egrep -v '^ *\+' conftest.er1 >conftest.err ! 2693: rm -f conftest.er1 ! 2694: cat conftest.err >&5 ! 2695: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2696: (exit $ac_status); } >/dev/null; then ! 2697: if test -s conftest.err; then ! 2698: ac_cpp_err=$ac_c_preproc_warn_flag ! 2699: else ! 2700: ac_cpp_err= ! 2701: fi ! 2702: else ! 2703: ac_cpp_err=yes ! 2704: fi ! 2705: if test -z "$ac_cpp_err"; then ! 2706: : ! 2707: else ! 2708: echo "$as_me: failed program was:" >&5 ! 2709: cat conftest.$ac_ext >&5 ! 2710: # Broken: fails on valid input. ! 2711: continue ! 2712: fi ! 2713: rm -f conftest.err conftest.$ac_ext ! 2714: ! 2715: # OK, works on sane cases. Now check whether non-existent headers ! 2716: # can be detected and how. ! 2717: cat >conftest.$ac_ext <<_ACEOF ! 2718: #line $LINENO "configure" ! 2719: #include "confdefs.h" ! 2720: #include <ac_nonexistent.h> ! 2721: _ACEOF ! 2722: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 2723: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 2724: ac_status=$? ! 2725: egrep -v '^ *\+' conftest.er1 >conftest.err ! 2726: rm -f conftest.er1 ! 2727: cat conftest.err >&5 ! 2728: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2729: (exit $ac_status); } >/dev/null; then ! 2730: if test -s conftest.err; then ! 2731: ac_cpp_err=$ac_c_preproc_warn_flag ! 2732: else ! 2733: ac_cpp_err= ! 2734: fi ! 2735: else ! 2736: ac_cpp_err=yes ! 2737: fi ! 2738: if test -z "$ac_cpp_err"; then ! 2739: # Broken: success on invalid input. ! 2740: continue ! 2741: else ! 2742: echo "$as_me: failed program was:" >&5 ! 2743: cat conftest.$ac_ext >&5 ! 2744: # Passes both tests. ! 2745: ac_preproc_ok=: ! 2746: break ! 2747: fi ! 2748: rm -f conftest.err conftest.$ac_ext ! 2749: ! 2750: done ! 2751: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. ! 2752: rm -f conftest.err conftest.$ac_ext ! 2753: if $ac_preproc_ok; then ! 2754: : ! 2755: else ! 2756: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 ! 2757: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} ! 2758: { (exit 1); exit 1; }; } ! 2759: fi ! 2760: ! 2761: ac_ext=c ! 2762: ac_cpp='$CPP $CPPFLAGS' ! 2763: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ! 2764: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ! 2765: ac_compiler_gnu=$ac_cv_c_compiler_gnu ! 2766: ! 2767: ! 2768: echo "$as_me:$LINENO: checking for ANSI C header files" >&5 ! 2769: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 ! 2770: if test "${ac_cv_header_stdc+set}" = set; then ! 2771: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2772: else ! 2773: cat >conftest.$ac_ext <<_ACEOF ! 2774: #line $LINENO "configure" ! 2775: #include "confdefs.h" ! 2776: #include <stdlib.h> ! 2777: #include <stdarg.h> ! 2778: #include <string.h> ! 2779: #include <float.h> ! 2780: ! 2781: _ACEOF ! 2782: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 2783: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 2784: ac_status=$? ! 2785: egrep -v '^ *\+' conftest.er1 >conftest.err ! 2786: rm -f conftest.er1 ! 2787: cat conftest.err >&5 ! 2788: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2789: (exit $ac_status); } >/dev/null; then ! 2790: if test -s conftest.err; then ! 2791: ac_cpp_err=$ac_c_preproc_warn_flag ! 2792: else ! 2793: ac_cpp_err= ! 2794: fi ! 2795: else ! 2796: ac_cpp_err=yes ! 2797: fi ! 2798: if test -z "$ac_cpp_err"; then ! 2799: ac_cv_header_stdc=yes ! 2800: else ! 2801: echo "$as_me: failed program was:" >&5 ! 2802: cat conftest.$ac_ext >&5 ! 2803: ac_cv_header_stdc=no ! 2804: fi ! 2805: rm -f conftest.err conftest.$ac_ext ! 2806: ! 2807: if test $ac_cv_header_stdc = yes; then ! 2808: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! 2809: cat >conftest.$ac_ext <<_ACEOF ! 2810: #line $LINENO "configure" ! 2811: #include "confdefs.h" ! 2812: #include <string.h> ! 2813: ! 2814: _ACEOF ! 2815: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2816: egrep "memchr" >/dev/null 2>&1; then ! 2817: : ! 2818: else ! 2819: ac_cv_header_stdc=no ! 2820: fi ! 2821: rm -f conftest* ! 2822: ! 2823: fi ! 2824: ! 2825: if test $ac_cv_header_stdc = yes; then ! 2826: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! 2827: cat >conftest.$ac_ext <<_ACEOF ! 2828: #line $LINENO "configure" ! 2829: #include "confdefs.h" ! 2830: #include <stdlib.h> ! 2831: ! 2832: _ACEOF ! 2833: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2834: egrep "free" >/dev/null 2>&1; then ! 2835: : ! 2836: else ! 2837: ac_cv_header_stdc=no ! 2838: fi ! 2839: rm -f conftest* ! 2840: ! 2841: fi ! 2842: ! 2843: if test $ac_cv_header_stdc = yes; then ! 2844: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 2845: if test "$cross_compiling" = yes; then ! 2846: : ! 2847: else ! 2848: cat >conftest.$ac_ext <<_ACEOF ! 2849: #line $LINENO "configure" ! 2850: #include "confdefs.h" ! 2851: #include <ctype.h> ! 2852: #if ((' ' & 0x0FF) == 0x020) ! 2853: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 2854: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 2855: #else ! 2856: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ ! 2857: || ('j' <= (c) && (c) <= 'r') \ ! 2858: || ('s' <= (c) && (c) <= 'z')) ! 2859: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) ! 2860: #endif ! 2861: ! 2862: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ! 2863: int ! 2864: main () ! 2865: { ! 2866: int i; ! 2867: for (i = 0; i < 256; i++) ! 2868: if (XOR (islower (i), ISLOWER (i)) ! 2869: || toupper (i) != TOUPPER (i)) ! 2870: exit(2); ! 2871: exit (0); ! 2872: } ! 2873: _ACEOF ! 2874: rm -f conftest$ac_exeext ! 2875: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 2876: (eval $ac_link) 2>&5 ! 2877: ac_status=$? ! 2878: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2879: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 2880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2881: (eval $ac_try) 2>&5 ! 2882: ac_status=$? ! 2883: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2884: (exit $ac_status); }; }; then ! 2885: : ! 2886: else ! 2887: echo "$as_me: program exited with status $ac_status" >&5 ! 2888: echo "$as_me: failed program was:" >&5 ! 2889: cat conftest.$ac_ext >&5 ! 2890: ( exit $ac_status ) ! 2891: ac_cv_header_stdc=no ! 2892: fi ! 2893: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 2894: fi ! 2895: fi ! 2896: fi ! 2897: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 ! 2898: echo "${ECHO_T}$ac_cv_header_stdc" >&6 ! 2899: if test $ac_cv_header_stdc = yes; then ! 2900: ! 2901: cat >>confdefs.h <<\_ACEOF ! 2902: #define STDC_HEADERS 1 ! 2903: _ACEOF ! 2904: ! 2905: fi ! 2906: ! 2907: ! 2908: ! 2909: ! 2910: ! 2911: ! 2912: ac_header_dirent=no ! 2913: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do ! 2914: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` ! 2915: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 ! 2916: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 ! 2917: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 2918: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2919: else ! 2920: cat >conftest.$ac_ext <<_ACEOF ! 2921: #line $LINENO "configure" ! 2922: #include "confdefs.h" ! 2923: #include <sys/types.h> ! 2924: #include <$ac_hdr> ! 2925: ! 2926: #ifdef F77_DUMMY_MAIN ! 2927: # ifdef __cplusplus ! 2928: extern "C" ! 2929: # endif ! 2930: int F77_DUMMY_MAIN() { return 1; } ! 2931: #endif ! 2932: int ! 2933: main () ! 2934: { ! 2935: if ((DIR *) 0) ! 2936: return 0; ! 2937: ; ! 2938: return 0; ! 2939: } ! 2940: _ACEOF ! 2941: rm -f conftest.$ac_objext ! 2942: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 2943: (eval $ac_compile) 2>&5 ! 2944: ac_status=$? ! 2945: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2946: (exit $ac_status); } && ! 2947: { ac_try='test -s conftest.$ac_objext' ! 2948: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 2949: (eval $ac_try) 2>&5 ! 2950: ac_status=$? ! 2951: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 2952: (exit $ac_status); }; }; then ! 2953: eval "$as_ac_Header=yes" ! 2954: else ! 2955: echo "$as_me: failed program was:" >&5 ! 2956: cat conftest.$ac_ext >&5 ! 2957: eval "$as_ac_Header=no" ! 2958: fi ! 2959: rm -f conftest.$ac_objext conftest.$ac_ext ! 2960: fi ! 2961: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 2962: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 2963: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 2964: cat >>confdefs.h <<_ACEOF ! 2965: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 ! 2966: _ACEOF ! 2967: ! 2968: ac_header_dirent=$ac_hdr; break ! 2969: fi ! 2970: ! 2971: done ! 2972: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. ! 2973: if test $ac_header_dirent = dirent.h; then ! 2974: echo "$as_me:$LINENO: checking for library containing opendir" >&5 ! 2975: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 ! 2976: if test "${ac_cv_search_opendir+set}" = set; then ! 2977: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 2978: else ! 2979: ac_func_search_save_LIBS=$LIBS ! 2980: ac_cv_search_opendir=no ! 2981: cat >conftest.$ac_ext <<_ACEOF ! 2982: #line $LINENO "configure" ! 2983: #include "confdefs.h" ! 2984: ! 2985: /* Override any gcc2 internal prototype to avoid an error. */ ! 2986: #ifdef __cplusplus ! 2987: extern "C" ! 2988: #endif ! 2989: /* We use char because int might match the return type of a gcc2 ! 2990: builtin and then its argument prototype would still apply. */ ! 2991: char opendir (); ! 2992: #ifdef F77_DUMMY_MAIN ! 2993: # ifdef __cplusplus ! 2994: extern "C" ! 2995: # endif ! 2996: int F77_DUMMY_MAIN() { return 1; } ! 2997: #endif ! 2998: int ! 2999: main () ! 3000: { ! 3001: opendir (); ! 3002: ; ! 3003: return 0; ! 3004: } ! 3005: _ACEOF ! 3006: rm -f conftest.$ac_objext conftest$ac_exeext ! 3007: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 3008: (eval $ac_link) 2>&5 ! 3009: ac_status=$? ! 3010: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3011: (exit $ac_status); } && ! 3012: { ac_try='test -s conftest$ac_exeext' ! 3013: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3014: (eval $ac_try) 2>&5 ! 3015: ac_status=$? ! 3016: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3017: (exit $ac_status); }; }; then ! 3018: ac_cv_search_opendir="none required" ! 3019: else ! 3020: echo "$as_me: failed program was:" >&5 ! 3021: cat conftest.$ac_ext >&5 ! 3022: fi ! 3023: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 3024: if test "$ac_cv_search_opendir" = no; then ! 3025: for ac_lib in dir; do ! 3026: LIBS="-l$ac_lib $ac_func_search_save_LIBS" ! 3027: cat >conftest.$ac_ext <<_ACEOF ! 3028: #line $LINENO "configure" ! 3029: #include "confdefs.h" ! 3030: ! 3031: /* Override any gcc2 internal prototype to avoid an error. */ ! 3032: #ifdef __cplusplus ! 3033: extern "C" ! 3034: #endif ! 3035: /* We use char because int might match the return type of a gcc2 ! 3036: builtin and then its argument prototype would still apply. */ ! 3037: char opendir (); ! 3038: #ifdef F77_DUMMY_MAIN ! 3039: # ifdef __cplusplus ! 3040: extern "C" ! 3041: # endif ! 3042: int F77_DUMMY_MAIN() { return 1; } ! 3043: #endif ! 3044: int ! 3045: main () ! 3046: { ! 3047: opendir (); ! 3048: ; ! 3049: return 0; ! 3050: } ! 3051: _ACEOF ! 3052: rm -f conftest.$ac_objext conftest$ac_exeext ! 3053: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 3054: (eval $ac_link) 2>&5 ! 3055: ac_status=$? ! 3056: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3057: (exit $ac_status); } && ! 3058: { ac_try='test -s conftest$ac_exeext' ! 3059: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3060: (eval $ac_try) 2>&5 ! 3061: ac_status=$? ! 3062: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3063: (exit $ac_status); }; }; then ! 3064: ac_cv_search_opendir="-l$ac_lib" ! 3065: break ! 3066: else ! 3067: echo "$as_me: failed program was:" >&5 ! 3068: cat conftest.$ac_ext >&5 ! 3069: fi ! 3070: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 3071: done ! 3072: fi ! 3073: LIBS=$ac_func_search_save_LIBS ! 3074: fi ! 3075: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 ! 3076: echo "${ECHO_T}$ac_cv_search_opendir" >&6 ! 3077: if test "$ac_cv_search_opendir" != no; then ! 3078: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" ! 3079: ! 3080: fi ! 3081: ! 3082: else ! 3083: echo "$as_me:$LINENO: checking for library containing opendir" >&5 ! 3084: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 ! 3085: if test "${ac_cv_search_opendir+set}" = set; then ! 3086: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3087: else ! 3088: ac_func_search_save_LIBS=$LIBS ! 3089: ac_cv_search_opendir=no ! 3090: cat >conftest.$ac_ext <<_ACEOF ! 3091: #line $LINENO "configure" ! 3092: #include "confdefs.h" ! 3093: ! 3094: /* Override any gcc2 internal prototype to avoid an error. */ ! 3095: #ifdef __cplusplus ! 3096: extern "C" ! 3097: #endif ! 3098: /* We use char because int might match the return type of a gcc2 ! 3099: builtin and then its argument prototype would still apply. */ ! 3100: char opendir (); ! 3101: #ifdef F77_DUMMY_MAIN ! 3102: # ifdef __cplusplus ! 3103: extern "C" ! 3104: # endif ! 3105: int F77_DUMMY_MAIN() { return 1; } ! 3106: #endif ! 3107: int ! 3108: main () ! 3109: { ! 3110: opendir (); ! 3111: ; ! 3112: return 0; ! 3113: } ! 3114: _ACEOF ! 3115: rm -f conftest.$ac_objext conftest$ac_exeext ! 3116: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 3117: (eval $ac_link) 2>&5 ! 3118: ac_status=$? ! 3119: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3120: (exit $ac_status); } && ! 3121: { ac_try='test -s conftest$ac_exeext' ! 3122: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3123: (eval $ac_try) 2>&5 ! 3124: ac_status=$? ! 3125: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3126: (exit $ac_status); }; }; then ! 3127: ac_cv_search_opendir="none required" ! 3128: else ! 3129: echo "$as_me: failed program was:" >&5 ! 3130: cat conftest.$ac_ext >&5 ! 3131: fi ! 3132: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 3133: if test "$ac_cv_search_opendir" = no; then ! 3134: for ac_lib in x; do ! 3135: LIBS="-l$ac_lib $ac_func_search_save_LIBS" ! 3136: cat >conftest.$ac_ext <<_ACEOF ! 3137: #line $LINENO "configure" ! 3138: #include "confdefs.h" ! 3139: ! 3140: /* Override any gcc2 internal prototype to avoid an error. */ ! 3141: #ifdef __cplusplus ! 3142: extern "C" ! 3143: #endif ! 3144: /* We use char because int might match the return type of a gcc2 ! 3145: builtin and then its argument prototype would still apply. */ ! 3146: char opendir (); ! 3147: #ifdef F77_DUMMY_MAIN ! 3148: # ifdef __cplusplus ! 3149: extern "C" ! 3150: # endif ! 3151: int F77_DUMMY_MAIN() { return 1; } ! 3152: #endif ! 3153: int ! 3154: main () ! 3155: { ! 3156: opendir (); ! 3157: ; ! 3158: return 0; ! 3159: } ! 3160: _ACEOF ! 3161: rm -f conftest.$ac_objext conftest$ac_exeext ! 3162: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 3163: (eval $ac_link) 2>&5 ! 3164: ac_status=$? ! 3165: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3166: (exit $ac_status); } && ! 3167: { ac_try='test -s conftest$ac_exeext' ! 3168: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3169: (eval $ac_try) 2>&5 ! 3170: ac_status=$? ! 3171: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3172: (exit $ac_status); }; }; then ! 3173: ac_cv_search_opendir="-l$ac_lib" ! 3174: break ! 3175: else ! 3176: echo "$as_me: failed program was:" >&5 ! 3177: cat conftest.$ac_ext >&5 ! 3178: fi ! 3179: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 3180: done ! 3181: fi ! 3182: LIBS=$ac_func_search_save_LIBS ! 3183: fi ! 3184: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 ! 3185: echo "${ECHO_T}$ac_cv_search_opendir" >&6 ! 3186: if test "$ac_cv_search_opendir" != no; then ! 3187: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" ! 3188: ! 3189: fi ! 3190: ! 3191: fi ! 3192: ! 3193: ! 3194: # On IRIX 5.3, sys/types and inttypes.h are conflicting. ! 3195: ! 3196: ! 3197: ! 3198: ! 3199: ! 3200: ! 3201: ! 3202: ! 3203: ! 3204: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ ! 3205: inttypes.h stdint.h unistd.h ! 3206: do ! 3207: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 3208: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3209: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3210: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3211: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3212: else ! 3213: cat >conftest.$ac_ext <<_ACEOF ! 3214: #line $LINENO "configure" ! 3215: #include "confdefs.h" ! 3216: $ac_includes_default ! 3217: ! 3218: #include <$ac_header> ! 3219: _ACEOF ! 3220: rm -f conftest.$ac_objext ! 3221: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3222: (eval $ac_compile) 2>&5 ! 3223: ac_status=$? ! 3224: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3225: (exit $ac_status); } && ! 3226: { ac_try='test -s conftest.$ac_objext' ! 3227: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3228: (eval $ac_try) 2>&5 ! 3229: ac_status=$? ! 3230: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3231: (exit $ac_status); }; }; then ! 3232: eval "$as_ac_Header=yes" ! 3233: else ! 3234: echo "$as_me: failed program was:" >&5 ! 3235: cat conftest.$ac_ext >&5 ! 3236: eval "$as_ac_Header=no" ! 3237: fi ! 3238: rm -f conftest.$ac_objext conftest.$ac_ext ! 3239: fi ! 3240: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3241: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3242: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 3243: cat >>confdefs.h <<_ACEOF ! 3244: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 3245: _ACEOF ! 3246: ! 3247: fi ! 3248: ! 3249: done ! 3250: ! 3251: ! 3252: ! 3253: ! 3254: for ac_header in unistd.h zlib.h ! 3255: do ! 3256: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 3257: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3258: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3259: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3260: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3261: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3262: fi ! 3263: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3264: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3265: else ! 3266: # Is the header compilable? ! 3267: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 3268: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 3269: cat >conftest.$ac_ext <<_ACEOF ! 3270: #line $LINENO "configure" ! 3271: #include "confdefs.h" ! 3272: $ac_includes_default ! 3273: #include <$ac_header> ! 3274: _ACEOF ! 3275: rm -f conftest.$ac_objext ! 3276: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3277: (eval $ac_compile) 2>&5 ! 3278: ac_status=$? ! 3279: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3280: (exit $ac_status); } && ! 3281: { ac_try='test -s conftest.$ac_objext' ! 3282: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3283: (eval $ac_try) 2>&5 ! 3284: ac_status=$? ! 3285: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3286: (exit $ac_status); }; }; then ! 3287: ac_header_compiler=yes ! 3288: else ! 3289: echo "$as_me: failed program was:" >&5 ! 3290: cat conftest.$ac_ext >&5 ! 3291: ac_header_compiler=no ! 3292: fi ! 3293: rm -f conftest.$ac_objext conftest.$ac_ext ! 3294: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 3295: echo "${ECHO_T}$ac_header_compiler" >&6 ! 3296: ! 3297: # Is the header present? ! 3298: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 3299: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 3300: cat >conftest.$ac_ext <<_ACEOF ! 3301: #line $LINENO "configure" ! 3302: #include "confdefs.h" ! 3303: #include <$ac_header> ! 3304: _ACEOF ! 3305: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3306: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3307: ac_status=$? ! 3308: egrep -v '^ *\+' conftest.er1 >conftest.err ! 3309: rm -f conftest.er1 ! 3310: cat conftest.err >&5 ! 3311: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3312: (exit $ac_status); } >/dev/null; then ! 3313: if test -s conftest.err; then ! 3314: ac_cpp_err=$ac_c_preproc_warn_flag ! 3315: else ! 3316: ac_cpp_err= ! 3317: fi ! 3318: else ! 3319: ac_cpp_err=yes ! 3320: fi ! 3321: if test -z "$ac_cpp_err"; then ! 3322: ac_header_preproc=yes ! 3323: else ! 3324: echo "$as_me: failed program was:" >&5 ! 3325: cat conftest.$ac_ext >&5 ! 3326: ac_header_preproc=no ! 3327: fi ! 3328: rm -f conftest.err conftest.$ac_ext ! 3329: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 3330: echo "${ECHO_T}$ac_header_preproc" >&6 ! 3331: ! 3332: # So? What about this header? ! 3333: case $ac_header_compiler:$ac_header_preproc in ! 3334: yes:no ) ! 3335: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 3336: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 3337: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3338: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; ! 3339: no:yes ) ! 3340: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 3341: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 3342: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 3343: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 3344: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3345: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; ! 3346: esac ! 3347: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3348: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3349: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3350: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3351: else ! 3352: eval "$as_ac_Header=$ac_header_preproc" ! 3353: fi ! 3354: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3355: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3356: ! 3357: fi ! 3358: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 3359: cat >>confdefs.h <<_ACEOF ! 3360: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 3361: _ACEOF ! 3362: ! 3363: else ! 3364: { { echo "$as_me:$LINENO: error: header file not found!" >&5 ! 3365: echo "$as_me: error: header file not found!" >&2;} ! 3366: { (exit 1); exit 1; }; } ! 3367: fi ! 3368: ! 3369: done ! 3370: ! 3371: ! 3372: ! 3373: echo "$as_me:$LINENO: checking for mode_t" >&5 ! 3374: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 ! 3375: if test "${ac_cv_type_mode_t+set}" = set; then ! 3376: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3377: else ! 3378: cat >conftest.$ac_ext <<_ACEOF ! 3379: #line $LINENO "configure" ! 3380: #include "confdefs.h" ! 3381: $ac_includes_default ! 3382: #ifdef F77_DUMMY_MAIN ! 3383: # ifdef __cplusplus ! 3384: extern "C" ! 3385: # endif ! 3386: int F77_DUMMY_MAIN() { return 1; } ! 3387: #endif ! 3388: int ! 3389: main () ! 3390: { ! 3391: if ((mode_t *) 0) ! 3392: return 0; ! 3393: if (sizeof (mode_t)) ! 3394: return 0; ! 3395: ; ! 3396: return 0; ! 3397: } ! 3398: _ACEOF ! 3399: rm -f conftest.$ac_objext ! 3400: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3401: (eval $ac_compile) 2>&5 ! 3402: ac_status=$? ! 3403: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3404: (exit $ac_status); } && ! 3405: { ac_try='test -s conftest.$ac_objext' ! 3406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3407: (eval $ac_try) 2>&5 ! 3408: ac_status=$? ! 3409: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3410: (exit $ac_status); }; }; then ! 3411: ac_cv_type_mode_t=yes ! 3412: else ! 3413: echo "$as_me: failed program was:" >&5 ! 3414: cat conftest.$ac_ext >&5 ! 3415: ac_cv_type_mode_t=no ! 3416: fi ! 3417: rm -f conftest.$ac_objext conftest.$ac_ext ! 3418: fi ! 3419: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 ! 3420: echo "${ECHO_T}$ac_cv_type_mode_t" >&6 ! 3421: if test $ac_cv_type_mode_t = yes; then ! 3422: : ! 3423: else ! 3424: ! 3425: cat >>confdefs.h <<_ACEOF ! 3426: #define mode_t int ! 3427: _ACEOF ! 3428: ! 3429: fi ! 3430: ! 3431: echo "$as_me:$LINENO: checking for size_t" >&5 ! 3432: echo $ECHO_N "checking for size_t... $ECHO_C" >&6 ! 3433: if test "${ac_cv_type_size_t+set}" = set; then ! 3434: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3435: else ! 3436: cat >conftest.$ac_ext <<_ACEOF ! 3437: #line $LINENO "configure" ! 3438: #include "confdefs.h" ! 3439: $ac_includes_default ! 3440: #ifdef F77_DUMMY_MAIN ! 3441: # ifdef __cplusplus ! 3442: extern "C" ! 3443: # endif ! 3444: int F77_DUMMY_MAIN() { return 1; } ! 3445: #endif ! 3446: int ! 3447: main () ! 3448: { ! 3449: if ((size_t *) 0) ! 3450: return 0; ! 3451: if (sizeof (size_t)) ! 3452: return 0; ! 3453: ; ! 3454: return 0; ! 3455: } ! 3456: _ACEOF ! 3457: rm -f conftest.$ac_objext ! 3458: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3459: (eval $ac_compile) 2>&5 ! 3460: ac_status=$? ! 3461: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3462: (exit $ac_status); } && ! 3463: { ac_try='test -s conftest.$ac_objext' ! 3464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3465: (eval $ac_try) 2>&5 ! 3466: ac_status=$? ! 3467: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3468: (exit $ac_status); }; }; then ! 3469: ac_cv_type_size_t=yes ! 3470: else ! 3471: echo "$as_me: failed program was:" >&5 ! 3472: cat conftest.$ac_ext >&5 ! 3473: ac_cv_type_size_t=no ! 3474: fi ! 3475: rm -f conftest.$ac_objext conftest.$ac_ext ! 3476: fi ! 3477: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 ! 3478: echo "${ECHO_T}$ac_cv_type_size_t" >&6 ! 3479: if test $ac_cv_type_size_t = yes; then ! 3480: : ! 3481: else ! 3482: ! 3483: cat >>confdefs.h <<_ACEOF ! 3484: #define size_t unsigned ! 3485: _ACEOF ! 3486: ! 3487: fi ! 3488: ! 3489: ! 3490: echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 ! 3491: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 ! 3492: if test "${ac_cv_struct_tm+set}" = set; then ! 3493: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3494: else ! 3495: cat >conftest.$ac_ext <<_ACEOF ! 3496: #line $LINENO "configure" ! 3497: #include "confdefs.h" ! 3498: #include <sys/types.h> ! 3499: #include <time.h> ! 3500: ! 3501: #ifdef F77_DUMMY_MAIN ! 3502: # ifdef __cplusplus ! 3503: extern "C" ! 3504: # endif ! 3505: int F77_DUMMY_MAIN() { return 1; } ! 3506: #endif ! 3507: int ! 3508: main () ! 3509: { ! 3510: struct tm *tp; tp->tm_sec; ! 3511: ; ! 3512: return 0; ! 3513: } ! 3514: _ACEOF ! 3515: rm -f conftest.$ac_objext ! 3516: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3517: (eval $ac_compile) 2>&5 ! 3518: ac_status=$? ! 3519: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3520: (exit $ac_status); } && ! 3521: { ac_try='test -s conftest.$ac_objext' ! 3522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3523: (eval $ac_try) 2>&5 ! 3524: ac_status=$? ! 3525: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3526: (exit $ac_status); }; }; then ! 3527: ac_cv_struct_tm=time.h ! 3528: else ! 3529: echo "$as_me: failed program was:" >&5 ! 3530: cat conftest.$ac_ext >&5 ! 3531: ac_cv_struct_tm=sys/time.h ! 3532: fi ! 3533: rm -f conftest.$ac_objext conftest.$ac_ext ! 3534: fi ! 3535: echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 ! 3536: echo "${ECHO_T}$ac_cv_struct_tm" >&6 ! 3537: if test $ac_cv_struct_tm = sys/time.h; then ! 3538: ! 3539: cat >>confdefs.h <<\_ACEOF ! 3540: #define TM_IN_SYS_TIME 1 ! 3541: _ACEOF ! 3542: ! 3543: fi ! 3544: ! 3545: ! 3546: ! 3547: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 ! 3548: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 ! 3549: if test "${ac_cv_prog_cc_stdc+set}" = set; then ! 3550: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3551: else ! 3552: ac_cv_prog_cc_stdc=no ! 3553: ac_save_CC=$CC ! 3554: cat >conftest.$ac_ext <<_ACEOF ! 3555: #line $LINENO "configure" ! 3556: #include "confdefs.h" ! 3557: #include <stdarg.h> ! 3558: #include <stdio.h> ! 3559: #include <sys/types.h> ! 3560: #include <sys/stat.h> ! 3561: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ ! 3562: struct buf { int x; }; ! 3563: FILE * (*rcsopen) (struct buf *, struct stat *, int); ! 3564: static char *e (p, i) ! 3565: char **p; ! 3566: int i; ! 3567: { ! 3568: return p[i]; ! 3569: } ! 3570: static char *f (char * (*g) (char **, int), char **p, ...) ! 3571: { ! 3572: char *s; ! 3573: va_list v; ! 3574: va_start (v,p); ! 3575: s = g (p, va_arg (v,int)); ! 3576: va_end (v); ! 3577: return s; ! 3578: } ! 3579: int test (int i, double x); ! 3580: struct s1 {int (*f) (int a);}; ! 3581: struct s2 {int (*f) (double a);}; ! 3582: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); ! 3583: int argc; ! 3584: char **argv; ! 3585: #ifdef F77_DUMMY_MAIN ! 3586: # ifdef __cplusplus ! 3587: extern "C" ! 3588: # endif ! 3589: int F77_DUMMY_MAIN() { return 1; } ! 3590: #endif ! 3591: int ! 3592: main () ! 3593: { ! 3594: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ! 3595: ; ! 3596: return 0; ! 3597: } ! 3598: _ACEOF ! 3599: # Don't try gcc -ansi; that turns off useful extensions and ! 3600: # breaks some systems' header files. ! 3601: # AIX -qlanglvl=ansi ! 3602: # Ultrix and OSF/1 -std1 ! 3603: # HP-UX 10.20 and later -Ae ! 3604: # HP-UX older versions -Aa -D_HPUX_SOURCE ! 3605: # SVR4 -Xc -D__EXTENSIONS__ ! 3606: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" ! 3607: do ! 3608: CC="$ac_save_CC $ac_arg" ! 3609: rm -f conftest.$ac_objext ! 3610: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3611: (eval $ac_compile) 2>&5 ! 3612: ac_status=$? ! 3613: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3614: (exit $ac_status); } && ! 3615: { ac_try='test -s conftest.$ac_objext' ! 3616: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3617: (eval $ac_try) 2>&5 ! 3618: ac_status=$? ! 3619: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3620: (exit $ac_status); }; }; then ! 3621: ac_cv_prog_cc_stdc=$ac_arg ! 3622: break ! 3623: else ! 3624: echo "$as_me: failed program was:" >&5 ! 3625: cat conftest.$ac_ext >&5 ! 3626: fi ! 3627: rm -f conftest.$ac_objext ! 3628: done ! 3629: rm -f conftest.$ac_ext conftest.$ac_objext ! 3630: CC=$ac_save_CC ! 3631: ! 3632: fi ! 3633: ! 3634: case "x$ac_cv_prog_cc_stdc" in ! 3635: x|xno) ! 3636: echo "$as_me:$LINENO: result: none needed" >&5 ! 3637: echo "${ECHO_T}none needed" >&6 ;; ! 3638: *) ! 3639: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 ! 3640: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 ! 3641: CC="$CC $ac_cv_prog_cc_stdc" ;; ! 3642: esac ! 3643: ! 3644: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 ! 3645: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 ! 3646: if test "${ac_cv_c_const+set}" = set; then ! 3647: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3648: else ! 3649: cat >conftest.$ac_ext <<_ACEOF ! 3650: #line $LINENO "configure" ! 3651: #include "confdefs.h" ! 3652: ! 3653: #ifdef F77_DUMMY_MAIN ! 3654: # ifdef __cplusplus ! 3655: extern "C" ! 3656: # endif ! 3657: int F77_DUMMY_MAIN() { return 1; } ! 3658: #endif ! 3659: int ! 3660: main () ! 3661: { ! 3662: /* FIXME: Include the comments suggested by Paul. */ ! 3663: #ifndef __cplusplus ! 3664: /* Ultrix mips cc rejects this. */ ! 3665: typedef int charset[2]; ! 3666: const charset x; ! 3667: /* SunOS 4.1.1 cc rejects this. */ ! 3668: char const *const *ccp; ! 3669: char **p; ! 3670: /* NEC SVR4.0.2 mips cc rejects this. */ ! 3671: struct point {int x, y;}; ! 3672: static struct point const zero = {0,0}; ! 3673: /* AIX XL C 1.02.0.0 rejects this. ! 3674: It does not let you subtract one const X* pointer from another in ! 3675: an arm of an if-expression whose if-part is not a constant ! 3676: expression */ ! 3677: const char *g = "string"; ! 3678: ccp = &g + (g ? g-g : 0); ! 3679: /* HPUX 7.0 cc rejects these. */ ! 3680: ++ccp; ! 3681: p = (char**) ccp; ! 3682: ccp = (char const *const *) p; ! 3683: { /* SCO 3.2v4 cc rejects this. */ ! 3684: char *t; ! 3685: char const *s = 0 ? (char *) 0 : (char const *) 0; ! 3686: ! 3687: *t++ = 0; ! 3688: } ! 3689: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! 3690: int x[] = {25, 17}; ! 3691: const int *foo = &x[0]; ! 3692: ++foo; ! 3693: } ! 3694: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! 3695: typedef const int *iptr; ! 3696: iptr p = 0; ! 3697: ++p; ! 3698: } ! 3699: { /* AIX XL C 1.02.0.0 rejects this saying ! 3700: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! 3701: struct s { int j; const int *ap[3]; }; ! 3702: struct s *b; b->j = 5; ! 3703: } ! 3704: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! 3705: const int foo = 10; ! 3706: } ! 3707: #endif ! 3708: ! 3709: ; ! 3710: return 0; ! 3711: } ! 3712: _ACEOF ! 3713: rm -f conftest.$ac_objext ! 3714: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3715: (eval $ac_compile) 2>&5 ! 3716: ac_status=$? ! 3717: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3718: (exit $ac_status); } && ! 3719: { ac_try='test -s conftest.$ac_objext' ! 3720: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3721: (eval $ac_try) 2>&5 ! 3722: ac_status=$? ! 3723: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3724: (exit $ac_status); }; }; then ! 3725: ac_cv_c_const=yes ! 3726: else ! 3727: echo "$as_me: failed program was:" >&5 ! 3728: cat conftest.$ac_ext >&5 ! 3729: ac_cv_c_const=no ! 3730: fi ! 3731: rm -f conftest.$ac_objext conftest.$ac_ext ! 3732: fi ! 3733: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 ! 3734: echo "${ECHO_T}$ac_cv_c_const" >&6 ! 3735: if test $ac_cv_c_const = no; then ! 3736: ! 3737: cat >>confdefs.h <<\_ACEOF ! 3738: #define const ! 3739: _ACEOF ! 3740: ! 3741: fi ! 3742: ! 3743: echo "$as_me:$LINENO: checking for inline" >&5 ! 3744: echo $ECHO_N "checking for inline... $ECHO_C" >&6 ! 3745: if test "${ac_cv_c_inline+set}" = set; then ! 3746: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3747: else ! 3748: ac_cv_c_inline=no ! 3749: for ac_kw in inline __inline__ __inline; do ! 3750: cat >conftest.$ac_ext <<_ACEOF ! 3751: #line $LINENO "configure" ! 3752: #include "confdefs.h" ! 3753: #ifndef __cplusplus ! 3754: static $ac_kw int static_foo () {return 0; } ! 3755: $ac_kw int foo () {return 0; } ! 3756: #endif ! 3757: ! 3758: _ACEOF ! 3759: rm -f conftest.$ac_objext ! 3760: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3761: (eval $ac_compile) 2>&5 ! 3762: ac_status=$? ! 3763: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3764: (exit $ac_status); } && ! 3765: { ac_try='test -s conftest.$ac_objext' ! 3766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3767: (eval $ac_try) 2>&5 ! 3768: ac_status=$? ! 3769: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3770: (exit $ac_status); }; }; then ! 3771: ac_cv_c_inline=$ac_kw; break ! 3772: else ! 3773: echo "$as_me: failed program was:" >&5 ! 3774: cat conftest.$ac_ext >&5 ! 3775: fi ! 3776: rm -f conftest.$ac_objext conftest.$ac_ext ! 3777: done ! 3778: ! 3779: fi ! 3780: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 ! 3781: echo "${ECHO_T}$ac_cv_c_inline" >&6 ! 3782: case $ac_cv_c_inline in ! 3783: inline | yes) ;; ! 3784: no) ! 3785: cat >>confdefs.h <<\_ACEOF ! 3786: #define inline ! 3787: _ACEOF ! 3788: ;; ! 3789: *) cat >>confdefs.h <<_ACEOF ! 3790: #define inline $ac_cv_c_inline ! 3791: _ACEOF ! 3792: ;; ! 3793: esac ! 3794: ! 3795: echo "$as_me:$LINENO: checking for working volatile" >&5 ! 3796: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 ! 3797: if test "${ac_cv_c_volatile+set}" = set; then ! 3798: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3799: else ! 3800: cat >conftest.$ac_ext <<_ACEOF ! 3801: #line $LINENO "configure" ! 3802: #include "confdefs.h" ! 3803: ! 3804: #ifdef F77_DUMMY_MAIN ! 3805: # ifdef __cplusplus ! 3806: extern "C" ! 3807: # endif ! 3808: int F77_DUMMY_MAIN() { return 1; } ! 3809: #endif ! 3810: int ! 3811: main () ! 3812: { ! 3813: ! 3814: volatile int x; ! 3815: int * volatile y; ! 3816: ; ! 3817: return 0; ! 3818: } ! 3819: _ACEOF ! 3820: rm -f conftest.$ac_objext ! 3821: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3822: (eval $ac_compile) 2>&5 ! 3823: ac_status=$? ! 3824: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3825: (exit $ac_status); } && ! 3826: { ac_try='test -s conftest.$ac_objext' ! 3827: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3828: (eval $ac_try) 2>&5 ! 3829: ac_status=$? ! 3830: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3831: (exit $ac_status); }; }; then ! 3832: ac_cv_c_volatile=yes ! 3833: else ! 3834: echo "$as_me: failed program was:" >&5 ! 3835: cat conftest.$ac_ext >&5 ! 3836: ac_cv_c_volatile=no ! 3837: fi ! 3838: rm -f conftest.$ac_objext conftest.$ac_ext ! 3839: fi ! 3840: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 ! 3841: echo "${ECHO_T}$ac_cv_c_volatile" >&6 ! 3842: if test $ac_cv_c_volatile = no; then ! 3843: ! 3844: cat >>confdefs.h <<\_ACEOF ! 3845: #define volatile ! 3846: _ACEOF ! 3847: ! 3848: fi ! 3849: ! 3850: ! 3851: # Do we have GNU-C ? ! 3852: if test x"${GCC}" = xyes; then ! 3853: ! 3854: GCCVERSION=`${CC} -dumpversion` ! 3855: case $GCCVERSION in ! 3856: 2.96*) ! 3857: { echo "$as_me:$LINENO: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&5 ! 3858: echo "$as_me: WARNING: You have GCC $GCCVERSION - This compiler is probably buggy." >&2;} ! 3859: { echo "$as_me:$LINENO: WARNING: So I am using -O instead of -O2 (or greater) now!" >&5 ! 3860: echo "$as_me: WARNING: So I am using -O instead of -O2 (or greater) now!" >&2;} ! 3861: CFLAGS=`echo "${CFLAGS}" | sed 's/-O[2-9]/-O/'` ! 3862: ;; ! 3863: esac ! 3864: ! 3865: if test x"${ENABLE_WERROR}" != xno; then ! 3866: CFLAGS="${CFLAGS} -Werror" ! 3867: fi ! 3868: CFLAGS="${CFLAGS} -Wall" ! 3869: ! 3870: fi ! 3871: ! 3872: ! 3873: # Cross-compiling ? ! 3874: ! 3875: HOSTCFLAGS="-O" ! 3876: HOSTLDFLAGS="" ! 3877: if test "${build}" != "${target}" -a "${HOSTCC}" == "${CC}"; then ! 3878: { echo "$as_me:$LINENO: WARNING: Cross compiling... I will now use cc as host compiler!" >&5 ! 3879: echo "$as_me: WARNING: Cross compiling... I will now use cc as host compiler!" >&2;} ! 3880: HOSTCC=cc ! 3881: else ! 3882: HOSTCFLAGS="${CFLAGS}" ! 3883: HOSTLDFLAGS="${LDFLAGS}" ! 3884: fi ! 3885: ! 3886: ! 3887: ! 3888: for ac_header in stdlib.h ! 3889: do ! 3890: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` ! 3891: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3892: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3893: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3894: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3895: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3896: fi ! 3897: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3898: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3899: else ! 3900: # Is the header compilable? ! 3901: echo "$as_me:$LINENO: checking $ac_header usability" >&5 ! 3902: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 ! 3903: cat >conftest.$ac_ext <<_ACEOF ! 3904: #line $LINENO "configure" ! 3905: #include "confdefs.h" ! 3906: $ac_includes_default ! 3907: #include <$ac_header> ! 3908: _ACEOF ! 3909: rm -f conftest.$ac_objext ! 3910: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ! 3911: (eval $ac_compile) 2>&5 ! 3912: ac_status=$? ! 3913: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3914: (exit $ac_status); } && ! 3915: { ac_try='test -s conftest.$ac_objext' ! 3916: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 3917: (eval $ac_try) 2>&5 ! 3918: ac_status=$? ! 3919: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3920: (exit $ac_status); }; }; then ! 3921: ac_header_compiler=yes ! 3922: else ! 3923: echo "$as_me: failed program was:" >&5 ! 3924: cat conftest.$ac_ext >&5 ! 3925: ac_header_compiler=no ! 3926: fi ! 3927: rm -f conftest.$ac_objext conftest.$ac_ext ! 3928: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 ! 3929: echo "${ECHO_T}$ac_header_compiler" >&6 ! 3930: ! 3931: # Is the header present? ! 3932: echo "$as_me:$LINENO: checking $ac_header presence" >&5 ! 3933: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 ! 3934: cat >conftest.$ac_ext <<_ACEOF ! 3935: #line $LINENO "configure" ! 3936: #include "confdefs.h" ! 3937: #include <$ac_header> ! 3938: _ACEOF ! 3939: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 ! 3940: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ! 3941: ac_status=$? ! 3942: egrep -v '^ *\+' conftest.er1 >conftest.err ! 3943: rm -f conftest.er1 ! 3944: cat conftest.err >&5 ! 3945: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 3946: (exit $ac_status); } >/dev/null; then ! 3947: if test -s conftest.err; then ! 3948: ac_cpp_err=$ac_c_preproc_warn_flag ! 3949: else ! 3950: ac_cpp_err= ! 3951: fi ! 3952: else ! 3953: ac_cpp_err=yes ! 3954: fi ! 3955: if test -z "$ac_cpp_err"; then ! 3956: ac_header_preproc=yes ! 3957: else ! 3958: echo "$as_me: failed program was:" >&5 ! 3959: cat conftest.$ac_ext >&5 ! 3960: ac_header_preproc=no ! 3961: fi ! 3962: rm -f conftest.err conftest.$ac_ext ! 3963: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 ! 3964: echo "${ECHO_T}$ac_header_preproc" >&6 ! 3965: ! 3966: # So? What about this header? ! 3967: case $ac_header_compiler:$ac_header_preproc in ! 3968: yes:no ) ! 3969: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 ! 3970: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} ! 3971: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3972: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; ! 3973: no:yes ) ! 3974: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 ! 3975: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} ! 3976: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 ! 3977: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} ! 3978: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 ! 3979: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; ! 3980: esac ! 3981: echo "$as_me:$LINENO: checking for $ac_header" >&5 ! 3982: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 ! 3983: if eval "test \"\${$as_ac_Header+set}\" = set"; then ! 3984: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 3985: else ! 3986: eval "$as_ac_Header=$ac_header_preproc" ! 3987: fi ! 3988: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 ! 3989: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 ! 3990: ! 3991: fi ! 3992: if test `eval echo '${'$as_ac_Header'}'` = yes; then ! 3993: cat >>confdefs.h <<_ACEOF ! 3994: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 ! 3995: _ACEOF ! 3996: ! 3997: fi ! 3998: ! 3999: done ! 4000: ! 4001: echo "$as_me:$LINENO: checking for working malloc" >&5 ! 4002: echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 ! 4003: if test "${ac_cv_func_malloc_works+set}" = set; then ! 4004: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4005: else ! 4006: if test "$cross_compiling" = yes; then ! 4007: ac_cv_func_malloc_works=no ! 4008: else ! 4009: cat >conftest.$ac_ext <<_ACEOF ! 4010: #line $LINENO "configure" ! 4011: #include "confdefs.h" ! 4012: #if STDC_HEADERS || HAVE_STDLIB_H ! 4013: # include <stdlib.h> ! 4014: #else ! 4015: char *malloc (); ! 4016: #endif ! 4017: ! 4018: #ifdef F77_DUMMY_MAIN ! 4019: # ifdef __cplusplus ! 4020: extern "C" ! 4021: # endif ! 4022: int F77_DUMMY_MAIN() { return 1; } ! 4023: #endif ! 4024: int ! 4025: main () ! 4026: { ! 4027: exit (malloc (0) ? 0 : 1); ! 4028: ; ! 4029: return 0; ! 4030: } ! 4031: _ACEOF ! 4032: rm -f conftest$ac_exeext ! 4033: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4034: (eval $ac_link) 2>&5 ! 4035: ac_status=$? ! 4036: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4037: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4039: (eval $ac_try) 2>&5 ! 4040: ac_status=$? ! 4041: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4042: (exit $ac_status); }; }; then ! 4043: ac_cv_func_malloc_works=yes ! 4044: else ! 4045: echo "$as_me: program exited with status $ac_status" >&5 ! 4046: echo "$as_me: failed program was:" >&5 ! 4047: cat conftest.$ac_ext >&5 ! 4048: ( exit $ac_status ) ! 4049: ac_cv_func_malloc_works=no ! 4050: fi ! 4051: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4052: fi ! 4053: fi ! 4054: echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5 ! 4055: echo "${ECHO_T}$ac_cv_func_malloc_works" >&6 ! 4056: if test $ac_cv_func_malloc_works = yes; then ! 4057: ! 4058: cat >>confdefs.h <<\_ACEOF ! 4059: #define HAVE_MALLOC 1 ! 4060: _ACEOF ! 4061: ! 4062: fi ! 4063: ! 4064: echo "$as_me:$LINENO: checking for working memcmp" >&5 ! 4065: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 ! 4066: if test "${ac_cv_func_memcmp_working+set}" = set; then ! 4067: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4068: else ! 4069: if test "$cross_compiling" = yes; then ! 4070: ac_cv_func_memcmp_working=no ! 4071: else ! 4072: cat >conftest.$ac_ext <<_ACEOF ! 4073: #line $LINENO "configure" ! 4074: #include "confdefs.h" ! 4075: ! 4076: #ifdef F77_DUMMY_MAIN ! 4077: # ifdef __cplusplus ! 4078: extern "C" ! 4079: # endif ! 4080: int F77_DUMMY_MAIN() { return 1; } ! 4081: #endif ! 4082: int ! 4083: main () ! 4084: { ! 4085: ! 4086: /* Some versions of memcmp are not 8-bit clean. */ ! 4087: char c0 = 0x40, c1 = 0x80, c2 = 0x81; ! 4088: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) ! 4089: exit (1); ! 4090: ! 4091: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes ! 4092: or more and with at least one buffer not starting on a 4-byte boundary. ! 4093: William Lewis provided this test program. */ ! 4094: { ! 4095: char foo[21]; ! 4096: char bar[21]; ! 4097: int i; ! 4098: for (i = 0; i < 4; i++) ! 4099: { ! 4100: char *a = foo + i; ! 4101: char *b = bar + i; ! 4102: strcpy (a, "--------01111111"); ! 4103: strcpy (b, "--------10000000"); ! 4104: if (memcmp (a, b, 16) >= 0) ! 4105: exit (1); ! 4106: } ! 4107: exit (0); ! 4108: } ! 4109: ! 4110: ; ! 4111: return 0; ! 4112: } ! 4113: _ACEOF ! 4114: rm -f conftest$ac_exeext ! 4115: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4116: (eval $ac_link) 2>&5 ! 4117: ac_status=$? ! 4118: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4119: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4121: (eval $ac_try) 2>&5 ! 4122: ac_status=$? ! 4123: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4124: (exit $ac_status); }; }; then ! 4125: ac_cv_func_memcmp_working=yes ! 4126: else ! 4127: echo "$as_me: program exited with status $ac_status" >&5 ! 4128: echo "$as_me: failed program was:" >&5 ! 4129: cat conftest.$ac_ext >&5 ! 4130: ( exit $ac_status ) ! 4131: ac_cv_func_memcmp_working=no ! 4132: fi ! 4133: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4134: fi ! 4135: fi ! 4136: echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 ! 4137: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 ! 4138: test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" ! 4139: ! 4140: #AC_FUNC_REALLOC ! 4141: echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 ! 4142: echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 ! 4143: if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then ! 4144: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4145: else ! 4146: rm -f conftest.sym conftest.file ! 4147: echo >conftest.file ! 4148: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then ! 4149: if test "$cross_compiling" = yes; then ! 4150: ac_cv_func_lstat_dereferences_slashed_symlink=no ! 4151: else ! 4152: cat >conftest.$ac_ext <<_ACEOF ! 4153: #line $LINENO "configure" ! 4154: #include "confdefs.h" ! 4155: $ac_includes_default ! 4156: #ifdef F77_DUMMY_MAIN ! 4157: # ifdef __cplusplus ! 4158: extern "C" ! 4159: # endif ! 4160: int F77_DUMMY_MAIN() { return 1; } ! 4161: #endif ! 4162: int ! 4163: main () ! 4164: { ! 4165: struct stat sbuf; ! 4166: /* Linux will dereference the symlink and fail. ! 4167: That is better in the sense that it means we will not ! 4168: have to compile and use the lstat wrapper. */ ! 4169: exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); ! 4170: ; ! 4171: return 0; ! 4172: } ! 4173: _ACEOF ! 4174: rm -f conftest$ac_exeext ! 4175: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4176: (eval $ac_link) 2>&5 ! 4177: ac_status=$? ! 4178: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4179: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4180: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4181: (eval $ac_try) 2>&5 ! 4182: ac_status=$? ! 4183: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4184: (exit $ac_status); }; }; then ! 4185: ac_cv_func_lstat_dereferences_slashed_symlink=yes ! 4186: else ! 4187: echo "$as_me: program exited with status $ac_status" >&5 ! 4188: echo "$as_me: failed program was:" >&5 ! 4189: cat conftest.$ac_ext >&5 ! 4190: ( exit $ac_status ) ! 4191: ac_cv_func_lstat_dereferences_slashed_symlink=no ! 4192: fi ! 4193: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4194: fi ! 4195: else ! 4196: # If the `ln -s' command failed, then we probably don't even ! 4197: # have an lstat function. ! 4198: ac_cv_func_lstat_dereferences_slashed_symlink=no ! 4199: fi ! 4200: rm -f conftest.sym conftest.file ! 4201: ! 4202: fi ! 4203: echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 ! 4204: echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 ! 4205: ! 4206: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && ! 4207: ! 4208: cat >>confdefs.h <<_ACEOF ! 4209: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 ! 4210: _ACEOF ! 4211: ! 4212: ! 4213: if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then ! 4214: LIBOBJS="$LIBOBJS lstat.$ac_objext" ! 4215: fi ! 4216: ! 4217: echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 ! 4218: echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 ! 4219: if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then ! 4220: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4221: else ! 4222: if test "$cross_compiling" = yes; then ! 4223: ac_cv_func_stat_empty_string_bug=yes ! 4224: else ! 4225: cat >conftest.$ac_ext <<_ACEOF ! 4226: #line $LINENO "configure" ! 4227: #include "confdefs.h" ! 4228: $ac_includes_default ! 4229: #ifdef F77_DUMMY_MAIN ! 4230: # ifdef __cplusplus ! 4231: extern "C" ! 4232: # endif ! 4233: int F77_DUMMY_MAIN() { return 1; } ! 4234: #endif ! 4235: int ! 4236: main () ! 4237: { ! 4238: struct stat sbuf; ! 4239: exit (stat ("", &sbuf) ? 1 : 0); ! 4240: ; ! 4241: return 0; ! 4242: } ! 4243: _ACEOF ! 4244: rm -f conftest$ac_exeext ! 4245: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4246: (eval $ac_link) 2>&5 ! 4247: ac_status=$? ! 4248: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4249: (exit $ac_status); } && { ac_try='./conftest$ac_exeext' ! 4250: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4251: (eval $ac_try) 2>&5 ! 4252: ac_status=$? ! 4253: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4254: (exit $ac_status); }; }; then ! 4255: ac_cv_func_stat_empty_string_bug=yes ! 4256: else ! 4257: echo "$as_me: program exited with status $ac_status" >&5 ! 4258: echo "$as_me: failed program was:" >&5 ! 4259: cat conftest.$ac_ext >&5 ! 4260: ( exit $ac_status ) ! 4261: ac_cv_func_stat_empty_string_bug=no ! 4262: fi ! 4263: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext ! 4264: fi ! 4265: fi ! 4266: echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 ! 4267: echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 ! 4268: if test $ac_cv_func_stat_empty_string_bug = yes; then ! 4269: LIBOBJS="$LIBOBJS stat.$ac_objext" ! 4270: ! 4271: cat >>confdefs.h <<_ACEOF ! 4272: #define HAVE_STAT_EMPTY_STRING_BUG 1 ! 4273: _ACEOF ! 4274: ! 4275: fi ! 4276: ! 4277: ! 4278: ! 4279: ! 4280: ! 4281: ! 4282: ! 4283: ! 4284: ! 4285: ! 4286: ! 4287: ! 4288: for ac_func in getcwd memmove memset mkdir rmdir strcasecmp \ ! 4289: strchr strerror strncasecmp strrchr strstr ! 4290: do ! 4291: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` ! 4292: echo "$as_me:$LINENO: checking for $ac_func" >&5 ! 4293: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 ! 4294: if eval "test \"\${$as_ac_var+set}\" = set"; then ! 4295: echo $ECHO_N "(cached) $ECHO_C" >&6 ! 4296: else ! 4297: cat >conftest.$ac_ext <<_ACEOF ! 4298: #line $LINENO "configure" ! 4299: #include "confdefs.h" ! 4300: /* System header to define __stub macros and hopefully few prototypes, ! 4301: which can conflict with char $ac_func (); below. */ ! 4302: #include <assert.h> ! 4303: /* Override any gcc2 internal prototype to avoid an error. */ ! 4304: #ifdef __cplusplus ! 4305: extern "C" ! 4306: #endif ! 4307: /* We use char because int might match the return type of a gcc2 ! 4308: builtin and then its argument prototype would still apply. */ ! 4309: char $ac_func (); ! 4310: char (*f) (); ! 4311: ! 4312: #ifdef F77_DUMMY_MAIN ! 4313: # ifdef __cplusplus ! 4314: extern "C" ! 4315: # endif ! 4316: int F77_DUMMY_MAIN() { return 1; } ! 4317: #endif ! 4318: int ! 4319: main () ! 4320: { ! 4321: /* The GNU C library defines this for functions which it implements ! 4322: to always fail with ENOSYS. Some functions are actually named ! 4323: something starting with __ and the normal name is an alias. */ ! 4324: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 4325: choke me ! 4326: #else ! 4327: f = $ac_func; ! 4328: #endif ! 4329: ! 4330: ; ! 4331: return 0; ! 4332: } ! 4333: _ACEOF ! 4334: rm -f conftest.$ac_objext conftest$ac_exeext ! 4335: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ! 4336: (eval $ac_link) 2>&5 ! 4337: ac_status=$? ! 4338: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4339: (exit $ac_status); } && ! 4340: { ac_try='test -s conftest$ac_exeext' ! 4341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ! 4342: (eval $ac_try) 2>&5 ! 4343: ac_status=$? ! 4344: echo "$as_me:$LINENO: \$? = $ac_status" >&5 ! 4345: (exit $ac_status); }; }; then ! 4346: eval "$as_ac_var=yes" ! 4347: else ! 4348: echo "$as_me: failed program was:" >&5 ! 4349: cat conftest.$ac_ext >&5 ! 4350: eval "$as_ac_var=no" ! 4351: fi ! 4352: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ! 4353: fi ! 4354: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 ! 4355: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 ! 4356: if test `eval echo '${'$as_ac_var'}'` = yes; then ! 4357: cat >>confdefs.h <<_ACEOF ! 4358: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 ! 4359: _ACEOF ! 4360: ! 4361: else ! 4362: { { echo "$as_me:$LINENO: error: A necessary function could not be found." >&5 ! 4363: echo "$as_me: error: A necessary function could not be found." >&2;} ! 4364: { (exit 1); exit 1; }; } ! 4365: fi ! 4366: done ! 4367: ! 4368: ! 4369: ! 4370: ! 4371: ! 4372: if test "${datadir}" = '${prefix}/share'; then ! 4373: datadir='${prefix}/share/hatari' ! 4374: fi ! 4375: ! 4376: ! 4377: ! 4378: ! 4379: ! 4380: ac_config_files="$ac_config_files Makefile.cnf" ! 4381: cat >confcache <<\_ACEOF ! 4382: # This file is a shell script that caches the results of configure ! 4383: # tests run on this system so they can be shared between configure ! 4384: # scripts and configure runs, see configure's option --config-cache. ! 4385: # It is not useful on other systems. If it contains results you don't ! 4386: # want to keep, you may remove or edit it. ! 4387: # ! 4388: # config.status only pays attention to the cache file if you give it ! 4389: # the --recheck option to rerun configure. ! 4390: # ! 4391: # `ac_cv_env_foo' variables (set or unset) will be overriden when ! 4392: # loading this file, other *unset* `ac_cv_foo' will be assigned the ! 4393: # following values. ! 4394: ! 4395: _ACEOF ! 4396: ! 4397: # The following way of writing the cache mishandles newlines in values, ! 4398: # but we know of no workaround that is simple, portable, and efficient. ! 4399: # So, don't put newlines in cache variables' values. ! 4400: # Ultrix sh set writes to stderr and can't be redirected directly, ! 4401: # and sets the high bit in the cache file unless we assign to the vars. ! 4402: { ! 4403: (set) 2>&1 | ! 4404: case `(ac_space=' '; set | grep ac_space) 2>&1` in ! 4405: *ac_space=\ *) ! 4406: # `set' does not quote correctly, so add quotes (double-quote ! 4407: # substitution turns \\\\ into \\, and sed turns \\ into \). ! 4408: sed -n \ ! 4409: "s/'/'\\\\''/g; ! 4410: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ! 4411: ;; ! 4412: *) ! 4413: # `set' quotes correctly as required by POSIX, so do not add quotes. ! 4414: sed -n \ ! 4415: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ! 4416: ;; ! 4417: esac; ! 4418: } | ! 4419: sed ' ! 4420: t clear ! 4421: : clear ! 4422: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ! 4423: t end ! 4424: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ! 4425: : end' >>confcache ! 4426: if cmp -s $cache_file confcache; then :; else ! 4427: if test -w $cache_file; then ! 4428: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" ! 4429: cat confcache >$cache_file ! 4430: else ! 4431: echo "not updating unwritable cache $cache_file" ! 4432: fi ! 4433: fi ! 4434: rm -f confcache ! 4435: ! 4436: test "x$prefix" = xNONE && prefix=$ac_default_prefix ! 4437: # Let make expand exec_prefix. ! 4438: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ! 4439: ! 4440: # VPATH may cause trouble with some makes, so we remove $(srcdir), ! 4441: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and ! 4442: # trailing colons and then remove the whole line if VPATH becomes empty ! 4443: # (actually we leave an empty line to preserve line numbers). ! 4444: if test "x$srcdir" = x.; then ! 4445: ac_vpsub='/^[ ]*VPATH[ ]*=/{ ! 4446: s/:*\$(srcdir):*/:/; ! 4447: s/:*\${srcdir}:*/:/; ! 4448: s/:*@srcdir@:*/:/; ! 4449: s/^\([^=]*=[ ]*\):*/\1/; ! 4450: s/:*$//; ! 4451: s/^[^=]*=[ ]*$//; ! 4452: }' ! 4453: fi ! 4454: ! 4455: # Transform confdefs.h into DEFS. ! 4456: # Protect against shell expansion while executing Makefile rules. ! 4457: # Protect against Makefile macro expansion. ! 4458: # ! 4459: # If the first sed substitution is executed (which looks for macros that ! 4460: # take arguments), then we branch to the quote section. Otherwise, ! 4461: # look for a macro that doesn't take arguments. ! 4462: cat >confdef2opt.sed <<\_ACEOF ! 4463: t clear ! 4464: : clear ! 4465: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g ! 4466: t quote ! 4467: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g ! 4468: t quote ! 4469: d ! 4470: : quote ! 4471: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g ! 4472: s,\[,\\&,g ! 4473: s,\],\\&,g ! 4474: s,\$,$$,g ! 4475: p ! 4476: _ACEOF ! 4477: # We use echo to avoid assuming a particular line-breaking character. ! 4478: # The extra dot is to prevent the shell from consuming trailing ! 4479: # line-breaks from the sub-command output. A line-break within ! 4480: # single-quotes doesn't work because, if this script is created in a ! 4481: # platform that uses two characters for line-breaks (e.g., DOS), tr ! 4482: # would break. ! 4483: ac_LF_and_DOT=`echo; echo .` ! 4484: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` ! 4485: rm -f confdef2opt.sed ! 4486: ! 4487: ! 4488: ! 4489: : ${CONFIG_STATUS=./config.status} ! 4490: ac_clean_files_save=$ac_clean_files ! 4491: ac_clean_files="$ac_clean_files $CONFIG_STATUS" ! 4492: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ! 4493: echo "$as_me: creating $CONFIG_STATUS" >&6;} ! 4494: cat >$CONFIG_STATUS <<_ACEOF ! 4495: #! $SHELL ! 4496: # Generated by $as_me. ! 4497: # Run this file to recreate the current configuration. ! 4498: # Compiler output produced by configure, useful for debugging ! 4499: # configure, is in config.log if it exists. ! 4500: ! 4501: debug=false ! 4502: SHELL=\${CONFIG_SHELL-$SHELL} ! 4503: _ACEOF ! 4504: ! 4505: cat >>$CONFIG_STATUS <<\_ACEOF ! 4506: ! 4507: ## --------------------- ## ! 4508: ## M4sh Initialization. ## ! 4509: ## --------------------- ## ! 4510: ! 4511: # Be Bourne compatible ! 4512: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ! 4513: emulate sh ! 4514: NULLCMD=: ! 4515: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ! 4516: set -o posix ! 4517: fi ! 4518: ! 4519: # NLS nuisances. ! 4520: # Support unset when possible. ! 4521: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then ! 4522: as_unset=unset ! 4523: else ! 4524: as_unset=false ! 4525: fi ! 4526: ! 4527: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && ! 4528: { $as_unset LANG || test "${LANG+set}" != set; } || ! 4529: { LANG=C; export LANG; } ! 4530: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && ! 4531: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || ! 4532: { LC_ALL=C; export LC_ALL; } ! 4533: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && ! 4534: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || ! 4535: { LC_TIME=C; export LC_TIME; } ! 4536: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && ! 4537: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || ! 4538: { LC_CTYPE=C; export LC_CTYPE; } ! 4539: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && ! 4540: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || ! 4541: { LANGUAGE=C; export LANGUAGE; } ! 4542: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && ! 4543: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || ! 4544: { LC_COLLATE=C; export LC_COLLATE; } ! 4545: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && ! 4546: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || ! 4547: { LC_NUMERIC=C; export LC_NUMERIC; } ! 4548: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && ! 4549: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || ! 4550: { LC_MESSAGES=C; export LC_MESSAGES; } ! 4551: ! 4552: ! 4553: # Name of the executable. ! 4554: as_me=`(basename "$0") 2>/dev/null || ! 4555: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ! 4556: X"$0" : 'X\(//\)$' \| \ ! 4557: X"$0" : 'X\(/\)$' \| \ ! 4558: . : '\(.\)' 2>/dev/null || ! 4559: echo X/"$0" | ! 4560: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ! 4561: /^X\/\(\/\/\)$/{ s//\1/; q; } ! 4562: /^X\/\(\/\).*/{ s//\1/; q; } ! 4563: s/.*/./; q'` ! 4564: ! 4565: # PATH needs CR, and LINENO needs CR and PATH. ! 4566: # Avoid depending upon Character Ranges. ! 4567: as_cr_letters='abcdefghijklmnopqrstuvwxyz' ! 4568: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ! 4569: as_cr_Letters=$as_cr_letters$as_cr_LETTERS ! 4570: as_cr_digits='0123456789' ! 4571: as_cr_alnum=$as_cr_Letters$as_cr_digits ! 4572: ! 4573: # The user is always right. ! 4574: if test "${PATH_SEPARATOR+set}" != set; then ! 4575: echo "#! /bin/sh" >conftest.sh ! 4576: echo "exit 0" >>conftest.sh ! 4577: chmod +x conftest.sh ! 4578: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then ! 4579: PATH_SEPARATOR=';' ! 4580: else ! 4581: PATH_SEPARATOR=: ! 4582: fi ! 4583: rm -f conftest.sh ! 4584: fi ! 4585: ! 4586: ! 4587: as_lineno_1=$LINENO ! 4588: as_lineno_2=$LINENO ! 4589: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 4590: test "x$as_lineno_1" != "x$as_lineno_2" && ! 4591: test "x$as_lineno_3" = "x$as_lineno_2" || { ! 4592: # Find who we are. Look in the path if we contain no path at all ! 4593: # relative or not. ! 4594: case $0 in ! 4595: *[\\/]* ) as_myself=$0 ;; ! 4596: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 4597: for as_dir in $PATH ! 4598: do ! 4599: IFS=$as_save_IFS ! 4600: test -z "$as_dir" && as_dir=. ! 4601: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ! 4602: done ! 4603: ! 4604: ;; ! 4605: esac ! 4606: # We did not find ourselves, most probably we were run as `sh COMMAND' ! 4607: # in which case we are not to be found in the path. ! 4608: if test "x$as_myself" = x; then ! 4609: as_myself=$0 ! 4610: fi ! 4611: if test ! -f "$as_myself"; then ! 4612: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 ! 4613: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} ! 4614: { (exit 1); exit 1; }; } ! 4615: fi ! 4616: case $CONFIG_SHELL in ! 4617: '') ! 4618: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ! 4619: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ! 4620: do ! 4621: IFS=$as_save_IFS ! 4622: test -z "$as_dir" && as_dir=. ! 4623: for as_base in sh bash ksh sh5; do ! 4624: case $as_dir in ! 4625: /*) ! 4626: if ("$as_dir/$as_base" -c ' ! 4627: as_lineno_1=$LINENO ! 4628: as_lineno_2=$LINENO ! 4629: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ! 4630: test "x$as_lineno_1" != "x$as_lineno_2" && ! 4631: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ! 4632: CONFIG_SHELL=$as_dir/$as_base ! 4633: export CONFIG_SHELL ! 4634: exec "$CONFIG_SHELL" "$0" ${1+"$@"} ! 4635: fi;; ! 4636: esac ! 4637: done ! 4638: done ! 4639: ;; ! 4640: esac ! 4641: ! 4642: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ! 4643: # uniformly replaced by the line number. The first 'sed' inserts a ! 4644: # line-number line before each line; the second 'sed' does the real ! 4645: # work. The second script uses 'N' to pair each line-number line ! 4646: # with the numbered line, and appends trailing '-' during ! 4647: # substitution so that $LINENO is not a special case at line end. ! 4648: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ! 4649: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ! 4650: sed '=' <$as_myself | ! 4651: sed ' ! 4652: N ! 4653: s,$,-, ! 4654: : loop ! 4655: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ! 4656: t loop ! 4657: s,-$,, ! 4658: s,^['$as_cr_digits']*\n,, ! 4659: ' >$as_me.lineno && ! 4660: chmod +x $as_me.lineno || ! 4661: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 ! 4662: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} ! 4663: { (exit 1); exit 1; }; } ! 4664: ! 4665: # Don't try to exec as it changes $[0], causing all sort of problems ! 4666: # (the dirname of $[0] is not the place where we might find the ! 4667: # original and so on. Autoconf is especially sensible to this). ! 4668: . ./$as_me.lineno ! 4669: # Exit status is that of the last command. ! 4670: exit ! 4671: } ! 4672: ! 4673: ! 4674: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ! 4675: *c*,-n*) ECHO_N= ECHO_C=' ! 4676: ' ECHO_T=' ' ;; ! 4677: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ! 4678: *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ! 4679: esac ! 4680: ! 4681: if expr a : '\(a\)' >/dev/null 2>&1; then ! 4682: as_expr=expr ! 4683: else ! 4684: as_expr=false ! 4685: fi ! 4686: ! 4687: rm -f conf$$ conf$$.exe conf$$.file ! 4688: echo >conf$$.file ! 4689: if ln -s conf$$.file conf$$ 2>/dev/null; then ! 4690: # We could just check for DJGPP; but this test a) works b) is more generic ! 4691: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ! 4692: if test -f conf$$.exe; then ! 4693: # Don't use ln at all; we don't have any links ! 4694: as_ln_s='cp -p' ! 4695: else ! 4696: as_ln_s='ln -s' ! 4697: fi ! 4698: elif ln conf$$.file conf$$ 2>/dev/null; then ! 4699: as_ln_s=ln ! 4700: else ! 4701: as_ln_s='cp -p' ! 4702: fi ! 4703: rm -f conf$$ conf$$.exe conf$$.file ! 4704: ! 4705: as_executable_p="test -f" ! 4706: ! 4707: # Sed expression to map a string onto a valid CPP name. ! 4708: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" ! 4709: ! 4710: # Sed expression to map a string onto a valid variable name. ! 4711: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" ! 4712: ! 4713: ! 4714: # IFS ! 4715: # We need space, tab and new line, in precisely that order. ! 4716: as_nl=' ! 4717: ' ! 4718: IFS=" $as_nl" ! 4719: ! 4720: # CDPATH. ! 4721: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } ! 4722: ! 4723: exec 6>&1 ! 4724: ! 4725: # Open the log real soon, to keep \$[0] and so on meaningful, and to ! 4726: # report actual input values of CONFIG_FILES etc. instead of their ! 4727: # values after options handling. Logging --version etc. is OK. ! 4728: exec 5>>config.log ! 4729: { ! 4730: echo ! 4731: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ! 4732: ## Running $as_me. ## ! 4733: _ASBOX ! 4734: } >&5 ! 4735: cat >&5 <<_CSEOF ! 4736: ! 4737: This file was extended by hatari $as_me 0.50, which was ! 4738: generated by GNU Autoconf 2.53. Invocation command line was ! 4739: ! 4740: CONFIG_FILES = $CONFIG_FILES ! 4741: CONFIG_HEADERS = $CONFIG_HEADERS ! 4742: CONFIG_LINKS = $CONFIG_LINKS ! 4743: CONFIG_COMMANDS = $CONFIG_COMMANDS ! 4744: $ $0 $@ ! 4745: ! 4746: _CSEOF ! 4747: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 ! 4748: echo >&5 ! 4749: _ACEOF ! 4750: ! 4751: # Files that config.status was made for. ! 4752: if test -n "$ac_config_files"; then ! 4753: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS ! 4754: fi ! 4755: ! 4756: if test -n "$ac_config_headers"; then ! 4757: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS ! 4758: fi ! 4759: ! 4760: if test -n "$ac_config_links"; then ! 4761: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS ! 4762: fi ! 4763: ! 4764: if test -n "$ac_config_commands"; then ! 4765: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS ! 4766: fi ! 4767: ! 4768: cat >>$CONFIG_STATUS <<\_ACEOF ! 4769: ! 4770: ac_cs_usage="\ ! 4771: \`$as_me' instantiates files from templates according to the ! 4772: current configuration. ! 4773: ! 4774: Usage: $0 [OPTIONS] [FILE]... ! 4775: ! 4776: -h, --help print this help, then exit ! 4777: -V, --version print version number, then exit ! 4778: -d, --debug don't remove temporary files ! 4779: --recheck update $as_me by reconfiguring in the same conditions ! 4780: --file=FILE[:TEMPLATE] ! 4781: instantiate the configuration file FILE ! 4782: ! 4783: Configuration files: ! 4784: $config_files ! 4785: ! 4786: Report bugs to <[email protected]>." ! 4787: _ACEOF ! 4788: ! 4789: cat >>$CONFIG_STATUS <<_ACEOF ! 4790: ac_cs_version="\\ ! 4791: hatari config.status 0.50 ! 4792: configured by $0, generated by GNU Autoconf 2.53, ! 4793: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" ! 4794: ! 4795: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 ! 4796: Free Software Foundation, Inc. ! 4797: This config.status script is free software; the Free Software Foundation ! 4798: gives unlimited permission to copy, distribute and modify it." ! 4799: srcdir=$srcdir ! 4800: INSTALL="$INSTALL" ! 4801: _ACEOF ! 4802: ! 4803: cat >>$CONFIG_STATUS <<\_ACEOF ! 4804: # If no file are specified by the user, then we need to provide default ! 4805: # value. By we need to know if files were specified by the user. ! 4806: ac_need_defaults=: ! 4807: while test $# != 0 ! 4808: do ! 4809: case $1 in ! 4810: --*=*) ! 4811: ac_option=`expr "x$1" : 'x\([^=]*\)='` ! 4812: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ! 4813: shift ! 4814: set dummy "$ac_option" "$ac_optarg" ${1+"$@"} ! 4815: shift ! 4816: ;; ! 4817: -*);; ! 4818: *) # This is not an option, so the user has probably given explicit ! 4819: # arguments. ! 4820: ac_need_defaults=false;; ! 4821: esac ! 4822: ! 4823: case $1 in ! 4824: # Handling of the options. ! 4825: _ACEOF ! 4826: cat >>$CONFIG_STATUS <<_ACEOF ! 4827: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 4828: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" ! 4829: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; ! 4830: _ACEOF ! 4831: cat >>$CONFIG_STATUS <<\_ACEOF ! 4832: --version | --vers* | -V ) ! 4833: echo "$ac_cs_version"; exit 0 ;; ! 4834: --he | --h) ! 4835: # Conflict between --help and --header ! 4836: { { echo "$as_me:$LINENO: error: ambiguous option: $1 ! 4837: Try \`$0 --help' for more information." >&5 ! 4838: echo "$as_me: error: ambiguous option: $1 ! 4839: Try \`$0 --help' for more information." >&2;} ! 4840: { (exit 1); exit 1; }; };; ! 4841: --help | --hel | -h ) ! 4842: echo "$ac_cs_usage"; exit 0 ;; ! 4843: --debug | --d* | -d ) ! 4844: debug=: ;; ! 4845: --file | --fil | --fi | --f ) ! 4846: shift ! 4847: CONFIG_FILES="$CONFIG_FILES $1" ! 4848: ac_need_defaults=false;; ! 4849: --header | --heade | --head | --hea ) ! 4850: shift ! 4851: CONFIG_HEADERS="$CONFIG_HEADERS $1" ! 4852: ac_need_defaults=false;; ! 4853: ! 4854: # This is an error. ! 4855: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 ! 4856: Try \`$0 --help' for more information." >&5 ! 4857: echo "$as_me: error: unrecognized option: $1 ! 4858: Try \`$0 --help' for more information." >&2;} ! 4859: { (exit 1); exit 1; }; } ;; ! 4860: ! 4861: *) ac_config_targets="$ac_config_targets $1" ;; ! 4862: ! 4863: esac ! 4864: shift ! 4865: done ! 4866: ! 4867: _ACEOF ! 4868: ! 4869: ! 4870: ! 4871: ! 4872: ! 4873: cat >>$CONFIG_STATUS <<\_ACEOF ! 4874: for ac_config_target in $ac_config_targets ! 4875: do ! 4876: case "$ac_config_target" in ! 4877: # Handling of arguments. ! 4878: "Makefile.cnf" ) CONFIG_FILES="$CONFIG_FILES Makefile.cnf" ;; ! 4879: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ! 4880: echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ! 4881: { (exit 1); exit 1; }; };; ! 4882: esac ! 4883: done ! 4884: ! 4885: # If the user did not use the arguments to specify the items to instantiate, ! 4886: # then the envvar interface is used. Set only those that are not. ! 4887: # We use the long form for the default assignment because of an extremely ! 4888: # bizarre bug on SunOS 4.1.3. ! 4889: if $ac_need_defaults; then ! 4890: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ! 4891: fi ! 4892: ! 4893: # Create a temporary directory, and hook for its removal unless debugging. ! 4894: $debug || ! 4895: { ! 4896: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 ! 4897: trap '{ (exit 1); exit 1; }' 1 2 13 15 ! 4898: } ! 4899: ! 4900: # Create a (secure) tmp directory for tmp files. ! 4901: : ${TMPDIR=/tmp} ! 4902: { ! 4903: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && ! 4904: test -n "$tmp" && test -d "$tmp" ! 4905: } || ! 4906: { ! 4907: tmp=$TMPDIR/cs$$-$RANDOM ! 4908: (umask 077 && mkdir $tmp) ! 4909: } || ! 4910: { ! 4911: echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ! 4912: { (exit 1); exit 1; } ! 4913: } ! 4914: ! 4915: _ACEOF ! 4916: ! 4917: cat >>$CONFIG_STATUS <<_ACEOF ! 4918: ! 4919: # ! 4920: # CONFIG_FILES section. ! 4921: # ! 4922: ! 4923: # No need to generate the scripts if there are no CONFIG_FILES. ! 4924: # This happens for instance when ./config.status config.h ! 4925: if test -n "\$CONFIG_FILES"; then ! 4926: # Protect against being on the right side of a sed subst in config.status. ! 4927: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; ! 4928: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF ! 4929: s,@SHELL@,$SHELL,;t t ! 4930: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t ! 4931: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t ! 4932: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t ! 4933: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t ! 4934: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t ! 4935: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t ! 4936: s,@exec_prefix@,$exec_prefix,;t t ! 4937: s,@prefix@,$prefix,;t t ! 4938: s,@program_transform_name@,$program_transform_name,;t t ! 4939: s,@bindir@,$bindir,;t t ! 4940: s,@sbindir@,$sbindir,;t t ! 4941: s,@libexecdir@,$libexecdir,;t t ! 4942: s,@datadir@,$datadir,;t t ! 4943: s,@sysconfdir@,$sysconfdir,;t t ! 4944: s,@sharedstatedir@,$sharedstatedir,;t t ! 4945: s,@localstatedir@,$localstatedir,;t t ! 4946: s,@libdir@,$libdir,;t t ! 4947: s,@includedir@,$includedir,;t t ! 4948: s,@oldincludedir@,$oldincludedir,;t t ! 4949: s,@infodir@,$infodir,;t t ! 4950: s,@mandir@,$mandir,;t t ! 4951: s,@build_alias@,$build_alias,;t t ! 4952: s,@host_alias@,$host_alias,;t t ! 4953: s,@target_alias@,$target_alias,;t t ! 4954: s,@DEFS@,$DEFS,;t t ! 4955: s,@ECHO_C@,$ECHO_C,;t t ! 4956: s,@ECHO_N@,$ECHO_N,;t t ! 4957: s,@ECHO_T@,$ECHO_T,;t t ! 4958: s,@LIBS@,$LIBS,;t t ! 4959: s,@build@,$build,;t t ! 4960: s,@build_cpu@,$build_cpu,;t t ! 4961: s,@build_vendor@,$build_vendor,;t t ! 4962: s,@build_os@,$build_os,;t t ! 4963: s,@host@,$host,;t t ! 4964: s,@host_cpu@,$host_cpu,;t t ! 4965: s,@host_vendor@,$host_vendor,;t t ! 4966: s,@host_os@,$host_os,;t t ! 4967: s,@target@,$target,;t t ! 4968: s,@target_cpu@,$target_cpu,;t t ! 4969: s,@target_vendor@,$target_vendor,;t t ! 4970: s,@target_os@,$target_os,;t t ! 4971: s,@CC@,$CC,;t t ! 4972: s,@CFLAGS@,$CFLAGS,;t t ! 4973: s,@LDFLAGS@,$LDFLAGS,;t t ! 4974: s,@CPPFLAGS@,$CPPFLAGS,;t t ! 4975: s,@ac_ct_CC@,$ac_ct_CC,;t t ! 4976: s,@EXEEXT@,$EXEEXT,;t t ! 4977: s,@OBJEXT@,$OBJEXT,;t t ! 4978: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t ! 4979: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t ! 4980: s,@INSTALL_DATA@,$INSTALL_DATA,;t t ! 4981: s,@SDL_CONFIG@,$SDL_CONFIG,;t t ! 4982: s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t ! 4983: s,@SDL_LIBS@,$SDL_LIBS,;t t ! 4984: s,@CPP@,$CPP,;t t ! 4985: s,@LIBOBJS@,$LIBOBJS,;t t ! 4986: s,@HOSTCC@,$HOSTCC,;t t ! 4987: s,@HOSTCFLAGS@,$HOSTCFLAGS,;t t ! 4988: s,@HOSTLDFLAGS@,$HOSTLDFLAGS,;t t ! 4989: CEOF ! 4990: ! 4991: _ACEOF ! 4992: ! 4993: cat >>$CONFIG_STATUS <<\_ACEOF ! 4994: # Split the substitutions into bite-sized pieces for seds with ! 4995: # small command number limits, like on Digital OSF/1 and HP-UX. ! 4996: ac_max_sed_lines=48 ! 4997: ac_sed_frag=1 # Number of current file. ! 4998: ac_beg=1 # First line for current file. ! 4999: ac_end=$ac_max_sed_lines # Line after last line for current file. ! 5000: ac_more_lines=: ! 5001: ac_sed_cmds= ! 5002: while $ac_more_lines; do ! 5003: if test $ac_beg -gt 1; then ! 5004: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ! 5005: else ! 5006: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ! 5007: fi ! 5008: if test ! -s $tmp/subs.frag; then ! 5009: ac_more_lines=false ! 5010: else ! 5011: # The purpose of the label and of the branching condition is to ! 5012: # speed up the sed processing (if there are no `@' at all, there ! 5013: # is no need to browse any of the substitutions). ! 5014: # These are the two extra sed commands mentioned above. ! 5015: (echo ':t ! 5016: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed ! 5017: if test -z "$ac_sed_cmds"; then ! 5018: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" ! 5019: else ! 5020: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" ! 5021: fi ! 5022: ac_sed_frag=`expr $ac_sed_frag + 1` ! 5023: ac_beg=$ac_end ! 5024: ac_end=`expr $ac_end + $ac_max_sed_lines` ! 5025: fi ! 5026: done ! 5027: if test -z "$ac_sed_cmds"; then ! 5028: ac_sed_cmds=cat ! 5029: fi ! 5030: fi # test -n "$CONFIG_FILES" ! 5031: ! 5032: _ACEOF ! 5033: cat >>$CONFIG_STATUS <<\_ACEOF ! 5034: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue ! 5035: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 5036: case $ac_file in ! 5037: - | *:- | *:-:* ) # input from stdin ! 5038: cat >$tmp/stdin ! 5039: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 5040: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 5041: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ! 5042: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ! 5043: * ) ac_file_in=$ac_file.in ;; ! 5044: esac ! 5045: ! 5046: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ! 5047: ac_dir=`(dirname "$ac_file") 2>/dev/null || ! 5048: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ! 5049: X"$ac_file" : 'X\(//\)[^/]' \| \ ! 5050: X"$ac_file" : 'X\(//\)$' \| \ ! 5051: X"$ac_file" : 'X\(/\)' \| \ ! 5052: . : '\(.\)' 2>/dev/null || ! 5053: echo X"$ac_file" | ! 5054: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ! 5055: /^X\(\/\/\)[^/].*/{ s//\1/; q; } ! 5056: /^X\(\/\/\)$/{ s//\1/; q; } ! 5057: /^X\(\/\).*/{ s//\1/; q; } ! 5058: s/.*/./; q'` ! 5059: { case "$ac_dir" in ! 5060: [\\/]* | ?:[\\/]* ) as_incr_dir=;; ! 5061: *) as_incr_dir=.;; ! 5062: esac ! 5063: as_dummy="$ac_dir" ! 5064: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do ! 5065: case $as_mkdir_dir in ! 5066: # Skip DOS drivespec ! 5067: ?:) as_incr_dir=$as_mkdir_dir ;; ! 5068: *) ! 5069: as_incr_dir=$as_incr_dir/$as_mkdir_dir ! 5070: test -d "$as_incr_dir" || ! 5071: mkdir "$as_incr_dir" || ! 5072: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 ! 5073: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} ! 5074: { (exit 1); exit 1; }; } ! 5075: ;; ! 5076: esac ! 5077: done; } ! 5078: ! 5079: ac_builddir=. ! 5080: ! 5081: if test "$ac_dir" != .; then ! 5082: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ! 5083: # A "../" for each directory in $ac_dir_suffix. ! 5084: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ! 5085: else ! 5086: ac_dir_suffix= ac_top_builddir= ! 5087: fi ! 5088: ! 5089: case $srcdir in ! 5090: .) # No --srcdir option. We are building in place. ! 5091: ac_srcdir=. ! 5092: if test -z "$ac_top_builddir"; then ! 5093: ac_top_srcdir=. ! 5094: else ! 5095: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ! 5096: fi ;; ! 5097: [\\/]* | ?:[\\/]* ) # Absolute path. ! 5098: ac_srcdir=$srcdir$ac_dir_suffix; ! 5099: ac_top_srcdir=$srcdir ;; ! 5100: *) # Relative path. ! 5101: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ! 5102: ac_top_srcdir=$ac_top_builddir$srcdir ;; ! 5103: esac ! 5104: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be ! 5105: # absolute. ! 5106: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ! 5107: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` ! 5108: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ! 5109: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` ! 5110: ! 5111: ! 5112: case $INSTALL in ! 5113: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; ! 5114: *) ac_INSTALL=$ac_top_builddir$INSTALL ;; ! 5115: esac ! 5116: ! 5117: if test x"$ac_file" != x-; then ! 5118: { echo "$as_me:$LINENO: creating $ac_file" >&5 ! 5119: echo "$as_me: creating $ac_file" >&6;} ! 5120: rm -f "$ac_file" ! 5121: fi ! 5122: # Let's still pretend it is `configure' which instantiates (i.e., don't ! 5123: # use $as_me), people would be surprised to read: ! 5124: # /* config.h. Generated by config.status. */ ! 5125: if test x"$ac_file" = x-; then ! 5126: configure_input= ! 5127: else ! 5128: configure_input="$ac_file. " ! 5129: fi ! 5130: configure_input=$configure_input"Generated from `echo $ac_file_in | ! 5131: sed 's,.*/,,'` by configure." ! 5132: ! 5133: # First look for the input files in the build tree, otherwise in the ! 5134: # src tree. ! 5135: ac_file_inputs=`IFS=: ! 5136: for f in $ac_file_in; do ! 5137: case $f in ! 5138: -) echo $tmp/stdin ;; ! 5139: [\\/$]*) ! 5140: # Absolute (can't be DOS-style, as IFS=:) ! 5141: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 5142: echo "$as_me: error: cannot find input file: $f" >&2;} ! 5143: { (exit 1); exit 1; }; } ! 5144: echo $f;; ! 5145: *) # Relative ! 5146: if test -f "$f"; then ! 5147: # Build tree ! 5148: echo $f ! 5149: elif test -f "$srcdir/$f"; then ! 5150: # Source tree ! 5151: echo $srcdir/$f ! 5152: else ! 5153: # /dev/null tree ! 5154: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ! 5155: echo "$as_me: error: cannot find input file: $f" >&2;} ! 5156: { (exit 1); exit 1; }; } ! 5157: fi;; ! 5158: esac ! 5159: done` || { (exit 1); exit 1; } ! 5160: _ACEOF ! 5161: cat >>$CONFIG_STATUS <<_ACEOF ! 5162: sed "$ac_vpsub ! 5163: $extrasub ! 5164: _ACEOF ! 5165: cat >>$CONFIG_STATUS <<\_ACEOF ! 5166: :t ! 5167: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b ! 5168: s,@configure_input@,$configure_input,;t t ! 5169: s,@srcdir@,$ac_srcdir,;t t ! 5170: s,@abs_srcdir@,$ac_abs_srcdir,;t t ! 5171: s,@top_srcdir@,$ac_top_srcdir,;t t ! 5172: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t ! 5173: s,@builddir@,$ac_builddir,;t t ! 5174: s,@abs_builddir@,$ac_abs_builddir,;t t ! 5175: s,@top_builddir@,$ac_top_builddir,;t t ! 5176: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t ! 5177: s,@INSTALL@,$ac_INSTALL,;t t ! 5178: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out ! 5179: rm -f $tmp/stdin ! 5180: if test x"$ac_file" != x-; then ! 5181: mv $tmp/out $ac_file ! 5182: else ! 5183: cat $tmp/out ! 5184: rm -f $tmp/out ! 5185: fi ! 5186: ! 5187: done ! 5188: _ACEOF ! 5189: ! 5190: cat >>$CONFIG_STATUS <<\_ACEOF ! 5191: ! 5192: { (exit 0); exit 0; } ! 5193: _ACEOF ! 5194: chmod +x $CONFIG_STATUS ! 5195: ac_clean_files=$ac_clean_files_save ! 5196: ! 5197: ! 5198: # configure is writing to config.log, and then calls config.status. ! 5199: # config.status does its own redirection, appending to config.log. ! 5200: # Unfortunately, on DOS this fails, as config.log is still kept open ! 5201: # by configure, so config.status won't be able to write to it; its ! 5202: # output is simply discarded. So we exec the FD to /dev/null, ! 5203: # effectively closing config.log, so it can be properly (re)opened and ! 5204: # appended to by config.status. When coming back to configure, we ! 5205: # need to make the FD available again. ! 5206: if test "$no_create" != yes; then ! 5207: ac_cs_success=: ! 5208: exec 5>/dev/null ! 5209: $SHELL $CONFIG_STATUS || ac_cs_success=false ! 5210: exec 5>>config.log ! 5211: # Use ||, not &&, to avoid exiting from the if with $? = 1, which ! 5212: # would make configure fail if this is the last instruction. ! 5213: $ac_cs_success || { (exit 1); exit 1; } ! 5214: fi ! 5215: ! 5216: ! 5217: ! 5218: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5 ! 5219: echo "$as_me: +-----------------------------------------------------+" >&6;} ! 5220: { echo "$as_me:$LINENO: | |" >&5 ! 5221: echo "$as_me: | |" >&6;} ! 5222: { echo "$as_me:$LINENO: | Configuration finished. Now you can compile Hatari. |" >&5 ! 5223: echo "$as_me: | Configuration finished. Now you can compile Hatari. |" >&6;} ! 5224: { echo "$as_me:$LINENO: | Note that you have to use GNU-Make to build it. |" >&5 ! 5225: echo "$as_me: | Note that you have to use GNU-Make to build it. |" >&6;} ! 5226: { echo "$as_me:$LINENO: | |" >&5 ! 5227: echo "$as_me: | |" >&6;} ! 5228: { echo "$as_me:$LINENO: | - If you are using Linux then type: make |" >&5 ! 5229: echo "$as_me: | - If you are using Linux then type: make |" >&6;} ! 5230: { echo "$as_me:$LINENO: | - If you are using *BSD then try : gmake |" >&5 ! 5231: echo "$as_me: | - If you are using *BSD then try : gmake |" >&6;} ! 5232: { echo "$as_me:$LINENO: | |" >&5 ! 5233: echo "$as_me: | |" >&6;} ! 5234: { echo "$as_me:$LINENO: | After compiling, you can install the program by |" >&5 ! 5235: echo "$as_me: | After compiling, you can install the program by |" >&6;} ! 5236: { echo "$as_me:$LINENO: | typing: make install (or: gmake install) |" >&5 ! 5237: echo "$as_me: | typing: make install (or: gmake install) |" >&6;} ! 5238: { echo "$as_me:$LINENO: | |" >&5 ! 5239: echo "$as_me: | |" >&6;} ! 5240: { echo "$as_me:$LINENO: | For information about the configuration variables, |" >&5 ! 5241: echo "$as_me: | For information about the configuration variables, |" >&6;} ! 5242: { echo "$as_me:$LINENO: | please have a look at Makefile.cnf. |" >&5 ! 5243: echo "$as_me: | please have a look at Makefile.cnf. |" >&6;} ! 5244: { echo "$as_me:$LINENO: | |" >&5 ! 5245: echo "$as_me: | |" >&6;} ! 5246: { echo "$as_me:$LINENO: +-----------------------------------------------------+" >&5 ! 5247: echo "$as_me: +-----------------------------------------------------+" >&6;}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.