Annotation of hatari/configure, revision 1.1.1.5

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.